[VOL-3796] OpenOnu-Go-Adapter: Create target for multiple OLT (2x2x2) environment

Change-Id: I5e1e5044c979a9d3f8af770935179cb8351e2dfe
diff --git a/libraries/bbsim.robot b/libraries/bbsim.robot
old mode 100644
new mode 100755
index 12ce3a6..92e4424
--- a/libraries/bbsim.robot
+++ b/libraries/bbsim.robot
@@ -57,3 +57,17 @@
     ...    bbsimctl onu igmp ${onu} ${task} ${group_address}
     Log     ${res}
     Should Be Equal as Integers    ${rc}    0
+
+Power On ONU
+    [Documentation]    This keyword turns on the power for onu device.
+    [Arguments]    ${namespace}    ${bbsim_pod_name}    ${onu}
+    ${result}    ${rc}=    Exec Pod And Return Output And RC    ${namespace}    ${bbsim_pod_name}
+    ...    bbsimctl onu poweron ${onu}
+    Should Contain    ${result}    successfully    msg=Can not poweron ${onu}    values=False
+
+Power Off ONU
+    [Documentation]    This keyword turns off the power for onu device.
+    [Arguments]    ${namespace}    ${bbsim_pod_name}    ${onu}
+    ${result}    ${rc}=    Exec Pod And Return Output And RC    ${namespace}    ${bbsim_pod_name}
+    ...    bbsimctl onu shutdown ${onu}
+    Should Contain    ${result}    successfully    msg=Can not shutdown ${onu}    values=False