Exa-Networks / exabgp

The BGP swiss army knife of networking
Other
2.1k stars 447 forks source link

Template announce with api not working #1236

Closed Denis-Karakhtanov closed 2 months ago

Denis-Karakhtanov commented 2 months ago

Hi,

Could you help me with unexpected behavior plz

With one neighbor works great and we really enjoy this service

I have checked previous report and rebuild my config but anyway i get this, no announce happen

exabgp[47462]: 15:05:55 | 47462 | api | no neighbor matching the command : announce route 172.16.88.88/32 next-hop 10.35.40.14 med 0

My config


process dns {
  run python3 -m exabgp healthcheck --config /etc/exabgp/dnscheck;
  encoder text;
}

template {
    neighbor cores {
    family {
           ipv4 unicast;
    }
    api services {
                processes [ dns ];
    }
}

neighbor 172.25.35.1 {
    inherit cores;
    router-id 10.35.40.14;
    local-address 10.35.40.14;
    local-as 65195;
    peer-as 65195;
}

neighbor 172.25.35.2 {
    inherit cores;
    router-id 10.35.40.14;
    local-address 10.35.40.14;
    local-as 65195;
    peer-as 65195;
}

With one neighbor works great

process dns {
  run python3 -m exabgp healthcheck --config /etc/exabgp/dnscheck;
  encoder text;
}

neighbor 172.25.35.1 {
    router-id 10.35.40.14;
    local-address 10.35.40.14;
    local-as 65195;
    peer-as 65195;
    api services {
    processes [ dns ];
}
thomas-mangin commented 2 months ago

Hello @Denis-Karakhtanov - I know I can be magical, but not that much 😉

I ask for the full output of exabgp with the -d option as otherwise I can not figure out what the issue is and I would rather be able to identify the problem without having to spend hours building a lab.

thomas-mangin commented 2 months ago
template {
    neighbor cores {
    family {
           ipv4 unicast;
    }
    api services {
                processes [ dns ];
    }
}

misses a closing } typo .. it may lead to a configuration with no peers.

Denis-Karakhtanov commented 2 months ago

Thank you for fast response, there was trouble with translation from 3.X

I'm surprised that this is gonna start without "}'

thomas-mangin commented 2 months ago

Yes, that is probably something I should look into :-) Happy to hear that it works now.