Relevance for Multiple VLANs

I have a software deployment that I am pushing out. On my relevance statement I have for one of the vlans but I want to include one other vlan. Any help would be appreciated.

exists (it as version) whose (it >= “10.1.19.0” as version AND it <= “10.1.19.254” as version AND it = “10.1.19” as version) of (it as string) of addresses of ip interfaces of networks

Cool.

Because you are asking for all the IP addresses from 0 to 254… you actually don’t need the > and < parts. You just need the = part. That makes adding another subnet a cinch:

q: addresses  of ip interfaces of networks
A: 127.0.0.1
A: 192.168.1.237
A: 169.254.167.64
T: 0.241 ms
I: plural ipv4 address

q: exists addresses whose (it as string as version = "10.1.19" as version OR  it as string as version =  "192.168.1" as version) of ip interfaces of networks
A: True

Or with your original structure, you can just slip another big OR in the WHOSE

q: exists (it as version) whose ((it >= "10.1.19.0" as version AND it <= "10.1.19.254" as version AND it = "10.1.19" as version) OR (it >= "192.168.1.0" as version AND it <= "192.168.1.254" as version AND it = "192.168.1" as version)) of (it as string) of addresses of ip interfaces of networks
A: True
2 Likes

Thanks, that worked and is much simpler

1 Like