On every router that I have used, the ports LED are controlled automaticaly. It may be possible to control them by directly adressing the GPIO. But it's tough , and you'll need documentation about your device. I had an issue once that is closed to your.