def METHOD_NAME(self):
    with open(self.f_led.format("port1"), 'r') as led_file:
        shouldInit = (int(led_file.read()) == 0)
    if shouldInit == True:
        for port_cfg in self._port_cfgs:
            macs = [int(x) for x in (port_cfg.lanes.split(','))]
            led = self.mac_to_led[min(macs)]
            if led < 0:
                continue
            defmode = self._port_state_to_mode(led, "down")
            with open(self.f_led.format("port{}".format(led)), 'w') as led_file:
                led_file.write(str(defmode))
                DBG_PRINT("init port{} led to mode={}".format(led, defmode))