Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
goSDN
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
danet
goSDN
Commits
b28ea3e3
Commit
b28ea3e3
authored
3 years ago
by
fseidl
Committed by
Fabian Seidl
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix for error with changeresponse and wron initial southboundtype
parent
82d5eb42
No related branches found
No related tags found
1 merge request
!238
Stfaseid http refactor
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
api/pnd.go
+1
-1
1 addition, 1 deletion
api/pnd.go
api/pnd_test.go
+1
-1
1 addition, 1 deletion
api/pnd_test.go
config/config.go
+2
-2
2 additions, 2 deletions
config/config.go
with
4 additions
and
4 deletions
api/pnd.go
+
1
−
1
View file @
b28ea3e3
...
...
@@ -206,7 +206,7 @@ func (p *PrincipalNetworkDomainAdapter) Confirm(cuid uuid.UUID) error {
return
nil
}
func
filterChanges
(
state
ppb
.
ChangeState
,
resp
*
ppb
.
GetChangeResponse
)
[]
uuid
.
UUID
{
func
filterChanges
(
state
ppb
.
ChangeState
,
resp
*
ppb
.
GetChange
List
Response
)
[]
uuid
.
UUID
{
changes
:=
make
([]
uuid
.
UUID
,
0
)
for
_
,
ch
:=
range
resp
.
Change
{
if
ch
.
State
==
state
{
...
...
This diff is collapsed.
Click to expand it.
api/pnd_test.go
+
1
−
1
View file @
b28ea3e3
...
...
@@ -647,7 +647,7 @@ func TestPrincipalNetworkDomainAdapter_Confirm(t *testing.T) {
func
Test_filterChanges
(
t
*
testing
.
T
)
{
type
args
struct
{
state
ppb
.
ChangeState
resp
*
ppb
.
GetChangeResponse
resp
*
ppb
.
GetChange
List
Response
}
tests
:=
[]
struct
{
name
string
...
...
This diff is collapsed.
Click to expand it.
config/config.go
+
2
−
2
View file @
b28ea3e3
...
...
@@ -57,8 +57,8 @@ func InitializeConfig() error {
BaseSouthBoundUUID
=
baseSouthBoundUUIDFromViper
BaseSouthBoundType
=
viper
.
GetInt32
(
baseSouthBoundTypeKey
)
if
BaseSouthBoundType
!=
0
{
viper
.
Set
(
baseSouthBoundTypeKey
,
0
)
if
BaseSouthBoundType
!=
1
{
viper
.
Set
(
baseSouthBoundTypeKey
,
1
)
viper
.
WriteConfig
()
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment