From c9580f8b0e19ac677c6412940d1692337bd4a06d Mon Sep 17 00:00:00 2001
From: Hongjun Ni <hongjun.ni@intel.com>
Date: Wed, 25 Jan 2017 01:11:36 +0800
Subject: 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)
---
 nsh-plugin/nsh/nsh.c | 6 ++++++
 1 file changed, 6 insertions(+)

(limited to 'nsh-plugin/nsh')

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);
-- 
cgit