Skip to content

Commit

Permalink
feat(vlan): vlan network type
Browse files Browse the repository at this point in the history
  • Loading branch information
fangtian authored and oilbeater committed Apr 13, 2020
1 parent edd0ea8 commit cfe9d27
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/controller/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ func (c *Controller) initDefaultLogicalSwitch() error {
NatOutgoing: true,
GatewayType: kubeovnv1.GWDistributedType,
Protocol: util.CheckProtocol(c.config.DefaultCIDR),
Vlan: c.config.DefaultVlanName,
},
}
if c.config.NetworkType == util.NetworkTypeVlan {
Expand Down Expand Up @@ -100,6 +101,7 @@ func (c *Controller) initNodeSwitch() error {
Gateway: c.config.NodeSwitchGateway,
ExcludeIps: []string{c.config.NodeSwitchGateway},
Protocol: util.CheckProtocol(c.config.NodeSwitchCIDR),
Vlan: c.config.DefaultVlanName,
},
}
if c.config.NetworkType == util.NetworkTypeVlan {
Expand Down

0 comments on commit cfe9d27

Please sign in to comment.