Skip to content

Commit

Permalink
Fix CI test
Browse files Browse the repository at this point in the history
  • Loading branch information
sufuf3 committed Aug 20, 2018
1 parent b6f729e commit fc1c55f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/entity/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type Container struct {
// PodRouteGw is the structure for add IP routing table with gateway
type PodRouteGw struct {
DstCIDR string `bson:"dstCIDR" json:"dstCIDR" validate:"required,cidrv4"`
Gateway string `bson:"gateway" json:"gateway" validate:"omitempty,ipv4"`
Gateway string `bson:"gateway" json:"gateway" validate:"required,omitempty,ipv4"`
}

// PodRouteIntf is the structure for add IP routing table via interface
Expand All @@ -44,8 +44,8 @@ type PodNetwork struct {
VlanTag *int32 `bson:"vlanTag" json:"vlanTag" validate:"-"`
IPAddress string `bson:"ipAddress" json:"ipAddress" validate:"required,ipv4"`
Netmask string `bson:"netmask" json:"netmask" validate:"required,ipv4"`
RoutesGw []PodRouteGw `bson:"routesGw,omitempty" json:"routesGw" validate:"required,dive,required"`
RoutesIntf []PodRouteIntf `bson:"routesIntf,omitempty" json:"routesIntf" validate:"required,dive,required"`
RoutesGw []PodRouteGw `bson:"routesGw,omitempty" json:"routesGw" validate:"dive"`
RoutesIntf []PodRouteIntf `bson:"routesIntf,omitempty" json:"routesIntf" validate:"dive"`

// It's from the entity.Network entity
BridgeName string `bson:"bridgeName" json:"bridgeName" validate:"-"`
Expand Down

0 comments on commit fc1c55f

Please sign in to comment.