From 5f0145b88571b945b633f999c0d767ccefdce86b Mon Sep 17 00:00:00 2001 From: Dan Sneddon Date: Fri, 10 Mar 2017 13:19:06 -0800 Subject: Allow setting NM_CONTROLLED=yes in os-net-config ifcfg files This change adds a flag to the base interface type, nm_controlled. If this flag is true, the ifcfg file will contain NM_CONTROLLED=yes. Since this flag is applied at the base it applies to any interface type. Note that not all interface types are supported by NetworkManager at this time, so this option should be used with caution. A demonstration of the usage is included in the linux_bond_networkmanager.yaml file in the sample directory. Change-Id: I2df6ce5b4bdb04651f27fc5daa64aa752e47f3b1 Closes-Bug: 1671888 --- .../samples/linux_bond_networkmanager.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 etc/os-net-config/samples/linux_bond_networkmanager.yaml (limited to 'etc') diff --git a/etc/os-net-config/samples/linux_bond_networkmanager.yaml b/etc/os-net-config/samples/linux_bond_networkmanager.yaml new file mode 100644 index 0000000..c7036c0 --- /dev/null +++ b/etc/os-net-config/samples/linux_bond_networkmanager.yaml @@ -0,0 +1,18 @@ +# To use NetworkManager to manage an interface, set nm_controlled=true. +# Note that some interface types may not be supported by NetworkManager. +network_config: + - + type: linux_bond + name: bond1 + nm_controlled: true + use_dhcp: true + bonding_options: "mode=active-backup" + members: + - + type: interface + name: em1 + nm_controlled: true + - + type: interface + name: em2 + nm_controlled: true -- cgit 1.2.3-korg