migration helpers and rest interface for port information of gears

[merge]