summaryrefslogtreecommitdiffstats
path: root/etc/os-net-config/samples
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-08-11 12:31:22 +0000
committerGerrit Code Review <review@openstack.org>2016-08-11 12:31:22 +0000
commit9e1a613204ed17b4f96ac4f39a2afdde8d966455 (patch)
tree60b77cc0cff38ff1b5d8b06cb75a7147f746c7a3 /etc/os-net-config/samples
parentf96f8080284948b7d813ad1990a645fad504174f (diff)
parent15974244f6212905540e1daf9ca596c83f510bdd (diff)
Merge "Enable os-net-config to support and configure NFVSwitch"
Diffstat (limited to 'etc/os-net-config/samples')
-rw-r--r--etc/os-net-config/samples/nfvswitch.json38
-rw-r--r--etc/os-net-config/samples/nfvswitch.yaml25
2 files changed, 63 insertions, 0 deletions
diff --git a/etc/os-net-config/samples/nfvswitch.json b/etc/os-net-config/samples/nfvswitch.json
new file mode 100644
index 0000000..2d8af8a
--- /dev/null
+++ b/etc/os-net-config/samples/nfvswitch.json
@@ -0,0 +1,38 @@
+{
+ "network_config": [
+ {
+ "type": "nfvswitch_bridge",
+ "cpus": "2,3,4,5",
+ "members": [
+ {
+ "type": "interface",
+ "name": "nic2",
+ },
+ {
+ "type": "interface",
+ "name": "nic3"
+ },
+ {
+ "type": "nfvswitch_internal",
+ "name": "api",
+ "addresses": [
+ {
+ "ip_netmask": "172.16.2.7/24"
+ }
+ ],
+ "vlan_id": 201
+ },
+ {
+ "type": "nfvswitch_internal",
+ "name": "storage",
+ "addresses": [
+ {
+ "ip_netmask": "172.16.1.6/24"
+ }
+ ],
+ "vlan_id": 202
+ }
+ ]
+ }
+ ]
+}
diff --git a/etc/os-net-config/samples/nfvswitch.yaml b/etc/os-net-config/samples/nfvswitch.yaml
new file mode 100644
index 0000000..5af3f70
--- /dev/null
+++ b/etc/os-net-config/samples/nfvswitch.yaml
@@ -0,0 +1,25 @@
+network_config:
+ -
+ type: nfvswitch_bridge
+ cpus: "2,3,4,5"
+ members:
+ -
+ type: interface
+ name: nic2
+ -
+ type: interface
+ name: nic3
+ -
+ type: nfvswitch_internal
+ name: api
+ vlan_id: 201
+ addresses:
+ -
+ ip_netmask: 172.16.2.7/24
+ -
+ type: nfvswitch_internal
+ name: storage
+ vlan_id: 202
+ addresses:
+ -
+ ip_netmask: 172.16.1.6/24 \ No newline at end of file