How do I wildcard IP addresses when using the REST API?

by on ‎12-04-2013 09:08 AM

Question

How do I wildcard IP adddresses when using the REST API

Answer

By including a "mask" in the match fields. 

For example:

 

{
"flow": {
"priority": 30000,
"table_id": 200,
"idle_timeout": 60,
"match": [
{
"ipv4_src": "10.10.1.0",
"mask" : "255.255.255.0"
},
{
"ipv4_dst": "192.168.1.0",
"mask" : "255.255.255.0"
},
{
"ip_proto": "tcp"
},
{
"eth_type": "ipv4"
},
{
"tcp_dst": "80"
}
],
"output": 1
}
}

Search
Showing results for 
Search instead for 
Do you mean 
Contributors
HP Blog

HP Networking

Featured


Follow Us
Twitter Stream
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.