nautobot / nautobot-app-device-onboarding

Device Onboarding Plugin for Nautobot
https://docs.nautobot.com/projects/device-onboarding/en/latest/
Other
44 stars 31 forks source link

Add a "raw" parser concept, also add sync device platform support for hp_comware #250

Closed jeffkala closed 1 month ago

jeffkala commented 1 month ago

Key to getting hp_comware supportred was to support a "raw" parser, there was no other command/json/template option besides grabbing the output directly from a configuration command. This is also going to be very valuable for other platforms where certain data fields can be more easily extracted by just running a raw command and not requiring json output.

Example

  hostname:
    commands:
      - command: "display current | include sysname"
        parser: "raw"
        jpath: "raw"
        post_processor: "{{ obj.lstrip().split(' ')[1] }}"
jeffkala commented 1 month ago

fixes #249