Added accept clause for unknown action types
This commit is contained in:
parent
6d8d18d06e
commit
b7bed171ae
@ -140,6 +140,8 @@ class bgp_flow_spec_action_t {
|
|||||||
return "discard" + sentence_separator;
|
return "discard" + sentence_separator;
|
||||||
} else if (this->action_type == FLOW_SPEC_ACTION_RATE_LIMIT) {
|
} else if (this->action_type == FLOW_SPEC_ACTION_RATE_LIMIT) {
|
||||||
return "rate-limit " + convert_int_to_string(this->rate_limit) + sentence_separator;
|
return "rate-limit " + convert_int_to_string(this->rate_limit) + sentence_separator;
|
||||||
|
} else {
|
||||||
|
return "accept" + sentence_separator;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private:
|
private:
|
||||||
|
Loading…
Reference in New Issue
Block a user