Child pages
  • Add Customer Network
Skip to end of metadata
Go to start of metadata
POST /users/:user_id/customer_networks.xml
POST /users/:user_id/customer_networks.json

XML Request example

curl -i -u user:userpass -X POST http://onapp.test/users/:user_id/customer_networks.xml -d '<customer_network><default_outside_ip_address><hypervisor_id>9</hypervisor_id></default_outside_ip_address><ip_address_pool_id>1</ip_address_pool_id><label>test</label><prefix_size>29</prefix_size><network_group_id>1</network_group_id><is_nated>true</is_nated></customer_network>' -H 'Accept: application/xml' -H 'Content-tylpe: application/xml'

JSON Request example

curl -i -u user:userpass -X POST http://onapp.test/users/:user_id/customer_networks.json -d '{"customer_network": {"default_outside_ip_address": { "hypervisor_id": "9" },"ip_address_pool_id": "1","label": "test","prefix_size": "29","network_group_id":"1","is_nated":"1"}}' -H 'Accept: application/json' -H 'Content-type: application/json'


default_outside_ip_address - the default IP address field with the following details:

  • hypervisor_id - ID of a VMware compute resource from which the IP address will be fetched

ip_address_pool_id – IP address pool ID

label – visible network identifier

prefix_size – subnet prefix size

network_group_id* - ID of a network zone to which the customer network will be assigned

NOTE: Do not assign customer network to a network zone with other network types.

is_nated - set true to use NAT for translating the traffic from Vyatta's single eternal IP to local customer network IPs . Set false if you are using your own firewall with external IP address

#trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title $trackbackUtils.getPingUrl($page))
  • No labels