From 48eb65487632eef9713f724b25efb44fe41f07d9 Mon Sep 17 00:00:00 2001 From: Luc Provoost Date: Sun, 8 Jan 2023 13:18:29 +0100 Subject: fix regex expression to find IPV4 address helper.lua contains code to parse the IP addresses in the parameters.lua file. The regular expression to find the IPV4 address is fixed. Signed-off-by: Luc Provoost Change-Id: I9baf2b059fa281dc408bd0ea59b77d294750c1ef --- VNFs/DPPD-PROX/helper-scripts/rapid/helper.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VNFs/DPPD-PROX/helper-scripts/rapid/helper.lua b/VNFs/DPPD-PROX/helper-scripts/rapid/helper.lua index 1b4c657b..a5633409 100644 --- a/VNFs/DPPD-PROX/helper-scripts/rapid/helper.lua +++ b/VNFs/DPPD-PROX/helper-scripts/rapid/helper.lua @@ -21,7 +21,7 @@ function convertIPToHex(ip) return "IP ADDRESS ERROR" end - local chunks = {ip:match("^(%d+)%.(%d+)%.(%d+)%.(%d+)(\/%d+)$")} + local chunks = {ip:match("^(%d+)%.(%d+)%.(%d+)%.(%d+)(/%d+)$")} if #chunks == 5 then for i,v in ipairs(chunks) do if i < 5 then -- cgit 1.2.3-korg