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