1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

addons: bond: fix ifquery for IFLA_BOND_ARP_IP_TARGET

dropping support for multiple ip in bond-arp-ip-target

Signed-off-by: Julien Fortin <jfortin@nvidia.com>
This commit is contained in:
Julien Fortin
2022-05-25 00:44:28 +02:00
parent ddb633fe44
commit 30f615f2d6

View File

@ -223,7 +223,7 @@ class bond(Addon, moduleBase):
Link.IFLA_BOND_MODE: lambda x: Link.ifla_bond_mode_tbl[x],
Link.IFLA_BOND_MIIMON: int,
Link.IFLA_BOND_ARP_INTERVAL: int,
Link.IFLA_BOND_ARP_IP_TARGET: lambda x: [IPv4Address(ip) for ip in x],
Link.IFLA_BOND_ARP_IP_TARGET: lambda x: [IPv4Address(x)],
Link.IFLA_BOND_USE_CARRIER: utils.get_boolean_from_string,
Link.IFLA_BOND_AD_LACP_RATE: lambda x: int(utils.get_boolean_from_string(x)),
Link.IFLA_BOND_XMIT_HASH_POLICY: lambda x: Link.ifla_bond_xmit_hash_policy_tbl[x],