summaryrefslogtreecommitdiffstats
path: root/bgpd/rfapi
diff options
context:
space:
mode:
authorpaco <paco@voltanet.io>2018-06-13 11:09:17 +0200
committerpaco <paco@voltanet.io>2018-06-13 18:17:56 +0200
commitcab3b126cab242c2621bd675ff85c587476572d3 (patch)
tree912017e304790192d2db9ffaf04a49d53ae9eb49 /bgpd/rfapi
parentMerge pull request #2298 from qlyoung/pipe-actions-vtysh (diff)
downloadfrr-cab3b126cab242c2621bd675ff85c587476572d3.tar.xz
frr-cab3b126cab242c2621bd675ff85c587476572d3.zip
bgpd: dead code removal (Coverity 1399389)
Signed-off-by: F. Aragon <paco@voltanet.io>
Diffstat (limited to 'bgpd/rfapi')
-rw-r--r--bgpd/rfapi/bgp_rfapi_cfg.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/bgpd/rfapi/bgp_rfapi_cfg.c b/bgpd/rfapi/bgp_rfapi_cfg.c
index 3e9722d92..2f9332888 100644
--- a/bgpd/rfapi/bgp_rfapi_cfg.c
+++ b/bgpd/rfapi/bgp_rfapi_cfg.c
@@ -1389,43 +1389,6 @@ DEFUN (vnc_export_mode,
vty_out(vty,
"Changing modes for zebra export not implemented yet\n");
return CMD_WARNING_CONFIG_FAILED;
-
- oldmode = bgp->rfapi_cfg->flags
- & BGP_VNC_CONFIG_EXPORT_ZEBRA_MODE_BITS;
- bgp->rfapi_cfg->flags &= ~BGP_VNC_CONFIG_EXPORT_ZEBRA_MODE_BITS;
- switch (argv[4]->arg[0]) {
- case 'g':
- if (oldmode == BGP_VNC_CONFIG_EXPORT_ZEBRA_MODE_RH) {
- /* TBD */
- }
- bgp->rfapi_cfg->flags |=
- BGP_VNC_CONFIG_EXPORT_ZEBRA_MODE_GRP;
- if (oldmode != BGP_VNC_CONFIG_EXPORT_ZEBRA_MODE_GRP) {
- /* TBD */
- }
- break;
- case 'n':
- if (oldmode == BGP_VNC_CONFIG_EXPORT_ZEBRA_MODE_RH) {
- /* TBD */
- }
- if (oldmode == BGP_VNC_CONFIG_EXPORT_ZEBRA_MODE_GRP) {
- /* TBD */
- }
- break;
- case 'r':
- if (oldmode == BGP_VNC_CONFIG_EXPORT_ZEBRA_MODE_GRP) {
- /* TBD */
- }
- bgp->rfapi_cfg->flags |=
- BGP_VNC_CONFIG_EXPORT_ZEBRA_MODE_RH;
- if (oldmode != BGP_VNC_CONFIG_EXPORT_ZEBRA_MODE_RH) {
- /* TBD */
- }
- break;
- default:
- vty_out(vty, "Invalid mode\n");
- return CMD_WARNING_CONFIG_FAILED;
- }
}
return CMD_SUCCESS;