1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

Remove batch support when deleting addresses. batching code does not

update the cache yet and that can cause problems during add

Ticket: CM-2491
Reviewed By:
Testing Done:

Still working on the cache update support during batching.
This commit is contained in:
roopa
2014-03-27 16:36:54 -07:00
parent ca3f4fc75a
commit 91067b3d23
3 changed files with 14 additions and 26 deletions

View File

@@ -123,8 +123,7 @@ def run_reload(args):
ifupdown_handle.reload(['pre-up', 'up', 'post-up'],
['pre-down', 'down', 'post-down'],
args.all, None, None,
excludepats=args.excludepats,
downchangediface=args.downchangediface)
excludepats=args.excludepats)
except:
raise
@@ -264,14 +263,12 @@ def update_ifreload_argparser(argparser):
help=argparse.SUPPRESS)
argparser.add_argument('-j', '--jobs', dest='jobs', type=int,
default=-1, choices=range(1,12), help=argparse.SUPPRESS)
argparser.add_argument('--down-changediface', dest='downchangediface',
action='store_true', help='down interfaces whose ' +
'config have changed before bringing them up. By' +
' default all interfaces are brought up')
def parse_args(argsv, op):
if op == 'query':
descr = 'query interfaces (all or interface list)'
elif op == 'reload':
descr = 'reload interface configuration.'
else:
descr = 'interface management'
argparser = argparse.ArgumentParser(description=descr)