mirror of
https://github.com/NeoCloud/NeoNetwork
synced 2024-12-27 02:19:24 +08:00
Regular update: 2020-07-26T12:52:30Z
This commit is contained in:
parent
57a1fd49dc
commit
822b4d0597
1 changed files with 6 additions and 0 deletions
|
@ -251,6 +251,7 @@ def make_summary():
|
||||||
print("# NeoNetwork Summary")
|
print("# NeoNetwork Summary")
|
||||||
print()
|
print()
|
||||||
print("## Entity table")
|
print("## Entity table")
|
||||||
|
print()
|
||||||
entity_table = tabulate(
|
entity_table = tabulate(
|
||||||
(
|
(
|
||||||
(
|
(
|
||||||
|
@ -266,6 +267,7 @@ def make_summary():
|
||||||
print(entity_table)
|
print(entity_table)
|
||||||
print()
|
print()
|
||||||
print("## AS table")
|
print("## AS table")
|
||||||
|
print()
|
||||||
as_table = tabulate(
|
as_table = tabulate(
|
||||||
(
|
(
|
||||||
(entity["source"], "AS{}".format(asn), entity["owner"], entity["name"])
|
(entity["source"], "AS{}".format(asn), entity["owner"], entity["name"])
|
||||||
|
@ -277,6 +279,7 @@ def make_summary():
|
||||||
print(as_table)
|
print(as_table)
|
||||||
print()
|
print()
|
||||||
print("## Node table")
|
print("## Node table")
|
||||||
|
print()
|
||||||
node_table = tabulate(
|
node_table = tabulate(
|
||||||
(
|
(
|
||||||
("AS{}".format(asn), name)
|
("AS{}".format(asn), name)
|
||||||
|
@ -288,6 +291,7 @@ def make_summary():
|
||||||
print(node_table)
|
print(node_table)
|
||||||
print()
|
print()
|
||||||
print("## Peer table")
|
print("## Peer table")
|
||||||
|
print()
|
||||||
peer_table = tabulate(
|
peer_table = tabulate(
|
||||||
(
|
(
|
||||||
(item.stem, downstream)
|
(item.stem, downstream)
|
||||||
|
@ -301,6 +305,7 @@ def make_summary():
|
||||||
print(peer_table)
|
print(peer_table)
|
||||||
print()
|
print()
|
||||||
print("## Route table")
|
print("## Route table")
|
||||||
|
print()
|
||||||
route_table = tabulate(
|
route_table = tabulate(
|
||||||
(
|
(
|
||||||
(
|
(
|
||||||
|
@ -318,6 +323,7 @@ def make_summary():
|
||||||
print(route_table)
|
print(route_table)
|
||||||
print()
|
print()
|
||||||
print("## Used CIDR Range")
|
print("## Used CIDR Range")
|
||||||
|
print()
|
||||||
prefixes = netaddr.cidr_merge(
|
prefixes = netaddr.cidr_merge(
|
||||||
netaddr.IPNetwork(str(entity["prefix"]))
|
netaddr.IPNetwork(str(entity["prefix"]))
|
||||||
for entity in route_to_roa(asn_table)
|
for entity in route_to_roa(asn_table)
|
||||||
|
|
Loading…
Reference in a new issue