File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed
nautobot_device_onboarding Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 1+ Fixed HP ProCurve not onboarding if using OOBM interface.
Original file line number Diff line number Diff line change 11---
22sync_devices :
3+ pre_processor :
4+ oobm_data :
5+ commands :
6+ - command : " show oobm ip"
7+ parser : " textfsm"
8+ jpath : " [?member=='Global']"
9+ post_processor : " {{ obj[0] | tojson if obj else {} | tojson }}"
310 hostname :
411 commands :
512 - command : " show system"
@@ -20,12 +27,14 @@ sync_devices:
2027 - command : " show ip"
2128 parser : " textfsm"
2229 jpath : " [?contains(ip_address, `{{ obj }}`)].intf_name"
30+ post_processor : " {% if obj %}{{ obj[0] }}{% else %}{{ 'oobm' }}{% endif %}"
31+ iterable_type : " str"
2332 mask_length :
2433 commands :
2534 - command : " show ip"
2635 parser : " textfsm"
2736 jpath : " [?contains(ip_address, `{{ obj }}`)].ip_mask"
28- post_processor : " {{ obj[0] | netmask_to_cidr }}"
37+ post_processor : " {% if obj %}{{ obj[0] | netmask_to_cidr }}{% else %}{{ oobm_data['prefix_length'] }}{% endif % }"
2938 iterable_type : " int"
3039sync_network_data :
3140 pre_processor :
Original file line number Diff line number Diff line change 925925 "capabilities" : " other, bridge" ,
926926 "mgmt_address" : " "
927927 }
928- ]
929- }
928+ ],
929+ "show oobm ip" : []
930+ }
You can’t perform that action at this time.
0 commit comments