Skip to content

Commit

Permalink
Renamed show vxlan tunnel to show vxlan remotevtep.
Browse files Browse the repository at this point in the history
show vxlan tunnel_cfg (which reads from cfg db) which was originally show vxlan tunnel has been
reverted back to show vxlan tunnel.
  • Loading branch information
srj102 committed Dec 16, 2020
1 parent 95dc9b9 commit d9e9df6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions show/vxlan.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def name(vxlan_name):
click.echo(tabulate(table, header))

@vxlan.command()
def tunnel_cfg():
def tunnel():
"""Show vxlan tunnel information"""
config_db = ConfigDBConnector()
config_db.connect()
Expand Down Expand Up @@ -174,8 +174,8 @@ def vrfvnimap():

@vxlan.command()
@click.argument('count', required=False)
def tunnel(count):
"""Show All VXLAN Tunnels Information"""
def remotevtep(count):
"""Show All Remote VTEP Information"""

if (count is not None) and (count != 'count'):
click.echo("Unacceptable argument {}".format(count))
Expand Down
4 changes: 2 additions & 2 deletions tests/vxlan_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def test_show_vxlan_vlanvnimap(self):

def test_show_vxlan_tunnel(self):
runner = CliRunner()
result = runner.invoke(show.cli.commands["vxlan"].commands["tunnel"], [])
result = runner.invoke(show.cli.commands["vxlan"].commands["remotevtep"], [])
print(result.exit_code)
print(result.output)
assert result.exit_code == 0
Expand Down Expand Up @@ -145,7 +145,7 @@ def test_show_vxlan_vlanvnimap_cnt(self):

def test_show_vxlan_tunnel_cnt(self):
runner = CliRunner()
result = runner.invoke(show.cli.commands["vxlan"].commands["tunnel"], ["count"])
result = runner.invoke(show.cli.commands["vxlan"].commands["remotevtep"], ["count"])
print(result.exit_code)
print(result.output)
assert result.exit_code == 0
Expand Down

0 comments on commit d9e9df6

Please sign in to comment.