summaryrefslogtreecommitdiff
path: root/openstackclient/tests/network/v2/fakes.py
diff options
context:
space:
mode:
authorTang Chen <tangchen@cn.fujitsu.com>2015-12-14 16:33:49 +0800
committerTang Chen <tangchen@cn.fujitsu.com>2015-12-15 09:42:41 +0800
commit6158ebb0e02ca2b796df973e71c6a7d5e829c959 (patch)
treeea27dae63fa9d41ca1a46ae3b0394f9f00cf1cdf /openstackclient/tests/network/v2/fakes.py
parent1ee5191cec53df588d51a7cee31cfe9cf3a57a1b (diff)
downloadpython-openstackclient-6158ebb0e02ca2b796df973e71c6a7d5e829c959.tar.gz
Router: Add "router create" command using SDK
This patch adds "router create" command to osc using sdk. NOTE: Test for --project needs support for fake identity client v2 and v3. These tests will be added in other patches. NOTE: external_gateway_info and routes are not supported to be passed to create command now. They will be supported in another tow patches. NOTE: Creating a ha router is not supported for now. Will support it in another patch. Change-Id: I7642295d27c27dd498331ae1da1c293706d8f6af Implements: blueprint neutron-client Partial-bug: #1519503
Diffstat (limited to 'openstackclient/tests/network/v2/fakes.py')
-rw-r--r--openstackclient/tests/network/v2/fakes.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/openstackclient/tests/network/v2/fakes.py b/openstackclient/tests/network/v2/fakes.py
index 284a40b7..b45c5412 100644
--- a/openstackclient/tests/network/v2/fakes.py
+++ b/openstackclient/tests/network/v2/fakes.py
@@ -174,7 +174,10 @@ class FakeRouter(object):
router_attrs.update(attrs)
# Set default methods.
- router_methods = {}
+ router_methods = {
+ 'keys': ['id', 'name', 'admin_state_up', 'distributed', 'ha',
+ 'tenant_id'],
+ }
# Overwrite default methods.
router_methods.update(methods)