def validate(cli_opts, json, area): # noqa: B902 """ Check all prefix & adj dbs in Decision against that in KvStore If --json is provided, returns database diffs in the following format. "neighbor_down" is a list of nodes not in the inspected node's dump that were expected, "neighbor_up" is a list of unexpected nodes in inspected node's dump, "neighbor_update" is a list of expected nodes whose metadata are unexpected. { "neighbor_down": [ { "new_adj": null, "old_adj": $inconsistent_node } ], "neighbor_up": [ { "new_adj": $inconsistent_node "old_adj": null } ], "neighbor_update": [ { "new_adj": $inconsistent_node "old_adj": $inconsistent_node } ] } """ return_code = decision.DecisionValidateCmd(cli_opts).run(json, area) sys.exit(return_code)
def validate(cli_opts): # noqa: B902 ''' Check all prefix & adj dbs in Decision against that in KvStore ''' decision.DecisionValidateCmd(cli_opts).run()
def print_decision_validate(self): decision.DecisionValidateCmd(self.cli_opts).run()