Link Status Updating Specification
Subscribe

From OpenNMS

Jump to: navigation, search

Contents

Link Status Updating

The status of wireless links between sites will be displayed. The status of the Site container (map element) will reflect a status based on the status of elements it contains.

Prerequisites

Automatic_Map_Creation

Strategy

  • Since the Map adapter is used to create maps and submaps. A 'Site' is represented as map icon for the submap containing the nodes at that site. The status of the icon will reflect the status of the elements in its submap.
  • Add a field to the DataLink interface (or modify the existing field) that represents the operational status of the link.
  • Ensure that the map displays the status as it is refreshed.

Acceptance Criteria

Step 1

The user provisions a map as described in Automatic_Map_Creation

This will establish a link between nc-ral0001-to-ral0002-link and nc-ral0002-to-ral0001-link and display it on the map as a link between map icons Ral Site1 and Ral Site2. Verify that this link is initially 'Normal' or 'Good'.

Step 2

Simulate a monitor detection of a link failure by sending a 'dataLinkFailed' event for the link between nc-ral0001-to-ral0002-link and nc-ral0002-to-ral0001-link.

To send a dataLinkFailed event use the send-event.pl command as follows:

 send-event.pl uei.opennms.org/internal/linkd/dataLinkFailed localhost \ 
       --parm 'endPoint1 nc-ral0001-to-ral0002-link' \ 
       --parm 'endPoint2 nc-ral0002-to-ral0001-link'

Step 3

View the map in the web ui and, after the refresh, the link between Ral Site1 and Ral Site2 should display a 'Failed' or 'Bad' status.


Step 4

Now simulate the restoration the link by sending a 'dataLinkRestored' event for the link between nc-ral0001-to-ral0002-link and nc-ral0002-to-ral0001-link.

 send-event.pl uei.opennms.org/internal/linkd/dataLinkRestored localhost \ 
       --parm 'endPoint1 nc-ral0001-to-ral0002-link' \ 
       --parm 'endPoint2 nc-ral0002-to-ral0001-link'

Step 5

View the map in the web ui and verify that once the map refreshes, the link between "Ral Site1" and "Ral Site2" now displays a 'Normal' or 'Good' status.