Coder Social home page Coder Social logo

Comments (3)

bswinnerton avatar bswinnerton commented on July 23, 2024

Looks like the problem is in the originations section, it's expecting a v4 key:

diff --git a/config/test.yml b/config/test.yml
index 374afc3..958f461 100644
--- a/config/test.yml
+++ b/config/test.yml
@@ -24,6 +24,7 @@ preferred_source:

 # The prefixes being originated by this router
 originations:
+  v4: []
   v6:
     - '2a0e:8f02:201a::/48'
     - '2a0e:8f02:201b::/48'

Definitely seems like a bug. Even if you add in the empty array there it still will result in a malformed BIRD config (an empty array):

define ORIGINATED_PREFIXES_4 = [
  
];

define ORIGINATED_PREFIXES_6 = [
  2a0e:8f02:201a::/48,
  2a0e:8f02:201b::/48
];

define OUR_INTERNAL_PREFIXES_4 = [
  
];

define OUR_INTERNAL_PREFIXES_6 = [
  2a0e:8f02:201a::/48+,
  2a0e:8f02:201b::/48+
];

Let me put together something to support missing originations.

from peering.

bswinnerton avatar bswinnerton commented on July 23, 2024

👋 @samip5, this should now be resolved in the latest version on master. Mind giving this another try?

from peering.

samip5 avatar samip5 commented on July 23, 2024

@bswinnerton, the actual generation works now, but it still generates for example rules for GLOBAL_BLACKLIST_4, which I think shouldn't be there if you got no IPv4 related things as the config reload will fail due to no GLOBAL_BLACKLIST_4.

Other thing that should also be commented out or not inserted at all are in the function is_own_prefix, as seen here:
https://github.com/neptune-networks/peering/blob/master/templates/bird.conf.erb#L210-L212 and https://github.com/neptune-networks/peering/blob/master/templates/bird.conf.erb#L228-L230. Those will fail with undefined variable errors.

from peering.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.