Edge will not add static route added via API call if the netmask is not provided while pushing the API.
Static route can be added in two methods,
1. Creating through VCO
Behavior: The VCO will perform the CIDR conversion for the subnet.
2. Creating through API call
Behavior: The VCO does not perform CIDR conversion when a static route is added via an API call. There is no netmask field in API.
We need to add the netmask manually as below.
static_cfg['netmask']=str(netmask)
All VMware SD-Wan edge versions
API call without netmask field should not be pushed to edge. It should be configured for edge to accept the route.
When creating a static route for the subnet via API, the netmask must be included.