Exemplo n.º 1
0
def create_vlan(vlan, user):
    """Create vlan"""
    vlan_obj = Vlan()

    vlan_obj.create_v3(vlan)

    return vlan_obj
Exemplo n.º 2
0
def create_vlan(vlan, user):
    """Create vlan."""

    try:
        vlan_obj = Vlan()
        vlan_obj.create_v3(vlan, user)
    except ObjectDoesNotExistException, e:
        raise ObjectDoesNotExistException(str(e))