| from ironicv1.common import send |
| from urllib.parse import urlencode |
| from urllib import urlencode |
| url = '/ports?{}'.format(urlencode(kwargs)) |
| def port_create(node_uuid, address, **kwargs): |
| return url, {'json': json} |
| def port_list_details(**kwargs): |
| url = '/ports/detail?{}'.format(urlencode(kwargs)) |
| def port_get_details(port_id, **kwargs): |
| url = '/ports/{}?{}'.format(port_id, urlencode(kwargs)) |
| def port_update(port_id, properties, **kwargs): |
| url = '/ports/{}'.format(port_id) |
| return url, {'json': properties} |
| def port_delete(port_id, **kwargs): |
| url = '/ports/{}'.format(port_id) |