Exemple #1
0
 def to_api(self, bond):
     return dict(
         number=bond.number,
         link_speed=bond.link_speed,
         members=bond.members,
         **base_interface.to_api(bond)
     )
Exemple #2
0
 def to_api(self, interface):
     return dict(
         base_interface.to_api(interface),
         name=interface.name,
         bond_master=interface.bond_master,
         auto_negotiation=interface.auto_negotiation
     )
Exemple #3
0
 def to_api(self, bond):
     return dict(
         number=bond.number,
         link_speed=bond.link_speed,
         members=bond.members,
         **base_interface.to_api(bond)
     )
Exemple #4
0
 def to_api(self, interface):
     return dict(
         base_interface.to_api(interface),
         name=interface.name,
         bond_master=interface.bond_master,
     )