dainok / netdoc

Automatic Network Documentation plugin for NetBox
GNU General Public License v3.0
89 stars 14 forks source link

Feature request - Add Aruba CX devices #88

Closed proebstle closed 10 months ago

proebstle commented 11 months ago

Maybe the code can help you... Discover by SSH. command "no page" for no paging

def discovery(nrni, filters=None, filter_type=None): """Discovery Arubx CX devices.""" # platform = "ArubaCX" host_list = [] failed_host_list = [] # Define commands, in order with command, template, enabled commands = [ ("show system", "HOSTNAME"), ("show running-config", None), ("show interfaces brief", None), ("show vlan", None), ("show cdp neighbor-info", None), ("show lldp neighbor-info", None), ("show mac-address", None), ("show arp", None), ("show lag", None), ("show ip interface brief", None), ("show ip route", None), ("show version", None), ("show system", None), ("show logging", None), ("show spanning-tree", None),

` ]

dainok commented 11 months ago

@proebstle I need the output from a swtich so I can prepare a test scenario. With CX are you referring to https://github.com/networktocode/ntc-templates/tree/master/tests/aruba_aoscx ?

dainok commented 11 months ago

@proebstle check https://github.com/dainok/netdoc/pull/99 Seems that NTC Templates need to be implemented or adjusted (https://github.com/networktocode/ntc-templates/tree/master/tests/aruba_aoscx)

dainok commented 11 months ago

@proebstle please check https://github.com/dainok/netdoc/pull/99 NTC templates PR is https://github.com/networktocode/ntc-templates/pull/1559

dainok commented 11 months ago

@proebstle please check https://github.com/dainok/netdoc/releases/tag/3.5.11 and let me know