Move ports property definition to the right class

The new ports property was added to the Subnet class
instead of the Router class.

Change-Id: Ibcd0cd90eb2beb3d1bb0c77747c255b628f7a6ba