Fix bug 385 to solve logical port computation in multiple controller scenarios

Change-Id: Ic23b8e41d6972e46bf5f0d97d45f3788eb3d944c
Signed-off-by: kamatchi <kamatchi-l@hcl.com>
(cherry picked from commit 25ef73d2aa79ca1f9866db7ee942f740416a5b36)