contiv / netplugin

Container networking for various use cases
Apache License 2.0
514 stars 177 forks source link

Unable to create 2 epg under 2 BD using contiv #417

Open santosh76 opened 8 years ago

santosh76 commented 8 years ago

Created 2 network objects under tenant t1 [root@localhost ~]# netctl network list -t=t1 Tenant Network Nw Type Encap type Packet tag Subnet Gateway IPv6Subnet IPv6Gateway


t1 n2 data vlan 0 10.1.1.0/24 10.1.1.254 t1 n1 data vlan 0 20.1.1.0/24 20.1.1.254

It created 2 BD's under a VRF on apic.

Create 3 groups : epg1,epg2 with n1 and epg1-n2 with 2 [root@localhost ~]# netctl group list -t=t1 Tenant Group Network Policies


t1 epg1 n1 t1 epg2 n1 allowicmp t1 epg1-n2 n2

When I create a profile : netctl app-profile create -t t1 -g epg1,epg2,epg1-n2 profile1 , all the 3 epg's created are under the same BD.

If I do 1 by 1
netctl app-profile create -t t1 -g epg1,epg2 profile1 netctl app-profile create -t t1 -g epg1-n2 profile1

epg1-n2 overrides the other 2 epg's created. Also app-profile update does not help. Hence I cannot create 2 EPG's under 2 different BD.

gaurav-dalvi commented 8 years ago

Thanks @santosh76

Looks like related to this one : https://github.com/contiv/netplugin/issues/347

@jojimt : Could you please confirm that we support only one BD for all EPGs right now ?

jainvipin commented 8 years ago

@santosh76: can you please describe the use case you have in mind, when trying to create two BDs in one tenant/vrf? Contiv supports only one BD for all epgs per tenant; the reason is because BD is not modeled natively, because all epgs can belong to one BD (broadcast domain).

santosh76 commented 8 years ago

Was not aware that we support only 1 BD for all epgs. Could be an enhancement request