Beispiel #1
0
def interface(connection: Connection, *params: str):
    connection.send("interface {}".format(" ".join(params)))
Beispiel #2
0
def is_type(connection: Connection, type: str):
    connection.send("is-type %s" % type)
Beispiel #3
0
def show(connection: Connection, *params: str):
    connection.send("show {}".format(" ".join(params)))
Beispiel #4
0
def system(connection: Connection, *params: str):
    connection.send("system %s" % " ".join(params))
Beispiel #5
0
def configure_terminal(connection: Connection):
    connection.send("configure terminal")
Beispiel #6
0
def network_area(connection: Connection, param1: str, param2: str):
    connection.send("network {} area {}".format(param1, param2))
Beispiel #7
0
def area(connection: Connection, *params: str):
    connection.send("area %s" % " ".join(params))
Beispiel #8
0
def end(connection: Connection):
    connection.send("end")
Beispiel #9
0
def ping(connection: Connection, *params: str):
    connection.send("ping {}".format(" ".join(params)))
Beispiel #10
0
def area_password(connection: Connection, *params: str):
    connection.send("area_password {}".format(" ".join(params)))
Beispiel #11
0
def save(connection: Connection, param: str):
    connection.send("save {}".format(param))
Beispiel #12
0
def enter_bgp(connection: Connection, number: int):
    connection.send("router bgp {}".format(number))
Beispiel #13
0
def tcpdump(connection: Connection, *params: str):
    connection.send("tcpdump {}".format(" ".join(params)))
Beispiel #14
0
def vid(connection: Connection, param: str):
    connection.send("vid {}".format(param))
Beispiel #15
0
def router(connection: Connection, *params: str):
    connection.send("router %s" % " ".join(params))
Beispiel #16
0
def save_bgp(connection: Connection):
    connection.send("save bgp")
Beispiel #17
0
def osfp_router_id(connection: Connection, param1: str):
    connection.send("ospf router-id {}".format(param1))
Beispiel #18
0
def bgp_network(connection: Connection, network: str):
    connection.send("network {}".format(network))
Beispiel #19
0
def network(connection: Connection, *params: str):
    connection.send("network {}".format(params))
Beispiel #20
0
def bgp_neighbor(connection: Connection, neighbor: str, *params: str):
    connection.send("neighbor {} {}".format(neighbor, " ".join(params)))
Beispiel #21
0
def redistribute(connection: Connection, *params: str):
    connection.send("redistribute %s" % " ".join(params))
Beispiel #22
0
def timers(connection: Connection, command: str, param1: int, param2: int):
    connection.send("timers {} {} {}".format(command, param1, param2))
Beispiel #23
0
def isis(connection: Connection, *params: str):
    connection.send("isis %s" % " ".join(params))
Beispiel #24
0
def distance(connection: Connection, *params: str):
    connection.send("distance {}".format(" ".join(params)))
Beispiel #25
0
def net(connection: Connection, *params: str):
    connection.send("net %s" % " ".join(params))
Beispiel #26
0
def ip_route(connection: Connection, param1: str, param2: str):
    connection.send("ip route {} {}".format(param1, param2))
Beispiel #27
0
def passive_interface(connection: Connection, interface: str):
    connection.send("passive-interface %s" % interface)
Beispiel #28
0
def exit_from_command(connection: Connection):
    connection.send("exit")
Beispiel #29
0
def router_id(connection: Connection, ip: str):
    connection.send("router-id {}".format(ip))
Beispiel #30
0
def ip(connection: Connection, *params: str):
    connection.send("ip {}".format(" ".join(params)))