Skip to content

Breaking Changes

Thomas Mangin edited this page Oct 9, 2026 · 27 revisions

Breaking Changes Reference

Complete reference of breaking changes across ExaBGP versions

This document lists all breaking changes in ExaBGP's history to help you understand version compatibility and plan upgrades.


Table of Contents


What is a Breaking Change?

A breaking change is a modification that requires users to update their:

  • API programs (code changes)
  • Configuration files (syntax changes)
  • Command-line scripts (argument changes)
  • Integration workflows (behavioral changes)

Not breaking:

  • Bug fixes
  • New features (when opt-in)
  • Performance improvements
  • Internal refactoring

ExaBGP 6.0.0 (main branch)

Version: ExaBGP 5.x → 6.0.0 Release: Development (main branch), not tagged yet Severity: 🟡 MEDIUM - Breaking changes, but migration tools available

⚠️ Breaking Changes in 6.0.0

ExaBGP 6.0.0 requires Python 3.12+. Its event loop now runs on Python's asyncio, which is not a breaking change: nothing changes for a user.

1. Python Version Requirements (CRITICAL)

ExaBGP 5.x:

  • ✅ Python 3.8+ minimum

ExaBGP 6.0.0:

  • ❌ Python 3.8-3.11 dropped
  • ✅ Python 3.12+ minimum
  • ✅ Python 3.13 and 3.14 supported

Who is affected: Everyone running Python < 3.12

Migration required: Upgrade Python before upgrading ExaBGP

2. BGP-LS JSON API Changes (HIGH IMPACT)

IP Reachability TLV

ExaBGP 5.x:

{"ip-reachability-tlv": "10.134.2.88", "ip-reach-prefix": "10.134.2.88/30"}

ExaBGP 6.0.0:

{"ip-reachability-tlv": "10.134.2.88/30", "ip-reach-prefix": "10.134.2.88/30"}

Changes:

  • ip-reachability-tlv now includes the prefix length in CIDR notation
Adjacency SID

ExaBGP 5.x:

{"bgp-ls": {"sr-adj": {...}, "sr-adj": {...}}}

ExaBGP 6.0.0:

{"bgp-ls": {"sr-adjs": [{...}, {...}]}}

Changes:

  • Key renamed from sr-adj to sr-adjs
  • Now outputs as array of objects (valid JSON)
Remote Router ID

ExaBGP 5.x:

{"bgp-ls": {"remote-te-router-id": "192.0.2.1", "remote-te-router-id": "2001:db8::1"}}

ExaBGP 6.0.0:

{"bgp-ls": {"remote-router-ids": ["192.0.2.1", "2001:db8::1"]}}

Changes:

  • Key renamed from remote-te-router-id to remote-router-ids
  • IPv4 and IPv6 merged into single array (valid JSON)

Who is affected: Programs using JSON encoder with BGP-LS

Migration required: Update field names in parsers

3. OTC Configuration Options Removed (CRITICAL)

ExaBGP 5.x:

role {
    local provider;
    otc disable;      # suppress Only-to-Customer marking for this neighbour
}

route 10.0.0.0/24 next-hop self otc none;   # or for one route

ExaBGP 6.0.0: both are refused at load, with a message naming RFC 9234 section 5.

That section says "The operator MUST NOT have the ability to modify the procedures defined in this section", and these two options were that ability. There is no deprecation period and no replacement. Delete the lines; OTC marking is unconditional for IPv4 and IPv6 unicast and untouched for every other family.

Who is affected: anyone with otc disable or otc none in a configuration file. ExaBGP will not start.

Migration required: grep -rn otc /etc/exabgp/ and delete the matching lines. See 5.x → 6.0.0 Migration.

4. Wire Format and NOTIFICATION Subcodes (MEDIUM)

Behavioural rather than a syntax change, but it alters the bytes an unchanged peer receives. Path attributes go out in ascending type order with MP_REACH_NLRI and MP_UNREACH_NLRI first, an announce and a withdrawal of the same family no longer share an UPDATE, the OPEN carries one Capabilities parameter instead of one per capability, and four NOTIFICATION subcodes were corrected.

Who is affected: anyone whose monitoring alerts on NOTIFICATION code and subcode pairs.

Migration required: none otherwise. See What Changes on the Wire.

5. ttl-security Enforces the IPv4 Inbound Check (MEDIUM)

incoming-ttl did not install the IPv4 inbound TTL check on any platform before 6.0.0, and said nothing about it, so an operator who configured GTSM got a session, no warning and no protection. It works now on Linux and FreeBSD, and warns on macOS where the socket option does not exist. The minimum is checked on each accepted connection against the neighbour it belongs to, and on the global listener too, where it used to be set on the listening socket shared by every neighbour on that address and port, so the last neighbour configured decided for all of them (RFC 5082 3). FreeBSD keeps no SYN to check, so there the listening socket carries the minimum only when every neighbour on it asks for the same one, and none, with the warning listener.ttl.minimum.unset, when they differ.

Who is affected: anyone using incoming-ttl. A peer further away than your configured minimum allows will now fail to establish where it used to work, and a neighbour sharing a listener with others is held to its own minimum.

Migration required: verify the minimum is reachable. See ttl-security Now Actually Runs on IPv4.

6. FlowSpec Rules Mixing IPv4 and IPv6 Prefixes Are Refused (HIGH)

ExaBGP 5.x:

flow {
    route mixed {
        match { source 10.0.0.0/24; destination 2001:db8::/32; }
        then { discard; }
    }
}

loaded, and announced source 10.0.0.0/24 alone: the IPv6 destination was dropped without a word, so a rule meant for one destination discarded traffic to every destination. Two destinations of different families went out as one rule, and announce ipv4 flow put an IPv6 prefix inside an IPv4 flow NLRI.

ExaBGP 6.0.0: all of these are refused, with a message naming both prefixes:

destination-ipv6 2001:db8::/32/0 cannot be combined with source-ipv4 10.0.0.0/24, a flow route matches one address family

The same applies to the components which mean something different, or nothing, in the other family: flow-label in an IPv4 rule (a type IPv4 does not have), dscp in an IPv6 rule (IPv6 writes type 11 as traffic-class), traffic-class in an IPv4 rule, and fragment dont-fragment in an IPv6 rule (IPv6 has no Don't Fragment bit). protocol and next-header are the same type 3 in both families and are still accepted in either.

Who is affected: a configuration holding such a rule will not load, and an API program sending one gets an error back where it used to get a success. A program which does not check the answer to its announce will not notice the rule is missing.

Migration required: split the rule in two, one per family. See FlowSpec Rules Match One Address Family.

7. FlowSpec IPv6 Redirect Text and Encoding (LOW)

redirect [2001:db8::1]:100;, the IPv6 route-target redirect of RFC 8956 section 6.1, could not be configured before 6.0.0, and the code behind it encoded the wrong type (0x0002 instead of 0x000d). It works now. What an API program receives changes:

Received community 5.x JSON string 5.x text encoder and logs 6.0.0, JSON and text
type 0x000d (RFC 8956) "" (empty) 0x000D2001...0064 (hex) redirect [2001:db8::1]:100
type 0x800b (pre-RFC draft) 0x800B2001...0064 (hex) redirect 2001:db8::1:100 0x800B2001...0064 (hex)

Who is affected: a program using the text encoder and matching on redirect <address>:<number> for an IPv6 extended community. JSON programs only gain a string where it used to be empty.

Migration required: expect the address in brackets. See IPv6 FlowSpec Redirect.

8. Route Targets with a Four Octet AS (MEDIUM)

ExaBGP 5.x: extended-community target:4200000000:100 was encoded as an IPv4 address specific community (type 0x01), so the peer received the address 250.86.234.0. target:120000L:123 became target:0.1.212.192:123, and origin: did the same.

ExaBGP 6.0.0: an AS above 65535, or one written with a trailing L, is encoded as the Four Octet AS Specific community of RFC 5668 (type 0x02). A dotted address and an AS below 65536 are unchanged.

Who is affected: anyone announcing target: or origin: with a four octet AS. The route target on the wire changes, so a peer importing by the old, wrong, value stops matching.

Migration required: check the import policy on the receiving side matches the route target you meant. See Route Targets with a Four Octet AS.

9. FlowSpec Redirect and Copy to an IP Address (MEDIUM)

ExaBGP 5.x: redirect <ip> and copy <ip> used the Simpson draft: the address went in the MP_REACH_NLRI next hop, with a flag community, against RFC 8955 section 4's "the Length of the Next-Hop Network Address MUST be set to 0".

ExaBGP 6.0.0: they use draft-ietf-idr-flowspec-redirect-ip, which replaced it: the address is in an extended community and the next hop is empty. copy <ip> sets the community's copy bit. Each logs one warning per process naming the old spelling. redirect-simpson <ip> and copy-simpson <ip> send the old bytes. A bare redirect-to-nexthop is unchanged, and can also be written redirect-to-nexthop-simpson.

Who is affected: anyone using redirect <ip> or copy <ip> towards a router which only understands the Simpson draft.

Migration required: check your routers accept draft-ietf-idr-flowspec-redirect-ip; if one does not, write redirect-simpson <ip> or copy-simpson <ip> for it. See FlowSpec Redirect to an IP Address.

10. teardown Takes a Code and a Subcode (LOW)

ExaBGP 5.x: the documentation said the number was the error code, but the code sent Cease with the number as the subcode, so teardown 6 sent Cease / Other Configuration Change. teardown alone, two numbers, or text after the number were answered with an error, and teardown 300 closed the session without a NOTIFICATION.

ExaBGP 6.0.0: one number keeps its old meaning, a Cease subcode, so existing scripts send what they sent before. What changes:

  • teardown alone sends Cease / Administrative Shutdown (6/2)
  • two numbers are the code and the subcode, any value from 0 to 255; a value IANA does not assign is logged as a warning
  • text after the numbers is sent: the RFC 9003 Shutdown Communication for 6/2 and 6/4, the Data field otherwise
  • a value over 255 is refused with an error
teardown 4                                      # 6/4, as in 5.x
teardown 6 2 "[TICKET-1] upgrade, back in 2h"   # 6/2 with a Shutdown Communication
teardown 3 1                                    # UPDATE Message Error / Malformed Attribute List

Who is affected: nobody passing one number. Only a script relying on the other forms failing.

Migration required: none. See teardown Takes a Code and a Subcode.

11. NOTIFICATIONs ExaBGP Sends (MEDIUM)

Behavioural, on top of the four subcodes in item 4:

  • a connection from a peer no neighbour matches gets 6/5 Connection Rejected, not 6/3 Peer De-configured (RFC 4486 section 4)
  • waiting too long for the OPEN sends 4/0 Hold Timer Expired, not 5/1 (RFC 4271 section 8)
  • an API process which cannot be told the session is up closes it with 6/8 Out of Resources, not the reserved 6/0
  • a ROUTE-REFRESH with an unknown subtype is ignored and logged, where 7/2 closed the session (RFC 7313 section 5)
  • a BoRR or EoRR is handled as RFC 7313 section 4 describes, where both triggered a replay of every route we send
  • a Shutdown Communication of up to 255 octets is read (RFC 9003)
  • the Data field holds what the RFCs define (the type octet, our version, the message, the attribute as received); the English sentence it used to carry is now only in ExaBGP's log
  • code and subcode names in the log and the API follow the IANA registry

Who is affected: anyone whose monitoring matches NOTIFICATION codes, subcodes or text, on the peer or in ExaBGP's own log and API output.

Migration required: update those patterns. See NOTIFICATIONs and Route Refresh.

12. Only prefix-limit May Follow a Family (LOW)

ExaBGP 5.x: a family line accepted anything after the SAFI and ignored it.

ExaBGP 6.0.0: only prefix-limit N may follow, so ipv4 unicast foo; is a configuration error.

Who is affected: a configuration with anything else after a SAFI. ExaBGP will not start.

Migration required: run exabgp configuration validate and delete the extra words. See Only prefix-limit May Follow a Family.

13. Routes of a Process Which Exits Are Withdrawn (LOW)

ExaBGP 5.x: the routes a process announced stayed announced after it exited.

ExaBGP 6.0.0: for a process using the 6.0 commands (API 6), or one which never sent a command showing its version, they are withdrawn from every neighbor when it exits, respawned or not, and a configured route it had replaced is announced again (issue #304). A process using the commands of 4.x and 5.x (API 4) keeps its routes, as before.

Who is affected: a process using the 6.0 commands which announces its routes and exits on purpose, or whose routes must survive a respawn. A 5.x helper using 5.x commands is not.

Migration required: add on-exit keep; to that process. exabgp migrate conf to 6.0 adds it to every process block which does not set on-exit. See Routes of a Process Which Exits Are Withdrawn.

14. AS_SET and AS_CONFED_SET Are Treated as Withdrawn (MEDIUM)

ExaBGP 5.x: a route received with either was passed on as an announcement.

ExaBGP 6.0.0: it is treated as withdrawn, as RFC 9774 requires.

Who is affected: route collectors and monitoring which want to see those routes.

Migration required: add as-set accept; to the neighbor. See AS_SET and AS_CONFED_SET Are Treated as Withdrawn.

15. AS Paths Print the Way the Configuration Writes Them (LOW)

ExaBGP 5.x: a sequence printed in ( ) and a set in [ ], swapped when read back.

ExaBGP 6.0.0: [ ] for a sequence, ( ) for a set, confed-sequence [ ] and confed-set [ ] for the confederation segments. The JSON is unchanged.

Who is affected: scripts parsing the text form of a route's as-path.

Migration required: swap the brackets in the parser. See AS Paths Print the Way the Configuration Writes Them.

16. The Capabilities of an OPEN Are Keyed by Name in the JSON API (MEDIUM)

ExaBGP 5.x: a received OPEN keyed its capabilities by code ("1", "65"), a sent one by name, without the code.

ExaBGP 6.0.0: both are keyed by name, and each capability carries its code as code: "asn4": { "code": 65, "name": "asn4", "asn4": 65001 }.

Who is affected: API programs reading the capabilities of a received OPEN.

Migration required: read capabilities["asn4"] rather than capabilities["65"], or match on code. See JSON API: What a Parser Has to Change.

17. The data of a Received NOTIFICATION Is Its Data Field (LOW)

ExaBGP 5.x: a display string, e.g. Shutdown Communication: "...", for a received NOTIFICATION only.

ExaBGP 6.0.0: the Data field in hex, as it always was for a NOTIFICATION ExaBGP sends, with message holding the same octets as text.

Who is affected: API programs reading the text of a received NOTIFICATION from data.

Migration required: read message instead. See JSON API: What a Parser Has to Change.

18. A Route from an EBGP Neighbour Must Start with Its AS (MEDIUM)

ExaBGP 5.x: accepted whatever the first AS of the path.

ExaBGP 6.0.0: a route whose AS_PATH does not start with the neighbour's AS is treated as withdrawn (RFC 4271 6.3, RFC 8955 6).

Who is affected: the neighbour of a route server, which does not prepend its AS.

Migration required: enforce-first-as false; on that neighbour. See Routes from an EBGP Neighbour Must Start with Its AS.

19. Attributes an EBGP Neighbour May Not Send Are Dropped (LOW)

ExaBGP 5.x: LOCAL_PREF, ORIGINATOR_ID, CLUSTER_LIST and the Tunnel Encapsulation attribute from an EBGP neighbour were kept.

ExaBGP 6.0.0: the first three are discarded (RFC 7606), the Tunnel Encapsulation attribute is filtered (RFC 9012 11) unless tunnel-encapsulation accept; is set on the neighbour.

Who is affected: API programs reading those attributes on routes from an EBGP neighbour.

Migration required: tunnel-encapsulation accept; for the Tunnel Encapsulation attribute; nothing can keep the other three. See Attributes an EBGP Neighbour May Not Send.

20. Labelled Routes Carry One Label Unless the Peer Takes More (MEDIUM)

ExaBGP 5.x: a route configured with a label stack was sent with the whole stack.

ExaBGP 6.0.0: only the first label is sent, unless both ends sent the Multiple Labels Capability (RFC 8277), and never more than the peer said it can take.

Who is affected: labelled unicast and VPN routes configured with more than one label.

Migration required: capability { multiple-labels N; } where the peer supports RFC 8277. See Labelled Routes Carry One Label Unless the Peer Takes More.

21. FlowSpec: No Next Hop, and Rules Which Cannot Match (LOW)

ExaBGP 5.x: a flow route was sent with a next hop, and one matching an ICMP type or code with a port was sent although no packet can match it.

ExaBGP 6.0.0: the next hop length is 0 unless the route carries the draft-simpson redirect-to-next-hop community (RFC 8955 4), the flow label is always four octets (RFC 8956 3.7), and the ICMP and port rule is not announced, with a warning.

Who is affected: rules which mix ICMP and ports, which never matched anything.

Migration required: none; the warning names the rules to look at. See FlowSpec: No Next Hop, and Rules Which Cannot Match.

22. Routes Passed from One Neighbour to Another Honour Their Communities (LOW)

ExaBGP 5.x: a route received from one peer and sent on to another ignored NO_EXPORT, NO_ADVERTISE and NO_EXPORT_SUBCONFED, kept its non-transitive extended communities and its ADD-PATH identifier.

ExaBGP 6.0.0: it honours them (RFC 1997, RFC 4360) and is sent under an identifier of our own (RFC 7911). Routes from the configuration or the API are unchanged.

Who is affected: setups passing received routes on to another neighbour.

Migration required: none. See Routes Passed from One Neighbour to Another.

23. SR Policy Routes Need a Route Target or NO_ADVERTISE (HIGH)

ExaBGP 5.x: an sr-policy route was sent without the NO_ADVERTISE community or a Route Target, and the statement ignored a community or extended-community written on it, so a receiver following RFC 9830 4.2.1 treated every one as withdrawn.

ExaBGP 6.0.0: the sr-policy statement takes community [ ... ] and extended-community [ ... ], and a route without the NO_ADVERTISE community or a Route Target in IPv4-address format, or without a Tunnel Encapsulation, is refused. A received SR Policy update missing either is treated as withdrawn. Over EBGP, the default tunnel-encapsulation auto drops the Tunnel Encapsulation attribute on receipt (RFC 9012 11).

Who is affected: anyone announcing SR Policy, and anyone receiving it from an EBGP neighbour.

Migration required: add community [ no-advertise ] or extended-community [ target:<ipv4>:<n> ] to each route, and tunnel-encapsulation accept; to an EBGP neighbour sending SR Policy. See SR Policy Routes Need a Route Target or NO_ADVERTISE.

24. More Routes the Configuration Refuses (MEDIUM)

ExaBGP 5.x: accepted and sent each of these.

ExaBGP 6.0.0: refuses them when the configuration loads:

  • a flow route with a second destination or source prefix, in the configuration and from the API, 5.0 commands included (RFC 8955 4.2); a received one is treated as withdrawn
  • a route whose next hop is an address of the peer it is sent to (RFC 4271 5.1.3); from the API that peer is skipped with a warning, and the command fails only when no selected peer can take the route
  • attribute [ ] with code 14, 15, 17 or 18 (MP_REACH_NLRI, MP_UNREACH_NLRI, AS4_PATH, AS4_AGGREGATOR), which ExaBGP builds itself, so a raw copy was sent twice or between four octet speakers where RFC 6793 4.1 forbids it
  • aigp 18446744073709551615, the value RFC 7311 3.2 has a receiver discard
  • an l2info extended community with a control flag other than C or S (RFC 4761 3.2.4)
  • a MUP Type 1 Session Transformed route with TEID 0, and a Type 2 with a TEID of 0 and a non-zero length
  • a MUP ISD or Type 1 Session Transformed prefix longer than its address, or of the other family (draft-mpmz-bess-mup-safi-05 3.1.1 and 3.1.3)
  • a flow fragment given as a number which sets a reserved bit (RFC 8955 4.2.2.12, RFC 8956 3.6), such as fragment 255
  • a link-local next hop for a neighbour with outgoing-ttl above 1, in the configuration and from the API (draft-ietf-idr-linklocal-capability 4)
  • an sr-policy with a second preference, binding-sid, priority, policy-name or candidate-path-name, a binding-sid mpls label from 0 to 15, or endpoint-behavior lengths totalling more than 128 bits (RFC 9830 2.4); SR Policy itself is new in 6.0.0

Who is affected: a configuration holding one of them will not load; an API helper gets an error for the flow route and a warning for the peer whose address is the next hop.

Migration required: run exabgp configuration validate and correct each line it reports. See More Routes the Configuration Refuses.

25. AIGP Is On by Default for iBGP (LOW)

ExaBGP 5.x: AIGP was sent to iBGP peers but discarded on receipt, and aigp false did not stop it being sent.

ExaBGP 6.0.0: with aigp unset, AIGP is sent and accepted towards iBGP peers and members of our confederation (RFC 7311 3.3). aigp disable; stops it both ways, and an AIGP received on a disabled session is logged. An AIGP at its maximum value is discarded on receipt.

Who is affected: API programs on iBGP sessions, which may now see aigp on received routes.

Migration required: aigp disable; in the capability block to keep it off. See AIGP Is On by Default for iBGP.

26. What the API Is Given for Received Routes (LOW)

ExaBGP 5.x: extended community types sharing a class with an unrelated one were read as a traffic action, BGP-LS used Protocol-ID 227 for Static, and several BGP-LS TLVs were read from the wrong bit or length. Several malformed inputs reset the session.

ExaBGP 6.0.0: extended communities are decoded by their whole type, so Source AS, BGP Data Collection, L2VPN Identifier and Route Aggregation show as hex; redirect 0x8108 and 0x8208 are decoded. BGP-LS Protocol-ID 4 is Direct and 5 Static (RFC 9552), 227 is kept for freertr, and the SRv6 Capabilities O flag, Link Protection Type flags, one octet IGP metric, three octet labels, OSPF Adj-SID SID and an empty SR-Algorithm show different values. A malformed BGP-LS NLRI, MUP route or 12 octet VPLS NLRI is skipped instead of resetting the session, and MUP route types the draft does not define are ignored; any other VPLS NLRI shorter than 17 octets resets the session with 3/10. A 0x8208 redirect whose AS is below 65536 reads redirect:<asn>L:<n>, where 5.x printed the two octet AS form. A malformed NEXT_HOP is ignored when the routes are all in MP_REACH_NLRI, confederation segments from an EBGP neighbour are malformed without a confederation too (RFC 5065 5), and each malformed UPDATE is logged once as an error, update.malformed, with its NLRI and its bytes (RFC 7606 6).

Who is affected: programs reading BGP-LS, MUP or extended communities from the JSON API.

Migration required: check what the program keys on. See What the API Is Given for Received Routes.

27. Wire Changes from the RFC Audit (LOW)

ExaBGP 6.0.0 also changes what an unchanged configuration sends: the Software Version capability in the current draft format (both formats accepted), a MUP Type 1 Session Transformed route with its Source Address Length octet, an SR Policy IPv4 next hop under AFI 2 in 4 octets, an OTC naming a member AS sent as the confederation identifier outside it, non-transitive IPv6 address specific extended communities removed towards EBGP, keepalive and connection retry timers jittered by a factor between 0.75 and 1, a Cease sent by teardown and disable under Graceful Restart, and ROUTE-REFRESH, OPERATIONAL and a manual End-of-RIB only to a peer which negotiated them. A warning is logged when a route sent to an external peer has an AS_PATH which does not start with our AS; what is sent is unchanged. A labelled unicast or VPN route is withdrawn with one Compatibility field of 0x800000 in place of its labels (RFC 8277 2.4), an UPDATE sent restarts the keepalive timer (RFC 4271 8.2.2), an Extended Next Hop capability with no family is not sent, flow flags joined with + are OR-ed (syn+syn was sent as rst), and routes differing only by path-information are one route to a peer without ADD-PATH. An OPEN with octets after its Optional Parameters is refused with 2/0, and an IPv4 route with an IPv6 next hop is accepted for each family our OPEN offered (RFC 8950 4).

Who is affected: anyone comparing captures, or relying on a route refresh sent to a peer which never advertised it.

Migration required: none. See What Changes on the Wire.

28. A Peer Reconnecting under Graceful Restart Replaces Its Session (LOW)

ExaBGP 5.x: a new connection from a peer whose session was established was refused, and in OpenSent every new connection replaced ours.

ExaBGP 6.0.0: a peer which advertised Graceful Restart replaces its established session once the new connection has sent a valid OPEN, the old one closed without a NOTIFICATION and its routes kept stale (RFC 4724 4.2). A collision in OpenSent is decided by BGP Identifier, then AS number (RFC 4271 6.8, RFC 6286 2.3).

Who is affected: nobody needs to change anything.

Migration required: none. See A Peer Connecting Again, and Connection Collisions.

29. Templates Give Defaults: The Neighbor's Values Win (HIGH)

ExaBGP 5.x: a value set both in a template and in the neighbor inheriting it was the template's, the neighbor's discarded without a word: hold-time 30; in a neighbor whose template said hold-time 60; gave 60. With several templates the last one listed won, a template written below the neighbor was ignored, and so was an inherit inside a template.

ExaBGP 6.0.0: a template gives its neighbors their defaults. What the neighbor says itself wins, then each template in the order it is listed, a template's own values winning over those of the templates it inherits. A template is found wherever it is written, and inheriting one which does not exist logs a warning. Lists still add up: the routes, the families and the API processes of the neighbor and of its templates are all kept.

Who is affected: a configuration which sets the same value in a template and in a neighbor using it. Its sessions now use the neighbor's value, the one written next to the neighbor.

Migration required: look for values given in both places, and keep the one you meant. See Templates Give Defaults.

30. Configuration Mistakes 5.x Accepted Are Refused (MEDIUM)

ExaBGP 5.x: accepted these, losing or misreading what was written.

ExaBGP 6.0.0: refuses them when the configuration loads, each with the line and the reason:

  • a } which closes no section (5.x stopped reading the file there) and a section left open at the end of the file
  • a process without a name or with a character other than a letter, a digit, ., - or _, and a word after the name of a section (neighbor 127.0.0.1 extra {)
  • an api naming a process which is not defined, or a processes-match matching none
  • family { ipv4 unicast; all; }: all with another family
  • a prefix whose mask is no number, 10.0.0.0/x (5.x took the host route 10.0.0.0/32)
  • a prefix of the other family in announce { ipv4 { ... } } or ipv6, or in one attributes ... nlri line (5.x sent 10.0.0.0/24 as the IPv6 prefix a00::/24)
  • a word bgp-prefix-sid does not expect, and a word after the sub-TLVs of an sr-policy
  • a flow condition ending on &, port 80&
  • an rd on an announce ipv4 flow line, which belongs on flow-vpn
  • an attribute given in the l2vpn section outside a vpls route (5.x added it to the last route read, a static one included)
  • a route given two next-hop, as any attribute given twice; an API command keeps the first and logs the other
  • two different prefix limits for one family in two family blocks
  • a quote in the middle of a word, ab"cd" (5.x read abcd)
  • an operational message with a word it does not name (5.x dropped it)

Who is affected: a configuration holding one of them will not load.

Migration required: run exabgp configuration validate and correct each line it reports. See Configuration Mistakes Which Are Now Refused.

31. Configuration Lines 6.0 Reads Differently (LOW)

ExaBGP 6.0.0 reads these as they are written, where 5.x did something else:

  • a boolean keyword given alone is true: adj-rib-in;, adj-rib-out;, manual-eor;, shutdown;, software-version; and md5-base64; were false in 5.x
  • add-path { all; } negotiates ADD-PATH for every family, where 5.x negotiated it for none
  • "it's" is a word: inside quotes the other quote character is an ordinary character
  • the prefix limits of two family blocks add up, where the last block's replaced the others
  • an operational message reads its values by name, in any order, router-id included, and two operational blocks add up; a counter above 32 bits is refused
  • an API advisory is all the text after advisory, without its quotes: 5.x sent "hello for advisory "hello world"
  • route-distinguisher on a one-line flow route is its rd (5.x refused the route)
  • two IPv6 flow actions, copy or redirect-to-nexthop-ietf, are both sent (5.x dropped one)
  • an md5-ip is kept with local-address auto
  • a flow route takes its family from what it matches, not from the route written before it
  • a file ending on a continuation line (\) reads its last line once (5.x read it twice)

Who is affected: a configuration using one of these and relying on what 5.x did.

Migration required: none for most; check add-path { all; } and any boolean written alone.

New Features (Non-Breaking)

While not breaking changes, 6.0.0 adds major features:

  • ✅ No ; at the End of a Line - the end of a line ends a statement, and hold-time 30 } is hold-time 30; then }. A ; is still accepted, and separates two statements on one line
  • ✅ RT-Constraint - family { ipv4 rtc; } and announce ipv4 rtc origin-as ... route-target ..., RFC 4684 route target membership. See RT Constraint
  • ✅ Disable/Enable a Neighbour - neighbor <ip> disable [<text>] and enable, and shutdown true; in a neighbor, issue #1013
  • ✅ ADD-PATH for FlowSpec - negotiated for the flow families, and path-information on a flow route, issue #1140. With add-path send/receive and no add-path { } block the flow families are now offered too, where 5.x silently left them out: list the wanted families in an add-path { } block to keep flow without it. See ADD-PATH for FlowSpec
  • ✅ Required Capabilities - e.g. asn4 require; refuses a peer which does not advertise it
  • ✅ Prefix Limit - ipv4 unicast prefix-limit 10000;
  • ✅ Confederations - RFC 5065, a neighbor confederation { identifier; members; } block, issue #96. See Confederations
  • ✅ api.terminate - now stops ExaBGP as soon as a process exits, not only when writing to it fails
  • ✅ Two new JSON keys - link-local-next-hop and enlp-name, both additive
  • ✅ Flow Validation - flow-validation enable; holds back a flow route with no matching unicast route (RFC 8955 6)
  • ✅ Graceful Restart - the routes of a peer whose session is lost stay in the adj-rib-in, stale, until its End-of-RIB or its Restart Time (RFC 4724)
  • ✅ Multiple Labels - capability { multiple-labels N; } (RFC 8277)
  • ✅ OPEN without capabilities - a peer refusing our OPEN with 2/4 is sent one without capabilities (RFC 5492 3)
  • ✅ asyncio Event Loop - the reactor runs on Python's asyncio, and an API callback can be a coroutine
  • ✅ Shell Completion - Bash, Zsh, Fish support
  • ✅ Enhanced CLI - Tab completion, JSON pretty-printing
  • ✅ Health Monitoring - session ping and daemon status API commands
  • ✅ Migration Tool - exabgp migrate for automatic conversion
  • ✅ Type Annotations - Better IDE support

See 5.x → 6.0.0 Migration Guide for complete details.


ExaBGP 5.0.0 (Current Stable)

Version: ExaBGP 4.x → 5.0.0 Release: November 2025 Severity: 🔴 HIGH - Multiple breaking changes requiring careful migration

⚠️ Breaking Changes in 5.0.0

ExaBGP 5.0.0 introduces SIGNIFICANT breaking changes compared to 4.x. This is the largest release in ExaBGP history (871 commits and 917 files changed since 4.2.25).

1. Python Version Requirements (CRITICAL)

ExaBGP 4.x:

  • Python 2.7 (deprecated but supported)
  • Python 3.6+

ExaBGP 5.0.0:

  • ❌ Python 2.x completely removed
  • ❌ Python 3.6-3.7 no longer supported
  • ✅ Python 3.8+ minimum (3.9+ recommended)
  • ✅ Python 3.13 tested and supported

Who is affected: Everyone running Python < 3.8

Migration required: Upgrade Python before upgrading ExaBGP

2. JSON API Format Changes (HIGH IMPACT)

AS-PATH Format Changed

ExaBGP 4.x:

{"attribute": {"as-path": [65001, 65002, 65003]}}

ExaBGP 5.0.0:

{"attribute": {"as-path": {"0": {"element": "as-sequence", "value": [65001, 65002, 65003]}}}}

Important: Each segment is a numbered object with element, the segment type (as-sequence or as-set; 5.x also names the confederation segments as-sequence), and value, the list of ASNs.

Example with multiple segment types:

{"attribute": {"as-path": {"0": {"element": "as-set", "value": [65001, 65002]}, "1": {"element": "as-sequence", "value": [65003, 65004]}}}}

This represents an AS_SET followed by an AS_SEQUENCE.

Who is affected: Programs using JSON encoder and parsing AS-PATH

Migration required: Update JSON parsers to:

  1. Handle AS-PATH as an object of segments instead of an array
  2. Read element to identify segment types (if needed for your use case)
BGP-LS Field Names Changed

ExaBGP 4.x:

  • sr_capability_flags (underscore)
  • interface-address (singular)
  • neighbor-address (singular)

ExaBGP 5.0.0:

  • sr-capability-flags (hyphen)
  • interface-addresses (plural)
  • neighbor-addresses (plural)

Who is affected: Programs using JSON encoder with BGP-LS

Migration required: Update field names in parsers

3. Configuration Syntax Changes (MEDIUM IMPACT)

FlowSpec Fragment Syntax
  • 4.x: not-a-fragment
  • 5.0.0: !is-fragment
TCP Connection Attempts

⚠️ Note: tcp.attempts is an internal/debugging option, not recommended for production use.

  • 4.x: Environment variable exabgp.tcp.once=true
  • 5.0.0: Environment variable exabgp.tcp.attempts=1 (tcp.once deprecated)

Who is affected: Users setting the exabgp.tcp.once environment variable

Migration required: Update environment variable from exabgp.tcp.once to exabgp.tcp.attempts

Correct usage: Set as environment variable (export exabgp_tcp_attempts=1) or in INI config [exabgp.tcp] section. NOT as a neighbor-level tcp { } block.

4. Deprecated Features Removed (MEDIUM IMPACT)

Prefix-SID Type-2 and Type-4

ExaBGP 4.x:

  • Type-1 (Label-Index) ✅
  • Type-2 (deprecated) ⚠️
  • Type-3 (Originator SRGB) ✅
  • Type-4 (deprecated) ⚠️

ExaBGP 5.0.0:

  • Type-1 (Label-Index) ✅
  • Type-2 REMOVED ❌
  • Type-3 (Originator SRGB) ✅
  • Type-4 REMOVED ❌
  • Type-5 (SRv6 L3 Service) ✅ (already in 4.x)
  • Type-6 (SRv6 L2 Service) ✅ NEW

Who is affected: Users of Prefix-SID Type-2 or Type-4

Migration required: Migrate to Type-1, Type-3, Type-5, or Type-6

Hostname Capability

ExaBGP 4.x: Not sent ExaBGP 5.0.0: Sent by default, with no setting to stop it; host-name and domain-name set the names it carries

