Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[root@headnode (coal) ~]# sdc-volapi /volumes | json -Ha -c 'state==="ready"'
{
"uuid": "d0ae6d3d-28e5-cbe7-f1d0-efd9e783e606",
"name": "test-volume",
"owner_uuid": "a08085c4-1624-45c1-a004-c16e91efae1e",
"size": 10240,
"type": "tritonnfs",
"create_timestamp": "2017-10-26T21:32:26.972Z",
"state": "ready",
"networks": [
"c5d34272-afae-41e5-b014-a204b05435f6"
],
"vm_uuid": "59be6ee2-2bf3-c42f-8dea-84c1ab375d2f",
"filesystem_path": "192.168.128.99:/exports/data"
}
[root@headnode (coal) ~]# sdc-napi /networks/c5d34272-afae-41e5-b014-a204b05435f6
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 460
Date: Thu, 26 Oct 2017 21:34:23 GMT
Server: SmartDataCenter Networking API
x-request-id: 4e367bc2-528b-4499-802f-278afcaed4b0
x-response-time: 8
x-server-name: ce31559f-36e8-48eb-a0d6-b2aaceb0d1c9
Connection: keep-alive
{
"family": "ipv4",
"mtu": 1400,
"nic_tag": "sdc_overlay",
"name": "My-Fabric-Network",
"provision_end_ip": "192.168.131.250",
"provision_start_ip": "192.168.128.5",
"subnet": "192.168.128.0/22",
"uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"vlan_id": 2,
"fabric": true,
"vnet_id": 12539389,
"internet_nat": true,
"gateway_provisioned": true,
"resolvers": [
"8.8.8.8",
"8.8.4.4"
],
"gateway": "192.168.128.1",
"owner_uuids": [
"a08085c4-1624-45c1-a004-c16e91efae1e"
],
"netmask": "255.255.252.0"
}
[root@headnode (coal) ~]# sdc-napi /networks/c5d34272-afae-41e5-b014-a204b05435f6/ips
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 11398
Date: Thu, 26 Oct 2017 21:35:05 GMT
Server: SmartDataCenter Networking API
x-request-id: f1cf8c7e-19ea-448b-9bd6-4032f49d5410
x-response-time: 174
x-server-name: ce31559f-36e8-48eb-a0d6-b2aaceb0d1c9
Connection: keep-alive
[
{
"ip": "192.168.128.1",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": true,
"free": false,
"belongs_to_type": "zone",
"belongs_to_uuid": "200f35fb-a44f-42dc-b2f2-752bd4571a42",
"owner_uuid": "930896af-bf8c-48d4-885c-6573a94b1853"
},
{
"ip": "192.168.128.4",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.5",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.6",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.7",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.8",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.9",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.10",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.11",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": false,
"belongs_to_type": "zone",
"belongs_to_uuid": "9e95c7ec-cc9a-c7c2-935c-90b11fa4aa23",
"owner_uuid": "a08085c4-1624-45c1-a004-c16e91efae1e"
},
{
"ip": "192.168.128.12",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.13",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.14",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.15",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.16",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.17",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.18",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.19",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.20",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.21",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.22",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.23",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.24",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.25",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.26",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.27",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.28",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.29",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.30",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.31",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.32",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.33",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.34",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.35",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.36",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.37",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.38",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.39",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.40",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.41",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.42",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.43",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.44",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.45",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.46",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.47",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.48",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.49",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.50",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.51",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.52",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.53",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.54",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.55",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.56",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.57",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.58",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.59",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.60",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.61",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.62",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.63",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.64",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.65",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.66",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.67",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.68",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.69",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.70",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.71",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.72",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.73",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.74",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.75",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.76",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.77",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.78",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.79",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.80",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.81",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.82",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.83",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.84",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.85",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.86",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.87",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.88",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.89",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.90",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.91",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.92",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.93",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.94",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.95",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.96",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.128.97",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": false,
"belongs_to_type": "zone",
"belongs_to_uuid": "30e3f386-9d62-c378-c4fd-c15ddf2aed7c",
"owner_uuid": "a08085c4-1624-45c1-a004-c16e91efae1e"
},
{
"ip": "192.168.128.98",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": false,
"belongs_to_type": "zone",
"belongs_to_uuid": "685f4122-8fd4-4a30-9e06-f9ddc21df679",
"owner_uuid": "a08085c4-1624-45c1-a004-c16e91efae1e"
},
{
"ip": "192.168.128.99",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": false,
"belongs_to_type": "zone",
"belongs_to_uuid": "59be6ee2-2bf3-c42f-8dea-84c1ab375d2f",
"owner_uuid": "a08085c4-1624-45c1-a004-c16e91efae1e"
},
{
"ip": "192.168.131.251",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": false,
"free": true
},
{
"ip": "192.168.131.255",
"network_uuid": "c5d34272-afae-41e5-b014-a204b05435f6",
"reserved": true,
"free": false,
"belongs_to_type": "other",
"belongs_to_uuid": "930896af-bf8c-48d4-885c-6573a94b1853",
"owner_uuid": "930896af-bf8c-48d4-885c-6573a94b1853"
}
]
[root@headnode (coal) ~]#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.