Ejemplo n.º 1
0
 def get_by_address(cls, context, address, expected_attrs=None):
     if expected_attrs is None:
         expected_attrs = []
     db_fixedip = db.fixed_ip_get_by_address(context, str(address),
                                             columns_to_join=expected_attrs)
     return cls._from_db_object(context, cls(context), db_fixedip,
                                expected_attrs)
Ejemplo n.º 2
0
 def test_unreserve(self):
     self.commands.unreserve('192.168.0.100')
     address = db.fixed_ip_get_by_address(context.get_admin_context(),
                                          '192.168.0.100')
     self.assertEqual(address['reserved'], False)
Ejemplo n.º 3
0
 def test_unreserve(self):
     self.commands.unreserve('192.168.0.100')
     address = db.fixed_ip_get_by_address(context.get_admin_context(),
                                          '192.168.0.100')
     self.assertEqual(address['reserved'], False)