Versions Compared

Key

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

...

 

AddInterfacesToLogicalRouter

 

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 one.

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

PUT

 
Body ParameterInterfaces names listSubinterfaces names list to be attached to the logical router.
Return- 

 
Body Example
 

Following 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"?>
<interfaces>
    <interface>fe-0/3/3.2</interface>
    <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- 
 
Body Example
 

...

-

...

 

...

themeEclipse
languagehtml/xml

...

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/setEncapsulation/interfaces/encapsulation/type/{encapsulationType}?ifaceName={interfaceName} 
Method

POSTPUT

 
Body Query ParameterSetEncapsulationRequestEncapsulationTypeEncapsulation type to be applied in the interface. Valid values are "tagged-ethernet" for IEEE 802.1Q and "none" for no encapsulationRequest containing the LogicalPort representing the interface and the ProtocolIFType containing the type of encapsulation to use. TaggedEthernetEncapsulation  ProtocolIFType "LAYER_2_VLAN_USING_802_1Q" as encapsulation type.
Return- 
Body Example

Following example would set TaggedEthernetEncapsulation to interface fe-0/3/3.

...