Ian Southam 8a2391336c Getting redundancy to work via teh configuration files
Some refactoring to make class loading a little more logical
Removed fw global (does not persist accross modules)
Added first tests
Added command line call to set and disable redundancy
Added command line call to set master
2015-03-16 11:35:29 +01:00

10 lines
285 B
Python

from pprint import pprint
def merge(dbag, cmdline):
if 'redundant_router' in cmdline['cmd_line']:
cmdline['cmd_line']['redundant_router'] = "true"
else:
cmdline['cmd_line']['redundant_router'] = "false"
dbag['config'] = cmdline['cmd_line']
return dbag