updated corexml InterfaceData instantiation to use named params
This commit is contained in:
parent
7d2034df71
commit
3691c6029f
1 changed files with 9 additions and 1 deletions
|
@ -66,7 +66,15 @@ def create_interface_data(interface_element: etree.Element) -> InterfaceData:
|
|||
ip4_mask = get_int(interface_element, "ip4_mask")
|
||||
ip6 = interface_element.get("ip6")
|
||||
ip6_mask = get_int(interface_element, "ip6_mask")
|
||||
return InterfaceData(interface_id, name, mac, ip4, ip4_mask, ip6, ip6_mask)
|
||||
return InterfaceData(
|
||||
id=interface_id,
|
||||
name=name,
|
||||
mac=mac,
|
||||
ip4=ip4,
|
||||
ip4_mask=ip4_mask,
|
||||
ip6=ip6,
|
||||
ip6_mask=ip6_mask,
|
||||
)
|
||||
|
||||
|
||||
def create_emane_config(session: "Session") -> etree.Element:
|
||||
|
|
Loading…
Reference in a new issue