@abstractmethod
def get_floatingips(self, context, filters=None, fields=None):
pass
+
+ def get_routers_count(self, context, filters=None):
+ raise qexception.NotImplementedError()
+
+ def get_floatingips_count(self, context, filters=None):
+ raise qexception.NotImplementedError()
"""For this model this method will be delegated to vswitch plugin"""
pass
- def get_networks_count(self, context, filters=None):
- """For this model this method will be delegated to vswitch plugin"""
- pass
-
def create_port(self, context, port):
"""For this model this method will be delegated to vswitch plugin"""
pass
"""For this model this method will be delegated to vswitch plugin"""
pass
- def get_ports_count(self, context, filters=None):
- """For this model this method will be delegated to vswitch plugin"""
- pass
-
def update_port(self, context, id, port):
"""For this model this method will be delegated to vswitch plugin"""
pass
def get_subnets(self, context, filters=None, fields=None):
"""For this model this method will be delegated to vswitch plugin"""
pass
-
- def get_subnets_count(self, context, filters=None):
- """For this model this method will be delegated to vswitch plugin"""
- pass
instance = self.plugin.return_value
instance.create_router.return_value = return_value
+ instance.get_routers_count.return_value = 0
res = self.api.post_json(_get_path('routers'), data)