Skip to content

Commit 160f3ae

Browse files
jojimtapoorva11029
jojimt
authored andcommitted
Netplugin changes to match model change (epg is no longer a child of nw). (contiv#380)
* Netplugin changes corresponding to contiv-experimental/contivmodel#23 * Changes from merge * Review comments
1 parent e6b7985 commit 160f3ae

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

netmaster/objApi/objapi_test.go

+7
Original file line numberDiff line numberDiff line change
@@ -1089,6 +1089,13 @@ func TestEpgPolicies(t *testing.T) {
10891089
checkCreateNetwork(t, false, "default", "newnet", "data", "vxlan", "20.1.1.1/16", "20.1.1.254", 2, "", "")
10901090
checkCreateEpg(t, true, "default", "newnet", "group1", []string{}, []string{})
10911091

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+
10921099
// change policy and verify EPG policy changes
10931100
checkCreateEpg(t, false, "default", "contiv", "group3", []string{"policy1"}, []string{})
10941101
checkCreateEpg(t, false, "default", "contiv", "group3", []string{"policy2"}, []string{})

vendor/github.com/contiv/contivmodel/appProfile.json

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)