ips: update csv header

This commit is contained in:
ionutboangiu
2025-07-10 17:48:01 +03:00
committed by Dan Christian Bogos
parent 2365ae5037
commit 1e2f39c13e
3 changed files with 5 additions and 5 deletions

View File

@@ -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
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]
2 cgrates.org,IPs1,*string:~*req.Account:1001,;10,1s,true,,,,,,,, cgrates.org IPs1 *string:~*req.Account:1001 ;10 1s true
3 cgrates.org,IPs1,,,,,POOL1,*string:~*req.Destination:2001,*ipv4,172.16.1.1/24,*ascending,alloc_success,;15, cgrates.org IPs1 POOL1 *string:~*req.Destination:2001 *ipv4 172.16.1.1/24 *ascending alloc_success ;15
4 cgrates.org,IPs1,,,,,POOL1,,,,,,*exists:~*req.GimmeMoreWeight:;50,*exists:~*req.ShouldBlock:;true cgrates.org IPs1 POOL1 *exists:~*req.NeedMoreWeight:;50 *exists:~*req.ShouldBlock:;true
5 cgrates.org,IPs1,,,,,POOL2,*string:~*req.Destination:2002,*ipv4,192.168.122.1/24,*random,alloc_new,;25,;true cgrates.org IPs1 POOL2 *string:~*req.Destination:2002 *ipv4 192.168.122.1/24 *random alloc_new ;25 ;true

View File

@@ -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]
1 #Tenant[0] Id[1] ID[1] FilterIDs[2] Weights[3] TTL[4] Type[5] Stored[5] AddressPool[6] PoolID[6] Allocation[7] PoolFilterIDs[7] Stored[8] PoolType[8] PoolRange[9] PoolStrategy[10] PoolMessage[11] PoolWeights[12] PoolBlockers[13]

View File

@@ -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`,
},