diff options
author | Brent Eagles <beagles@redhat.com> | 2016-11-07 17:57:02 -0330 |
---|---|---|
committer | Brent Eagles <beagles@redhat.com> | 2016-11-18 14:38:45 -0330 |
commit | 433a0f3cbe59fd5da183245bf7e6dcd4af4b8c88 (patch) | |
tree | a70bd0e53a3b73bb5c350982459b048d2dbc8c79 /etc | |
parent | 9971eb3af988b1f7c003048af161489ab79b1b0c (diff) |
Add support for enabling hotplug on interfaces
This patch adds support for enabling hotplugging on interfaces (disabled
by default). This is useful for configuring SR-IOV root devices so that
they "return" to the system when no longer used by a VM.
Note: also updates an invalid value in the interface and ib_interface
sample files.
Partial-Bug: #1639901
Change-Id: Idfc17d6f20bb306271838895bc53f4b109dd664d
Diffstat (limited to 'etc')
-rw-r--r-- | etc/os-net-config/samples/ib_interface.json | 2 | ||||
-rw-r--r-- | etc/os-net-config/samples/ib_interface.yaml | 2 | ||||
-rw-r--r-- | etc/os-net-config/samples/interface.json | 8 | ||||
-rw-r--r-- | etc/os-net-config/samples/interface.yaml | 7 |
4 files changed, 15 insertions, 4 deletions
diff --git a/etc/os-net-config/samples/ib_interface.json b/etc/os-net-config/samples/ib_interface.json index 4e42867..f552af3 100644 --- a/etc/os-net-config/samples/ib_interface.json +++ b/etc/os-net-config/samples/ib_interface.json @@ -20,7 +20,7 @@ "type": "ib_interface", "name": "ib1", "use_dhcp": true, - "defroute": no + "defroute": false } ] } diff --git a/etc/os-net-config/samples/ib_interface.yaml b/etc/os-net-config/samples/ib_interface.yaml index f930471..6210f0a 100644 --- a/etc/os-net-config/samples/ib_interface.yaml +++ b/etc/os-net-config/samples/ib_interface.yaml @@ -15,4 +15,4 @@ network_config: type: interface name: ib1 use_dhcp: true - defroute: no
\ No newline at end of file + defroute: false diff --git a/etc/os-net-config/samples/interface.json b/etc/os-net-config/samples/interface.json index 6eb8f62..7b70e05 100644 --- a/etc/os-net-config/samples/interface.json +++ b/etc/os-net-config/samples/interface.json @@ -25,8 +25,14 @@ "type": "interface", "name": "em2", "use_dhcp": true, - "defroute": no, + "defroute": false, "ethtool_opts": "speed 1000 duplex full" + }, + { + "type": "interface", + "name": "em3", + "use_dhcp": true, + "hotplug": true } ] } diff --git a/etc/os-net-config/samples/interface.yaml b/etc/os-net-config/samples/interface.yaml index 725091b..4c4269e 100644 --- a/etc/os-net-config/samples/interface.yaml +++ b/etc/os-net-config/samples/interface.yaml @@ -19,5 +19,10 @@ network_config: type: interface name: em2 use_dhcp: true - defroute: no + defroute: false ethtool_opts: "speed 1000 duplex full" + - + type: interface + name: em3 + use_dhcp: true + hotplug: true |