From f4d8a383451074a026ac385e97ec4d03a659cd66 Mon Sep 17 00:00:00 2001 From: Michele Papalini Date: Tue, 11 Oct 2022 08:44:22 +0000 Subject: feat(strategy): forwarding strategy for local faces Ref: HICN-802 Signed-off-by: Michele Papalini Change-Id: I22b48d700b1b46599e570d841932d74c5ac65891 --- ctrl/libhicnctrl/src/commands/command_strategy.c | 2 +- ctrl/libhicnctrl/src/parse.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'ctrl') 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 vs unset "cache clear", "cache store on/off", // set/unset -- cgit 1.2.3-korg