random director fails with Syntax error: Expected constant `INTEGER` expression when used edge diction with weight
Faced issues with random director fails compilation with edge dictionary, basically we wanted to control traffic percentage to backend using edge dictionary.
Syntax error: Expected constant `INTEGER` expression
director director_balancing random {
{
.backend = F_a;
.weight = std.atoi(table.lookup(edge_dictionary, "a-weight", "50")) ;}
{
.backend = F_b;
.weight = std.atoi(table.lookup(edge_dictionary, "b-weight", "50")) ;}
}
}
any help on this
Please sign in to leave a comment.
Comments
1 comment