Writing a device class
A device class is a simple YAML file containing information that is needed to communicate with a network device from this class. Thola uses these device classes internally to change the requests from generic ones to device-specific requests.
Example of a device class file:
name: "edgeos" match: logical_operator: "OR" conditions: - type: SysObjectID match_mode: startsWith values: - .220.127.116.11.4.1.259. identify: properties: vendor: - detection: constant value: "EdgeCore" model: - detection: SysDescription serial_number: - detection: snmpget oid: .18.104.22.168.4.1.222.214.171.124.126.96.36.199.10.1 os_version: - detection: snmpget oid: .188.8.131.52.184.108.40.206.2.0
YAML files are used as they are much more human-readable than other alternative formats (like JSON or XML) and so it will be easier for users to integrate new network devices.