Corrected the logic to set version variable.

Earlier logic was to check org interface to decide. As older
org interfaces are always present, automation code was always
taking org interface.

Now with changes we take decision based on xyz interface. So
if xyz interface available, we set version variable to 1 else 0.

Also corrected setting OBMC_STATES_VERSION to 0 for old
interface and 1 for new xyz interface.

Resolves openbmc/openbmc-test-automation#387

Change-Id: I4699be2d5650cc9ffcc1c6265bce2f695a5b8516
Signed-off-by: Rahul Maheshwari <rahulmaheshwari@in.ibm.com>
1 file changed