Who is affected: Peers which react to the hostname capability

Migration required: None

Syslog Facility

ExaBGP 4.x: Facility user ExaBGP 5.0.0: Facility daemon

Who is affected: Syslog parsers and filters

Migration required: Update syslog configuration

New Features (Non-Breaking)

While not breaking changes, 5.0.0 adds major features:

  • ✅ SRv6 - Complete Segment Routing over IPv6
  • ✅ BGP-MUP - Mobile User Plane SAFI
  • ✅ RFC 9072 - Extended Optional Parameters Length
  • ✅ ACK Runtime Control - disable-ack, enable-ack, silence-ack commands
  • ✅ Security Fixes - TOCTOU vulnerability fixed
  • ✅ Official Docker Images - ghcr.io/exa-networks/exabgp:5.0.0

See 4.x → 5.0.0 Migration Guide for complete details.


ExaBGP 4.x Series

No Breaking Changes

ExaBGP 4.x has maintained API and configuration compatibility throughout the 4.0 → 4.2.x series.

Stable versions:

  • 4.0.x → 4.1.x → 4.2.x (All compatible)
  • No breaking changes in API
  • No breaking changes in configuration syntax
  • Safe to upgrade within 4.x series

Minor changes (non-breaking):

  • New features added (opt-in)
  • Bug fixes
  • Performance improvements
  • New address family support (EVPN, BGP-LS, etc.)

ExaBGP 3.x → 4.x

