Create Cross VDC Network

To create a cross VDC network, use the following request:

1
2
POST /cross_vdc_networks.xml
POST /cross_vdc_networks.json

XML Request Example

1
curl -i -X POST -u user:userpass -H 'Accept: application/xml' -H 'Content-Type: application/xml' http://onapp.test/cross_vdc_networks.xml -d '<cross_vdc_network><label>new_cross_vdc</label><vdc_group_id>2</vdc_group_id><gateway_cidr>192.30.260.00/18</gateway_cidr></cross_vdc_network>'

JSON Request Example

1
curl -i -X POST -u user:userpass -H 'Accept: application/json' -H 'Content-Type: application/json' http://onapp.test/cross_vdc_networks.json -d '{"cross_vdc_network": {"label": "new_cross_vdc", "vdc_group_id": "2", "gateway_cidr":"192.30.260.00/18"}}'

Where:

cross_vdc_network - an array of the parameters for the cross VDC network

label - a label of the cross VDC network

vdc_group_id - a group ID of the cross VDC network

gateway_cidr - a network Classless Inter-Domain Routing (CIDR) setting in the format network_gateway_IP_address/subnet_prefix_length