1
0
mirror of https://github.com/peeringdb/peeringdb.git synced 2024-05-11 05:55:09 +00:00

- change behavior according to #474 (#476)

- clean up wording for import preview
- change `skip` action to `ignore` in import preview
- change action to `noop` when no action is taken because of disabled ixp update
- #390 fixed: Wrong IPs in exports for IX members with multiple links
This commit is contained in:
Matt Griswold
2019-04-18 13:15:16 -05:00
committed by GitHub
parent 1ef4188bb7
commit 7f0d7414dd
11 changed files with 639 additions and 62 deletions

View File

@@ -74,19 +74,19 @@ def export_ixf_ix_members(ixlans, pretty=False):
}
connection_list.append(connection)
if netixlan.ipaddr4:
if _netixlan.ipaddr4:
vlan_list[0]["ipv4"] = {
"address": "{}".format(netixlan.ipaddr4),
"routeserver": netixlan.is_rs_peer,
"max_prefix": netixlan.network.info_prefixes4,
"as_macro": netixlan.network.irr_as_set
"address": "{}".format(_netixlan.ipaddr4),
"routeserver": _netixlan.is_rs_peer,
"max_prefix": _netixlan.network.info_prefixes4,
"as_macro": _netixlan.network.irr_as_set
}
if netixlan.ipaddr6:
if _netixlan.ipaddr6:
vlan_list[0]["ipv6"] = {
"address": "{}".format(netixlan.ipaddr6),
"routeserver": netixlan.is_rs_peer,
"max_prefix": netixlan.network.info_prefixes6,
"as_macro": netixlan.network.irr_as_set
"address": "{}".format(_netixlan.ipaddr6),
"routeserver": _netixlan.is_rs_peer,
"max_prefix": _netixlan.network.info_prefixes6,
"as_macro": _netixlan.network.irr_as_set
}
if pretty: