Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

 ValueDescription
URLhttp://localhost:8888/opennaas/router/{router_nameresourceName}/staticroute 
Method

POST

 
Body Parameter
  • StaticRoute object with fields
  • netIdIpAdress
  • nextHopIpAddress
  • isDiscard
  • preference

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.

 ValueDescription
URLhttp://hostnamelocalhost:8888/opennaas/router/{resourceName}/chassis/logicalrouter/{logical_router_name}  staticroute?netIdIpAdress={netIdIpAdress}&nextHopIpAddress={nextHopIpAddress} 
Method

DELETE

 
Query Parameter
netIdIpAdress
 
Query ParameternextHopIpAddress 
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.

 ValueDescription
URLhttp://hostnamelocalhost:8888/opennaas/router/{resourceName}/chassis/logicalrouter/{logical_router_name}/interfacesstaticroute 
Method

PUTGET

 
Query ParameterInterfaces names listSubinterfaces names list to be attached to the logical router.
Return- 
Body Example
ReturnStaticRoutesList 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
themeEclipse
languagehtml/xml
<?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.

 ValueDescription
URLhttp://hostname:8888/opennaas/router/{resourceName}/chassis/logicalrouter/{logical_router_name}/interfaces/delete  
Method

PUT

 
Query ParameterInterface nameInterface name we want to apply encapsulation.
Body ParameterInterfaces names listSubinterfaces 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.

 ValueDescription
URLhttp://hostname:8888/opennaas/router/{resourceName}/chassis/interfaces/encapsulation/type/{encapsulationType}?ifaceName={interfaceName} 
Method

PUT

 
Query ParameterInterface nameInterface name we want to apply encapsulation.
Query ParameterEncapsulation typeEncapsulation 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>