summaryrefslogtreecommitdiffstats
path: root/isisd/isis_sr.c
diff options
context:
space:
mode:
authorFredi Raspall <fredi@voltanet.io>2021-05-02 17:13:11 +0200
committerFredi Raspall <fredi@voltanet.io>2021-05-18 10:54:11 +0200
commit8f6a0d6402abc47cbadcbad75698237fd905e6bb (patch)
tree93ddad9f4a4bf2a2911bbdd0bf014261b09b4850 /isisd/isis_sr.c
parentMerge pull request #8535 from opensourcerouting/zlog-rnode (diff)
downloadfrr-8f6a0d6402abc47cbadcbad75698237fd905e6bb.tar.xz
frr-8f6a0d6402abc47cbadcbad75698237fd905e6bb.zip
isisd: clear the N-flag in ext. reachability TLVs
If the n-flag-clear option is set in the configuration of a prefix segment, clear the flag in the extended ip reachability TLVs. RFCs 7794 and 8667 are not too strict on the setting / clearing the N-flag in prefix SIDs. However, if there exists a cmd line option to clear it, it should be cleared in the TLVs announced, as other vendors do. Signed-off-by: Fredi Raspall <fredi@voltanet.io>
Diffstat (limited to '')
-rw-r--r--isisd/isis_sr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/isisd/isis_sr.c b/isisd/isis_sr.c
index c4024772f..4ea20cd32 100644
--- a/isisd/isis_sr.c
+++ b/isisd/isis_sr.c
@@ -438,7 +438,7 @@ void isis_sr_prefix_cfg2subtlv(const struct sr_prefix_cfg *pcfg, bool external,
}
if (external)
SET_FLAG(psid->flags, ISIS_PREFIX_SID_READVERTISED);
- if (pcfg->node_sid)
+ if (pcfg->node_sid && !pcfg->n_flag_clear)
SET_FLAG(psid->flags, ISIS_PREFIX_SID_NODE);
/* Set SID value. */