File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 1- from nubia import command
1+ from nubia import command , argument
22
33from suzieq .cli .sqcmds .command import SqTableCommand
44from suzieq .sqobjects .devconfig import DevconfigObj
55
66
77@command ("devconfig" , help = "Act on device data" )
8+ @argument ("section" ,
9+ description = "show device config only for this regex match" )
810class DevconfigCmd (SqTableCommand ):
911 """Device configurations"""
1012
@@ -19,6 +21,7 @@ def __init__(
1921 format : str = "" , # pylint: disable=redefined-builtin
2022 query_str : str = " " ,
2123 columns : str = "default" ,
24+ section : str = '' ,
2225 ) -> None :
2326 super ().__init__ (
2427 engine = engine ,
@@ -33,10 +36,12 @@ def __init__(
3336 sqobj = DevconfigObj ,
3437 )
3538
39+ self .lvars ['section' ] = section
40+
3641 @command ("show" , help = "Show device information" )
3742 def show (self ):
3843 """Show device config info
3944 """
4045 if not self .format or (self .format == 'text' ):
41- self .format = 'devconfig '
46+ self .format = 'markdown '
4247 return super ().show ()
You can’t perform that action at this time.
0 commit comments