From a4ad189558a414c6029b4dfbc8e459339ebe534d Mon Sep 17 00:00:00 2001 From: Steven Hardy Date: Wed, 21 Jan 2015 17:24:08 +0000 Subject: Add a persist_mapping option to the mapping file This adds the option to permanently rewrite the configuration so the aliases are used instead of the system name. This is useful where you have a variety of hardware and you want to have consistent device naming accross all platforms - this allows you to essentially rename the interfaces permanently so they match the abstracted nicN names. Note, this needs to be run with --cleanup or the old (now conflicting) configs will still be in place, and it may require a reboot before the changes are fully applied. Change-Id: I5af146e764b72c4beaa41c549fabff0af8802152 --- etc/os-net-config/samples/mapping.yaml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'etc') diff --git a/etc/os-net-config/samples/mapping.yaml b/etc/os-net-config/samples/mapping.yaml index 5faec22..a832dc9 100644 --- a/etc/os-net-config/samples/mapping.yaml +++ b/etc/os-net-config/samples/mapping.yaml @@ -1,6 +1,10 @@ # This can be used with the -m option to override the # default mapping of the nicN aliases in configs # The mapping can specify either a device name or a mac address +# If --persist-mapping is specified, we write the device aliases +# config instead of the system names, e.g we actually configure +# nic1 intead of em3. This is probably best used with --cleanup +# to remove the stale configs e.g for em3 interface_mapping: nic1: em3 nic2: em1 -- cgit 1.2.3-korg