The Search and Display Functions

One of the common functions that we need is search functionality. Even if we do not intend to search and merely want to see all addresses and network ranges listed, this is a broad search request that asks the system to display all available information.

Since we have already decided to create a hierarchical structure for the information, the search function is going to look for either IP addresses or substrings in the description and return a list of matching entries.

The display function will display information about the current selected address (the address, number of network bits, and beginning and end addresses of the range) and also list all child entries, that is, all addresses or networks that are part of the selected entry. Clicking any of them would result in a search and display call, which would go down the tree. The display function should also provide a link to the parent entry, so users can move in both directions. If the search query is empty or matches the topmost node in the tree, there should be no option to move one level up. The topmost node in the network tree (or super network) is always For every child entry, the view function should call a health check function to see if the address is responding. Also, a name-resolution procedure is called to obtain a DNS name. This information should be displayed accordingly.

If the currently selected tree node is a network address, users should be presented with a link to an Add New Entry form.

Was this article helpful?

0 0

Post a comment