]> git.proxmox.com Git - ifupdown2.git/blob - debian/patches/extra/0001-argv-move-nldebug-option-to-common_argparse-to-avoid.patch
f02574f125aa0bb03fa98f81a0567988900708a5
[ifupdown2.git] / debian / patches / extra / 0001-argv-move-nldebug-option-to-common_argparse-to-avoid.patch
1 From 8e9960454d58f648547fcb086a8b4352a4aa4faa Mon Sep 17 00:00:00 2001
2 From: Julien Fortin <julien@cumulusnetworks.com>
3 Date: Tue, 31 Dec 2019 20:25:44 +0100
4 Subject: [PATCH] argv: move --nldebug option to common_argparse to avoid
5 exception in ifreload
6
7 Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
8 Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
9 ---
10 ifupdown2/ifupdown/argv.py | 14 +++++++-------
11 1 file changed, 7 insertions(+), 7 deletions(-)
12
13 diff --git a/ifupdown2/ifupdown/argv.py b/ifupdown2/ifupdown/argv.py
14 index e560b40..a96a390 100644
15 --- a/ifupdown2/ifupdown/argv.py
16 +++ b/ifupdown2/ifupdown/argv.py
17 @@ -148,13 +148,6 @@ class Parse:
18 help='type of interface entry (iface or vlan). '
19 'This option can be used in case of ambiguity between '
20 'a vlan interface and an iface interface of the same name')
21 - argparser.add_argument(
22 - "--nldebug",
23 - dest="nldebug",
24 - action="store_true",
25 - default=False,
26 - help="print netlink debug messages"
27 - )
28
29 def update_ifupdown_argparser(self, argparser):
30 """ common arg parser for ifup and ifdown """
31 @@ -248,3 +241,10 @@ class Parse:
32 ''' general parsing rules '''
33
34 argparser.add_argument('-V', '--version', action=VersionAction, nargs=0)
35 + argparser.add_argument(
36 + "--nldebug",
37 + dest="nldebug",
38 + action="store_true",
39 + default=False,
40 + help="print netlink debug messages"
41 + )
42 --
43 2.20.1
44