| from neutron.api.v2 import attributes |
| FORWARD_PORTS = 'nat:forward_ports' |
| EXTENDED_ATTRIBUTES_2_0 = { |
| FORWARD_PORTS: {'allow_post': True, 'allow_put': True, |
| 'default': attributes.ATTR_NOT_SPECIFIED, |
| """Extension class supporting OpenCloud NAT networking |
| This class is used by Quantum's extension framework to make |
| metadata about the OpenCloud Port extension available to |
| clients. No new resources are defined by this extension. Instead, |
| the existing Port resource's request and response messages are |
| extended with attributes in the OpenCloud namespace. |
| return "OpenCloud NAT Networking Extension" |
| def get_description(cls): |
| return "Add TCP/UDP port forwarding through NAT to Quantum Port objects" |
| # return "http://docs.openstack.org/ext/provider/api/v1.0" |
| # Nothing there right now |
| return "http://www.vicci.org/ext/opencloud/nat/api/v0.1" |
| return "2013-09-12T10:00:00-00:00" |
| def get_extended_resources(self, version): |
| return EXTENDED_ATTRIBUTES_2_0 |