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] [email protected]# set vrf name net protocols bgp neighbor xxx:1::1:5 local-role peer [edit] [email protected]# compare [vrf name net protocols bgp neighbor xxx:1::1:5 local-role] + peer { + }
Expected would be something similar to this:
[edit] [email protected]# set vrf name net protocols bgp neighbor xxx:1::1:5 remote-as xxx222 [edit] [email protected]# compare [vrf name net protocols bgp neighbor xxx:1::1:5] - remote-as "xxx292" + remote-as "xxx222"