diff options
author | Michele Papalini <micpapal@cisco.com> | 2022-10-11 08:44:22 +0000 |
---|---|---|
committer | Michele Papalini <micpapal@cisco.com> | 2022-10-11 14:13:40 +0000 |
commit | f4d8a383451074a026ac385e97ec4d03a659cd66 (patch) | |
tree | 9428883847bf927285a104aa57254c86da65dc2f /ctrl | |
parent | 03fb1444ad41d254469b4749382d1bf2b7cc48da (diff) |
feat(strategy): forwarding strategy for local faces
Ref: HICN-802
Signed-off-by: Michele Papalini <micpapal@cisco.com>
Change-Id: I22b48d700b1b46599e570d841932d74c5ac65891
Diffstat (limited to 'ctrl')
-rw-r--r-- | ctrl/libhicnctrl/src/commands/command_strategy.c | 2 | ||||
-rw-r--r-- | ctrl/libhicnctrl/src/parse.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/ctrl/libhicnctrl/src/commands/command_strategy.c b/ctrl/libhicnctrl/src/commands/command_strategy.c index 5605822e7..f7f5974d1 100644 --- a/ctrl/libhicnctrl/src/commands/command_strategy.c +++ b/ctrl/libhicnctrl/src/commands/command_strategy.c @@ -15,7 +15,7 @@ .name = "strategy", \ .help = \ "Strategy type (e.g. 'random', 'loadbalancer', 'low_latency', " \ - "'replication', 'bestpath').", \ + "'replication', 'bestpath', local_remote).", \ .type = TYPE_ENUM(strategy_type), .offset = offsetof(hc_strategy_t, type), \ } diff --git a/ctrl/libhicnctrl/src/parse.c b/ctrl/libhicnctrl/src/parse.c index ca19d8280..25fa98de2 100644 --- a/ctrl/libhicnctrl/src/parse.c +++ b/ctrl/libhicnctrl/src/parse.c @@ -382,6 +382,7 @@ const char * cmds[] = { "set strategy b001::/16 low_latency", "set strategy b001::/16 replication", "set strategy b001::/16 bestpath", + "set strategy b001::/16 local_remote", "set wldr <on|off> <connection_id>", // on-off vs unset "cache clear", "cache store on/off", // set/unset |