Git Product home page Git Product logo

Comments (7)

4a6f656c avatar 4a6f656c commented on May 2, 2024

IIRC you currently need an /etc/quagga/bgpd.conf that contains a basic BGP configuration, in particular the neighbor statements - seesaw will then add the "network" and "no network" statements in order to advertise and withdraw anycast routes. It would be preferable that seesaw did all of the necessary BGP configuration, however I don't believe that is currently the case (that said, I'd have to go and read the code to double check).

from seesaw.

lasse-aagren avatar lasse-aagren commented on May 2, 2024

That's what I thought as well, so I created a small bgpd.conf:

router bgp 65500
  neighbor e.f.g.h remote-as 65500

and restarted quagga. Now seesaw_engine FATALs with:

failed to advertise VIP a.b.c.d: VTY status 1: BGP is already running; AS is 65500

so it doesn't seem to like the router bgp definition to exist in advance?

from seesaw.

4a6f656c avatar 4a6f656c commented on May 2, 2024

That looks like quagga is complaining that BGP is already running with a different ASN - my guess would be that the local ASN that you've got in your configuration is mismatched with the local ASN configured for seesaw (in other words, the 'router bgp' statement that seesaw is issuing does not match the 'router bgp' statement in the existing configuration). If they both match then I'll have to dig further...

from seesaw.

lasse-aagren avatar lasse-aagren commented on May 2, 2024

I have a suspicion that regardless of what I write as bgp_local_asn in the config, is ignored with some hardcoded value (probably 64512). Will test.

from seesaw.

lasse-aagren avatar lasse-aagren commented on May 2, 2024

Yup. logging the value just before router bgp ... gets send to quagga, tells me that asn used is 64512, even though I have:

bgp_remote_asn: 65500
bgp_local_asn: 65500
bgp_peer: <
  fqdn: "my.router.example.com."
  ipv4: "e.f.g.h/28"
 >

in cluster.pb.

from seesaw.

lasse-aagren avatar lasse-aagren commented on May 2, 2024

culprit ncc/bgp.go:

// TODO(jsing): Make this configurable.
const seesawASN = uint32(64512)

https://github.com/google/seesaw/blob/master/ncc/bgp.go#L32

from seesaw.

lasse-aagren avatar lasse-aagren commented on May 2, 2024

Could you point me in the direction of fixing this the correct way? The value is in the config. How do I access it from ncc/bgp.go?

from seesaw.

Related Issues (20)

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.