Configures, modifies, or retrieves the Policy-based Routing (PBR) configuration.
URI | Description |
---|---|
<base_URI>/config/running/interface/{interface-type}/{interface-name}/ip/policy | Configures PBR.
Supported interface types are: Ethernet and VE. |
GET URIs | Description |
---|---|
<base_URI>/config/running/interface/{interface-type}/{interface-name}/ip/policy | Configures PBR. Supported interface types are: Ethernet and VE. |
<base_URI>/config/running/interface/{interface-type}/{interface-name}/ip/policy/route-map | Enables PBR. Supported interface types are: Ethernet and VE. |
<base_URI>/config/running/interface/{interface-type}/{interface-name}/ip/policy/route-map/route-map-name | Enables PBR. Supported interface types are: Ethernet and VE. |
PATCH URIs | Payload | Description |
---|---|---|
<base_URI>/config/running/interface/{interface-type}/{interface-name}/ip/policy/route-map | <route-map><route-map-name>{common-def:name-string63}</route-map-name></route-map> | Enables PBR on an Ethernet interface or VE. |
PUT URIs | Payload | Description |
---|---|---|
<base_URI>/config/running/interface/{interface-type}/{interface-name}/ip/policy/route-map/route-map-name | <route-map-name>{common-def:name-string63}</route-map-name> | Enables PBR on an Ethernet interface or VE. |
DELETE URIs |
---|
<base_URI>/config/running/interface/{interface-type}/{interface-name}/ip/policy/route-map/route-map-name |
GET, POST, PUT, PATCH, DELETE, OPTIONS, and HEAD operations are supported.
The following example uses the GET option to retrieve the configuration details.
http://host:80/rest/config/running/interface/Ethernet/%221/1%22/ip/policy
None
<policy y:self="/rest/config/running/interface/ethernet/%22195/7%22/ip/policy"> <route-map y:self="/rest/config/running/interface/ethernet/%22195/7%22/ip/policy/route-map"> <route-map-name>map12</route-map-name> </route-map> </policy>
The following is an example of the PUT operation to configure a route map.
http://host:80/rest/config/running/interface/Ethernet/%221/1%22/ip/policy/route-map
<route-map> <route-map-name>map12</route-map-name> </route-map>
None
The following is an example of the DELETE operation to remove route map.
http://host:80/rest/config/running/interface/Ethernet/%221/1%22/ip/policy/route-map/map12
None
None