-
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 add route func in container #59
Conversation
Codecov Report
@@ Coverage Diff @@
## master #59 +/- ##
==========================================
+ Coverage 87.17% 87.74% +0.56%
==========================================
Files 7 7
Lines 195 204 +9
==========================================
+ Hits 170 179 +9
Misses 16 16
Partials 9 9
Continue to review full report at Codecov.
|
nl/link.go
Outdated
func AddRoute(ipn *net.IPNet, dev string) error { | ||
link, err := netlink.LinkByName(dev) | ||
if err != nil { | ||
fmt.Print(err) |
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.
should return error
messages/messages.proto
Outdated
|
||
message ConfigureRouteRequest { | ||
string path = 1; | ||
string dstIPNet = 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.
use dstCIDR
rebase and add some test cases |
Got it. |
3b541e3
to
59d0ab4
Compare
I rebase to the latest master and used https://github.com/cweill/gotests to generate the go test. |
73a7a0a
to
f2bc4a7
Compare
現在有考慮要把 gw加回來 下週我們討論一下再改 |
好唷 |
@John-Lin I finished this PR. |
f649fa1
to
c6815c7
Compare
35a944b
to
2f262ac
Compare
No description provided.