From 4fdb0a6a2b355750ae8071e53a74b9257b18eeee Mon Sep 17 00:00:00 2001 From: Matthew Flusche Date: Wed, 19 Oct 2016 18:10:08 +0000 Subject: Add route_options parameter route_options will append additional options to route definitions. Change-Id: I2b70efdd9c6df7ea252576e245fbc0e9c46ea4bd --- etc/os-net-config/samples/interface.json | 5 +++++ etc/os-net-config/samples/interface.yaml | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'etc') 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 -- cgit 1.2.3-korg