class Vlink

Manage all the state for virtual links. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods


Detailed Description

Manage all the state for virtual links.

bool  create_vlink (OspfTypes::RouterID rid)

create_vlink

Add a virtual link router ID to the database.

bool  delete_vlink (OspfTypes::RouterID rid)

delete_vlink

Remove this router ID from the database.

bool  set_transit_area (OspfTypes::RouterID rid, OspfTypes::AreaID transit_area)

set_transit_area

Set the transmit area through which the virtual link is formed.

bool  get_transit_area (OspfTypes::RouterID rid, OspfTypes::AreaID& transit_area)

get_transit_area

[const]

Get the transmit area information.

bool  set_transit_area_notified (OspfTypes::RouterID rid, bool state)

set_transit_area_notified

Set state to know if the area has been notified about this virtual link.

bool  get_transit_area_notified (OspfTypes::RouterID rid)

get_transit_area_notified

[const]

Has the area been notified?

bool  add_address (OspfTypes::RouterID rid, A source, A destination)

add_address

Associate the endpoint addresses with this virtual link.

bool  get_address (OspfTypes::RouterID rid, A& source, A& destination)

get_address

Get the endpoint addresses of this virtual link.

bool  get_interface_vif (OspfTypes::RouterID rid, string& interface, string& vif)

get_interface_vif

[const]

Provide an interface and vif for this router ID. Must not be called before the address information has been provided.

bool  add_peerid (OspfTypes::RouterID rid, PeerID peerid)

add_peerid

Save the peerid that has been allocted to this virtual link.

PeerID  get_peerid (OspfTypes::RouterID rid)

get_peerid

[const]

Get the associated peerid.

bool  set_physical_interface_vif (OspfTypes::RouterID rid, string& interface, string& vif)

set_physical_interface_vif

The phyical interface and vif that should be used for transmission.

bool  get_physical_interface_vif (A source, A destination, string& interface, string& vif)

get_physical_interface_vif

[const]

Given the source and destination addresses return the interface and vif.

PeerID  get_peerid (A source, A destination)

get_peerid

[const]

Given the source and destination address find the PeerID of the relevant virtual link.

void  get_router_ids (OspfTypes::AreaID transit_area, list<OspfTypes::RouterID>& rids)

get_router_ids

[const]

Get the list of virtual links (router ids) that flow through this area.

void  area_removed (OspfTypes::AreaID area)

area_removed

This area has been removed mark all the notified for this area to false. Allowing an area to be removed and then brought back.


Generated by: pavlin on possum.icir.org on Wed Aug 2 15:36:38 2006, using kdoc $.