From 1e2f39c13e4e534b46b6180ffbb21d2b56277290 Mon Sep 17 00:00:00 2001 From: ionutboangiu Date: Thu, 10 Jul 2025 17:48:01 +0300 Subject: [PATCH] ips: update csv header --- data/tariffplans/testit/IPs.csv | 4 ++-- data/tariffplans/tutorial/IPs.csv | 2 +- ips/ips_it_test.go | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/data/tariffplans/testit/IPs.csv b/data/tariffplans/testit/IPs.csv index 347147e17..9f5c1a99b 100644 --- a/data/tariffplans/testit/IPs.csv +++ b/data/tariffplans/testit/IPs.csv @@ -1,5 +1,5 @@ -#Tenant[0],Id[1],FilterIDs[2],Weights[3],TTL[4],Type[5],AddressPool[6],Allocation[7],Stored[8] +#Tenant[0],ID[1],FilterIDs[2],Weights[3],TTL[4],Stored[5],PoolID[6],PoolFilterIDs[7],PoolType[8],PoolRange[9],PoolStrategy[10],PoolMessage[11],PoolWeights[12],PoolBlockers[13] cgrates.org,IPs1,*string:~*req.Account:1001,;10,1s,true,,,,,,,, cgrates.org,IPs1,,,,,POOL1,*string:~*req.Destination:2001,*ipv4,172.16.1.1/24,*ascending,alloc_success,;15, -cgrates.org,IPs1,,,,,POOL1,,,,,,*exists:~*req.GimmeMoreWeight:;50,*exists:~*req.ShouldBlock:;true +cgrates.org,IPs1,,,,,POOL1,,,,,,*exists:~*req.NeedMoreWeight:;50,*exists:~*req.ShouldBlock:;true cgrates.org,IPs1,,,,,POOL2,*string:~*req.Destination:2002,*ipv4,192.168.122.1/24,*random,alloc_new,;25,;true diff --git a/data/tariffplans/tutorial/IPs.csv b/data/tariffplans/tutorial/IPs.csv index 1cd86cd4a..bd0eb861d 100644 --- a/data/tariffplans/tutorial/IPs.csv +++ b/data/tariffplans/tutorial/IPs.csv @@ -1 +1 @@ -#Tenant[0],Id[1],FilterIDs[2],Weights[3],TTL[4],Type[5],AddressPool[6],Allocation[7],Stored[8] +#Tenant[0],ID[1],FilterIDs[2],Weights[3],TTL[4],Stored[5],PoolID[6],PoolFilterIDs[7],PoolType[8],PoolRange[9],PoolStrategy[10],PoolMessage[11],PoolWeights[12],PoolBlockers[13] diff --git a/ips/ips_it_test.go b/ips/ips_it_test.go index aed735cb7..599a7e202 100644 --- a/ips/ips_it_test.go +++ b/ips/ips_it_test.go @@ -122,10 +122,10 @@ func TestIPsIT(t *testing.T) { }`, TpFiles: map[string]string{ utils.IPsCsv: ` -#Tenant[0],Id[1],FilterIDs[2],Weights[3],TTL[4],Type[5],AddressPool[6],Allocation[7],Stored[8] +#Tenant[0],ID[1],FilterIDs[2],Weights[3],TTL[4],Stored[5],PoolID[6],PoolFilterIDs[7],PoolType[8],PoolRange[9],PoolStrategy[10],PoolMessage[11],PoolWeights[12],PoolBlockers[13] cgrates.org,IPs1,*string:~*req.Account:1001,;10,1s,true,,,,,,,, cgrates.org,IPs1,,,,,POOL1,*string:~*req.Destination:2001,*ipv4,172.16.1.1/32,*ascending,alloc_success,;15, -cgrates.org,IPs1,,,,,POOL1,,,,,,*exists:~*req.GimmeMoreWeight:;50,*exists:~*req.ShouldBlock:;true +cgrates.org,IPs1,,,,,POOL1,,,,,,*exists:~*req.NeedMoreWeight:;50,*exists:~*req.ShouldBlock:;true cgrates.org,IPs1,,,,,POOL2,*string:~*req.Destination:2002,*ipv4,192.168.122.1/32,*random,alloc_new,;25,;true cgrates.org,IPs2,*string:~*req.Account:1002,;20,2s,false,POOL1,*string:~*req.Destination:3001,*ipv4,127.0.0.1/32,*descending,alloc_msg,;35,;true`, },