Oleksiy Petrenko | 5bfb8bc | 2018-08-23 15:08:17 +0300 | [diff] [blame] | 1 | from neutronv2.common import send |
| 2 | |
| 3 | try: |
| 4 | from urllib.parse import urlencode |
| 5 | except ImportError: |
| 6 | from urllib import urlencode |
| 7 | |
| 8 | |
| 9 | @send('get') |
| 10 | def subnet_list(**kwargs): |
| 11 | url = '/subnets?{}'.format(urlencode(kwargs)) |
| 12 | return url, {} |
| 13 | |
| 14 | |
| 15 | @send('get') |
| 16 | def subnetpool_list(**kwargs): |
| 17 | url = '/subnetpools?{}'.format(urlencode(kwargs)) |
| 18 | return url, {} |
| 19 | |
| 20 | |
| 21 | @send('get') |
| 22 | def agent_list(**kwargs): |
| 23 | url = '/agents?{}'.format(urlencode(kwargs)) |
| 24 | return url, {} |
| 25 | |
| 26 | |
| 27 | @send('get') |
| 28 | def network_list(**kwargs): |
| 29 | url = '/networks?{}'.format(urlencode(kwargs)) |
| 30 | return url, {} |
| 31 | |
| 32 | |
| 33 | @send('get') |
| 34 | def router_list(**kwargs): |
| 35 | url = '/routers?{}'.format(urlencode(kwargs)) |
| 36 | return url, {} |
Ann Taraday | 8204f72 | 2018-12-12 16:38:57 +0400 | [diff] [blame] | 37 | |
| 38 | |
| 39 | @send('get') |
| 40 | def port_list(**kwargs): |
| 41 | url = '/ports?{}'.format(urlencode(kwargs)) |
Vyacheslav Struk | 3f529d4 | 2019-06-13 13:37:25 +0300 | [diff] [blame^] | 42 | return url, {} |
| 43 | |
| 44 | |
| 45 | @send('get') |
| 46 | def rbac_policies_list(**kwargs): |
| 47 | url = '/rbac-policies?{}'.format(urlencode(kwargs)) |
| 48 | return url, {} |