Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding interface and comments to peers config file. #227

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

Dennis-de-Houx
Copy link

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]";
...

pkg/config/config.go Outdated Show resolved Hide resolved
pkg/config/config.go Outdated Show resolved Hide resolved
pkg/embed/templates/peer.tmpl Outdated Show resolved Hide resolved
pkg/embed/templates/peer.tmpl Show resolved Hide resolved
Rename DefaultBGPMED and change description of interface
Bugfix typo, change comment into description
Fix typo change OVERRIDEN to OVERRIDDEN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants