From 469c0ab91ae550945eb4d0a18ebd284994fde384 Mon Sep 17 00:00:00 2001 From: Pierre Blanc Date: Wed, 2 Nov 2016 08:55:54 -0400 Subject: Add support for ethtool_opts option This patch add an optional option to specify the ETHTOOL_OPTS for each interface. ETHTOOL_OPTS option will be written to the ifcfg file. Change-Id: I6b594e89ba6b4c17e8df79def997f6c9ea427a3a --- etc/os-net-config/samples/interface.json | 3 ++- etc/os-net-config/samples/interface.yaml | 1 + 2 files changed, 3 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 9ae0b76..6eb8f62 100644 --- a/etc/os-net-config/samples/interface.json +++ b/etc/os-net-config/samples/interface.json @@ -25,7 +25,8 @@ "type": "interface", "name": "em2", "use_dhcp": true, - "defroute": no + "defroute": no, + "ethtool_opts": "speed 1000 duplex full" } ] } diff --git a/etc/os-net-config/samples/interface.yaml b/etc/os-net-config/samples/interface.yaml index 6b366e2..725091b 100644 --- a/etc/os-net-config/samples/interface.yaml +++ b/etc/os-net-config/samples/interface.yaml @@ -20,3 +20,4 @@ network_config: name: em2 use_dhcp: true defroute: no + ethtool_opts: "speed 1000 duplex full" -- cgit 1.2.3-korg