mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
Ticket: cleanup Reviewed By: Testing Done: Tested ifupdown sanity This gets rid of some ugly previous flag handling which was passed through modules. This creates a global instance of flags that all addon modules and helper modules can use. Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
22 lines
456 B
Python
22 lines
456 B
Python
#!/usr/bin/env python
|
|
#
|
|
# Copyright 2015 Cumulus Networks, Inc. All rights reserved.
|
|
#
|
|
# Author: Roopa Prabhu, roopa@cumulusnetworks.com
|
|
#
|
|
#
|
|
|
|
class ifupdownFlags():
|
|
|
|
def __init__(self):
|
|
self.FORCE = False
|
|
self.DRYRUN = False
|
|
self.NOWAIT = False
|
|
self.PERFMODE = False
|
|
self.CACHE = False
|
|
|
|
# Flags
|
|
self.CACHE_FLAGS = 0x0
|
|
|
|
flags = ifupdownFlags()
|