Пример #1
0
def delete_logical_port(logical_port_id):
    resource = 'logical-ports/%s?detach=true' % logical_port_id
    client.delete_resource(resource)
Пример #2
0
def delete_qos_switching_profile(profile_id):
    resource = 'switching-profiles/%s' % profile_id
    return client.delete_resource(resource)
Пример #3
0
def delete_logical_switch(lswitch_id):
    resource = 'logical-switches/%s?detach=true&cascade=true' % lswitch_id
    client.delete_resource(resource)
Пример #4
0
def delete_logical_router(lrouter_id):
    resource = 'logical-routers/%s/' % lrouter_id

    # TODO(salv-orlando): Must handle connection exceptions
    return client.delete_resource(resource)