static route added via API call on the VCO without netmask will not be added to the edge routing table.
search cancel

static route added via API call on the VCO without netmask will not be added to the edge routing table.

book

Article ID: 371506

calendar_today

Updated On:

Products

VMware VeloCloud SD-WAN Edge Appliance

Issue/Introduction

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)

 

Environment

All VMware SD-Wan edge versions

Cause

API call without netmask field should not be pushed to edge. It should be configured for edge to accept the route.

Resolution

When creating a static route for the subnet via API, the netmask must be included.