Oleksiy Petrenko | caad203 | 2018-04-20 14:42:46 +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 auto_alloc_get_details(project_id, **kwargs): | ||||
11 | url = '/auto-allocated-topology/{}?{}'.format( | ||||
12 | project_id, urlencode(kwargs) | ||||
13 | ) | ||||
14 | return url, {} | ||||
15 | |||||
16 | |||||
17 | @send('delete') | ||||
18 | def auto_alloc_delete(project_id, **kwargs): | ||||
19 | url = '/auto-allocated-topology/{}'.format(project_id) | ||||
20 | return url, {} |