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