summaryrefslogtreecommitdiffstats
path: root/nsh-plugin
diff options
context:
space:
mode:
authorHongjun Ni <hongjun.ni@intel.com>2017-01-25 01:11:36 +0800
committerHongjun Ni <hongjun.ni@intel.com>2017-01-26 02:29:16 +0000
commitc9580f8b0e19ac677c6412940d1692337bd4a06d (patch)
tree1e580cf329e3c61cac0da3bfe70d3dce54685785 /nsh-plugin
parent8c6aec0ad62661058bc9b7c2f608903cb0484b24 (diff)
NSH Proxy session failed to configure via restconf. NSHSFC-21
Change-Id: Id2e81fe3536cccd2678889a29559cea3d62dbf99 Signed-off-by: Hongjun Ni <hongjun.ni@intel.com> (cherry picked from commit 24613f9946b814f2174b98a0020cfd55a0cf1fc5)
Diffstat (limited to 'nsh-plugin')
-rw-r--r--nsh-plugin/nsh/nsh.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/nsh-plugin/nsh/nsh.c b/nsh-plugin/nsh/nsh.c
index 6fb61c4..b0e9539 100644
--- a/nsh-plugin/nsh/nsh.c
+++ b/nsh-plugin/nsh/nsh.c
@@ -539,6 +539,12 @@ static void vl_api_nsh_add_del_map_t_handler
rv = nsh_add_del_map (a, &map_index);
+ if((a->map.next_node == NSH_NODE_NEXT_ENCAP_VXLAN4)
+ | (a->map.next_node == NSH_NODE_NEXT_ENCAP_VXLAN6))
+ {
+ rv = nsh_add_del_proxy_session(a);
+ }
+
REPLY_MACRO2(VL_API_NSH_ADD_DEL_MAP_REPLY,
({
rmp->map_index = htonl (map_index);