...
Value | Description | |
---|---|---|
URL | http://localhost:8888/opennaas/router/{router_nameresourceName}/staticroute | |
Method | POST | |
Body Parameter |
| netIdIpAdress is mandatory. Either nextHopIpAddress or isDiscard to true must be present. preference is optional. |
Return | - |
...
This method will remove an existing static route rule.
Value | Description | |
---|---|---|
URL | http://hostnamelocalhost:8888/opennaas/router/{resourceName}/chassis/logicalrouter/{logical_router_name} staticroute?netIdIpAdress={netIdIpAdress}&nextHopIpAddress={nextHopIpAddress} | |
Method | DELETE | |
Query Parameter | netIdIpAdress | |
Query Parameter | nextHopIpAddress | |
Return | - |
...
GetStaticRoutes
This method will add interfaces to an existing logical router. Be aware that the list of interfaces to be added should not exist in another logical router of the physical oneretrieves a list of static routes rules in the device.
Value | Description | |
---|---|---|
URL | http://hostnamelocalhost:8888/opennaas/router/{resourceName}/chassis/logicalrouter/{logical_router_name}/interfacesstaticroute | |
Method | PUTGET | |
Query Parameter | Interfaces names list | Subinterfaces names list to be attached to the logical router. |
Return | - |
Body Example
Return | StaticRoutes | List of static route rules in the device |
Return body Example
Following example exposes a list of static route rules in the device composed by only one elementFollowing request would add interfaces fe-0/3/3.2 and fe-0/3/3.3 to the logical router.
Code Block | ||||
---|---|---|---|---|
| ||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns2:staticRoutes xmlns:ns2="opennaas.api"> <interfaces> <staticRoute> <interface>fe-<netIdIpAdress>0.0.0.0/3/3.2</interface> 0</netIdIpAdress> <isDiscard>true</isDiscard> <preference>0</preference> <interface> fe-0/3/3.3</interface> </interfaces> |
RemoveInterfacesFromLogicalRouter
This method will remove existing interfaces from a specific logical router. Its configuration will be passed to the physical router.
Value | Description | |
---|---|---|
URL | http://hostname:8888/opennaas/router/{resourceName}/chassis/logicalrouter/{logical_router_name}/interfaces/delete | |
Method | PUT | |
Query Parameter | Interface name | Interface name we want to apply encapsulation. |
Body Parameter | Interfaces names list | Subinterfaces names list to be removed from the logical router. |
Return | - |
SetEncapsulation
This method configures the type of encapsulation to use in given interface. Supported are: no encapsulation and TaggedEthenetEncapsulation.
Value | Description | |
---|---|---|
URL | http://hostname:8888/opennaas/router/{resourceName}/chassis/interfaces/encapsulation/type/{encapsulationType}?ifaceName={interfaceName} | |
Method | PUT | |
Query Parameter | Interface name | Interface name we want to apply encapsulation. |
Query Parameter | Encapsulation type | Encapsulation type to be applied in the interface. Valid values are "tagged-ethernet" for IEEE 802.1Q and "none" for no encapsulation. |
Return | - |
SetEncapsulationLabel
This method configures the label of encapsulation to use in given interface.
...
PUT
...
</staticRoute>
</ns2:staticRoutes> |