-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 MTU field to route type definition #1005
Conversation
Fixes: containernetworking#1004 Signed-off-by: Joffref <[email protected]>
pkg/types/020/types_test.go
Outdated
@@ -53,14 +53,14 @@ func testResult(resultCNIVersion, jsonCNIVersion string) (*types020.Result, stri | |||
IP: *ipv4, | |||
Gateway: net.ParseIP("1.2.3.1"), | |||
Routes: []types.Route{ | |||
{Dst: *routev4, GW: routegwv4}, | |||
{Dst: *routev4, GW: routegwv4, MTU: 1024}, |
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.
We should probably not add any new fields to v0.2.0 and v0.4.0 -- what do you think, @dcbw ?
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 I remove new fields inside v0.2.0 and v0.4.0, while updating SPEC.md?
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.
@Joffref yes please.
(Sorry, I somehow missed your question!)
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.
Change made!
This looks basically good. We also need to describe this in SPEC.md. Shouldn't be more than a line or two needed. |
Signed-off-by: Joffref <[email protected]>
Signed-off-by: Joffref <[email protected]>
Signed-off-by: Joffref <[email protected]>
@@ -17,13 +17,13 @@ package types020_test | |||
import ( | |||
"encoding/json" | |||
"fmt" | |||
types020 "github.com/containernetworking/cni/pkg/types/020" |
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.
nit this change same unrelated
Added in #1041 |
Fixes: #1004