summaryrefslogtreecommitdiff
path: root/ironic/tests/unit/common/json_samples/neutron_port_show_ipv6.json
diff options
context:
space:
mode:
authorIlya Etingof <etingof@gmail.com>2019-10-16 12:09:36 +0200
committerIury Gregory Melo Ferreira <imelofer@redhat.com>2020-07-01 14:57:34 +0200
commitc84c6af087f3173be8854fd94f1173a22efc451e (patch)
tree2b84b1d00ec04103bc9c9ed1e870bcd831db4555 /ironic/tests/unit/common/json_samples/neutron_port_show_ipv6.json
parente461e36ee9bbdd9ff06d91cbc4a898d594545488 (diff)
downloadironic-c84c6af087f3173be8854fd94f1173a22efc451e.tar.gz
Add `get_node_network_data` to Neutron NetworkInterface
Implements `get_node_network_data` network interface method for Neutron networks providing Nova network metadata (AKA network_data.json) collected from Neutron VIF of ironic port objects associated with the node. Co-Authored: Iury Gregory Melo Ferreira <iurygregory@gmail.com> Change-Id: I0fa742110649ed2786f360e1ef43012e77671620 Story: 2006691 Task: 37071
Diffstat (limited to 'ironic/tests/unit/common/json_samples/neutron_port_show_ipv6.json')
-rw-r--r--ironic/tests/unit/common/json_samples/neutron_port_show_ipv6.json59
1 files changed, 59 insertions, 0 deletions
diff --git a/ironic/tests/unit/common/json_samples/neutron_port_show_ipv6.json b/ironic/tests/unit/common/json_samples/neutron_port_show_ipv6.json
new file mode 100644
index 000000000..1dd3ead68
--- /dev/null
+++ b/ironic/tests/unit/common/json_samples/neutron_port_show_ipv6.json
@@ -0,0 +1,59 @@
+{
+ "port": {
+ "admin_state_up": true,
+ "allowed_address_pairs": [],
+ "binding:host_id": "devstack",
+ "binding:profile": {},
+ "binding:vif_details": {
+ "ovs_hybrid_plug": true,
+ "port_filter": true
+ },
+ "binding:vif_type": "ovs",
+ "binding:vnic_type": "normal",
+ "created_at": "2016-03-08T20:19:41",
+ "data_plane_status": "ACTIVE",
+ "description": "",
+ "device_id": "5e3898d7-11be-483e-9732-b2f5eccd2b2e",
+ "device_owner": "network:router_interface",
+ "dns_assignment": {
+ "hostname": "myport",
+ "ip_address": "fd00:203:0:113::2",
+ "fqdn": "myport.my-domain.org"
+ },
+ "dns_domain": "my-domain.org.",
+ "dns_name": "myport",
+ "extra_dhcp_opts": [
+ {
+ "opt_value": "pxelinux.0",
+ "ip_version": 6,
+ "opt_name": "bootfile-name"
+ }
+ ],
+ "fixed_ips": [
+ {
+ "ip_address": "fd00:203:0:113::2",
+ "subnet_id": "906e685a-b964-4d58-9939-9cf3af197c67"
+ }
+ ],
+ "id": "96d4bfb9-b26e-41f3-bd2e-e6dcc1ccedb8",
+ "ip_allocation": "immediate",
+ "mac_address": "52:54:00:4f:ef:b7",
+ "mac_learning_enabled": false,
+ "name": "",
+ "network_id": "a87cc70a-3e15-4acf-8205-9b711a3531b7",
+ "port_security_enabled": false,
+ "project_id": "7e02058126cc4950b75f9970368ba177",
+ "revision_number": 1,
+ "security_groups": [],
+ "status": "ACTIVE",
+ "tags": ["tag1,tag2"],
+ "tenant_id": "7e02058126cc4950b75f9970368ba177",
+ "updated_at": "2016-03-08T20:19:41",
+ "qos_policy_id": "29d5e02e-d5ab-4929-bee4-4a9fc12e22ae",
+ "resource_request": {
+ "required": ["CUSTOM_PHYSNET_PUBLIC", "CUSTOM_VNIC_TYPE_NORMAL"],
+ "resources": {"NET_BW_EGR_KILOBIT_PER_SEC": 1000}
+ },
+ "uplink_status_propagation": false
+ }
+}