Seems like you are using local-address command in group or bgp hierarchy.
If you are using both IPv6 and Ipv4 neighbor, you can't configure only ipv4 or Ipv6 as local address in group or bgp hierarchy.
Each family neighbor needs local-address from the same family.
If you are using local-address as v6 address in group or bgp hierarchy, you will have to configure explict ipv4 local-address with ipv4 bgp neighbor
set protocol bgp group test local-address xxxx::x
set protocol bgp group test neighbor yyyy::1 peer-as xxx
set protocol bgp group test neighbor x.x.x.x local-address z.z.z.z peer-as yy
or vice-versa
root@mx480# commit check
[edit protocols]
'bgp'
Error in neighbor 10.0.0.1 of group test:
local and peer addresses must be from the same family
error: configuration check-out failed
[edit]
root@mx480#
[edit]
root@mx480# deactivate protocols bgp group test neighbor 10.0.0.1
[edit]
root@mx480# commit check
root@mx480# show protocols bgp
group test {
local-address 2222::2;
export as-path-prepend-global;
inactive: neighbor 10.0.0.1 {
peer-as 400;
}
neighbor 2300::1 {
peer-as 600;
}
neighbor 23.23.23.23 {
local-address 2.2.2.2;
peer-as 500;
}
}
[edit]
root@mx480#
HTH