summaryrefslogtreecommitdiff
path: root/openstackclient/tests/unit/network/v2/fakes.py
diff options
context:
space:
mode:
authorAnkur Gupta <ankur.gupta@intel.com>2016-09-20 12:29:08 -0500
committerSteve Martinelli <s.martinelli@gmail.com>2016-09-23 16:09:17 +0000
commit0981931628cdea07793850631595cf7299badeaa (patch)
tree89194cdc87444cbeaa9c02b3271dbd68becd6aad /openstackclient/tests/unit/network/v2/fakes.py
parentccd2d658d1d5b55c8014f6bd6fa09aa084d07c21 (diff)
downloadpython-openstackclient-0981931628cdea07793850631595cf7299badeaa.tar.gz
Add --description to Neutron commands
Added simple option for floating ip description when creating a floating ip. Added option for create and set router as well. Partially Implements: blueprint neutron-client-descriptions Partially Implements: blueprint network-commands-options Change-Id: Ib8cd8af449e9ff33b980017b2527a6b196894a00
Diffstat (limited to 'openstackclient/tests/unit/network/v2/fakes.py')
-rw-r--r--openstackclient/tests/unit/network/v2/fakes.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/openstackclient/tests/unit/network/v2/fakes.py b/openstackclient/tests/unit/network/v2/fakes.py
index 89b128ee..6bb35ed0 100644
--- a/openstackclient/tests/unit/network/v2/fakes.py
+++ b/openstackclient/tests/unit/network/v2/fakes.py
@@ -651,6 +651,7 @@ class FakeRouter(object):
'name': 'router-name-' + uuid.uuid4().hex,
'status': 'ACTIVE',
'admin_state_up': True,
+ 'description': 'router-description-' + uuid.uuid4().hex,
'distributed': False,
'ha': False,
'tenant_id': 'project-id-' + uuid.uuid4().hex,
@@ -970,6 +971,7 @@ class FakeFloatingIP(object):
'router_id': 'router-id-' + uuid.uuid4().hex,
'port_id': 'port-id-' + uuid.uuid4().hex,
'tenant_id': 'project-id-' + uuid.uuid4().hex,
+ 'description': 'floating-ip-description-' + uuid.uuid4().hex,
}
# Overwrite default attributes.