github.com/gophercloud/gophercloud@v1.11.0/openstack/networking/v2/extensions/trunk_details/testing/fixtures_test.go (about) 1 package testing 2 3 // PortWithTrunkDetailsResult represents a raw server response from the 4 // Neutron API with trunk_details enabled. 5 // Some fields have been deleted from the response. 6 const PortWithTrunkDetailsResult = ` 7 { 8 "port": { 9 "id": "dc3e8758-ee96-402d-94b0-4be5e9396c82", 10 "name": "test-port-with-subports", 11 "network_id": "42e996cb-6c9e-4cb1-8665-c62aa1610249", 12 "tenant_id": "d4aa8944-e8be-4f46-bf93-74331af9c49e", 13 "mac_address": "fa:16:3e:1f:de:6d", 14 "admin_state_up": true, 15 "status": "ACTIVE", 16 "device_id": "935f1d9c-1888-457e-98d7-cb57405086cf", 17 "device_owner": "compute:nova", 18 "fixed_ips": [ 19 { 20 "subnet_id": "f7aea11b-a649-4d23-995f-dcd4f2513f7e", 21 "ip_address": "172.16.0.225" 22 } 23 ], 24 "allowed_address_pairs": [], 25 "extra_dhcp_opts": [], 26 "security_groups": [ 27 "614f6c36-50b8-4dde-ab59-a46783befeec" 28 ], 29 "description": "", 30 "binding:vnic_type": "normal", 31 "qos_policy_id": null, 32 "port_security_enabled": true, 33 "trunk_details": { 34 "trunk_id": "f170c831-8c55-4ceb-ad13-75eab4a121e5", 35 "sub_ports": [ 36 { 37 "segmentation_id": 100, 38 "segmentation_type": "vlan", 39 "port_id": "20c673d8-7f9d-4570-b662-148d9ddcc5bd", 40 "mac_address": "fa:16:3e:88:29:a0" 41 } 42 ] 43 }, 44 "ip_allocation": "immediate", 45 "tags": [], 46 "created_at": "2023-05-05T10:54:51Z", 47 "updated_at": "2023-05-05T16:26:01Z", 48 "revision_number": 4, 49 "project_id": "d4aa8944-e8be-4f46-bf93-74331af9c49e" 50 } 51 } 52 `