Lines Matching refs:self
66 def __init__(self, router_id, dev_name_helper):
67 self._router_id = router_id
68 self._dev_name_helper = dev_name_helper
70 def _generate_ndpd_conf(self, router_ports):
72 self._router_id,
78 interface_name = self._dev_name_helper(p['id'])
89 def _refresh_ndpd(self, ndpd_conf):
102 def enable(self, router_ports):
107 self.disable()
109 LOG.debug("enabling ndpd for router %s", self._router_id)
110 ndpd_conf = self._generate_ndpd_conf(router_ports)
111 self._refresh_ndpd(ndpd_conf)
113 def disable(self):
114 LOG.debug("disabling ndpd for router %s", self._router_id)
115 utils.remove_conf_files(cfg.CONF.ra_confs, self._router_id)
116 self._refresh_ndpd("")
119 def enabled(self):