Sync Phase: Implement bondethernets
Include special caveat on LCP MAC changes, for which I'll put in a TODO for now with a VPP comment {} with the to be run command. Also make the user aware of a quick in BondEthernets not being able to have link_mtu != 9000 so if a packet MTU > 9000 is set, this will work but is an undesirable configuration. Issue a warning in this case.
This commit is contained in:
12
vppcfg
12
vppcfg
@ -60,30 +60,26 @@ def main():
|
||||
sys.exit(-2)
|
||||
|
||||
r = Reconciler(cfg)
|
||||
if not r.readconfig():
|
||||
logging.error("Couldn't read config from VPP")
|
||||
sys.exit(-3)
|
||||
|
||||
if not r.phys_exist(interface.get_phys(cfg)):
|
||||
logging.error("Not all PHYs in the config exist in VPP")
|
||||
sys.exit(-4)
|
||||
sys.exit(-3)
|
||||
|
||||
if not r.prune():
|
||||
if not args.force:
|
||||
logging.error("Reconciliation prune failure")
|
||||
sys.exit(-5)
|
||||
sys.exit(-4)
|
||||
logging.warning("Reconciliation prune failure, continuing due to --force")
|
||||
|
||||
if not r.create():
|
||||
if not args.force:
|
||||
logging.error("Reconciliation create failure")
|
||||
sys.exit(-6)
|
||||
sys.exit(-5)
|
||||
logging.warning("Reconciliation create failure, continuing due to --force")
|
||||
|
||||
if not r.sync():
|
||||
if not args.force:
|
||||
logging.error("Reconciliation sync failure")
|
||||
sys.exit(-7)
|
||||
sys.exit(-6)
|
||||
logging.warning("Reconciliation sync failure, continuing due to --force")
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user