Revision d2b16e51 nfdhcpd/nfdhcpd

b/nfdhcpd/nfdhcpd
142 142
            ips = ip.split()
143 143
        elif line.startswith("MAC="):
144 144
            mac = line.strip().split("=")[1]
145
        elif line.startswith("LINK="):
146
            link = line.strip().split("=")[1]
147 145
        elif line.startswith("HOSTNAME="):
148 146
            hostname = line.strip().split("=")[1]
149 147
        elif line.startswith("IFACE="):
......
155 153
        elif line.startswith("SUBNET6="):
156 154
            subnet6 = line.strip().split("=")[1]
157 155
        elif line.startswith("GATEWAY6="):
158
            gatewa6 = line.strip().split("=")[1]
156
            gateway6 = line.strip().split("=")[1]
159 157

  
160 158
    return Client(ifname=ifname, mac=mac, ips=ips, link=link,
161
                  hostname=hostname,iface=iface, subnet=subnet,
159
                  hostname=hostname, iface=iface, subnet=subnet,
162 160
                  gateway=gateway, subnet6=subnet6, gateway6=gateway6 )
163 161

  
164 162
class ClientFileHandler(pyinotify.ProcessEvent):
......
674 672
        logging.debug("Sending out periodic RAs")
675 673
        start = time.time()
676 674
        i = 0
677
        for client in self.clients.values():
678
            iface = client.iface
679
            ifmac = self.get_iface_hw_addr(iface)
680
            if not ifmac:
681
                continue
682

  
683
            binding = self.clients[ifmac]
675
        for binding in self.clients.values():
676
            iface = binding.ifname
677
            ifmac = binding.mac
684 678
            subnet = binding.net6
685 679
            if subnet.net is None:
686 680
                logging.debug("Skipping periodic RA on interface %s,"

Also available in: Unified diff