You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Methods

Remember to execute the queue in order to apply this methods to the physical device.

 

ReadOSPFConfiguration

This method returnes the existing OSPF configuration in a router, in terms of different OSPFAreas and the set of interfaces in each of them.

 ValueDescription
URLhttp://hostname:8888/opennaas/router/{resourceName}/ospf/readOSPFConfiguration 
MethodGET 
ReturnOSPFService OSPFService containing the existring OSPFAreas and the interfaces of each area.
Response Example

Following example would illustrate a router with one OSPFArea and 4 enabled interfaces in it.

<?xml version="1.0" encoding="UTF-8"?>
<ospfService>
   <ospfArea>
      <areaId>0</areaId>
      <ospfProtocolEndpoint>
         <name>ge-2/0/0.13</name>
         <enabledState>ENABLED</enabledState>
      </ospfProtocolEndpoint>
      <ospfProtocolEndpoint>
         <name>gr-1/1/0.1</name>
         <enabledState>ENABLED</enabledState>
      </ospfProtocolEndpoint>
      <ospfProtocolEndpoint>
         <name>gr-1/1/0.2</name>
         <enabledState>ENABLED</enabledState>
      </ospfProtocolEndpoint>
      <ospfProtocolEndpoint>
         <name>gr-1/1/0.3</name>
         <enabledState>ENABLED</enabledState>
      </ospfProtocolEndpoint>
   </ospfArea>
</ospfService>
  • No labels