...
Code Block | ||||
---|---|---|---|---|
| ||||
<?xml version="1.0" encoding="UTF-8"?> <ethernetPort> <toAssociations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="portImplementsEndpoint"> <to xsi:type="vlanEndpoint"> <vlanID>2</vlanID> </to> </toAssociations> <name>fe-0/2/1</name> <portNumber>2</portNumber> </ethernetPort> |
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/setEncapsulation | |
Method | POST | |
Body Parameter | SetEncapsulationRequest | Request containing the LogicalPort representing the interface and the ProtocolIFType containing the type of encapsulation to use. TaggedEthernetEncapsulation will contain a ProtocolEndpoint with the ProtocolIFType "LAYER_2_VLAN_USING_802_1Q". |
Return | - |
Body Example
Following example would set TaggedEthernetEncapsulation to interface fe-0/3/3.
Code Block | ||||
---|---|---|---|---|
| ||||
<?xml version="1.0" encoding="UTF-8"?>
<setEncapsulationRequest>
<encapsulation>LAYER_2_VLAN_USING_802_1Q</encapsulation>
<iface>
<name>fe-0/3/3</name>
</iface>
</setEncapsulationRequest> |
DeleteSubInterface
This method removes an existing subinterface from a physical interface.
Value | Description | |
---|---|---|
URL | http://hostname:8888/opennaas/router/{resourceName}/chassis/createSubInterface | |
Method | POST | |
Body Parameter | NetworkPort | TODO |
Return | - |
Body Example
Following request would remove subinterface fe-0/2/1.2 from the list of subinterfaces of interface fe-0/2/1.
...
Value | Description | |
---|---|---|
URL | http://hostname:8888/opennaas/router/{resourceName}/chassis/createLogicalRouter | |
Method | POST | |
Body Parameter | ComputerSystem | ComputerSystem representing the new logical router to be created. Optionally it can include the name of the interfaces to be added to this logical router. |
Return | - |
Body Example
Following example would create a new logical router called "logicalrouter1" with the fe-0/3/3.1 interface.
...
Value | Description | |
---|---|---|
URL | http://hostname:8888/opennaas/router/{resourceName}/chassis/addInterfacesToLogicalRouter | |
Method | POST | |
Body Parameter | AddInterfacesToLogicalRouterRequest | Request containing the ComputerSystem representing the logical router, and a list of LogicalPorts to be added to it. |
Return | - |
Body Example
Following request would add interface fe-0/3/3.2 and fe-0/3/3.3 to logicalrouter1.
...
Value | Description | |
---|---|---|
URL | http://hostname:8888/opennaas/router/{resourceName}/chassis/removeInterfacesFromLogicalRouter | |
Method | POST | |
Body Parameter | RemoveInterfacesFromLogicalRouterRequest | Request containing the ComputerSystem representing the logical router, and a list of LogicalPorts to be removed from it. |
Return | - |
Body Example
Following request would remove interface fe-0/3/3.2 from logicalrouter1.
...
Value | Description | |
---|---|---|
URL | http://hostname:8888/opennaas/router/{resourceName}/chassis/deleteLogicalRouter | |
Method | POST | |
Body Parameter | ComputerSystem | ComputerSystem representing the new logical router to be removed. |
Return | - |
Body Example
Following example would remove the logical router called "logicalrouter1" from the existing logical router of our physical router.
...