def __init__(self, cb, root_helper, intf_list=None, all_intf=True):
        """Initialization routine, to configure interface.

        Also create the periodic task.
        cb => Callback in case any of the interface TLV changes.
        intf_list => List of interfaces to be LLDP enabled and monitored.
        all_intf => Boolean that signifies if all physical interfaces are to
        be monitored. intf_list will be None, if this variable is True.
        """
        self.pub_lldp = pub_lldp.LldpApi(root_helper)
        self._init_cfg_interfaces(cb, intf_list, all_intf)
        per_task = utils.PeriodicTask(constants.PERIODIC_TASK_INTERVAL,
                                      self.periodic_discovery_task)
        per_task.run()
def __init__ ( self , cb , root_helper , intf_list = None , all_intf = True ) : self . pub_lldp = pub_lldp . LldpApi ( root_helper ) self . _init_cfg_interfaces ( cb , intf_list , all_intf ) per_task = utils . PeriodicTask ( constants . PERIODIC_TASK_INTERVAL , self . periodic_discovery_task ) per_task . run ( )
Initialization routine, to configure interface.

        Also create the periodic task.
        cb => Callback in case any of the interface TLV changes.
        intf_list => List of interfaces to be LLDP enabled and monitored.
        all_intf => Boolean that signifies if all physical interfaces are to
        be monitored. intf_list will be None, if this variable is True.