def to_core(self, serialized): params = dict(vars(base_interface.to_core(serialized))) params.update(sub_dict(serialized, 'name', 'bond_master')) return Interface(**params)
def to_core(self, api_bond): params = dict(vars(base_interface.to_core(api_bond['interface']))) params.update(sub_dict(api_bond, 'number', 'link_speed', 'members')) return Bond(**params)
def to_core(self, api_bond): params = dict(vars(base_interface.to_core(api_bond["interface"]))) params.update(sub_dict(api_bond, "number", "link_speed", "members")) return Bond(**params)