mirror of
https://github.com/NeoCloud/NeoNetwork
synced 2024-11-05 15:52: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()
|
||||
print("## Entity table")
|
||||
print()
|
||||
entity_table = tabulate(
|
||||
(
|
||||
(
|
||||
|
@ -266,6 +267,7 @@ def make_summary():
|
|||
print(entity_table)
|
||||
print()
|
||||
print("## AS table")
|
||||
print()
|
||||
as_table = tabulate(
|
||||
(
|
||||
(entity["source"], "AS{}".format(asn), entity["owner"], entity["name"])
|
||||
|
@ -277,6 +279,7 @@ def make_summary():
|
|||
print(as_table)
|
||||
print()
|
||||
print("## Node table")
|
||||
print()
|
||||
node_table = tabulate(
|
||||
(
|
||||
("AS{}".format(asn), name)
|
||||
|
@ -288,6 +291,7 @@ def make_summary():
|
|||
print(node_table)
|
||||
print()
|
||||
print("## Peer table")
|
||||
print()
|
||||
peer_table = tabulate(
|
||||
(
|
||||
(item.stem, downstream)
|
||||
|
@ -301,6 +305,7 @@ def make_summary():
|
|||
print(peer_table)
|
||||
print()
|
||||
print("## Route table")
|
||||
print()
|
||||
route_table = tabulate(
|
||||
(
|
||||
(
|
||||
|
@ -318,6 +323,7 @@ def make_summary():
|
|||
print(route_table)
|
||||
print()
|
||||
print("## Used CIDR Range")
|
||||
print()
|
||||
prefixes = netaddr.cidr_merge(
|
||||
netaddr.IPNetwork(str(entity["prefix"]))
|
||||
for entity in route_to_roa(asn_table)
|
||||
|
|
Loading…
Reference in a new issue