@@ -1262,7 +1262,7 @@ static int isis_spf_preload_tent_ip_reach_cb(const struct prefix *prefix,
12621262 struct isis_vertex * parent = args -> parent ;
12631263 struct prefix_pair ip_info ;
12641264 enum vertextype vtype ;
1265- bool has_valid_psid = false, transition = false ;
1265+ bool has_valid_psid = false;
12661266
12671267 if (external )
12681268 return LSP_ITER_CONTINUE ;
@@ -1272,17 +1272,10 @@ static int isis_spf_preload_tent_ip_reach_cb(const struct prefix *prefix,
12721272 prefix_copy (& ip_info .dest , prefix );
12731273 apply_mask (& ip_info .dest );
12741274
1275- if (prefix -> family == AF_INET ) {
1275+ if (prefix -> family == AF_INET )
12761276 vtype = VTYPE_IPREACH_INTERNAL ;
1277-
1278- if (spftree -> area -> newmetric )
1279- vtype = VTYPE_IPREACH_TE ;
1280-
1281- if (spftree -> area -> oldmetric && spftree -> area -> newmetric )
1282- transition = true;
1283- } else {
1277+ else
12841278 vtype = VTYPE_IP6REACH_INTERNAL ;
1285- }
12861279
12871280 /* Parse list of Prefix-SID subTLVs if SR is enabled */
12881281 if (spftree -> area -> srdb .enabled && subtlvs ) {
@@ -1297,11 +1290,6 @@ static int isis_spf_preload_tent_ip_reach_cb(const struct prefix *prefix,
12971290 has_valid_psid = true;
12981291 isis_spf_add_local (spftree , vtype , & ip_info , NULL , 0 ,
12991292 psid , parent );
1300- if (transition )
1301- isis_spf_add_local (spftree ,
1302- VTYPE_IPREACH_INTERNAL ,
1303- & ip_info , NULL , 0 , psid ,
1304- parent );
13051293
13061294 /*
13071295 * Stop the Prefix-SID iteration since we only support
@@ -1310,13 +1298,9 @@ static int isis_spf_preload_tent_ip_reach_cb(const struct prefix *prefix,
13101298 break ;
13111299 }
13121300 }
1313- if (!has_valid_psid ) {
1301+ if (!has_valid_psid )
13141302 isis_spf_add_local (spftree , vtype , & ip_info , NULL , 0 , NULL ,
13151303 parent );
1316- if (transition )
1317- isis_spf_add_local (spftree , VTYPE_IPREACH_INTERNAL ,
1318- & ip_info , NULL , 0 , NULL , parent );
1319- }
13201304
13211305 return LSP_ITER_CONTINUE ;
13221306}
0 commit comments