Skip to content

Conversation

@Dennis-de-Houx
Copy link
Contributor

Adding the following to the peers settings:

  • interface (the interface used to connect)
  • comments (add comments to the config file)

Add a general warning to the config file that this file is autogenerated

Examples of yaml file:

cat /etc/pathvector.yml ... peers: Exchange Frankfurt RR: comments: - "IXP: Exchange" - "Location: Frankfurt" - "Datacenter: Super Deluxe Datacenter" description: "Peering: Exchange - Frankfurt (AS65501) [40Gbit]" asn: 65501 multihop: false template: routeserver enforce-peer-nexthop: false enforce-first-as: false listen6: 2a0e:1234:5678:90ab:666::1337 interface: ens22 neighbors: - 2a0e:1234:5678:90ab:666::1 ... 

Result of generated config file:

cat /etc/bird/AS65501_EXCHANGE_FRANKFURT_RR.conf # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! # !!! THIS FILE IS AUTOGENERATED BY PATHVECTOR !!! # !!! DO NOT EDIT THIS FILE, CHANGES WILL BE OVERRIDEN ON NEXT GENERATION !!! # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ##### # BGP Session: Exchange Frankfurt RR AS65501 # # IXP: Exchange # Location: Frankfurt # Datacenter: Super Deluxe Datacenter # ##### define AS65501_EXCHANGE_FRANKFURT_RR_IMPORT_v4 = 500; define AAS65501_EXCHANGE_FRANKFURT_RR_IMPORT_v6 = 50000; define AS65501_EXCHANGE_FRANKFURT_RR_PFX_v4 = -empty-; define AS65501_EXCHANGE_FRANKFURT_PFX_v6 = -empty-; protocol bgp EXCHANGE_FRANKFURT_RR_AS65501_v6 { local 2a0e:1234:5678:90ab:666::1337 as ASN port 179; interface "ens22"; neighbor 2a0e:1234:5678:90ab:666::1 as 24381 port 179; description "Peering: Exchange - Frankfurt (AS65501) [40Gbit]"; ... 
Rename DefaultBGPMED and change description of interface
Bugfix typo, change comment into description
Fix typo change OVERRIDEN to OVERRIDDEN
Ssmidge added a commit to AS60900/pathvector that referenced this pull request Aug 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants