yanet-platform / yanet

A high performance framework for forwarding traffic based on DPDK
Other
164 stars 17 forks source link

Annoncer.conf and target #183

Closed Denyme closed 1 month ago

Denyme commented 2 months ago

HI. Can you share example announcer.conf and target?

GeorgyKirichenko commented 1 month ago

Announcer executes commands from the file to enable or disable BGP announces configured inside bird like

{
  "firewall::/128": {
    "update": [
      "birdc enable \\\"b_vrf_*\\\""
    ],
    "remove": [
      "birdc disable \\\"b_vrf_*\\\""
    ]
  }
}

or

{
  "<cidr>": {
    "update": [
      "ip addr add <cidr> dev mgif0"
    ],
    "remove": [
      "ip addr del <cidr> dev mgif0"
    ]
  },