contiv / netplugin

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

New BD is created even though BD is mentioned in cfg.yml file #430

Open santosh76 opened 8 years ago

santosh76 commented 8 years ago

TestDockerBD is created manually on APIC and mentioned in cfg.yml file. When I execute the following commands, a new BD is created on APIC (TestDockerTenant-20.1.1.254) and all the EPG's are associated with the new BD instead of TestDockerBD.

netctl global set -f aci -v 1001-3000 netctl tenant create TestDockerTenant netctl net create -t=TestDockerTenant -s 20.1.1.0/24 -g 20.1.1.254 -e vlan TestDockerBD netctl external-contracts create -t TestDockerTenant -c -a "uni/tn-TestDockerTenant/brc-allowicmp" cons-grp netctl external-contracts create -t TestDockerTenant -p -a "uni/tn-TestDockerTenant/brc-allowicmp" prov-grp netctl group create -t=TestDockerTenant TestDockerBD TestDockerEPG netctl group create -t=TestDockerTenant TestDockerBD TestDockerEPG1 netctl app-profile create -t TestDockerTenant -g TestDockerEPG1,TestDockerEPG TestDockerAppProfile

jainvipin commented 8 years ago

@santosh76 - thanks for trying this out I am suspecting the only reason to mention BD in the cfg.yml is if the BD belonged to the common tenant. I will need to confirm this further. I assume the steps you mention are reproducible. We'll give it a try and get back. ping @gaurav-dalvi

gaurav-dalvi commented 8 years ago

@santosh76 How did you mention BD (We call network in Contiv terminology) in cfg.yml file ?

santosh76 commented 8 years ago

In cfg.yml file I entered the following lin :APIC_EPG_BRIDGE_DOMAIN: "TestDockerBD"

gaurav-dalvi commented 8 years ago

@santosh76 : As we briefly discussed, Could you please try full BD name and then check if you still see this issue ?