1*c5e9ebc6SSushil Singh*** Settings *** 2*c5e9ebc6SSushil SinghDocumentation Management console utilities keywords. 3*c5e9ebc6SSushil Singh 4*c5e9ebc6SSushil SinghLibrary ../../lib/gen_robot_valid.py 5*c5e9ebc6SSushil SinghLibrary Collections 6*c5e9ebc6SSushil SinghLibrary ../../lib/bmc_ssh_utils.py 7*c5e9ebc6SSushil SinghLibrary SSHLibrary 8*c5e9ebc6SSushil Singh 9*c5e9ebc6SSushil Singh*** Variables *** 10*c5e9ebc6SSushil Singh&{daemon_command} start=systemctl start avahi-daemon 11*c5e9ebc6SSushil Singh ... stop=systemctl stop avahi-daemon 12*c5e9ebc6SSushil Singh ... status=systemctl status avahi-daemon -l 13*c5e9ebc6SSushil Singh&{daemon_message} start=Active: active (running) 14*c5e9ebc6SSushil Singh ... stop=Active: inactive (dead) 15*c5e9ebc6SSushil Singh 16*c5e9ebc6SSushil Singh*** Keywords *** 17*c5e9ebc6SSushil Singh 18*c5e9ebc6SSushil SinghSet AvahiDaemon Service 19*c5e9ebc6SSushil Singh [Documentation] To enable or disable avahi service. 20*c5e9ebc6SSushil Singh [Arguments] ${command} 21*c5e9ebc6SSushil Singh 22*c5e9ebc6SSushil Singh # Description of argument(s): 23*c5e9ebc6SSushil Singh # command Get command from dictionay. 24*c5e9ebc6SSushil Singh 25*c5e9ebc6SSushil Singh ${service_command}= Get From Dictionary ${daemon_command} ${command} 26*c5e9ebc6SSushil Singh ${resp} ${stderr} ${rc}= BMC Execute Command ${service_command} print_out=1 27*c5e9ebc6SSushil Singh Should Be Equal As Integers ${rc} 0 28*c5e9ebc6SSushil Singh 29*c5e9ebc6SSushil Singh 30*c5e9ebc6SSushil SinghVerify AvahiDaemon Service Status 31*c5e9ebc6SSushil Singh [Documentation] To check for avahi service. 32*c5e9ebc6SSushil Singh [Arguments] ${message} 33*c5e9ebc6SSushil Singh 34*c5e9ebc6SSushil Singh # Description of argument(s): 35*c5e9ebc6SSushil Singh # message Get status message from dictionay. 36*c5e9ebc6SSushil Singh 37*c5e9ebc6SSushil Singh ${service_command}= Get From Dictionary ${daemon_command} status 38*c5e9ebc6SSushil Singh ${service_message}= Get From Dictionary ${daemon_message} ${message} 39*c5e9ebc6SSushil Singh ${resp} ${stderr} ${rc}= BMC Execute Command ${service_command} print_out=1 40*c5e9ebc6SSushil Singh Should Contain ${resp} ${service_message} 41