]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Replace internal calls of create_{network, subnet, port}
authorIsaku Yamahata <isaku.yamahata@intel.com>
Tue, 21 Oct 2014 02:30:32 +0000 (11:30 +0900)
committerYalei Wang <yalei.wang@intel.com>
Fri, 14 Aug 2015 11:34:54 +0000 (19:34 +0800)
commitf1457af336b8b4ed72105b9d98a53f95c28c0c1e
tree565057ae2f2e5e0eb8b0d55082ab39bebeca6444
parent2584a1aa7593aca259a8b138a7ed57a2785d8cb8
Replace internal calls of create_{network, subnet, port}

When API controller calls method create_{network, subnet, port),
it made sure that the necessary default values for attrs are filled properly
according to attr mapping.

However, internal calls to these methods do not follow the convention,
when extension codes miss these values, exceptions will be thrown.

This patch introduces helper functions to fix up arguments and replaces
the direct callers of those methods.

Co-Authored-By: gong yong sheng <gong.yongsheng@99cloud.net>
Co-Authored-By: yalei wang <yalei.wang@intel.com>
Change-Id: Ibc6ff897a1a00665a403981a218100a698eb1c33
Closes-Bug: #1383546
neutron/api/rpc/handlers/dhcp_rpc.py
neutron/api/v2/attributes.py
neutron/api/v2/base.py
neutron/db/l3_db.py
neutron/db/l3_dvr_db.py
neutron/db/l3_hamode_db.py
neutron/plugins/common/utils.py
neutron/tests/unit/api/rpc/handlers/test_dhcp_rpc.py
neutron/tests/unit/api/v2/test_attributes.py