summaryrefslogtreecommitdiffstats
path: root/etc/os-net-config/samples/bridge_vlan.yaml
diff options
context:
space:
mode:
authorDan Prince <dprince@redhat.com>2014-08-20 21:46:46 -0400
committerDan Prince <dprince@redhat.com>2014-08-20 21:46:46 -0400
commit416943cc4e1ec7e4fc0e86640f24f0133a8b2f4e (patch)
tree67698cc6a037c5bc3339dab31bf7e4226d875074 /etc/os-net-config/samples/bridge_vlan.yaml
parentb3e74611befb157dc4bf992f23aaba346e655a86 (diff)
Add support for parsing YAML
Adds new YAML examples. Also adds some new CLI test cases which compare --noop stdout (from the CLI) for the json and yaml examples to verify they generate the same things.
Diffstat (limited to 'etc/os-net-config/samples/bridge_vlan.yaml')
-rw-r--r--etc/os-net-config/samples/bridge_vlan.yaml16
1 files changed, 16 insertions, 0 deletions
diff --git a/etc/os-net-config/samples/bridge_vlan.yaml b/etc/os-net-config/samples/bridge_vlan.yaml
new file mode 100644
index 0000000..9f25e09
--- /dev/null
+++ b/etc/os-net-config/samples/bridge_vlan.yaml
@@ -0,0 +1,16 @@
+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