aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/ioam
diff options
context:
space:
mode:
authorJakub Grajciar <jgrajcia@cisco.com>2019-06-04 13:16:42 +0200
committerDave Barach <openvpp@barachs.net>2019-06-04 15:54:56 +0000
commitdf3ca23f17820389fc625bbc0e7f468fce550aa9 (patch)
treedcafe44b9cb710664566d14d8e21ffb87caa32a5 /src/plugins/ioam
parent5f08ab6493e1420d84c03d0b62431ac3a6de4ce9 (diff)
features will register udp ports once configured
plugins: - ipfixcollector vnet: - geneve - vxlan_gpe - vxlan Change-Id: I69a8b4017ee6990f2b4874fe3e94c4520bde7101 Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
Diffstat (limited to 'src/plugins/ioam')
-rw-r--r--src/plugins/ioam/ipfixcollector/ipfixcollector.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/plugins/ioam/ipfixcollector/ipfixcollector.c b/src/plugins/ioam/ipfixcollector/ipfixcollector.c
index 71b934ecd93..4d6735f5971 100644
--- a/src/plugins/ioam/ipfixcollector/ipfixcollector.c
+++ b/src/plugins/ioam/ipfixcollector/ipfixcollector.c
@@ -73,6 +73,11 @@ ipfix_collector_reg_setid (vlib_main_t * vm, ipfix_client_add_del_t * info)
client->set_id = info->ipfix_setid;
hash_set (cm->client_reg_table, info->ipfix_setid, i);
+
+ if (!udp_is_valid_dst_port (UDP_DST_PORT_ipfix, 1))
+ udp_register_dst_port (vm, UDP_DST_PORT_ipfix,
+ ipfix_collector_node.index, 1);
+
return 0;
}
@@ -88,9 +93,6 @@ ipfix_collector_init (vlib_main_t * vm)
cm->client_reg_pool = NULL;
cm->client_reg_table = hash_create (0, sizeof (uword));
- udp_register_dst_port (vm,
- UDP_DST_PORT_ipfix,
- ipfix_collector_node.index, 1 /* is_ip4 */ );
return error;
}