@@ -1089,6 +1089,13 @@ func TestEpgPolicies(t *testing.T) {
1089
1089
checkCreateNetwork (t , false , "default" , "newnet" , "data" , "vxlan" , "20.1.1.1/16" , "20.1.1.254" , 2 , "" , "" )
1090
1090
checkCreateEpg (t , true , "default" , "newnet" , "group1" , []string {}, []string {})
1091
1091
1092
+ // verify name clash between network and epg is rejected
1093
+ checkCreateEpg (t , true , "default" , "contiv" , "contiv" , []string {})
1094
+ checkCreateNetwork (t , true , "default" , "group1" , "data" , "vxlan" , "20.1.1.1/16" , "20.1.1.254" , 1 )
1095
+ // verify network association cant be changed on epg
1096
+ checkCreateNetwork (t , false , "default" , "newnet" , "data" , "vxlan" , "20.1.1.1/16" , "20.1.1.254" , 2 )
1097
+ checkCreateEpg (t , true , "default" , "newnet" , "group1" , []string {})
1098
+
1092
1099
// change policy and verify EPG policy changes
1093
1100
checkCreateEpg (t , false , "default" , "contiv" , "group3" , []string {"policy1" }, []string {})
1094
1101
checkCreateEpg (t , false , "default" , "contiv" , "group3" , []string {"policy2" }, []string {})
0 commit comments