-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add port tag or vlan,trunk options setting #51
Conversation
messages/messages.proto
Outdated
@@ -55,6 +57,28 @@ message AddPortRequest { | |||
string ifaceName = 2; | |||
} | |||
|
|||
message PortOptions { | |||
int32 tag = 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alignment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix
messages/messages.proto
Outdated
|
||
message SetPortRequest { | ||
string ifaceName = 1; | ||
PortOptions portOptions = 2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you are in the PortRequest, you don't have to prefix it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix
server/openvswitch_handler.go
Outdated
} | ||
for _, t := range portOptions.Trunk { | ||
options.Trunk = append(options.Trunk, int32(t)) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we copy the port options here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if there is a reason, could you please add a comment for it? thank you~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
convert for grpc message response (int to int32)
"revision": "eab982908a30d98500ba243e022247947d9ca570", | ||
"revisionTime": "2018-06-28T03:23:49Z" | ||
"revision": "614ef75bf4e8c6de85a736c9086f628a049011ec", | ||
"revisionTime": "2018-06-28T09:23:35Z" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be good to have a separated PR for updating the dependency. If the purpose is different. :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's for the same purpose. Fix the command output bug on go-openvswitch package for network-controller to use.
Codecov Report
@@ Coverage Diff @@
## master #51 +/- ##
=========================================
+ Coverage 84.4% 86.91% +2.5%
=========================================
Files 7 7
Lines 186 191 +5
=========================================
+ Hits 157 166 +9
+ Misses 18 16 -2
+ Partials 11 9 -2
Continue to review full report at Codecov.
|
6d6b306
to
2d1dc60
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.