Skip to content

Commit 38142cb

Browse files
jojimtabhi
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 747a7f0 commit 38142cb

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Godeps/_workspace/src/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.

netmaster/objApi/objapi_test.go

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

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

0 commit comments

Comments
 (0)