When performing an HTTP put request against endpoint /networks/{networkId}/appliance/firewall/l3FirewallRules and specifying a protocol of "any" or "icmp" the API should return an error if I specify a "srcPort" or "destPort". However the API returns a success and changes these values to "Any".
Here is an example body of an HTTP put request that should return an error
{
"rules": [
{
"comment": "Allow TCP traffic to subnet with HTTP servers - POSTMAN.",
"policy": "allow",
"protocol": "icmp",
"destPort": "443",
"destCidr": "1.1.1.1/32",
"srcPort": "Any",
"srcCidr": "Any",
"syslogEnabled": false
}
]
}
This is the response returned from the API:
{
"rules": [
{
"comment": "Allow TCP traffic to subnet with HTTP servers - POSTMAN.",
"policy": "allow",
"protocol": "icmp",
"srcPort": "Any",
"srcCidr": "Any",
"destPort": "Any",
"destCidr": "1.1.1.1/32",
"syslogEnabled": false
},
{
"comment": "Default rule",
"policy": "allow",
"protocol": "Any",
"srcPort": "Any",
"srcCidr": "Any",
"destPort": "Any",
"destCidr": "Any",
"syslogEnabled": false
}
]
}