bool use_json,
json_object *json)
{
- const char *mode = "NotReceived";
+ const char *mode = "NotApplicable";
if (!use_json)
vty_out(vty, "\n Remote GR Mode : ");
if (CHECK_FLAG(peer->cap, PEER_CAP_RESTART_ADV) &&
- (CHECK_FLAG(peer->cap, PEER_CAP_RESTART_RCV)) &&
(peer->status == Established)) {
if ((peer->nsf_af_count == 0) &&
/*Gr disabled case*/
mode = "Disable";
- } else if (peer->nsf_af_count == 0) {
+ } else if (peer->nsf_af_count == 0 &&
+ CHECK_FLAG(peer->cap, PEER_CAP_RESTART_RCV)) {
/* Helper */
mode = "Helper";
- } else if (peer->nsf_af_count != 0) {
+ } else if (peer->nsf_af_count != 0 &&
+ CHECK_FLAG(peer->cap, PEER_CAP_RESTART_RCV)) {
/* Restart */
mode = "Restart";