summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 46a651a..c5b9453 100644
--- a/nsh-plugin/nsh/nsh.c
+++ b/nsh-plugin/nsh/nsh.c
@@ -538,6 +538,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);