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
RESTCONF API: GET Example

curl -kisu 'admin:secret' -X GET https://{SBX-SERVER}/restconf/data/sonusAddressContext:addressContext={name}/sonusIpInterface:staticRoute={destinationIpAddress},{prefix},{nextHop},{ipInterfaceGroupName},{ipInterfaceName}

RESTCONF API: POST Example

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

RESTCONF API: DELETE Example

curl -kisu 'admin:secret' -X DELETE https://{SBX-SERVER}/restconf/data/sonusAddressContext:addressContext={name}/sonusIpInterface:staticRoute={destinationIpAddress},{prefix},{nextHop},{ipInterfaceGroupName},{ipInterfaceName}

  • No labels