You Wang | 0c2b366 | 2018-10-01 16:56:17 -0700 | [diff] [blame] | 1 | # Copyright 2017-present Open Networking Foundation |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
| 15 | *** Settings *** |
| 16 | Documentation Library of functions related to OLT |
| 17 | Library SSHLibrary |
| 18 | Library Collections |
| 19 | Library String |
| 20 | Library OperatingSystem |
| 21 | Library RequestsLibrary |
| 22 | Library utils/utils.py |
| 23 | Library restApi.py |
| 24 | |
| 25 | *** Keywords *** |
| 26 | Openolt is Up |
| 27 | [Arguments] ${ip} ${user} ${pass} ${prompt}=\# ${prompt_timeout}=60s |
| 28 | [Documentation] Verify that openolt process is started and ready to connect to voltha |
| 29 | ${conn_id}= SSHLibrary.Open Connection ${ip} prompt=${prompt} timeout=${prompt_timeout} |
| 30 | SSHLibrary.Login ${user} ${pass} |
| 31 | Check Remote File Contents True ${conn_id} /var/log/ openolt.log oper_state: up |
| 32 | SSHLibrary.Close Connection |