save exposed port interfaces of a gear

[merge]