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

Configuration Error for peeringdb-cache in Pathvector #251

Open
Zhuyuan0907 opened this issue Sep 24, 2024 · 0 comments
Open

Configuration Error for peeringdb-cache in Pathvector #251

Zhuyuan0907 opened this issue Sep 24, 2024 · 0 comments

Comments

@Zhuyuan0907
Copy link

Description:
I'm encountering an issue with the configuration in the Pathvector documentation related to the peeringdb-cache option. According to the documentation under Configuration, it suggests using a boolean value for the peeringdb-cache setting. I have set it to false, but when I run Pathvector, I receive the following error:

FATA[0000] YAML unmarshal: yaml: unmarshal errors:
  line 92: field peeringdb-cache not found in type config.Peer

Objective:
I want to configure a specific peer such that Pathvector does not read data from PeeringDB. My intention is to prevent Pathvector from automatically fetching information from PeeringDB for a particular peer.

Steps to Reproduce:
Add peeringdb-cache: false under the peer configuration in the /etc/pathvector.yml
Run Pathvector.
The error occurs on line 92 of the configuration file:

line 92: field peeringdb-cache not found in type config.Peer

Expected Behavior:
Pathvector should allow the option to disable PeeringDB data fetching for specific peers when peeringdb-cache is set to false, as indicated by the documentation.

Actual Behavior:
Instead, Pathvector throws an unmarshal error, indicating that the peeringdb-cache field is not found in config.Peer.

Questions:

Is there a different configuration option I should be using to prevent Pathvector from reading PeeringDB data for a specific peer?
Is the peeringdb-cache option not applicable to individual peers, or is it a global setting?
Additional Information:
Pathvector version: 6.3.2
Configuration file snippet:

  xxxIX:
    asn: 49962
    template: routeserver
    local-pref: 150
    import-limit6: 9999999
    peeringdb-cache: false
     neighbors:
      - xx.xx.xx.xx
      - xx:xx:xx:xx::x

Thank you for your support!

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

No branches or pull requests

1 participant