Changed inactive switch addition & index issue

Inactive Switch addition is now being done from switch event manager,
while port is being added
Solved OnPortTable index issue