diff options
author | Christian Hopps <chopps@labn.net> | 2021-09-03 14:47:30 +0200 |
---|---|---|
committer | Christian Hopps <chopps@labn.net> | 2021-09-04 15:04:47 +0200 |
commit | a53c08bc131c02f4a20931d7aa9f974194ab16e7 (patch) | |
tree | 2c48ef7c757706d47ac5b999bf667166bc1c2e1a /tools | |
parent | tests: cleanup - remove unused imports (diff) | |
download | frr-a53c08bc131c02f4a20931d7aa9f974194ab16e7.tar.xz frr-a53c08bc131c02f4a20931d7aa9f974194ab16e7.zip |
tests: cleanup: rerun changed files through black
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/frr-reload.py | 46 |
1 files changed, 13 insertions, 33 deletions
diff --git a/tools/frr-reload.py b/tools/frr-reload.py index 6d99f866a..da51c231d 100755 --- a/tools/frr-reload.py +++ b/tools/frr-reload.py @@ -45,6 +45,7 @@ from pprint import pformat def iteritems(d): return iter(d.items()) + log = logging.getLogger(__name__) @@ -556,49 +557,26 @@ end "router ospf6": {}, "router eigrp ": {}, "router babel": {}, - "mpls ldp": { - "address-family ": { - "interface ": {} - } - }, - "l2vpn ": { - "member pseudowire ": {} - }, - "key chain ": { - "key ": {} - }, + "mpls ldp": {"address-family ": {"interface ": {}}}, + "l2vpn ": {"member pseudowire ": {}}, + "key chain ": {"key ": {}}, "vrf ": {}, - "interface ": { - "link-params": {} - }, + "interface ": {"link-params": {}}, "pseudowire ": {}, "segment-routing": { "traffic-eng": { "segment-list ": {}, - "policy ": { - "candidate-path ": {} - }, - "pcep": { - "pcc": {}, - "pce ": {}, - "pce-config ": {} - } + "policy ": {"candidate-path ": {}}, + "pcep": {"pcc": {}, "pce ": {}, "pce-config ": {}}, }, - "srv6": { - "locators": { - "locator ": {} - } - } + "srv6": {"locators": {"locator ": {}}}, }, "nexthop-group ": {}, "route-map ": {}, "pbr-map ": {}, "rpki": {}, - "bfd": { - "peer ": {}, - "profile ": {} - }, - "line vty": {} + "bfd": {"peer ": {}, "profile ": {}}, + "line vty": {}, } # stack of context keys @@ -1890,7 +1868,9 @@ if __name__ == "__main__": nolines = [x.strip() for x in nolines] # For topotests leave these lines in (don't delete them) # [chopps: why is "log file" more special than other "log" commands?] - nolines = [x for x in nolines if "debug" not in x and "log file" not in x] + nolines = [ + x for x in nolines if "debug" not in x and "log file" not in x + ] if not nolines: continue |