From 54ae015bba1584c4150fe4dc4ba16b74a3b349b1 Mon Sep 17 00:00:00 2001 From: Dan Prince Date: Thu, 19 Mar 2015 11:25:18 -0400 Subject: Mark ENI files as autogenerated End users may not realize these files are autogenerated and may be surprised if they make changes to the /etc/sysconfig/network-scripts files which are then overwritten on reboot. Change-Id: I526c228463bd10de2cf3724aa4159b63a9aeff80 --- os_net_config/impl_ifcfg.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'os_net_config/impl_ifcfg.py') diff --git a/os_net_config/impl_ifcfg.py b/os_net_config/impl_ifcfg.py index 47f32a6..86cacf5 100644 --- a/os_net_config/impl_ifcfg.py +++ b/os_net_config/impl_ifcfg.py @@ -68,7 +68,8 @@ class IfcfgNetConfig(os_net_config.NetConfig): ovs_extra = [] - data = "DEVICE=%s\n" % base_opt.name + data = "# This file is autogenerated by os-net-config\n" + data += "DEVICE=%s\n" % base_opt.name data += "ONBOOT=yes\n" data += "HOTPLUG=no\n" if isinstance(base_opt, objects.Vlan): -- cgit 1.2.3-korg