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

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

REST API: DELETE Example

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

  • No labels