mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
argv: move --nldebug option to common_argparse to avoid exception in ifreload
Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
This commit is contained in:
@ -148,13 +148,6 @@ class Parse:
|
|||||||
help='type of interface entry (iface or vlan). '
|
help='type of interface entry (iface or vlan). '
|
||||||
'This option can be used in case of ambiguity between '
|
'This option can be used in case of ambiguity between '
|
||||||
'a vlan interface and an iface interface of the same name')
|
'a vlan interface and an iface interface of the same name')
|
||||||
argparser.add_argument(
|
|
||||||
"--nldebug",
|
|
||||||
dest="nldebug",
|
|
||||||
action="store_true",
|
|
||||||
default=False,
|
|
||||||
help="print netlink debug messages"
|
|
||||||
)
|
|
||||||
|
|
||||||
def update_ifupdown_argparser(self, argparser):
|
def update_ifupdown_argparser(self, argparser):
|
||||||
""" common arg parser for ifup and ifdown """
|
""" common arg parser for ifup and ifdown """
|
||||||
@ -248,3 +241,10 @@ class Parse:
|
|||||||
''' general parsing rules '''
|
''' general parsing rules '''
|
||||||
|
|
||||||
argparser.add_argument('-V', '--version', action=VersionAction, nargs=0)
|
argparser.add_argument('-V', '--version', action=VersionAction, nargs=0)
|
||||||
|
argparser.add_argument(
|
||||||
|
"--nldebug",
|
||||||
|
dest="nldebug",
|
||||||
|
action="store_true",
|
||||||
|
default=False,
|
||||||
|
help="print netlink debug messages"
|
||||||
|
)
|
||||||
|
Reference in New Issue
Block a user