@@ -996,6 +996,13 @@ func TestEpgPolicies(t *testing.T) {
996
996
checkCreateNetwork (t , false , "default" , "newnet" , "data" , "vxlan" , "20.1.1.1/16" , "20.1.1.254" , 2 , "" , "" )
997
997
checkCreateEpg (t , true , "default" , "newnet" , "group1" , []string {}, []string {})
998
998
999
+ // verify name clash between network and epg is rejected
1000
+ checkCreateEpg (t , true , "default" , "contiv" , "contiv" , []string {})
1001
+ checkCreateNetwork (t , true , "default" , "group1" , "data" , "vxlan" , "20.1.1.1/16" , "20.1.1.254" , 1 )
1002
+ // verify network association cant be changed on epg
1003
+ checkCreateNetwork (t , false , "default" , "newnet" , "data" , "vxlan" , "20.1.1.1/16" , "20.1.1.254" , 2 )
1004
+ checkCreateEpg (t , true , "default" , "newnet" , "group1" , []string {})
1005
+
999
1006
// change policy and verify EPG policy changes
1000
1007
checkCreateEpg (t , false , "default" , "contiv" , "group3" , []string {"policy1" }, []string {})
1001
1008
checkCreateEpg (t , false , "default" , "contiv" , "group3" , []string {"policy2" }, []string {})
0 commit comments