Version: ExaBGP 3.4.x → 4.0.0 Release: May 2017 Severity: 🟡 MODERATE - Configuration and some API changes

Configuration Syntax Changes

ExaBGP 4.x introduced configuration syntax changes requiring file updates.

Impact: Configuration files need manual updates when upgrading from 3.x

Who Is Affected

✅ Affected:

  • Configuration files from 3.x
  • Some API command syntax
  • JSON output format consumers

❌ Not affected:

  • New deployments starting with 4.x
  • Programs written for 4.x+

Command-Line Changes

Command-line arguments and behavior changed between 3.x and 4.x.

Impact: Shell scripts invoking ExaBGP may need updates

JSON Format Changes

JSON encoder output format changed between 3.x and 4.x.

Impact: Programs parsing JSON output need updates

Who Is Affected

✅ Affected:

  • Programs using encoder json
  • Scripts parsing ExaBGP JSON output
  • Monitoring integrations reading JSON

Migration Strategy

Upgrade path: 3.x → 4.2.x → 5.x (stable, recommended)

Resources:

  • Version Differences - Detailed version comparison
  • Configuration examples in /etc/exabgp/ directory use 4.x/5.x syntax

Note: ExaBGP 3.x is deprecated and no longer maintained. All users should upgrade to 5.x (stable).


Summary Table

All Breaking Changes by Version

Version Change Type Severity Workaround Available?
5.x→6.0.0 Python 3.12+ required Runtime 🔴 Critical ❌ No (upgrade Python)
5.x→6.0.0 BGP-LS ip-reachability-tlv gains the prefix length API Output 🔴 High ❌ No (parser updates)
5.x→6.0.0 BGP-LS sr-adj → sr-adjs API Output 🔴 High ❌ No (parser updates)
5.x→6.0.0 BGP-LS remote-te-router-id → remote-router-ids API Output 🔴 High ❌ No (parser updates)
5.x→6.0.0 role { otc disable; } and otc none removed Config 🔴 Critical ❌ No (RFC 9234 forbids the option)
5.x→6.0.0 Attributes in ascending order with MP_REACH first, announce/withdraw split, one Capabilities parameter Protocol 🟡 Medium ❌ No (RFC conformance)
5.x→6.0.0 Four NOTIFICATION subcodes corrected Protocol 🟡 Medium ❌ No (RFC conformance)
5.x→6.0.0 incoming-ttl enforces the IPv4 inbound check Protocol 🟡 Medium ⚠️ Yes (remove incoming-ttl)
5.x→6.0.0 NOTIFICATION codes and Data fields, RFC 7313 BoRR/EoRR Protocol 🟡 Medium ❌ No (RFC conformance)
5.x→6.0.0 teardown takes a code and a subcode API Input 🟢 Low ✅ Yes (one number unchanged)
5.x→6.0.0 Only prefix-limit may follow a family Config 🟢 Low ❌ No (delete the extra words)
5.x→6.0.0 Routes of an API 6 process which exits are withdrawn API 🟢 Low ✅ Yes (on-exit keep;)
5.x→6.0.0 Received AS_SET / AS_CONFED_SET treated as withdrawn Protocol 🟡 Medium ✅ Yes (as-set accept;)
5.x→6.0.0 AS path text brackets swapped back to the configuration's API Output 🟢 Low ❌ No (parser updates)
5.x→6.0.0 SR Policy needs NO_ADVERTISE or an IPv4-address Route Target, and its Tunnel Encapsulation Config 🔴 High ✅ Yes (add the community or Route Target)
5.x→6.0.0 Second flow destination or source, next hop equal to the peer, raw attributes 14/15/17/18, AIGP maximum, l2info MBZ flags, MUP TEID 0 refused Config 🟡 Medium ❌ No (correct the line)
5.x→6.0.0 AIGP on by default for iBGP and confederation members Protocol 🟢 Low ✅ Yes (aigp disable;)
5.x→6.0.0 incoming-ttl checked per neighbour on the accepted connection Protocol 🟡 Medium ❌ No (RFC conformance)
5.x→6.0.0 Extended community look-alikes as hex, BGP-LS Protocol-ID 4/5 and TLV values API Output 🟢 Low ❌ No (parser updates)
5.x→6.0.0 MUP prefix past its address, flow fragment reserved bits, link-local next hop to a multihop neighbour refused Config 🟢 Low ❌ No (correct the line)
5.x→6.0.0 Labelled withdrawals carry the 0x800000 Compatibility field, keepalive restarted by UPDATEs, no empty Extended Next Hop capability Protocol 🟢 Low ❌ No (RFC conformance)
5.x→6.0.0 0x8208 redirect below AS 65536 printed redirect:<asn>L:<n>, one update.malformed error per malformed UPDATE API Output 🟢 Low ❌ No (parser updates)
4.x→5.0.0 Python 3.8+ required Runtime 🔴 Critical ❌ No (upgrade Python)
4.x→5.0.0 AS-PATH JSON format API Output 🔴 High ❌ No (parser updates)
4.x→5.0.0 BGP-LS field names API Output 🔴 High ❌ No (parser updates)
4.x→5.0.0 Config syntax changes Config 🟡 Medium ❌ No (manual updates)
4.x→5.0.0 Prefix-SID Type-2/4 removed Protocol 🟡 Medium ⚠️ Yes (use Type-1/3/5/6)
4.x (No breaking changes) - - -
3.x→4.x Configuration syntax Config 🟡 Moderate ❌ No (manual migration)
3.x→4.x CLI arguments CLI 🟡 Moderate ❌ No (script updates)
3.x→4.x JSON format API Output 🟡 Moderate ❌ No (parser updates)

Compatibility Matrix

API Program Compatibility

API Program Written For Runs on 3.x Runs on 4.x Runs on 5.0.0 Runs on 6.0.0
ExaBGP 3.x ✅ Yes ⚠️ Maybe ⚠️ Maybe ⚠️ Maybe
ExaBGP 4.x (Text API) ❌ No ✅ Yes ✅ Yes ✅ Yes
ExaBGP 4.x (JSON API) ❌ No ✅ Yes ❌ No (AS-PATH changed) ❌ No (AS-PATH changed)
ExaBGP 5.x (Text API) ❌ No ✅ Yes ✅ Yes ✅ Yes
ExaBGP 5.x (JSON API) ❌ No ❌ No ✅ Yes ⚠️ BGP-LS changed
ExaBGP 6.0.0 (Text API) ❌ No ✅ Yes ✅ Yes ✅ Yes
ExaBGP 6.0.0 (JSON API) ❌ No ❌ No ⚠️ BGP-LS incompatible ✅ Yes

