aboutsummaryrefslogtreecommitdiffstats
path: root/os_net_config/impl_ifcfg.py
diff options
context:
space:
mode:
authorDan Prince <dprince@redhat.com>2015-03-19 11:25:18 -0400
committerDan Prince <dprince@redhat.com>2015-03-19 11:25:18 -0400
commit54ae015bba1584c4150fe4dc4ba16b74a3b349b1 (patch)
tree13a02b7764bf60de46f589d6ba465b2c0a1b7f4b /os_net_config/impl_ifcfg.py
parent3f36600d1c7159f3ba00a2449e381cd32239af4e (diff)
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
Diffstat (limited to 'os_net_config/impl_ifcfg.py')
-rw-r--r--os_net_config/impl_ifcfg.py3
1 files changed, 2 insertions, 1 deletions
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):