summaryrefslogtreecommitdiff
path: root/openstackclient/tests/unit/network/v2/fakes.py
diff options
context:
space:
mode:
authorYan Xing'an <yanxingan@cmss.chinamobile.com>2016-11-14 01:23:39 -0800
committerYan Xing'an <yanxingan@cmss.chinamobile.com>2016-12-12 19:23:27 -0800
commit083e155ae52408b1e70da66c8fbc06e3d2fbbf6e (patch)
tree6afe9681ac558d19c7bdd0ee22693903868c1d09 /openstackclient/tests/unit/network/v2/fakes.py
parent29587eaa6661493b7df9357ad818bf058e820730 (diff)
downloadpython-openstackclient-083e155ae52408b1e70da66c8fbc06e3d2fbbf6e.tar.gz
SDK Refactor: Prepare router commands
Prepare the OSC "router" commands for the SDK refactor. See [1] for details. [1] https://etherpad.openstack.org/p/osc-network-command-sdk-support Change-Id: I2fa12943a65e3981b924e6cea9ed041682ec54b2 Partially-Implements: blueprint network-command-sdk-support
Diffstat (limited to 'openstackclient/tests/unit/network/v2/fakes.py')
-rw-r--r--openstackclient/tests/unit/network/v2/fakes.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/openstackclient/tests/unit/network/v2/fakes.py b/openstackclient/tests/unit/network/v2/fakes.py
index 97d07076..678ab226 100644
--- a/openstackclient/tests/unit/network/v2/fakes.py
+++ b/openstackclient/tests/unit/network/v2/fakes.py
@@ -834,6 +834,9 @@ class FakeRouter(object):
# Set attributes with special mapping in OpenStack SDK.
router.project_id = router_attrs['tenant_id']
+ router.is_admin_state_up = router_attrs['admin_state_up']
+ router.is_distributed = router_attrs['distributed']
+ router.is_ha = router_attrs['ha']
return router