summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_te.c
diff options
context:
space:
mode:
authorOlivier Dugeon <olivier.dugeon@orange.com>2016-12-20 15:02:34 +0100
committerPhilippe Guibert <philippe.guibert@6wind.com>2017-01-05 08:19:11 +0100
commitdaf0a4d29cdb24ca0125c6bd15a52be153fbbde3 (patch)
tree03536dd16aa60cb2305041be3edaf329fe2f9080 /ospfd/ospf_te.c
parentlib: add grammar_sandbox to .gitignore (diff)
downloadfrr-daf0a4d29cdb24ca0125c6bd15a52be153fbbde3.tar.xz
frr-daf0a4d29cdb24ca0125c6bd15a52be153fbbde3.zip
Rationalize Link Parameters flags
* lib/if.h: Remove LP_TE as Link Parameters is set if different from 0 See IS_LINK_PARAMS_SET macro and use LP_TE_METRIC to determine if TE metric is set or not * lib/if.c: replace LP_TE by LP_TE_METRIC in default LP status * zebra/interface.c: replace LP_TE by LP_TE_METRIC and check if TE metric is equal to standard metric or not * ospfd/ospf_te.c: replace LP_TE by LP_TE_METRIC * isisd/isis_te.c: replace LP_TE by LP_TE_METRIC Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
Diffstat (limited to 'ospfd/ospf_te.c')
-rw-r--r--ospfd/ospf_te.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ospfd/ospf_te.c b/ospfd/ospf_te.c
index c691aac04..4c5862e84 100644
--- a/ospfd/ospf_te.c
+++ b/ospfd/ospf_te.c
@@ -746,7 +746,7 @@ update_linkparams(struct mpls_te_link *lp)
else
TLV_TYPE(lp->unrsv_bw) = 0;
- if (IS_PARAM_SET(ifp->link_params, LP_TE))
+ if (IS_PARAM_SET(ifp->link_params, LP_TE_METRIC))
set_linkparams_te_metric(lp, ifp->link_params->te_metric);
else
TLV_TYPE(lp->te_metric) = 0;