ospfd: add vrf option to operational command

Seperate the display option in both vty and json
case 'vrf' is used in show command.
   show ip ospf 'vrf all' [json]
   Display vrf name as key object in json and vrf name
   in vty output.
case 'vrf' is not used then only display default
   vrf ospf instance and vrf name is not shown in vty and
   json.

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
This commit is contained in:
Chirag Shah 2017-10-26 14:23:25 -07:00
parent e4715aed63
commit b1c3ae8ce3
2 changed files with 634 additions and 248 deletions

View File

@ -184,11 +184,8 @@ int ospf_bind_vrfdevice(struct ospf *ospf, int ospf_sock)
zlog_warn("%s: Could not setsockopt SO_BINDTODEVICE %s",
__PRETTY_FUNCTION__,
safe_strerror(save_errno));
} else {
zlog_debug("%s: Bind socket %d to vrf %s id %u device",
__PRETTY_FUNCTION__, ospf_sock,
ospf->name, ospf->vrf_id);
}
}
#endif
return ret;

File diff suppressed because it is too large Load Diff