Open maznu opened 4 years ago
Blocked: current versions of VyOS 1.3 do not appear to support the peeringdb module :(
salt@teleport:~/hphr/pillar$ salt dekker.d.faelix.net peeringdb.get_netixlan asn=41495 ixlan=1927
dekker.d.faelix.net:
'peeringdb.get_netixlan' is not available.
ERROR: Minions returned with non-zero exit code
This was added to VyOS in vyos-1.3-rolling-202004261005-amd64.iso
and confirmed as working:
salt@teleport:~/hphr/salt$ salt coudreau.e.faelix.net peeringdb.get_netixlan asn=41495 ixlan=1927
coudreau.e.faelix.net:
----------
comment:
out:
|_
----------
asn:
41495
created:
2019-04-08T08:53:20Z
id:
48703
ipaddr4:
185.1.101.32
ipaddr6:
2001:7f8:bc::4:1495:1
is_rs_peer:
True
ix_id:
1927
ixlan_id:
1927
name:
Equinix Manchester: Equinix IX - MA Metro
net_id:
1947
notes:
operational:
True
speed:
1000
status:
ok
updated:
2020-02-19T04:08:28Z
result:
True
Use the
peeringdb.get_net
function to retrieve:name
for the name of the peer network as part of theneighbor 192.0.2.1 description
info_prefixes4
andinfo_prefixes6
to auto-populateirr_as_set
to generateauto-AS-ASSETNAME
prefix-lists and apply them to the peerAnd use
peeringdb.get_netixlan
module withasn=
andixlan=
to fetch all potential peers:asn
to pre-populate theremote-as
name
of the IX as part of theneighbor 192.0.2.1 description
ipaddr4
andipaddr6
for the peer router addressesThis could then auto-build the configuration for the peers, for example:
Becomes: