Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

https://www.juniper.net/documentation/en_US/healthbot/topics/topic-map/healthbot-rules-n-playbooks-map.html



1- create the py file function ( with def 

2- create the function in HealthBot

3- use the function under 



- create the py file function ( with def 



functions py file location

root@ubuntu:~# find /var | grep mplslabel.py
/var/local/healthbot/input/mplslabel.py
/var/local/healthbot/rules/juniper_official/Solutions/Mpls-blackhole-detection/mplslabel.py



jcluser@ubuntu:/var/local/healthbot/rules$ ls community_supplied/
README.md


jcluser@ubuntu:/var/local/healthbot/rules$ ls juniper_official/
Chassis Interfaces LFA Linecard Protocols README.md Solutions Subscriber-Service System




2- create the function in HealthBot



  1. Click: "Add Function"
  2. Function Name=
  3. Select the function file:
  4. Select the method ( function definition in python script )



Image Added



Image Added

3- use the function under 



Click on Triggers



Image Added