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

[Task] Update deploy route #262

Merged
merged 3 commits into from
Aug 21, 2018
Merged

[Task] Update deploy route #262

merged 3 commits into from
Aug 21, 2018

Conversation

sufuf3
Copy link
Contributor

@sufuf3 sufuf3 commented Aug 20, 2018

No description provided.

- Update route command
- Update network-controller image from v0.4.0 to v0.4.3
@codecov-io
Copy link

codecov-io commented Aug 20, 2018

Codecov Report

Merging #262 into develop will decrease coverage by 0.02%.
The diff coverage is 14.28%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #262      +/-   ##
===========================================
- Coverage    79.38%   79.35%   -0.03%     
===========================================
  Files           55       55              
  Lines         2993     2994       +1     
===========================================
  Hits          2376     2376              
  Misses         467      467              
- Partials       150      151       +1
Impacted Files Coverage Δ
src/deployment/deployment.go 94.61% <14.28%> (-0.43%) ⬇️

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 8170a0e...59e5e94. Read the comment docs.

@sufuf3 sufuf3 changed the title Update deploy Update deploy route Aug 20, 2018
// DeploymentRoute is the structure for add IP routing table
type DeploymentRoute struct {
// DeploymentRouteGw is the structure for add IP routing table
type DeploymentRouteGw struct {
DstCIDR string `bson:"dstCIDR" json:"dstCIDR" validate:"required,cidrv4"`
Gateway string `bson:"gateway" json:"gateway" validate:"omitempty,ipv4"`
Copy link
Contributor

Choose a reason for hiding this comment

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

if DeploymentRouteGw is set both DstCIDR and Gateway are required

API.md Outdated
@@ -632,6 +632,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
Copy link
Contributor

Choose a reason for hiding this comment

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

dstCIDR(required): destination network cidr for add IP routing table
gateway(required): the gateway of the interface subnet

API.md Outdated
- dstCIDR: destination network cidr for add IP routing table
- gateway: the gateway of the interface subnet
- routeIntf: a array of route without gateway (Optional)
- dstCIDR: destination network cidr for add IP routing table
Copy link
Contributor

Choose a reason for hiding this comment

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

dstCIDR(required):

@John-Lin John-Lin changed the title Update deploy route [Task] Update deploy route Aug 21, 2018
@sufuf3 sufuf3 force-pushed the sufuf3/update-deploy branch from 09969a4 to 8ce434a Compare August 21, 2018 02:03
@sufuf3 sufuf3 force-pushed the sufuf3/update-deploy branch from 8ce434a to 59e5e94 Compare August 21, 2018 02:05
@John-Lin John-Lin merged commit bc67b53 into develop Aug 21, 2018
@hwchiu hwchiu deleted the sufuf3/update-deploy branch August 21, 2018 07:54
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.

3 participants