-
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
[Task] Update pod route #261
Merged
Merged
Changes from 8 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
4e309f1
Update API for route
sufuf3 db60539
Update route of PodNetwork entity
sufuf3 5ccf651
Update route command of pod's init-container
sufuf3 5f951d2
Fix validate of RoutesIntf & RoutesGw
sufuf3 6b3d6af
make test pass
John-Lin e5d56b6
rename folder
John-Lin f462b9d
missing comma
John-Lin 7ab6f59
typo
John-Lin 5c0d6f7
Update API.md for the description of dstCIDR & gateway
sufuf3 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -328,12 +328,6 @@ Response Data: | |
100, | ||
200 | ||
], | ||
"routes":[ | ||
{ | ||
"dstCIDR":"224.0.0.0/4", | ||
"gateway":"0.0.0.0" | ||
} | ||
], | ||
"bridgeName": "", | ||
"nodes": [ | ||
{ | ||
|
@@ -386,12 +380,6 @@ Response Data: | |
100, | ||
200 | ||
], | ||
"routes":[ | ||
{ | ||
"dstCIDR":"224.0.0.0/4", | ||
"gateway":"0.0.0.0" | ||
} | ||
], | ||
"bridgeName": "ovsbr0", | ||
"nodes": [ | ||
{ | ||
|
@@ -632,6 +620,11 @@ For each Pod, we have fileds need to handle. | |
- vlanTag: the vlan tag for `ifName` interface. | ||
- ipADdress: the IPv4 address of the `ifName` interface. | ||
- netmask: the IPv4 netmask of the `ifName` interface. | ||
- routesGw: a array of route with gateway (Optional) | ||
- dstCIDR: destination network cidr for add IP routing table | ||
- gateway: the gateway of the interface subnet | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
- routeIntf: a array of route without gateway (Optional) | ||
- dstCIDR: destination network cidr for add IP routing table | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
7. capability: the power of the container, if it's ture, it will get almost all capability and act as a privileged=true. | ||
8. restartPolicy: the attribute how the pod restart is container, it should be a string and only valid for those following strings. | ||
- Always,OnFailure,Never | ||
|
@@ -659,8 +652,19 @@ Request Data: | |
"ifName":"eth12", | ||
"vlanTag":0, | ||
"ipAddress":"1.2.3.4", | ||
"netmask":"255.255.255.0" | ||
}], | ||
"netmask":"255.255.255.0", | ||
"routesGw": [ | ||
{ | ||
"dstCIDR":"192.168.2.0/24", | ||
"gateway":"192.168.2.254" | ||
} | ||
], | ||
"routeIntf": [ | ||
{ | ||
"dstCIDR":"224.0.0.0/4", | ||
} | ||
] | ||
}, | ||
"volumes":[ | ||
], | ||
"capability":true, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.