aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorMatthew Flusche <mflusche@redhat.com>2016-10-19 18:10:08 +0000
committerMatthew Flusche <mflusche@redhat.com>2016-10-19 22:19:17 +0000
commit4fdb0a6a2b355750ae8071e53a74b9257b18eeee (patch)
tree44ea7032fa922ec7dc4181b5512901da5917a99b /etc
parent191a3b042cf303d70df5badefe9defe81ae4bd6d (diff)
Add route_options parameter
route_options will append additional options to route definitions. Change-Id: I2b70efdd9c6df7ea252576e245fbc0e9c46ea4bd
Diffstat (limited to 'etc')
-rw-r--r--etc/os-net-config/samples/interface.json5
-rw-r--r--etc/os-net-config/samples/interface.yaml6
2 files changed, 10 insertions, 1 deletions
diff --git a/etc/os-net-config/samples/interface.json b/etc/os-net-config/samples/interface.json
index 8a942b5..9ae0b76 100644
--- a/etc/os-net-config/samples/interface.json
+++ b/etc/os-net-config/samples/interface.json
@@ -13,6 +13,11 @@
"ip_netmask": "0.0.0.0/0",
"next_hop": "192.0.2.254",
"default": "true"
+ },
+ {
+ "ip_netmask": "10.1.2.0/24",
+ "next_hop": "192.0.2.5",
+ "route_options": "metric 10"
}
]
},
diff --git a/etc/os-net-config/samples/interface.yaml b/etc/os-net-config/samples/interface.yaml
index 4f76e07..6b366e2 100644
--- a/etc/os-net-config/samples/interface.yaml
+++ b/etc/os-net-config/samples/interface.yaml
@@ -11,8 +11,12 @@ network_config:
ip_netmask: 0.0.0.0/0
next_hop: 192.0.2.254
default: true
+ -
+ ip_netmask: 10.1.2.0/24
+ next_hop: 192.0.2.5
+ route_options: "metric 10"
-
type: interface
name: em2
use_dhcp: true
- defroute: no \ No newline at end of file
+ defroute: no