Changes as suggested by @zenhack
Changes as suggested by @zenhack

* factor out some code from get_*vlan into _get_port_info
* add some more comments, and docstrings to explain things better.

CCI-MOC/haas,SahilTikale/haas