def add_enslave_to_bond_operations(self, update, interface, bond): ether_options = [ to_ele("<auto-negotiation/>"), to_ele(""" <ieee-802.3ad> <bundle>{0}</bundle> </ieee-802.3ad> """.format(bond_name(bond.number)))] update.add_interface(interface_replace(interface, *ether_options))
def add_enslave_to_bond_operations(self, update, interface, bond): ether_options = [ to_ele(""" <ieee-802.3ad> <bundle>{0}</bundle> </ieee-802.3ad> """.format(bond_name(bond.number)))] if bond.link_speed is not None: ether_options.append(interface_speed(bond.link_speed)) update.add_interface(interface_replace(interface, *ether_options))