The local role attribute can be set multiple times and does not get replaced.
I think it's either a missing constraint or a missing feature in the interface definition parser that would enable one to add such a constraint to a node with a leaf.
[edit]
peter@bbr00.nbg.de# set vrf name net protocols bgp neighbor xxx:1::1:5 local-role peer
[edit]
peter@bbr00.nbg.de# compare
[vrf name net protocols bgp neighbor xxx:1::1:5 local-role]
+ peer {
+ }Expected would be something similar to this:
[edit] peter@bbr00.nbg.de# set vrf name net protocols bgp neighbor xxx:1::1:5 remote-as xxx222 [edit] peter@bbr00.nbg.de# compare [vrf name net protocols bgp neighbor xxx:1::1:5] - remote-as "xxx292" + remote-as "xxx222"