«inheritance» is strictly an apply-groups subject.
This is not the case here.
Therefore your synthesis about what is applied is shown by looking at the neighbor from operational commands (show bgp neighbor).
Original Message:
Sent: 10-21-2025 05:42
From: DANIEL NG
Subject: bug or feature in BGP hierarchy levels
i understand the rationale if the higher level is global where no lower levels can disable the config without a specific command, but in the example of bgp, the neighbors that don't want the inheritance can just be placed in another bgp group.
this way they can still enjoy the config inherited from group level.
moreover, is there a way to quickly tell which type of config always overrides higher level without using 'display inheritance' every time to check?
or does junos just blanket overrides any higher levels?
------------------------------
DANIEL NG
Original Message:
Sent: 10-21-2025 04:15
From: Olivier Benghozi
Subject: bug or feature in BGP hierarchy levels
It's exactly what it's supposed to happen.
Because on a lower level, you can not cancel/avoid a family configured at a higher level (there are no commands for that). Therefore the whole family knob at a lower level supersedes the ones at higher levels.
------------------------------
Olivier Benghozi
Original Message:
Sent: 10-20-2025 22:38
From: DANIEL NG
Subject: bug or feature in BGP hierarchy levels
then it is abnormal behavior. can't call what's not supposed to happen a feature however observable it is.
will anyone from Juniper look into this?
version is 21.1R3.11
------------------------------
DANIEL NG
Original Message:
Sent: 10-20-2025 16:36
From: Olivier Benghozi
Subject: bug or feature in BGP hierarchy levels
Observable reality: if you configure «family» under both BGP protocol, group, and neighbor: only the families under the neighbor apply to this neighbor.
Same for «export». Same for «import».
------------------------------
Olivier Benghozi
Original Message:
Sent: 10-20-2025 11:13
From: DANIEL NG
Subject: bug or feature in BGP hierarchy levels
i believe that is only the case with conflicting scopes.
when there is no conflict, all config from different levels should be applied.
for example i should be able to have all neighbors in group level using ipv4 family and only some in neighbor level using inet-vpn family.
i don't remember seeing what i saw elsewhere in junos, only when using route-target and inet-vpn families together in this particular case.
------------------------------
DANIEL NG
Original Message:
Sent: 10-19-2025 17:45
From: Olivier Benghozi
Subject: bug or feature in BGP hierarchy levels
Not limited, if something (with dependant elements) can be defined at several levels, the smallest level will be the one that will be enforced for this neighbor.
By example it's the same thing (but properly documented) with «import» or «export»: Applying Routing Policies at Different Levels of the BGP Hierarchy
------------------------------
Olivier Benghozi
Original Message:
Sent: 10-19-2025 08:21
From: DANIEL NG
Subject: bug or feature in BGP hierarchy levels
is this behavior limited to BGP or just address families?
i don't seem to find an awful lot of documentation describing this behavior.
------------------------------
DANIEL NG
Original Message:
Sent: 10-19-2025 07:02
From: Olivier Benghozi
Subject: bug or feature in BGP hierarchy levels
Yes, if you define «family» at the neighbor level, only the families defined there are applied to this neighbor.
------------------------------
Olivier Benghozi
Original Message:
Sent: 10-18-2025 11:06
From: DANIEL NG
Subject: bug or feature in BGP hierarchy levels
just found that when configuring route-target and inet-vpn families in BGP, only the lower hierarchy level takes effect despite no conflict.
the route-target is in group level, the inet-vpn is in neighbor level.
route-target was added after inet-vpn. BGP summary shows the bgp.rtarget.0 table but the router does not even try to peer.
peering work as soon as route-target was moved down to neighbor level.
is this normal?
------------------------------
DANIEL NG
------------------------------