Baseline with ip range

hey,
if i want to do relevance query with rang of ip for example:

10.0.0.0 - 10.0.0.40

how can i do this?

that if he in the range between 10.0.0.0 - 10.0.0.40 he will be relevante to the baseline

Hello iftachzi,

Please try this (I didn’t have a chance to test it yet):

exists (it as version) whose (it >= "10.0.0.0" as version AND it <= "10.0.0.40" as version AND it = "10.0.0" as version) of (it as string) of addresses of ip interfaces of networks

Regards,
Vitaliy

1 Like

@vnovik

hey,
its giving “ERROR” ==\

@vnovik

i tried this also:

exists (addresses of ip interfaces of network as string as version) whose ((it >= “192.168.0.100” as version AND it <= “192.168.0.200” as version AND it = “192.168.0” as version)

and it worte :
“could not be parsed”

@Aram
@rgangemi

Replace the doublequotes. You are getting “smart quotes” from the forum.

Besides smart quotes (wrong “ vs correct "), you are missing a closing round bracket “)” in the end of your example relevance (to pair with the opening round bracket after “whose”)

Please note: when I copied my relevance into a FixletDebugger, it gave me “false” (there is no error) and when I changed the network range to mine, it gave me “true”

Regards,
Vitaliy