blob: 1b563927c2aad3d27f3c0f6b883587b711ba50a7 [file] [log] [blame]
Oleksiy Petrenko5bfb8bc2018-08-23 15:08:17 +03001from neutronv2.common import send
2
3try:
4 from urllib.parse import urlencode
5except ImportError:
6 from urllib import urlencode
7
8
9@send('get')
10def subnet_list(**kwargs):
11 url = '/subnets?{}'.format(urlencode(kwargs))
12 return url, {}
13
14
15@send('get')
16def subnetpool_list(**kwargs):
17 url = '/subnetpools?{}'.format(urlencode(kwargs))
18 return url, {}
19
20
21@send('get')
22def agent_list(**kwargs):
23 url = '/agents?{}'.format(urlencode(kwargs))
24 return url, {}
25
26
27@send('get')
28def network_list(**kwargs):
29 url = '/networks?{}'.format(urlencode(kwargs))
30 return url, {}
31
32
33@send('get')
34def router_list(**kwargs):
35 url = '/routers?{}'.format(urlencode(kwargs))
36 return url, {}