def disassociate(cls, context, address): db_fixed = db.floating_ip_disassociate(context, str(address)) return cls(context=context, address=address, fixed_ip_id=db_fixed['id'], fixed_ip=objects.FixedIP._from_db_object( context, objects.FixedIP(context), db_fixed, expected_attrs=['network']))
def disassociate(cls, context, address): db_fixed = db.floating_ip_disassociate(context, address) floating = FloatingIP( context=context, address=address, fixed_ip_id=db_fixed['id'], fixed_ip=fixed_ip.FixedIP._from_db_object( context, fixed_ip.FixedIP(), db_fixed, expected_attrs=['network'])) return floating
def disassociate(cls, context, address): db_fixed = db.floating_ip_disassociate(context, address) return cls( context=context, address=address, fixed_ip_id=db_fixed["id"], fixed_ip=objects.FixedIP._from_db_object( context, objects.FixedIP(context), db_fixed, expected_attrs=["network"] ), )