]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
validate flat networks physical name
authorManish Godara <manishg@yahoo-inc.com>
Tue, 24 Jun 2014 17:23:59 +0000 (10:23 -0700)
committerManish Godara <manishg@yahoo-inc.com>
Wed, 25 Jun 2014 18:51:05 +0000 (11:51 -0700)
commit8f3301cb2792cf05dd29a79506719b0141bf029f
tree131f64412d929d8f3ac237f66554ac974192d0d6
parentbefc4a02291de696a70363cb1c80635bf6858ea2
validate flat networks physical name

Modified flat driver to validate the physical network
name - we make sure that empty names are deducted.

unit test changes:
- added two tests to make sure that we detect empty
  physnet names
- fix bug in existing unit-tests
-- flat_networks should be a list of string and not string
- use conf to setup flat_network

Change-Id: Ib7cfbd3c97d2e95c82044a2cba683c917ea54a84
Partial-bug: #1325664
neutron/plugins/ml2/drivers/type_flat.py
neutron/tests/unit/ml2/test_type_flat.py