Important:

  • JSON API programs from 4.x will NOT work on 5.0.0+ without updates (AS-PATH format changed)
  • JSON API programs from 5.x using BGP-LS will NOT work on 6.0.0 without updates (field names changed)
  • Text API programs are compatible across versions

Configuration File Compatibility

Config Written For Works on 3.x Works on 4.x Works on 5.0.0 Works on 6.0.0
ExaBGP 3.x ✅ Yes ❌ No ❌ No ❌ No
ExaBGP 4.x ❌ No ✅ Yes ⚠️ Mostly ⚠️ Mostly
ExaBGP 5.x ❌ No ⚠️ Mostly ✅ Yes ⚠️ Unless it holds a line 6.0.0 refuses
ExaBGP 6.0.0 ❌ No ⚠️ Mostly ✅ Yes ✅ Yes

Important:

  • 4.x configs work on 5.0.0+ with minor updates: not-a-fragment → !is-fragment
  • 5.x configs work on 6.0.0 unless they use role { otc disable; } or a per-route otc none, which were removed, have anything but prefix-limit N after a family, or hold a route 6.0.0 refuses (an SR Policy without NO_ADVERTISE or a Route Target, a second flow destination, a next hop which is the peer's address, a MUP prefix longer than its address, a flow fragment with a reserved bit, see item 24). exabgp configuration validate lists them
  • Use exabgp migrate conf to automatically convert configurations

Migration Paths

From 5.x to 6.0.0

Migration recommended for new features. 6.0.0 has some breaking changes.

  1. Verify Python version (must be 3.12+)
  2. Remove otc disable and otc none (grep -rn otc /etc/exabgp/), or ExaBGP will not start
  3. Run migration tool (exabgp migrate conf -f 5 -t main)
  4. Validate the result (exabgp configuration validate), and add NO_ADVERTISE or a Route Target to SR Policy routes
  5. Update BGP-LS JSON parsers (if using BGP-LS with JSON)
  6. Test under load
  7. Test thoroughly in staging environment
  8. Deploy to production with rollback plan

Estimated effort:

  • Text API only: 30 minutes (test your API programs)
  • JSON API (no BGP-LS): 30 minutes
  • JSON API (with BGP-LS): 2-4 hours (parser updates)

Resources: ExaBGP 5.x → 6.0.0 Migration Guide


From 3.x to 4.x

  1. Update configuration files (manual syntax changes required)
  2. Test in non-production environment
  3. Update API programs if using JSON parser
  4. Update shell scripts if using CLI
  5. Deploy to production

Resources:


From 4.x to 5.0.0

Migration required. 5.0.0 has breaking changes from 4.x.

  1. Verify Python version (must be 3.8+)
  2. Update configuration syntax (FlowSpec)
  3. Update JSON API parsers (AS-PATH, BGP-LS field names)
  4. Check for deprecated features (Prefix-SID Type-2/4)
  5. Update environment variables (exabgp.tcp.once → exabgp.tcp.attempts, if used)
  6. Test thoroughly in staging environment
  7. Deploy to production with rollback plan

Estimated effort:

  • Text API only: 1-2 hours (config updates)
  • JSON API: 4-8 hours (config + parser updates)

Resources: ExaBGP 4.x → 5.0.0 Migration Guide


From 3.x to 6.0.0 (Direct Upgrade)

Not recommended. Use multi-step migration:

  1. 3.x → 4.x: Update config, test thoroughly
  2. 4.x → 5.x: Update Python to 3.8+, JSON parsers
  3. 5.x → 6.0.0: Update Python to 3.12+, BGP-LS parsers

Why multi-step?

  • Multiple breaking changes across versions
  • Better to isolate issues and test separately
  • Easier rollback if problems occur

From 3.x to 5.0.0 (Direct Upgrade)

Not recommended. Use two-step migration:

  1. 3.x → 4.x: Update config, test thoroughly (see 3.x → 4.x guide)
  2. 4.x → 5.0.0: Update Python, config, JSON parsers (see 4.x → 5.0.0 guide)

Why two steps?

  • Both upgrades have breaking changes
  • Better to isolate issues and test separately
  • Easier rollback if problems occur

Recommended: Upgrade directly to 5.x (current stable) or via 4.x for staged migration.


Future Breaking Changes

ExaBGP Development Policy

  • 6.0.0 (main branch): Development branch with latest features
  • 5.0.x: stable, recommended for production (latest release 5.0.13)
  • 4.x branch: Maintenance mode - critical fixes only, no new features
  • Major versions: Reserved for breaking changes

How to Stay Updated


Testing for Breaking Changes

Before Upgrading Production

Checklist:

  1. Read release notes for your target version
  2. Check this document for breaking changes
  3. Test in isolated environment:
    • Configuration file loads without errors
    • BGP sessions establish correctly
    • API programs work as expected
    • No unexpected behavior changes
  4. Run parallel (new version alongside old, if possible)
  5. Monitor logs for errors after upgrade
  6. Have rollback plan ready

Rollback Testing

Before upgrading production:

  1. Document current version: exabgp version
  2. Backup configuration files
  3. Test downgrade procedure in non-production
  4. Verify rollback works end-to-end
  5. Document rollback steps for operations team

Version Terminology

Term Meaning Example
Major version Breaking changes possible 3.x → 4.x → 5.0.0
Minor version New features, backwards-compatible 4.0 → 4.1 → 4.2
Patch version Bug fixes only 4.2.0 → 4.2.1 → 4.2.25 or 5.0.0 → 5.0.1

ExaBGP follows semantic versioning principles:

  • Major version bump = breaking changes
  • Minor version bump = new features (compatible)
  • Patch version bump = bug fixes (compatible)

See Also

Migration Guides

API Documentation

Operations


Clone this wiki locally