You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if_name=getStrAttribute(node, ['name'])
ifif_nameandif_nameinnethw:
if_hwaddr=nethw[if_name].hwaddrelse:
if_hwaddr=getStrAttribute(node, ['hwaddr'])
ifif_hwaddr:
matching_list=filter(lambdax: x.hwaddr==if_hwaddr.lower(), nethw.values())
iflen(matching_list) ==1:
if_name=matching_list[0].nameifnotif_nameandnotif_hwaddr:
raiseAnswerfileException("<admin-interface> tag must have one of 'name' or 'hwaddr'")
It is allowed to specify both name and hwaddr, in which case
if name points to an existing interface, hwaddr is ignored
if not, name is ignored
If any or both are specified, but do not match the hardware, the message says they are missing.
We should likely ensure exactly one is given, and issue more specific error messages.
The text was updated successfully, but these errors were encountered:
ydirson
added a commit
to xcp-ng/host-installer
that referenced
this issue
Jan 13, 2023
parseInterface()
code is as follows:It is allowed to specify both
name
andhwaddr
, in which casename
points to an existing interface,hwaddr
is ignoredname
is ignoredIf any or both are specified, but do not match the hardware, the message says they are missing.
We should likely ensure exactly one is given, and issue more specific error messages.
The text was updated successfully, but these errors were encountered: