diff options
author | Pierre Blanc <pblanc@redhat.com> | 2016-11-02 08:55:54 -0400 |
---|---|---|
committer | Pierre Blanc <pblanc@redhat.com> | 2016-11-11 13:06:36 -0500 |
commit | 469c0ab91ae550945eb4d0a18ebd284994fde384 (patch) | |
tree | 690eb1b487eb5e02324fc687b7935b6e0d00b82f /os_net_config/tests/test_objects.py | |
parent | 4fdb0a6a2b355750ae8071e53a74b9257b18eeee (diff) |
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
Diffstat (limited to 'os_net_config/tests/test_objects.py')
-rw-r--r-- | os_net_config/tests/test_objects.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/os_net_config/tests/test_objects.py b/os_net_config/tests/test_objects.py index 4c71265..3911ef3 100644 --- a/os_net_config/tests/test_objects.py +++ b/os_net_config/tests/test_objects.py @@ -150,6 +150,7 @@ class TestInterface(base.TestCase): "name": "em1", "use_dhcp": false, "mtu": 1501, +"ethtool_opts": "speed 1000 duplex full", "addresses": [{ "ip_netmask": "192.0.2.1/24" }], @@ -165,6 +166,7 @@ class TestInterface(base.TestCase): self.assertFalse(interface.use_dhcp) self.assertFalse(interface.use_dhcpv6) self.assertEqual(1501, interface.mtu) + self.assertEqual("speed 1000 duplex full", interface.ethtool_opts) address1 = interface.v4_addresses()[0] self.assertEqual("192.0.2.1", address1.ip) self.assertEqual("255.255.255.0", address1.netmask) |