From b412048cae497643a794c1d2c6ce1deb65ef38e7 Mon Sep 17 00:00:00 2001 From: Hongjun Ni Date: Thu, 28 Jul 2016 20:11:33 +0800 Subject: Add NSH-Proxy feature within NSH_SFC PatchSet 6: spit nsh_input to three node instances PatchSet 5: refactor NSH-Proxy PatchSet 4: Fix some issues PatchSet 3: get parameters from VPP via metadata PatchSet 2: Add FIXME Change-Id: I97448af867eb71554b8629f8da57a2ed6c6a3b8a Signed-off-by: Hongjun Ni --- nsh-plugin/nsh/nsh_test.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nsh-plugin/nsh/nsh_test.c') diff --git a/nsh-plugin/nsh/nsh_test.c b/nsh-plugin/nsh/nsh_test.c index c5d30ef..a7b7957 100644 --- a/nsh-plugin/nsh/nsh_test.c +++ b/nsh-plugin/nsh/nsh_test.c @@ -276,11 +276,11 @@ static int api_nsh_add_del_map (vat_main_t * vam) else if (unformat (line_input, "mapped-nsi %d", &mapped_nsi)) mapped_nsi_set = 1; else if (unformat (line_input, "encap-gre-intf %d", &sw_if_index)) - next_node = NSH_INPUT_NEXT_ENCAP_GRE; + next_node = NSH_NODE_NEXT_ENCAP_GRE; else if (unformat (line_input, "encap-vxlan-gpe-intf %d", &sw_if_index)) - next_node = NSH_INPUT_NEXT_ENCAP_VXLANGPE; + next_node = NSH_NODE_NEXT_ENCAP_VXLANGPE; else if (unformat (line_input, "encap-none")) - next_node = NSH_INPUT_NEXT_DROP; // Once moved to NSHSFC see nsh.h:foreach_nsh_input_next to handle this case + next_node = NSH_NODE_NEXT_DROP; // Once moved to NSHSFC see nsh.h:foreach_nsh_input_next to handle this case else return -99; //TODO clib_error_return (0, "parse error: '%U'", } -- cgit 1.2.3-korg