-
Notifications
You must be signed in to change notification settings - Fork 8
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
network entity refactoring #77
Conversation
6fd94d4
to
7120a63
Compare
Codecov Report
@@ Coverage Diff @@
## develop #77 +/- ##
===========================================
+ Coverage 69.68% 71.05% +1.36%
===========================================
Files 32 32
Lines 1260 1247 -13
===========================================
+ Hits 878 886 +8
+ Misses 324 307 -17
+ Partials 58 54 -4
Continue to review full report at Codecov.
|
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.
Nice clean code, thank you. But there are some camel-case spelling.
PhysicalPorts: []entity.PhysicalPort{eth1}, | ||
Type: entity.OVSKernelspaceNetworkType, | ||
Name: tName, | ||
VLANTags: []int32{0, 2048, 4095}, |
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.
Need double check: you're using 4095
, not 4096
?
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.
yes! 4096 is a invalid number
src/networkprovider/fake.go
Outdated
@@ -7,27 +7,37 @@ import ( | |||
"github.com/linkernetworks/vortex/src/serviceprovider" | |||
) | |||
|
|||
type FakeNetworkProvider struct { | |||
entity.FakeNetwork | |||
type fakenetworkprovider struct { |
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.
fakeNetworkProvider
src/networkprovider/ovs_netdev.go
Outdated
@@ -10,107 +10,98 @@ import ( | |||
"gopkg.in/mgo.v2/bson" | |||
) | |||
|
|||
type OVSUserspaceNetworkProvider struct { | |||
entity.OVSUserspaceNetwork | |||
type userspacenetworkprovider struct { |
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.
userspaceNetworkProvider
src/server/handler_network_test.go
Outdated
}) | ||
} | ||
} | ||
// func (suite *NetworkTestSuite) TestListNetwork() { |
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.
Remove the comments, or use t.Skip()
2329b39
to
5544650
Compare
5544650
to
1f5b746
Compare
9d4670b
to
3f0b324
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
network entity refactoring Former-commit-id: 952a28b6da2a7f5d164ba4e2120155091091209f [formerly ed661fd] Former-commit-id: 1f44b3288dca7441cee1f4d9cdb9a15894219a66
All Test cases have to modify against current changes