Fix development found bugs

1. Fix porting miss
2. Fix network profile validation for Trunk network profile.
   If no sub type is provided when a network profile is created,
   it results in a DB error. This change performs correct
   validation for trunk network profiles.