Commit 2dfd604e authored by Alberts S's avatar Alberts S
Browse files

Add ability Vty show route

parent 14715fd8
......@@ -47,6 +47,10 @@ class Vty(CapybaraNetty):
self.build_vty_exec(commands),
)
async def show_route(self, prefix):
stdout, stderr = await self.ssh_exec(self.build_vty_exec([f"do show ip route {prefix}"]))
return stdout
def generate_route_config_cmd(self, prefix, gateway, interface, distance=1, **kwargs):
additional_cmd_args = ""
for key, value in kwargs.items():
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment