Here is the config, but i don't suggest you head down this path, upgrade to 5.3.2 or 5.3.3 (Jan) and use NSR (None Stop Routing).. GR capability has to be negotiated with peers..
!! IOS XR Configuration 5.3.2
router bgp 64524
I didn´t find per neigh as you described it, but:
!! IOS XR Configuration 5.3.3
router bgp XYZ
Activate under BGP and disable it per neigh, At the end, same result,
It is on ASR9k, i'll checkit on CRS...
I tried this configuration of GR per NBR in 5.2.4 and 5.3.3 and when I commit it, the commit fails and I see the following warning:
!!% 'BGP' detected the 'warning' condition 'Graceful-restart has not been enabled globally'
The changes do not take place. Is this expected behaviour? Is there any way to configure GR per neighbor without having to configure it globally?