diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-02-18 09:03:56 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-02-18 09:03:56 +0000 |
| commit | 088f2446f28c5a4989afe27dd3ebea2792626f81 (patch) | |
| tree | 993037cca6ffaebdb1c4893eb489200b507252a6 /openstackclient/tests/compute | |
| parent | 36b21461d9c09883b7c8c07d51204cd98f90d298 (diff) | |
| parent | d9d1809907256497289ae921bca9a7505a95f6ce (diff) | |
| download | python-openstackclient-088f2446f28c5a4989afe27dd3ebea2792626f81.tar.gz | |
Merge "Support "network show" command in nova network"
Diffstat (limited to 'openstackclient/tests/compute')
| -rw-r--r-- | openstackclient/tests/compute/v2/fakes.py | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/openstackclient/tests/compute/v2/fakes.py b/openstackclient/tests/compute/v2/fakes.py index 26c6eaee..974095ea 100644 --- a/openstackclient/tests/compute/v2/fakes.py +++ b/openstackclient/tests/compute/v2/fakes.py @@ -601,13 +601,42 @@ class FakeNetwork(object): :param Dictionary methods: A dictionary with all methods :return: - A FakeResource object, with id, label, cidr + A FakeResource object, with id, label, cidr and so on """ # Set default attributes. network_attrs = { + 'bridge': 'br100', + 'bridge_interface': None, + 'broadcast': '10.0.0.255', + 'cidr': '10.0.0.0/24', + 'cidr_v6': None, + 'created_at': '2016-02-11T11:17:37.000000', + 'deleted': False, + 'deleted_at': None, + 'dhcp_server': '10.0.0.1', + 'dhcp_start': '10.0.0.2', + 'dns1': '8.8.4.4', + 'dns2': None, + 'enable_dhcp': True, + 'gateway': '10.0.0.1', + 'gateway_v6': None, + 'host': None, 'id': 'network-id-' + uuid.uuid4().hex, + 'injected': False, 'label': 'network-label-' + uuid.uuid4().hex, - 'cidr': '10.0.0.0/24', + 'mtu': None, + 'multi_host': False, + 'netmask': '255.255.255.0', + 'netmask_v6': None, + 'priority': None, + 'project_id': 'project-id-' + uuid.uuid4().hex, + 'rxtx_base': None, + 'share_address': False, + 'updated_at': None, + 'vlan': None, + 'vpn_private_address': None, + 'vpn_public_address': None, + 'vpn_public_port': None, } # Overwrite default attributes. |
