2018-01-08 10:26:44 +02:00
|
|
|
curl -i -X GET 'http://localhost:3080/v2/compute/network/interfaces'
|
|
|
|
|
|
|
|
GET /v2/compute/network/interfaces HTTP/1.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
HTTP/1.1 200
|
|
|
|
Connection: close
|
2018-08-16 17:31:56 +03:00
|
|
|
Content-Length: 2297
|
2018-01-08 10:26:44 +02:00
|
|
|
Content-Type: application/json
|
2018-11-20 08:04:27 +02:00
|
|
|
Date: Tue, 20 Nov 2018 06:00:01 GMT
|
|
|
|
Server: Python/3.6 GNS3/2.2.0dev4
|
2018-01-08 10:26:44 +02:00
|
|
|
X-Route: /v2/compute/network/interfaces
|
|
|
|
|
|
|
|
[
|
|
|
|
{
|
2018-06-14 11:39:31 +03:00
|
|
|
"id": "docker0",
|
|
|
|
"ip_address": "172.17.0.1",
|
2018-11-20 08:04:27 +02:00
|
|
|
"mac_address": "02:42:1b:5e:24:0d",
|
2018-06-14 11:39:31 +03:00
|
|
|
"name": "docker0",
|
|
|
|
"netmask": "255.255.0.0",
|
2018-01-08 10:26:44 +02:00
|
|
|
"special": true,
|
|
|
|
"type": "ethernet"
|
|
|
|
},
|
|
|
|
{
|
2018-06-14 11:39:31 +03:00
|
|
|
"id": "lo",
|
|
|
|
"ip_address": "127.0.0.1",
|
|
|
|
"mac_address": "00:00:00:00:00:00",
|
|
|
|
"name": "lo",
|
|
|
|
"netmask": "255.0.0.0",
|
2018-01-08 10:26:44 +02:00
|
|
|
"special": true,
|
|
|
|
"type": "ethernet"
|
|
|
|
},
|
|
|
|
{
|
2018-06-14 11:39:31 +03:00
|
|
|
"id": "virbr0",
|
|
|
|
"ip_address": "192.168.122.1",
|
|
|
|
"mac_address": "00:00:00:00:00:00",
|
|
|
|
"name": "virbr0",
|
|
|
|
"netmask": "255.255.255.0",
|
2018-01-08 10:26:44 +02:00
|
|
|
"special": true,
|
|
|
|
"type": "ethernet"
|
|
|
|
},
|
|
|
|
{
|
2018-06-14 11:39:31 +03:00
|
|
|
"id": "virbr0-nic",
|
2018-01-08 10:26:44 +02:00
|
|
|
"ip_address": "",
|
2018-06-14 11:39:31 +03:00
|
|
|
"mac_address": "52:54:00:cb:6a:77",
|
|
|
|
"name": "virbr0-nic",
|
2018-01-08 10:26:44 +02:00
|
|
|
"netmask": "",
|
|
|
|
"special": true,
|
|
|
|
"type": "ethernet"
|
2018-06-07 11:26:06 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "vmnet1",
|
2018-06-14 11:39:31 +03:00
|
|
|
"ip_address": "172.16.1.1",
|
2018-06-07 11:26:06 +03:00
|
|
|
"mac_address": "00:50:56:c0:00:01",
|
|
|
|
"name": "vmnet1",
|
|
|
|
"netmask": "255.255.255.0",
|
|
|
|
"special": true,
|
|
|
|
"type": "ethernet"
|
|
|
|
},
|
|
|
|
{
|
2018-06-14 11:39:31 +03:00
|
|
|
"id": "vmnet2",
|
|
|
|
"ip_address": "172.16.2.1",
|
|
|
|
"mac_address": "00:50:56:c0:00:02",
|
|
|
|
"name": "vmnet2",
|
2018-06-07 11:26:06 +03:00
|
|
|
"netmask": "255.255.255.0",
|
|
|
|
"special": true,
|
|
|
|
"type": "ethernet"
|
|
|
|
},
|
|
|
|
{
|
2018-06-14 11:39:31 +03:00
|
|
|
"id": "vmnet3",
|
|
|
|
"ip_address": "172.16.3.1",
|
|
|
|
"mac_address": "00:50:56:c0:00:03",
|
|
|
|
"name": "vmnet3",
|
2018-06-07 11:26:06 +03:00
|
|
|
"netmask": "255.255.255.0",
|
|
|
|
"special": true,
|
|
|
|
"type": "ethernet"
|
|
|
|
},
|
|
|
|
{
|
2018-06-14 11:39:31 +03:00
|
|
|
"id": "vmnet4",
|
|
|
|
"ip_address": "172.16.10.1",
|
|
|
|
"mac_address": "00:50:56:c0:00:04",
|
|
|
|
"name": "vmnet4",
|
2018-06-07 11:26:06 +03:00
|
|
|
"netmask": "255.255.255.0",
|
|
|
|
"special": true,
|
|
|
|
"type": "ethernet"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "vmnet8",
|
2018-06-14 11:39:31 +03:00
|
|
|
"ip_address": "192.168.195.1",
|
2018-06-07 11:26:06 +03:00
|
|
|
"mac_address": "00:50:56:c0:00:08",
|
|
|
|
"name": "vmnet8",
|
|
|
|
"netmask": "255.255.255.0",
|
|
|
|
"special": true,
|
|
|
|
"type": "ethernet"
|
2018-06-14 11:39:31 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "wlp58s0",
|
2018-08-16 17:31:56 +03:00
|
|
|
"ip_address": "192.168.0.110",
|
2018-06-14 11:39:31 +03:00
|
|
|
"mac_address": "9c:b6:d0:dc:20:29",
|
|
|
|
"name": "wlp58s0",
|
2018-08-16 17:31:56 +03:00
|
|
|
"netmask": "255.255.255.0",
|
2018-06-14 11:39:31 +03:00
|
|
|
"special": false,
|
|
|
|
"type": "ethernet"
|
2018-01-08 10:26:44 +02:00
|
|
|
}
|
|
|
|
]
|