Exemple #1
0
 def to_core(cls, **serialized):
     return Bond(
         interface=SerializableInterface.to_core(**serialized.pop('interface')),
         ** serialized
     )
Exemple #2
0
 def get_interfaces(self):
     return [SerializableInterface.to_core(**row) for row in self.get("/interfaces").json()]