コード例 #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)
コード例 #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)
コード例 #3
0
ファイル: test_nova_manage.py プロジェクト: hsluoyz/patron
 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)