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

BGP routing gets confused when there are multiple DPs #3518

Open
gizmoguy opened this issue Apr 15, 2020 · 0 comments
Open

BGP routing gets confused when there are multiple DPs #3518

gizmoguy opened this issue Apr 15, 2020 · 0 comments

Comments

@gizmoguy
Copy link
Member

Take the following config:

vlans:
    office:
        vid: 100
        description: "office network"
        faucet_mac: "0e:00:00:00:10:01"
        faucet_vips: ['192.168.0.254/24']
    guest:
        vid: 200
        description: "guest network"
        faucet_mac: "0e:00:00:00:20:01"
        faucet_vips: ['20.0.0.254/8']
routers:
    router-bgp:
        bgp:
            vlan: office
            connect_mode: "passive"
            as: 65000
            port: 9179
            routerid: '192.168.0.252'
            server_addresses: ["127.0.0.1"]
            neighbor_addresses: ["127.0.0.1"]
            neighbor_as: 65000

dps:
      sw3:
             dp_id: 0x3
             hardware: "Open vSwitch"
             interfaces:
                 1:
                     name: "OVS1-CONN"
                     description: "ovs1 connection"
                     native_vlan: guest
      swdev:
             dp_id: 0xf
             hardware: "Open vSwitch"
             interfaces:
                 1:
                     name: "client 1"
                     native_vlan: "office"
                 99:
                     name: "Faucet "
                     native_vlan: office

This doesn't work for an unknown reason, despite the "office" vlan only being enabled on a single DP:

[InvalidConfigError('router router-bgp configured but not used by any DP',)]

When IVR is introduced things get even more complicated:

vlans:
    office:
        vid: 100
        description: "office network"
        faucet_mac: "0e:00:00:00:10:01"
        faucet_vips: ['192.168.0.254/24']
    guest:
        vid: 200
        description: "guest network"
        faucet_mac: "0e:00:00:00:20:01"
        faucet_vips: ['20.0.0.254/8']
routers:
    router-office-guest:
        vlans: [office, guest]
    router-bgp:
        bgp:
            vlan: office
            connect_mode: "passive"
            as: 65000
            port: 9179
            routerid: '192.168.0.252'
            server_addresses: ["127.0.0.1"]
            neighbor_addresses: ["127.0.0.1"]
            neighbor_as: 65000

dps:
      sw3:
             dp_id: 0x3
             hardware: "Open vSwitch"
             interfaces:
                 1:
                     name: "OVS1-CONN"
                     description: "ovs1 connection"
                     native_vlan: guest
      swdev:
             dp_id: 0xf
             hardware: "Open vSwitch"
             interfaces:
                 1:
                     name: "client 1"
                     native_vlan: "office"
                 2:
                     name: "client 2"
                     native_vlan: "guest"
                 3:
                     name: "client 3"
                     native_vlan: guest
                 99:
                     name: "Faucet "
                     native_vlan: office

This errors out with:

[InvalidConfigError('DPs (3, 15) sharing a BGP speaker VLAN (100) is unsupported',)]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant