Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
goSDN Northbound
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
danet
goSDN Northbound
Commits
98ec7f81
Commit
98ec7f81
authored
3 years ago
by
Fabian Seidl
Browse files
Options
Downloads
Patches
Plain Diff
added generated proto files
parent
f6b3291b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
go/gosdn/southbound/southbound.pb.go
+25
-22
25 additions, 22 deletions
go/gosdn/southbound/southbound.pb.go
openapiv2/gosdn_northbound.swagger.json
+11
-10
11 additions, 10 deletions
openapiv2/gosdn_northbound.swagger.json
with
36 additions
and
32 deletions
go/gosdn/southbound/southbound.pb.go
+
25
−
22
View file @
98ec7f81
...
@@ -21,28 +21,30 @@ const (
...
@@ -21,28 +21,30 @@ const (
_
=
protoimpl
.
EnforceVersion
(
protoimpl
.
MaxVersion
-
20
)
_
=
protoimpl
.
EnforceVersion
(
protoimpl
.
MaxVersion
-
20
)
)
)
// Changed accoprding to style guide:
// https://docs.buf.build/best-practices/style-guide#enums
type
Type
int32
type
Type
int32
const
(
const
(
Type_UNSPECIFIED
Type
=
0
Type_
TYPE_
UNSPECIFIED
Type
=
0
Type_OPENCONFIG
Type
=
1
Type_
TYPE_
OPENCONFIG
Type
=
1
Type_CONTAINERISED
Type
=
2
Type_
TYPE_
CONTAINERISED
Type
=
2
Type_PLUGIN
Type
=
3
Type_
TYPE_
PLUGIN
Type
=
3
)
)
// Enum value maps for Type.
// Enum value maps for Type.
var
(
var
(
Type_name
=
map
[
int32
]
string
{
Type_name
=
map
[
int32
]
string
{
0
:
"UNSPECIFIED"
,
0
:
"
TYPE_
UNSPECIFIED"
,
1
:
"OPENCONFIG"
,
1
:
"
TYPE_
OPENCONFIG"
,
2
:
"CONTAINERISED"
,
2
:
"
TYPE_
CONTAINERISED"
,
3
:
"PLUGIN"
,
3
:
"
TYPE_
PLUGIN"
,
}
}
Type_value
=
map
[
string
]
int32
{
Type_value
=
map
[
string
]
int32
{
"UNSPECIFIED"
:
0
,
"
TYPE_
UNSPECIFIED"
:
0
,
"OPENCONFIG"
:
1
,
"
TYPE_
OPENCONFIG"
:
1
,
"CONTAINERISED"
:
2
,
"
TYPE_
CONTAINERISED"
:
2
,
"PLUGIN"
:
3
,
"
TYPE_
PLUGIN"
:
3
,
}
}
)
)
...
@@ -125,7 +127,7 @@ func (x *SouthboundInterface) GetType() Type {
...
@@ -125,7 +127,7 @@ func (x *SouthboundInterface) GetType() Type {
if
x
!=
nil
{
if
x
!=
nil
{
return
x
.
Type
return
x
.
Type
}
}
return
Type_UNSPECIFIED
return
Type_
TYPE_
UNSPECIFIED
}
}
var
File_gosdn_southbound_southbound_proto
protoreflect
.
FileDescriptor
var
File_gosdn_southbound_southbound_proto
protoreflect
.
FileDescriptor
...
@@ -141,15 +143,16 @@ var file_gosdn_southbound_southbound_proto_rawDesc = []byte{
...
@@ -141,15 +143,16 @@ var file_gosdn_southbound_southbound_proto_rawDesc = []byte{
0x0a
,
0x02
,
0x69
,
0x64
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x02
,
0x69
,
0x64
,
0x12
,
0x2a
,
0x0a
,
0x02
,
0x69
,
0x64
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x02
,
0x69
,
0x64
,
0x12
,
0x2a
,
0x0a
,
0x04
,
0x74
,
0x79
,
0x70
,
0x65
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x0e
,
0x32
,
0x16
,
0x2e
,
0x67
,
0x0a
,
0x04
,
0x74
,
0x79
,
0x70
,
0x65
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x0e
,
0x32
,
0x16
,
0x2e
,
0x67
,
0x6f
,
0x73
,
0x64
,
0x6e
,
0x2e
,
0x73
,
0x6f
,
0x75
,
0x74
,
0x68
,
0x62
,
0x6f
,
0x75
,
0x6e
,
0x64
,
0x2e
,
0x6f
,
0x73
,
0x64
,
0x6e
,
0x2e
,
0x73
,
0x6f
,
0x75
,
0x74
,
0x68
,
0x62
,
0x6f
,
0x75
,
0x6e
,
0x64
,
0x2e
,
0x54
,
0x79
,
0x70
,
0x65
,
0x52
,
0x04
,
0x74
,
0x79
,
0x70
,
0x65
,
0x2a
,
0x46
,
0x0a
,
0x04
,
0x54
,
0x79
,
0x54
,
0x79
,
0x70
,
0x65
,
0x52
,
0x04
,
0x74
,
0x79
,
0x70
,
0x65
,
0x2a
,
0x5a
,
0x0a
,
0x04
,
0x54
,
0x79
,
0x70
,
0x65
,
0x12
,
0x0f
,
0x0a
,
0x0b
,
0x55
,
0x4e
,
0x53
,
0x50
,
0x45
,
0x43
,
0x49
,
0x46
,
0x49
,
0x45
,
0x70
,
0x65
,
0x12
,
0x14
,
0x0a
,
0x10
,
0x54
,
0x59
,
0x50
,
0x45
,
0x5f
,
0x55
,
0x4e
,
0x53
,
0x50
,
0x45
,
0x44
,
0x10
,
0x00
,
0x12
,
0x0e
,
0x0a
,
0x0a
,
0x4f
,
0x50
,
0x45
,
0x4e
,
0x43
,
0x4f
,
0x4e
,
0x46
,
0x49
,
0x43
,
0x49
,
0x46
,
0x49
,
0x45
,
0x44
,
0x10
,
0x00
,
0x12
,
0x13
,
0x0a
,
0x0f
,
0x54
,
0x59
,
0x50
,
0x45
,
0x47
,
0x10
,
0x01
,
0x12
,
0x11
,
0x0a
,
0x0d
,
0x43
,
0x4f
,
0x4e
,
0x54
,
0x41
,
0x49
,
0x4e
,
0x45
,
0x52
,
0x5f
,
0x4f
,
0x50
,
0x45
,
0x4e
,
0x43
,
0x4f
,
0x4e
,
0x46
,
0x49
,
0x47
,
0x10
,
0x01
,
0x12
,
0x16
,
0x0a
,
0x49
,
0x53
,
0x45
,
0x44
,
0x10
,
0x02
,
0x12
,
0x0a
,
0x0a
,
0x06
,
0x50
,
0x4c
,
0x55
,
0x47
,
0x49
,
0x4e
,
0x12
,
0x54
,
0x59
,
0x50
,
0x45
,
0x5f
,
0x43
,
0x4f
,
0x4e
,
0x54
,
0x41
,
0x49
,
0x4e
,
0x45
,
0x52
,
0x49
,
0x10
,
0x03
,
0x42
,
0x30
,
0x5a
,
0x2e
,
0x63
,
0x6f
,
0x64
,
0x65
,
0x2e
,
0x66
,
0x62
,
0x69
,
0x2e
,
0x68
,
0x53
,
0x45
,
0x44
,
0x10
,
0x02
,
0x12
,
0x0f
,
0x0a
,
0x0b
,
0x54
,
0x59
,
0x50
,
0x45
,
0x5f
,
0x50
,
0x4c
,
0x2d
,
0x64
,
0x61
,
0x2e
,
0x64
,
0x65
,
0x2f
,
0x64
,
0x61
,
0x6e
,
0x65
,
0x74
,
0x2f
,
0x61
,
0x70
,
0x69
,
0x55
,
0x47
,
0x49
,
0x4e
,
0x10
,
0x03
,
0x42
,
0x30
,
0x5a
,
0x2e
,
0x63
,
0x6f
,
0x64
,
0x65
,
0x2e
,
0x66
,
0x2f
,
0x67
,
0x6f
,
0x2f
,
0x67
,
0x6f
,
0x73
,
0x64
,
0x6e
,
0x2f
,
0x73
,
0x6f
,
0x75
,
0x74
,
0x68
,
0x62
,
0x62
,
0x69
,
0x2e
,
0x68
,
0x2d
,
0x64
,
0x61
,
0x2e
,
0x64
,
0x65
,
0x2f
,
0x64
,
0x61
,
0x6e
,
0x65
,
0x74
,
0x6f
,
0x75
,
0x6e
,
0x64
,
0x62
,
0x06
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x33
,
0x2f
,
0x61
,
0x70
,
0x69
,
0x2f
,
0x67
,
0x6f
,
0x2f
,
0x67
,
0x6f
,
0x73
,
0x64
,
0x6e
,
0x2f
,
0x73
,
0x6f
,
0x75
,
0x74
,
0x68
,
0x62
,
0x6f
,
0x75
,
0x6e
,
0x64
,
0x62
,
0x06
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x33
,
}
}
var
(
var
(
...
...
This diff is collapsed.
Click to expand it.
openapiv2/gosdn_northbound.swagger.json
+
11
−
10
View file @
98ec7f81
...
@@ -18,19 +18,19 @@
...
@@ -18,19 +18,19 @@
"name"
:
"PndService"
"name"
:
"PndService"
},
},
{
{
"name"
:
"
gNMI
"
"name"
:
"
Collector
"
},
},
{
{
"name"
:
"
CsbiService
"
"name"
:
"
gNMI
"
},
},
{
{
"name"
:
"
CoreService
"
"name"
:
"
AgentManager
"
},
},
{
{
"name"
:
"
AgentManager
"
"name"
:
"
CoreService
"
},
},
{
{
"name"
:
"C
ollector
"
"name"
:
"C
sbiService
"
}
}
],
],
"consumes"
:
[
"consumes"
:
[
...
@@ -2009,12 +2009,13 @@
...
@@ -2009,12 +2009,13 @@
"gosdnsouthboundType"
:
{
"gosdnsouthboundType"
:
{
"type"
:
"string"
,
"type"
:
"string"
,
"enum"
:
[
"enum"
:
[
"UNSPECIFIED"
,
"
TYPE_
UNSPECIFIED"
,
"OPENCONFIG"
,
"
TYPE_
OPENCONFIG"
,
"CONTAINERISED"
,
"
TYPE_
CONTAINERISED"
,
"PLUGIN"
"
TYPE_
PLUGIN"
],
],
"default"
:
"UNSPECIFIED"
"default"
:
"TYPE_UNSPECIFIED"
,
"title"
:
"Changed accoprding to style guide:
\r\n
https://docs.buf.build/best-practices/style-guide#enums"
},
},
"pndApiOperation"
:
{
"pndApiOperation"
:
{
"type"
:
"string"
,
"type"
:
"string"
,
...
...
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