Pass the hostname into prepDetails.
if orig_ifname:
logger.verbose('net:InitInterfaces orig_ifname = %s' % orig_ifname)
if orig_ifname:
logger.verbose('net:InitInterfaces orig_ifname = %s' % orig_ifname)
- details = prepDetails(interface)
+ details = prepDetails(interface, hostname)
if 'interface_tag_ids' in interface:
version = 4.3
if 'interface_tag_ids' in interface:
version = 4.3
##
# Prepare the interface details.
#
##
# Prepare the interface details.
#
-def prepDetails(interface):
+def prepDetails(interface, hostname=''):
details = {}
details['ONBOOT'] = 'yes'
details['USERCTL'] = 'no'
details = {}
details['ONBOOT'] = 'yes'
details['USERCTL'] = 'no'