Exemple #1
0
def network_namespace(name):
    netns_add(name)
    try:
        yield name
    finally:
        netns_delete(name)
Exemple #2
0
def network_namespace(name):
    netns_add(name)
    try:
        yield name
    finally:
        netns_delete(name)