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 |
|
| - Click: "Add Function"
- Function Name=
- Select the function file:
- Select the method ( function definition in python script )
|
| |
| |
3- use the function under |
|
| Click on Triggers
|
| |
|
|