Skip to content
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

Merged
merged 3 commits into from
Jun 29, 2018

Conversation

chenyunchen
Copy link
Contributor

No description provided.

@@ -55,6 +57,28 @@ message AddPortRequest {
string ifaceName = 2;
}

message PortOptions {
int32 tag = 1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alignment

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix


message SetPortRequest {
string ifaceName = 1;
PortOptions portOptions = 2;
Copy link

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix

}
for _, t := range portOptions.Trunk {
options.Trunk = append(options.Trunk, int32(t))
}
Copy link

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?

Copy link

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~

Copy link
Contributor Author

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"
Copy link

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. :-)

Copy link
Contributor Author

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
Copy link

codecov bot commented Jun 29, 2018

Codecov Report

Merging #51 into master will increase coverage by 2.5%.
The diff coverage is 100%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
openvswitch/ovs.go 98.55% <100%> (+6.36%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4da2753...2d1dc60. Read the comment docs.

@chenyunchen chenyunchen force-pushed the alex/AddPortVLANTrunkSetting branch 4 times, most recently from 6d6b306 to 2d1dc60 Compare June 29, 2018 07:05
Copy link
Contributor

@hwchiu hwchiu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@John-Lin John-Lin merged commit 7f5b2ad into master Jun 29, 2018
@hwchiu hwchiu deleted the alex/AddPortVLANTrunkSetting branch June 29, 2018 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants