summaryrefslogtreecommitdiffstats
path: root/etc/os-net-config
diff options
context:
space:
mode:
authorDan Prince <dprince@redhat.com>2014-08-11 16:04:40 -0400
committerDan Prince <dprince@redhat.com>2014-08-11 16:04:40 -0400
commitf57b67880d5c70bbc287ab56395895bb88a1b011 (patch)
treed393e5ac94555f4a6506a64701417f09c128ff41 /etc/os-net-config
parent2da33853506c694684ced99675d6914053246b2a (diff)
Add configuration samples.
Diffstat (limited to 'etc/os-net-config')
-rw-r--r--etc/os-net-config/samples/bond.json19
-rw-r--r--etc/os-net-config/samples/bridge_dhcp.json14
-rw-r--r--etc/os-net-config/samples/bridge_vlan.json21
3 files changed, 54 insertions, 0 deletions
diff --git a/etc/os-net-config/samples/bond.json b/etc/os-net-config/samples/bond.json
new file mode 100644
index 0000000..b21b2d9
--- /dev/null
+++ b/etc/os-net-config/samples/bond.json
@@ -0,0 +1,19 @@
+{ "network_config": [
+ {
+ "type": "ovs_bridge",
+ "name": "br-ctlplane",
+ "use_dhcp": "true",
+ "members": [
+ {
+ "type": "ovs_bond",
+ "name": "bond1",
+ "use_dhcp": "true",
+ "members": [
+ { "type": "interface", "name": "em1" },
+ { "type": "interface", "name": "em2" }
+ ]
+ }
+ ]
+ }
+ ]
+}
diff --git a/etc/os-net-config/samples/bridge_dhcp.json b/etc/os-net-config/samples/bridge_dhcp.json
new file mode 100644
index 0000000..8fda908
--- /dev/null
+++ b/etc/os-net-config/samples/bridge_dhcp.json
@@ -0,0 +1,14 @@
+{ "network_config": [
+ {
+ "type": "ovs_bridge",
+ "name": "br-ctlplane",
+ "use_dhcp": "true",
+ "members": [
+ {
+ "type": "interface",
+ "name": "em1"
+ }
+ ]
+ }
+ ]
+}
diff --git a/etc/os-net-config/samples/bridge_vlan.json b/etc/os-net-config/samples/bridge_vlan.json
new file mode 100644
index 0000000..6a6480c
--- /dev/null
+++ b/etc/os-net-config/samples/bridge_vlan.json
@@ -0,0 +1,21 @@
+{ "network_config": [
+ {
+ "type": "ovs_bridge",
+ "name": "br-ctlplane",
+ "members": [
+ {
+ "type": "vlan",
+ "device": "em1",
+ "vlan_id": "16",
+ "addresses": [{
+ "ip_netmask": "192.0.2.1/24"
+ }],
+ "routes": [{
+ "next_hop": "192.0.2.1",
+ "ip_netmask": "192.0.2.1/24"
+ }]
+ }
+ ]
+ }
+ ]
+}