File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -125,6 +125,7 @@ void RouteOrch::doLabelTask(Consumer& consumer)
125
125
string aliases;
126
126
string mpls_nhs;
127
127
uint8_t & pop_count = ctx.pop_count ;
128
+ string weights;
128
129
bool & excp_intfs_flag = ctx.excp_intfs_flag ;
129
130
bool blackhole = false ;
130
131
@@ -144,6 +145,9 @@ void RouteOrch::doLabelTask(Consumer& consumer)
144
145
145
146
if (fvField (i) == " blackhole" )
146
147
blackhole = fvValue (i) == " true" ;
148
+
149
+ if (fvField (i) == " weight" )
150
+ weights = fvValue (i);
147
151
}
148
152
vector<string> ipv = tokenize (ips, ' ,' );
149
153
vector<string> alsv = tokenize (aliases, ' ,' );
@@ -220,7 +224,7 @@ void RouteOrch::doLabelTask(Consumer& consumer)
220
224
nhg_str += ipv[i] + NH_DELIMITER + alsv[i];
221
225
}
222
226
223
- nhg = NextHopGroupKey (nhg_str);
227
+ nhg = NextHopGroupKey (nhg_str, weights );
224
228
}
225
229
226
230
if (nhg.getSize () == 1 && nhg.hasIntfNextHop ())
You can’t perform that action at this time.
0 commit comments