diff options
author | Dave Barach <dave@barachs.net> | 2018-11-19 09:31:48 -0500 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2018-11-19 22:58:46 +0000 |
commit | 2dd192b76774beb9c7960527fb3f397a2848f679 (patch) | |
tree | c6a424f4734cceb7cd9f51705d065871d3224568 /test/test_ipsec_nat.py | |
parent | 6c01dceea5c612373453db7f1ccda589a2cd782e (diff) |
Improve feature arc order constraint specification
Add the VNET_FEATURE_ARC_ORDER macro, which allows specification of
bulk order constraints. Here's an example:
VNET_FEATURE_ARC_ORDER(ip4_unicast_arc_order, static) = {
.arc_name = "ip4-unicast",
.node_names = VNET_FEATURES ("ip4-flow-classify",
"ip4-inacl",
"ip4-source-check-via-rx",
"ip4-source-check-via-any",
"ip4-source-and-port-range-check-rx",
"ip4-policer-classify",
"ipsec4-input",
"vpath-input-ip4",
"ip4-vxlan-bypass",
"ip4-not-enabled",
"ip4-lookup"),
};
Simply list feature nodes in the desired order, and you're
done. Multiple macro instances per are are fine / expected /
tested.
Under the covers: generate "a before b" tuples by chain-dragging
across the ordered list. No need to touch existing per-feature
constraints.
Fixed a long-broken "you lose!" error message.
Change-Id: I259282e426fd305e22c8d65886787c41a1d348d3
Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'test/test_ipsec_nat.py')
0 files changed, 0 insertions, 0 deletions