Resources | system | mgmtStaticRoute

mgmtStaticRoute

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

Configuration

ParameterPresenceTypeDefaultDescription
destinationIpAddressMip-address The destination IP address.
prefixMuint32 The IP prefix of this static route entry.
nextHopMip-address The address of the next 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.
preferenceOint3210 route preference value
RESTCONF API: GET Example

curl -kisu 'admin:secret' -X GET https://{SBX-SERVER}/restconf/data/sonusSystem:system/sonusOrcaSystem:mgmtStaticRoute={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/sonusSystem:system --data '
<mgmtStaticRoute>
     <destinationIpAddress>{destinationIpAddress}</destinationIpAddress>
     <prefix>{prefix}</prefix>
     <nextHop>{nextHop}</nextHop>
     <ipInterfaceGroupName>{ipInterfaceGroupName}</ipInterfaceGroupName>
     <ipInterfaceName>{ipInterfaceName}</ipInterfaceName>
</mgmtStaticRoute>
'

RESTCONF API: DELETE Example

curl -kisu 'admin:secret' -X DELETE https://{SBX-SERVER}/restconf/data/sonusSystem:system/sonusOrcaSystem:mgmtStaticRoute={destinationIpAddress},{prefix},{nextHop},{ipInterfaceGroupName},{ipInterfaceName}

  • No labels