'Create an interface.
For a full list of available parameters, please refer to the official
API reference:
https://developer.openstack.org/api-ref/compute/#create-interface'

def create_interface(self, server_id, **kwargs):

    post_body = {'interfaceAttachment': kwargs}
    post_body = json.dumps(post_body)
    (resp, body) = self.post(('servers/%s/os-interface' % server_id), body=post_body)
    body = json.loads(body)
    self.validate_response(schema.get_create_interfaces, resp, body)
    return rest_client.ResponseBody(resp, body)
