small chunk of code is not added under the host_setting flag which causes the issue.
small chunk of code is not added under the host_setting flag
which causes the issue.

Moved the code in the proper place and also added the support
for vcenter.

Change-Id: I2b2bc679f568da2ab7538d70b138206984c03ce4
Closes-bug: #1544269

Juniper/contrail-fabric-utils,Juniper/contrail-fabric-utils