summaryrefslogtreecommitdiffstats
path: root/cobbler/modules/manage_isc.py
diff options
context:
space:
mode:
Diffstat (limited to 'cobbler/modules/manage_isc.py')
-rw-r--r--cobbler/modules/manage_isc.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/cobbler/modules/manage_isc.py b/cobbler/modules/manage_isc.py
index d5c659e0..6369b961 100644
--- a/cobbler/modules/manage_isc.py
+++ b/cobbler/modules/manage_isc.py
@@ -216,7 +216,10 @@ class IscManager:
# the label the entry after the hostname if possible
if host is not None and host != "":
- interface["name"] = "%s_%s"%(host,name)
+ if name != "eth0":
+ interface["name"] = "%s_%s" % (host,name)
+ else:
+ interface["name"] = "%s" % (host)
else:
interface["name"] = "generic%d" % counter