Skip to content

Commit

Permalink
add missing invalid vlan check
Browse files Browse the repository at this point in the history
  • Loading branch information
John-Lin committed Jul 13, 2018
1 parent c2d1b1b commit 442bd06
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/networkprovider/ovs_system.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ type kernelspaceNetworkProvider struct {
}

func (knp kernelspaceNetworkProvider) CreateNetwork(sp *serviceprovider.Container) error {
if err := entity.ValidateVLANTags(knp.vlanTags); err != nil {
return err
}
for _, node := range knp.nodes {
nodeIP, err := sp.KubeCtl.GetNodeExternalIP(node.Name)
if err != nil {
Expand Down

0 comments on commit 442bd06

Please sign in to comment.