Learn How We Can Help You Keep Teleworkers Protected During the COVID-19 Crisis

Network Change & Configuration Management

Reply
Highlighted
Accepted Solution

Perl API - How would I "OR" this statement

Authority
Posts: 29
4052     0

This doesn't appear to work:

 

    # find by ip address

     op_DeviceIPDotted     => 'like', val_c_DeviceIPDotted  => '10.101.%' || '10.201.%',

 

Thanks!

Highlighted

Re: Perl API - How would I "OR" this statement

Adviser
Posts: 353
4052     0
I believe you can use ”rlike” which does a regular expression search, and your value_c_ would be ”10\.101.*|10\.201.*”

John
Highlighted

Re: Perl API - How would I "OR" this statement

Authority
Posts: 29
4052     0

# and IP's match 10.101.x.x or 10.102.x.x
op_DeviceIPDotted => 'rlike', val_c_DeviceIPDotted => "10\.101.*|10\.102.*",

 

That did work quite well.  Thanks.

Showing results for 
Search instead for 
Do you mean 

Recommended for You