[openstack-dev] [Neutron] API Extensions - Namespace URLs

Sean M. Collins sean at coreitpro.com
Mon Jun 8 21:10:52 UTC 2015


Hi,

Within each API extension in the neutron tree, there is a method:

    def get_namespace(cls):

Which returns a string, containing a URL. 

A quick survey:

agent.py:    def get_namespace(cls):
agent.py-        return "http://docs.openstack.org/ext/agent/api/v2.0"
--
allowedaddresspairs.py:    def get_namespace(cls):
allowedaddresspairs.py-        return "http://docs.openstack.org/ext/allowedaddresspairs/api/v2.0"
--
dhcpagentscheduler.py:    def get_namespace(cls):
dhcpagentscheduler.py-        return "http://docs.openstack.org/ext/dhcp_agent_scheduler/api/v1.0"
--
dvr.py:    def get_namespace(cls):
dvr.py-        return ("http://docs.openstack.org/ext/"
--
external_net.py:    def get_namespace(cls):
external_net.py-        return "http://docs.openstack.org/ext/neutron/external_net/api/v1.0"
--
external_net.py:        return {l3.L3.get_alias(): l3.L3.get_namespace()}
--
extra_dhcp_opt.py:    def get_namespace(cls):
extra_dhcp_opt.py-        return "http://docs.openstack.org/ext/neutron/extra_dhcp_opt/api/v1.0"
--
extraroute.py:    def get_namespace(cls):
extraroute.py-        return "http://docs.openstack.org/ext/neutron/extraroutes/api/v1.0"
--
flavor.py:    def get_namespace(cls):
flavor.py-        return "http://docs.openstack.org/ext/flavor/api/v1.0"
--
l3.py:    def get_namespace(cls):
l3.py-        return "http://docs.openstack.org/ext/neutron/router/api/v1.0"
--
l3_ext_gw_mode.py:    def get_namespace(cls):
l3_ext_gw_mode.py-        return "http://docs.openstack.org/ext/neutron/ext-gw-mode/api/v1.0"
--
l3_ext_ha_mode.py:    def get_namespace(cls):
l3_ext_ha_mode.py-        return ""
--
l3agentscheduler.py:    def get_namespace(cls):
l3agentscheduler.py-        return "http://docs.openstack.org/ext/l3_agent_scheduler/api/v1.0"
--
metering.py:    def get_namespace(cls):
metering.py-        return "http://wiki.openstack.org/wiki/Neutron/Metering/Bandwidth#API"
--
multiprovidernet.py:    def get_namespace(cls):
multiprovidernet.py-        return "http://docs.openstack.org/ext/multi-provider/api/v1.0"
--
netmtu.py:    def get_namespace(cls):
netmtu.py-        return "http://docs.openstack.org/ext/net_mtu/api/v1.0"
--
portbindings.py:    def get_namespace(cls):
portbindings.py-        return "http://docs.openstack.org/ext/binding/api/v1.0"
--
portsecurity.py:    def get_namespace(cls):
portsecurity.py-        return "http://docs.openstack.org/ext/portsecurity/api/v1.0"
--
providernet.py:    def get_namespace(cls):
providernet.py-        return "http://docs.openstack.org/ext/provider/api/v1.0"
--
quotasv2.py:    def get_namespace(cls):
quotasv2.py-        return "http://docs.openstack.org/network/ext/quotas-sets/api/v2.0"
--
routerservicetype.py:    def get_namespace(cls):
routerservicetype.py-        return ""
--
securitygroup.py:    def get_namespace(cls):
securitygroup.py-        # todo
--
servicetype.py:    def get_namespace(cls):
servicetype.py-        return "http://docs.openstack.org/ext/neutron/service-type/api/v1.0"
--
subnetallocation.py:    def get_namespace(cls):
subnetallocation.py-        return ("http://docs.openstack.org/ext/"
--
vlantransparent.py:    def get_namespace(cls):
vlantransparent.py-        return "http://docs.openstack.org/ext/vlantransparent/api/v1.0"

I believe that they all 404.

A dumb question to start, then progressively smarter questions:

* What is the purpose of the URLs?
* Should the URL point to documentation?
* What shall we do about the actual URLs 404'ing?

Thanks!

-- 
Sean M. Collins



More information about the OpenStack-dev mailing list