Resources | addressContext | staticRoute

staticRoute

The staticRoute object is used to configure static IP routes for the IP interfaces. A static route indicates the nextHop gateway and IP interface that is used for a particular peer network IP prefix.

Configuration

ParameterPresenceTypeDefaultDescription
destinationIpAddressMip-address The destination IP address.
prefixMuint32 The IP prefix length for this static route entry.
nextHopMip-address The address of the next hop system enroute to the destination.
ipInterfaceGroupNameMreference The name of the IP interface group for this entry.
ipInterfaceNameMreference The name of the IP interface for this entry.
preferenceOint32100 The route preference value. (Lower values indicate better preference.)
conditionO
REST API: GET Example

curl -kisu 'admin:secret' -X GET https://{SBX-SERVER}/api/config/addressContext/{name}/staticRoute/{destinationIpAddress},{prefix},{nextHop},{ipInterfaceGroupName},{ipInterfaceName}

REST API: POST Example

curl -kisu 'admin:secret' -X POST -H 'Content-Type: application/vnd.yang.data+xml' https://{SBX-SERVER}/api/config/addressContext/{name} --data '
<staticRoute>
     <destinationIpAddress>{destinationIpAddress}</destinationIpAddress>
     <prefix>{prefix}</prefix>
     <nextHop>{nextHop}</nextHop>
     <ipInterfaceGroupName>{ipInterfaceGroupName}</ipInterfaceGroupName>
     <ipInterfaceName>{ipInterfaceName}</ipInterfaceName>
</staticRoute>
'

REST API: DELETE Example

curl -kisu 'admin:secret' -X DELETE https://{SBX-SERVER}/api/config/addressContext/{name}/staticRoute/{destinationIpAddress},{prefix},{nextHop},{ipInterfaceGroupName},{ipInterfaceName}

  • No labels