QFX5k devices does not return the correct or in some cases any amount of BGP sessions. When using json encoding.
gnmic -a 20.20.20.2:32767 --insecure sub --path '/network-instances/network-instance/protocols/protocol/bgp/neighbors/' -e json --mode once --config config.yml -- format event
Switch doesn't return all the information.
Problem will be addressed in the codes below:
Resolved-In
evo:21.4R3-S7-EVO evo:22.3X50-EVO evo:22.3X80-D40-EVO evo:23.2R2-EVO evo:23.4R2-EVO evo:24.1R1-EVO junos:21.4R3-S7 junos:22.4R3 junos:23.2R2 junos:23.4R2 junos:24.1R1
As a workaround you can use encoding protobuff:
gnmic -a 20.20.20.2:32767 --insecure sub --path '/network-instances/network-instance/protocols/protocol/bgp/neighbors/' -e proto --mode once --config config.yml -- format event