Hi,
Yes, it restarts when to enable and when you disable as well. Here is quick test:
[edit]
root@vMX4# run show bgp summary
Groups: 1 Peers: 1 Down peers: 0
Table Tot Paths Act Paths Suppressed History Damp State Pending
inet.0
0 0 0 0 0 0
bgp.l3vpn.0
8 8 0 0 0 0
Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped...
10.2.1.100 6553514725 14902 0 0 4d 15:39:56 Establ
inet.0: 0/0/0/0
bgp.l3vpn.0: 8/8/8/0
VRF.inet.0: 4/8/8/0
[edit]
root@vMX4# set routing-options graceful-restart
[edit]
root@vMX4# show | compare
[edit routing-options]
+ graceful-restart;
[edit]
root@vMX4# commit
[edit]
commit complete
[edit]
root@vMX4# run show bgp summary
Groups: 1 Peers: 1 Down peers: 1
Table Tot Paths Act Paths Suppressed History Damp State Pending
inet.0
0 0 0 0 0 0
bgp.l3vpn.0
0 0 0 0 0 0
Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped...
10.2.1.100 655350 0 0 0 7 Active
[edit]
root@vMX4# run show bgp summary
Groups: 1 Peers: 1 Down peers: 0
Table Tot Paths Act Paths Suppressed History Damp State Pending
inet.0
0 0 0 0 0 0
bgp.l3vpn.0
8 8 0 0 0 0
Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped...
10.2.1.100 65535 12 4 0 0 1 Establ
inet.0: 0/0/0/0
bgp.l3vpn.0: 8/8/8/0
VRF.inet.0: 4/8/8/0
root@vMX4# delete routing-options graceful-restart
[edit]
root@vMX4# show | compare
[edit routing-options]
- graceful-restart;
[edit]
root@vMX4# commit
[edit]
commit complete
[edit]
root@vMX4#
[edit]
root@vMX4# run show bgp summary
Groups: 1 Peers: 1 Down peers: 1
Table Tot Paths Act Paths Suppressed History Damp State Pending
inet.0
0 0 0 0 0 0
bgp.l3vpn.0
0 0 0 0 0 0
Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped...
10.2.1.100 65535 0 0 0 0 5 Active
[edit]
root@vMX4# run show bgp summary
Groups: 1 Peers: 1 Down peers: 0
Table Tot Paths Act Paths Suppressed History Damp State Pending
inet.0
0 0 0 0 0 0
bgp.l3vpn.0
8 8 0 0 0 0
Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped...
10.2.1.100 65535 19 9 0 0 2:53 Establ
inet.0: 0/0/0/0
bgp.l3vpn.0: 8/8/8/0
VRF.inet.0: 4/8/8/0