Last active
August 29, 2015 14:02
-
-
Save joshgachnang/c16b443723bbf1f2e361 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"networks": [ // a network is attached to one link and contains a set of L3 configs, such as IP/netmask or whether to dhcp | |
{ | |
"id": "servicenet", //required | |
"type": "ipv4-static", //required | |
"link": "servicenet_vlan", //required, single link | |
"ip": "10.0.0.5", | |
"gateway_ip": "10.0.0.1", | |
"netmask": "255.255.0.0" | |
"dns_nameservers": ["10.0.3.2"], | |
"routes": [ ], // Should we explicitly list default route? I think gateway_ip covers it. | |
}, | |
{ | |
"id": "pubnet", //required | |
"type": "ipv6-static", //required | |
"link": "bond0.101", //required, single link | |
"ip": "52.0.0.5", | |
"gateway_ip": "52.0.0.1", | |
"netmask": "255.255.0.0" | |
"routes": [ | |
{ | |
"destination": "172.16.0.0/0", | |
"gateway_ip": "52.0.0.2", | |
}, | |
], | |
}, | |
{ | |
"id": "dhcpnet", //required | |
"type": "ipv4-dhcp", //required | |
"link": "eth2", //required, single link | |
"dhcp_hostname": "foo.bar.example.com" | |
}, | |
], | |
"links": [ // links are L1/L2 devices, such as NICs, bonds, VLANs. | |
{ | |
"id": "servicenet_vlan", //required | |
"type": "vlan", //required | |
"vlan_link": "bond0", | |
"vlan_id": 401, | |
"neutron_port_id": "11111111-1111-1111-1111-111111111111" | |
"vlan_link": "bond0" //single link for VLAN | |
}, | |
{ | |
"id": "bond0", //required | |
"type": "bond", //required | |
"bond_links": [ | |
"eth0", | |
"eth1" | |
], //required, a list of link ids | |
"bond_type": "802.1ad" // required | |
}, | |
{ | |
"id": "eth0", //required | |
"type": "ethernet", //required | |
"ethernet_mac_address": "aa:bb:cc:dd:ee:ff" //could be "ethernet_pci_path" instead | |
}, | |
{ | |
"id": "eth1", //required | |
"type": "ethernet", //required | |
"ethernet_mac_address": "aa:bb:cc:dd:ee:fe" | |
}, | |
{ | |
"id": "eth2", //required | |
"type": "ethernet", //required | |
"ethernet_mac_address": "aa:bb:cc:dd:ee:fd" | |
}, | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@morgabra Alright, fixed both. I left physical_network off for providers because it is specified in ports.