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