Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/Command-Reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -7978,7 +7978,7 @@ This command displays whether the management VRF is enabled or disabled. It also

**show mgmt-vrf routes**

This command displays the routes that are present in the routing table 5000 that is meant for management VRF.
This command displays the routes that are present in the routing table 6000 that is meant for management VRF.

- Usage:
```
Expand Down
2 changes: 1 addition & 1 deletion show/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ def mgmt_vrf(ctx,routes):
run_command(cmd)
else:
click.echo("\nRoutes in Management VRF Routing Table:")
cmd = ['ip', 'route', 'show', 'table', '5000']
cmd = ['ip', 'route', 'show', 'table', '6000']
run_command(cmd)

#
Expand Down
2 changes: 1 addition & 1 deletion tests/show_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@ def test_show_mgmt_vrf_routes(self, mock_run_command):
runner = CliRunner()
result = runner.invoke(show.cli.commands["mgmt-vrf"], ['routes'])
assert result.exit_code == 0
mock_run_command.assert_called_with(['ip', 'route', 'show', 'table', '5000'])
mock_run_command.assert_called_with(['ip', 'route', 'show', 'table', '6000'])

@patch('show.main.run_command')
@patch('show.main.is_mgmt_vrf_enabled', MagicMock(return_value=True))
Expand Down
Loading