diff options
author | Philippe Guibert <philippe.guibert@6wind.com> | 2018-11-30 14:13:37 +0100 |
---|---|---|
committer | Philippe Guibert <philippe.guibert@6wind.com> | 2019-01-29 14:15:10 +0100 |
commit | 8112a7a0723561ea3d959a0c72ba8b3c4134f316 (patch) | |
tree | a751859219f04adddf0dd8a3d59357774ef243b1 /bgpd/bgp_pbr.h | |
parent | bgpd: notify callback when ip rule from/to rule has been configured (diff) | |
download | frr-8112a7a0723561ea3d959a0c72ba8b3c4134f316.tar.xz frr-8112a7a0723561ea3d959a0c72ba8b3c4134f316.zip |
bgpd: change priority of fs pbr rules
two kind of rules are being set from bgp flowspec: ipset based rules,
and ip rule rules. default route rules may have a lower priority than
the other rules ( that do not support default rules). so, if an ipset
rule without fwmark is being requested, then priority is arbitrarily set
to 1. the other case, priority is set to 0.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'bgpd/bgp_pbr.h')
-rw-r--r-- | bgpd/bgp_pbr.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bgpd/bgp_pbr.h b/bgpd/bgp_pbr.h index c3db10cbe..da21e0f9c 100644 --- a/bgpd/bgp_pbr.h +++ b/bgpd/bgp_pbr.h @@ -165,6 +165,7 @@ struct bgp_pbr_rule { struct bgp_pbr_action *action; vrf_id_t vrf_id; uint32_t unique; + uint32_t priority; bool installed; bool install_in_progress; }; |