|
1 | 1 | import time |
2 | 2 |
|
3 | | -from nubia import command |
4 | 3 | import pandas as pd |
| 4 | +from nubia import command |
5 | 5 |
|
| 6 | +import suzieq.cli.sqcmds.sq_completions as completitions |
6 | 7 | from suzieq.cli.nubia_patch import argument |
7 | | -from suzieq.sqobjects import get_sqobject |
8 | 8 | from suzieq.cli.sqcmds.command import SqTableCommand |
| 9 | +from suzieq.sqobjects import get_sqobject |
9 | 10 |
|
10 | 11 |
|
11 | 12 | @command("interface", help="Act on Interface data") |
|
14 | 15 | @argument("vrf", description="VRF(s), space separated") |
15 | 16 | @argument("portmode", description="Portmode(s), space separated") |
16 | 17 | @argument("vlan", description="Vlan(s), space separated") |
17 | | -@argument("vrf", description="VRF(s), space separated") |
| 18 | +@argument("vrf", description="VRF(s), space separated", |
| 19 | + choices=completitions.vrf_completer) |
18 | 20 | @argument("state", description="interface state to qualify show", |
19 | 21 | choices=["up", "down", "notConnected", "!up", "!down", |
20 | 22 | "!notConnected"]) |
@@ -77,7 +79,8 @@ def __init__( |
77 | 79 | @argument( |
78 | 80 | "what", |
79 | 81 | description="What do you want to assert", |
80 | | - choices=["mtu-value"], |
| 82 | + # choices=["mtu-value"], |
| 83 | + choices=completitions.column_name_completer |
81 | 84 | ) |
82 | 85 | @argument("value", description="Value to match against") |
83 | 86 | @argument("result", description="Show only assert that matches this value", |
|
0 commit comments