/
functions

functions


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 )





3- use the function under 



Click on Triggers






Related content

1b- Rules yaml files use for the rules
1b- Rules yaml files use for the rules
More like this
1a- Rules on Healthbot GUI and Playbook for the HB to NorthStar
1a- Rules on Healthbot GUI and Playbook for the HB to NorthStar
More like this
rules folder for telemetry and snmp
rules folder for telemetry and snmp
More like this
HealthBot and NorthStar on JCL
HealthBot and NorthStar on JCL
More like this
Healthbot with Cisco Devices
Healthbot with Cisco Devices
More like this
RPM yaml file and rpc call netconf
RPM yaml file and rpc call netconf
More like this