Methods
Remember to execute the queue in order to apply this methods to the physical device.
UpPhysicalInterface
This method enables a physical interface which is down.
Value | Description | |
---|---|---|
URL | http://hostname:8888/opennaas/router/{resourceName}/chassis/upPhysicalInterface | |
Method | POST | |
Body Parameter | LogicalPort | LogicalPort representing the interface we want to enable. Only physical interfaces are allowed. |
Return | - |
Body Example
Following example would enable interface fe-0/2/1
<?xml version="1.0" encoding="UTF-8"?> <logicalPort> <name>fe-0/2/1</name> </logicalPort>
DownPhysicalInterface
This method disabled a physical interface, marking it as being down, but without removing its configuration.
Value | Description | |
---|---|---|
URL | http://hostname:8888/opennaas/router/{resourceName}/chassis/downPhysicalInterface | |
Method | POST | |
Body Parameter | LogicalPort | LogicalPort representing the interface we want to disable. Only physical interfaces are allowed. |
Return | - |
Body Example
Following example would disable interface fe-0/2/1
<?xml version="1.0" encoding="UTF-8"?> <logicalPort> <name>fe-0/2/1</name> </logicalPort>
CreateSubInterface
This method creates a subinterface from an existing physical interface.
Value | Description | |
---|---|---|
URL | http://hostname:8888/opennaas/router/{resourceName}/chassis/createSubInterface | |
Method | POST | |
Body Parameter | NetworkPort | NetworkPort containing the name of the physical interface and the port number used to create the subinterface. It should be either a LogicalTunnel or an EthernetPort |
Return | - |
Body Example
Following example would create interface fe-0/2/1.2 (that means, a new subinterface in interface fe-0/2/1 with port number 2).
<?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>
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.
<?xml version="1.0" encoding="UTF-8"?> <ethernetPort> <name>fe-0/2/1</name> <portNumber>2</portNumber> </ethernetPort>
CreateLogicalRouter
The CreateLogicalRouter method will instantiate a new logical router device inside the physical one.
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.
<?xml version="1.0" encoding="UTF-8"?> <computerSystem> <toAssociations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="component"> <to xsi:type="enabledLogicalElement"> <name>fe-0/3/3</name> <portNumber>1</portNumber> </to> </toAssociations> <name>logicalrouter1</name> </computerSystem>
DeleteLogicalRouter
This method will remove an existing logical router from the physical one.
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.
<?xml version="1.0" encoding="UTF-8"?> <computerSystem> <name>logicalrouter1</name> </computerSystem>
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 | - |