diff options
Diffstat (limited to 'ospfd/ospf_te.c')
| -rw-r--r-- | ospfd/ospf_te.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/ospfd/ospf_te.c b/ospfd/ospf_te.c index 2e7b420161..ec9a14590d 100644 --- a/ospfd/ospf_te.c +++ b/ospfd/ospf_te.c @@ -2304,12 +2304,9 @@ DEFUN (no_ospf_mpls_te, MPLS_TE_STR "Disable the MPLS-TE functionality\n") { + VTY_DECLVAR_CONTEXT(ospf, ospf); struct listnode *node, *nnode; struct mpls_te_link *lp; - struct ospf *ospf = vty->index; - - if (!ospf) - return CMD_SUCCESS; if (OspfMplsTE.status == disabled) return CMD_SUCCESS; |
