|
|
When the platform IfConfig updates interfaces it can report updates to an IfConfigUpdateReporter.
enum Update { CREATED, DELETED, CHANGED } | Update |
IfConfigUpdateReporterBase (IfConfigUpdateReplicator& update_replicator)
| IfConfigUpdateReporterBase |
Constructor for a given replicator.
Parameters:
update_replicator | the corresponding replicator (IfConfigUpdateReplicator). |
IfConfigUpdateReporterBase (IfConfigUpdateReplicator& update_replicator,
const IfTree& observed_iftree)
| IfConfigUpdateReporterBase |
Constructor for a given replicator and observed tree.
Parameters:
update_replicator | the corresponding replicator (IfConfigUpdateReplicator). |
observed_iftree | the corresponding interface tree (IfTree). |
~IfConfigUpdateReporterBase ()
| ~IfConfigUpdateReporterBase |
[virtual]
const IfTree& observed_iftree ()
| observed_iftree |
[const]
Get a reference to the observed interface tree.
Returns: a reference to the observed interface tree (see @IfTree).
void add_to_replicator ()
| add_to_replicator |
Add itself to the replicator (see @IfConfigUpdateReplicator).
void remove_from_replicator ()
| remove_from_replicator |
Remove itself from the replicator (see @IfConfigUpdateReplicator).
void interface_update (const string& ifname,
const Update& u)
| interface_update |
[pure virtual]
void vif_update (const string& ifname,
const string& vifname,
const Update& u)
| vif_update |
[pure virtual]
void vifaddr4_update (const string& ifname,
const string& vifname,
const IPv4& addr,
const Update& u)
| vifaddr4_update |
[pure virtual]
void vifaddr6_update (const string& ifname,
const string& vifname,
const IPv6& addr,
const Update& u)
| vifaddr6_update |
[pure virtual]
void updates_completed ()
| updates_completed |
[pure virtual]