diff options
author | 2017-03-10 13:19:06 -0800 | |
---|---|---|
committer | 2017-03-10 14:32:43 -0800 | |
commit | 5f0145b88571b945b633f999c0d767ccefdce86b (patch) | |
tree | 8a75cb10820479d5d54a387ab499f4743b5dac65 /etc | |
parent | ab0e0d433fb363f6a01b7c8305771f2bde47930e (diff) |
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
Diffstat (limited to 'etc')
-rw-r--r-- | etc/os-net-config/samples/linux_bond_networkmanager.yaml | 18 |
1 files changed, 18 insertions, 0 deletions
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 |