You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
framework.ExpectTrue(vlanSubinterfaceExists(kindNodeMap, nodeName, interfaceName), fmt.Sprintf("VLAN subinterface %s should exist on node %s", interfaceName, nodeName))
124
-
framework.ExpectTrue(isKubeOVNAutoCreatedInterface(kindNodeMap, nodeName, interfaceName), fmt.Sprintf("VLAN subinterface %s should be created by Kube-OVN on node %s", interfaceName, nodeName))
framework.ExpectTrue(vlanSubinterfaceExists(kindNodeMap, nodeName, nodeIface), fmt.Sprintf("VLAN subinterface %s should exist on node %s", nodeIface, nodeName))
138
+
framework.ExpectTrue(isKubeOVNAutoCreatedInterface(kindNodeMap, nodeName, nodeIface), fmt.Sprintf("VLAN subinterface %s should be created by Kube-OVN on node %s", nodeIface, nodeName))
@@ -150,21 +170,26 @@ var _ = framework.SerialDescribe("[group:underlay]", func() {
150
170
151
171
for_, node:=rangereadyKindNodes {
152
172
nodeName:=node.Name()
153
-
framework.ExpectTrue(vlanSubinterfaceExists(kindNodeMap, nodeName, pn1Interface), fmt.Sprintf("VLAN subinterface %s should exist on node %s", pn1Interface, nodeName))
154
-
framework.ExpectTrue(isKubeOVNAutoCreatedInterface(kindNodeMap, nodeName, pn1Interface), fmt.Sprintf("VLAN subinterface %s should be created by Kube-OVN on node %s", pn1Interface, nodeName))
framework.ExpectTrue(vlanSubinterfaceExists(kindNodeMap, nodeName, nodePn1Interface), fmt.Sprintf("VLAN subinterface %s should exist on node %s", nodePn1Interface, nodeName))
175
+
framework.ExpectTrue(isKubeOVNAutoCreatedInterface(kindNodeMap, nodeName, nodePn1Interface), fmt.Sprintf("VLAN subinterface %s should be created by Kube-OVN on node %s", nodePn1Interface, nodeName))
155
176
156
-
framework.ExpectFalse(isKubeOVNAutoCreatedInterface(kindNodeMap, nodeName, pn2Interface), fmt.Sprintf("Base interface %s on node %s should not be modified by Kube-OVN when autoCreateVlanSubinterfaces is false", pn2Interface, nodeName))
framework.ExpectFalse(isKubeOVNAutoCreatedInterface(kindNodeMap, nodeName, nodePn2Interface), fmt.Sprintf("Base interface %s on node %s should not be modified by Kube-OVN when autoCreateVlanSubinterfaces is false", nodePn2Interface, nodeName))
157
179
158
-
framework.ExpectTrue(vlanSubinterfaceExists(kindNodeMap, nodeName, pn3Interface), fmt.Sprintf("VLAN subinterface %s should exist on node %s", pn3Interface, nodeName))
159
-
framework.ExpectTrue(isKubeOVNAutoCreatedInterface(kindNodeMap, nodeName, pn3Interface), fmt.Sprintf("VLAN subinterface %s should be created by Kube-OVN on node %s", pn3Interface, nodeName))
framework.ExpectTrue(vlanSubinterfaceExists(kindNodeMap, nodeName, nodePn3Interface), fmt.Sprintf("VLAN subinterface %s should exist on node %s", nodePn3Interface, nodeName))
182
+
framework.ExpectTrue(isKubeOVNAutoCreatedInterface(kindNodeMap, nodeName, nodePn3Interface), fmt.Sprintf("VLAN subinterface %s should be created by Kube-OVN on node %s", nodePn3Interface, nodeName))
framework.ExpectTrue(vlanSubinterfaceExists(kindNodeMap, nodeName, pn3Interface), fmt.Sprintf("VLAN subinterface %s should still exist on node %s", pn3Interface, nodeName))
framework.ExpectTrue(vlanSubinterfaceExists(kindNodeMap, nodeName, nodePn3Interface), fmt.Sprintf("VLAN subinterface %s should still exist on node %s", nodePn3Interface, nodeName))
168
193
}
169
194
170
195
providerNetworkClient.DeleteSync(pn2Name)
@@ -174,40 +199,47 @@ var _ = framework.SerialDescribe("[group:underlay]", func() {
174
199
framework.ConformanceIt(`should cleanup auto-created subinterfaces when provider network is deleted`, func() {
175
200
f.SkipVersionPriorTo(1, 15, "vlan subinterfaces are not supported before 1.15.0")
framework.ExpectTrue(vlanSubinterfaceExists(kindNodeMap, nodeName, interfaceName), fmt.Sprintf("VLAN subinterface %s should exist on node %s", interfaceName, nodeName))
187
-
framework.ExpectTrue(isKubeOVNAutoCreatedInterface(kindNodeMap, nodeName, interfaceName), fmt.Sprintf("VLAN subinterface %s should be created by Kube-OVN on node %s", interfaceName, nodeName))
framework.ExpectTrue(vlanSubinterfaceExists(kindNodeMap, nodeName, nodeIface), fmt.Sprintf("VLAN subinterface %s should exist on node %s", nodeIface, nodeName))
215
+
framework.ExpectTrue(isKubeOVNAutoCreatedInterface(kindNodeMap, nodeName, nodeIface), fmt.Sprintf("VLAN subinterface %s should be created by Kube-OVN on node %s", nodeIface, nodeName))
framework.ExpectTrue(vlanSubinterfaceExists(kindNodeMap, nodeName, interfaceName), fmt.Sprintf("VLAN subinterface %s should exist on node %s", interfaceName, nodeName))
210
-
framework.ExpectTrue(isKubeOVNAutoCreatedInterface(kindNodeMap, nodeName, interfaceName), fmt.Sprintf("VLAN subinterface %s should be created by Kube-OVN on node %s", interfaceName, nodeName))
framework.ExpectTrue(vlanSubinterfaceExists(kindNodeMap, nodeName, nodeIface), fmt.Sprintf("VLAN subinterface %s should exist on node %s", nodeIface, nodeName))
242
+
framework.ExpectTrue(isKubeOVNAutoCreatedInterface(kindNodeMap, nodeName, nodeIface), fmt.Sprintf("VLAN subinterface %s should be created by Kube-OVN on node %s", nodeIface, nodeName))
211
243
}
212
244
213
245
original:=pn.DeepCopy()
@@ -216,30 +248,34 @@ var _ = framework.SerialDescribe("[group:underlay]", func() {
framework.ExpectTrue(vlanSubinterfaceExists(kindNodeMap, node.Name(), interfaceName), fmt.Sprintf("VLAN subinterface %s should still exist on node %s when autoCreateVlanSubinterfaces is false", interfaceName, node.Name()))
253
+
framework.ExpectTrue(vlanSubinterfaceExists(kindNodeMap, node.Name(), nodeIface), fmt.Sprintf("VLAN subinterface %s should still exist on node %s when autoCreateVlanSubinterfaces is false", nodeIface, node.Name()))
framework.ExpectFalse(isKubeOVNAutoCreatedInterface(kindNodeMap, nodeName, interfaceName), fmt.Sprintf("Interface %s on node %s should not be a Kube-OVN created subinterface", interfaceName, nodeName))
278
+
framework.ExpectFalse(isKubeOVNAutoCreatedInterface(kindNodeMap, nodeName, nodeIface), fmt.Sprintf("Interface %s on node %s should not be a Kube-OVN created subinterface", nodeIface, nodeName))
243
279
}
244
280
}
245
281
@@ -248,28 +284,69 @@ var _ = framework.SerialDescribe("[group:underlay]", func() {
0 commit comments