Skip to content

Commit

Permalink
add missing invalid vlan check
Browse files Browse the repository at this point in the history
Former-commit-id: 1986f9884a7a217b400099d424fe93426f93b869 [formerly 1986f9884a7a217b400099d424fe93426f93b869 [formerly 442bd06]]
Former-commit-id: fc1c8979a6ebe6b78298e26760d551bf3c04f2be
Former-commit-id: f108a8e
  • Loading branch information
John-Lin committed Jul 13, 2018
1 parent 0768934 commit 235961c
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 235961c

Please sign in to comment.