wg_output_node_name = '/err/wg-output-tun/'
wg_input_node_name = '/err/wg-input/'
- port = 12323
+ port = 12333
# Create interfaces
wg0 = VppWgInterface(self,
def test_wg_multi_peer(self):
""" multiple peer setup """
- port = 12323
+ port = 12343
# Create interfaces
wg0 = VppWgInterface(self,
wg_output_node_name = '/err/wg-output-tun/'
wg_input_node_name = '/err/wg-input/'
- port = 12323
+ port = 12353
# Create interfaces
wg0 = VppWgInterface(self,
*sw_if_indexp = (u32) ~ 0;
+ /*
+ * Check if the required port is already in use
+ */
+ udp_dst_port_info_t *pi = udp_get_dst_port_info (&udp_main, port, UDP_IP4);
+ if (pi)
+ return VNET_API_ERROR_UDP_PORT_TAKEN;
+
/*
* Allocate a wg_if instance. Either select on dynamically
* or try to use the desired user_instance number.