]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Add classmethod decorator to class methods of providervlan ext.
authorYong Sheng Gong <gongysh@cn.ibm.com>
Sun, 29 Jul 2012 13:16:59 +0000 (21:16 +0800)
committerYong Sheng Gong <gongysh@cn.ibm.com>
Sun, 29 Jul 2012 13:16:59 +0000 (21:16 +0800)
Change-Id: If26d75b67c4816de0937f9edaa9f55a5bb2197a2

quantum/extensions/providernet.py

index 6ed2c295dad6b078b65bbc5ccc3112dbe2427f9c..fff8a707fc0c494b329cd8740394226e32cd4d55 100644 (file)
@@ -44,18 +44,23 @@ class Providernet(object):
     will also include provider attributes.
     """
 
+    @classmethod
     def get_name(cls):
         return "Provider Network"
 
+    @classmethod
     def get_alias(cls):
         return "provider"
 
+    @classmethod
     def get_description(cls):
         return "Expose mapping of virtual networks to VLANs and flat networks"
 
+    @classmethod
     def get_namespace(cls):
         return "http://docs.openstack.org/ext/provider/api/v1.0"
 
+    @classmethod
     def get_updated(cls):
         return "2012-07-23T10:00:00-00:00"