Azzeddine_S
Mar 24, 2017Cirrus
Retrieve Value from Data Group record
Hi all
i am trying to write an irule to drop client paket by source IP, but instead of calling the IP in the rule as a condition , i want to add a location as a data value in the data group and apply the conditin on it my data group looks like :
ltm data-group internal Locations {
records {
10.1.1.0/24 {
data paris/allow
}
10.1.2.0/24 {
data ny/allow
}
10.10.1.100/32 {
data my_self/drop
}
172.16.1.0/24 {
data tokyo/allow
}
192.168.1.0/24 {
data London/drop
}
192.168.100.0/24 {
data moon/allow
}
}
type ip
}
the condition is stored in the data group
wy question is how to get data from the records and since we can have multiple match how can we get data.
hope my question is enough clear ...