Automation fix 401 session issue

Changes:
   - In current code using Redfish OBMC Reboot (off), in order
     to reboot the BMC. but after reboot it delete all the session.
     the session created by test case still needed even after the
     reboot in order to continue the execution.

Change-Id: Ia8c75016791dd401c9c5b268e116027f25a5a905
Signed-off-by: Sushil Singh <susilsi7@in.ibm.com>
diff --git a/openpower/ext_interfaces/test_client_identifier.robot b/openpower/ext_interfaces/test_client_identifier.robot
index 686dfed..b699949 100644
--- a/openpower/ext_interfaces/test_client_identifier.robot
+++ b/openpower/ext_interfaces/test_client_identifier.robot
@@ -7,9 +7,11 @@
 Resource          ../../lib/resource.robot
 Resource          ../../lib/bmc_redfish_utils.robot
 Resource          ../../lib/external_intf/management_console_utils.robot
+Resource          ../../lib/utils.robot
 Library           ../../lib/bmc_network_utils.py
 Library           ../../lib/gen_robot_valid.py
 
+
 Suite Setup       Redfish.Login
 Suite Teardown    Run Keyword And Ignore Error  Delete All Redfish Sessions
 Test Setup        Printn
@@ -94,9 +96,15 @@
     ${client_ids}=  Split String  ${client_id}  ,
     ${session_info}=  Create Session With List Of ClientID  ${client_ids}
     Verify A Session Created With ClientID  ${client_ids}  ${session_info}
+
+    ${before_reboot_xauth_token}=  Set Variable  ${XAUTH_TOKEN}
+
     Run Keyword If  '${reboot_flag}' == 'True'
-    ...  Run Keywords  Redfish OBMC Reboot (off)  AND
+    ...  Run Keywords  Redfish BMC Reset Operation  AND
+    ...  Set Global Variable  ${XAUTH_TOKEN}  ${before_reboot_xauth_token}  AND
+    ...  Is BMC Standby  AND
     ...  Verify A Session Created With ClientID  ${client_ids}  ${session_info}
+
     Redfish Delete List Of Session  ${session_info}