-
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 deploy route #262
Conversation
- Update route command - Update network-controller image from v0.4.0 to v0.4.3
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
src/entity/deployment.go
Outdated
// 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"` |
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.
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 |
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.
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 |
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.
dstCIDR(required):
09969a4
to
8ce434a
Compare
8ce434a
to
59e5e94
Compare
No description provided.