dainok / netdoc

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

Error to add HUAWEI #119

Open StackAls opened 8 months ago

StackAls commented 8 months ago

Hello! I install new netbox with netdoc - Instruction I also add ntc-templates. But my data not parsed. image

what logs and data should I provide you with?

dainok commented 8 months ago

Open a log, for example display arp. Export (top-right) the JSON file and send it to me.

StackAls commented 8 months ago

Open a log, for example display arp. Export (top-right) the JSON file and send it to me.

logs.tar.gz

Thanks!! I cut the password in 89.json

dainok commented 8 months ago

@StackAls which type of device is this? Huawei is a nightmare because many models give a different outputs, and that's hard to automate.

The failing supported logs are

The command about display vlan is failing, is this correct? Is there any other commands? Templates to be fixes are stored in a 3rd party repository: https://github.com/networktocode/ntc-templates

StackAls commented 8 months ago

@dainok HUAWEI CloudEngine S5735-S24T4X

logs of commands netbox.log

display vlan

<MSH294317TEST2>display vlan all    
                             ^
Error: Wrong parameter found at '^' position.
<MSH294317TEST2>display vlan     
The total number of VLANs is: 2
--------------------------------------------------------------------------------
U: Up;         D: Down;         TG: Tagged;         UT: Untagged;
MP: Vlan-mapping;               ST: Vlan-stacking;
#: ProtocolTransparent-vlan;    *: Management-vlan;
--------------------------------------------------------------------------------

VID  Type    Ports                                                          
--------------------------------------------------------------------------------
1    common  UT:GE0/0/2(D)      GE0/0/3(D)      GE0/0/4(D)      GE0/0/5(D)      
                GE0/0/6(D)      GE0/0/7(D)      GE0/0/8(D)      GE0/0/9(D)      
                GE0/0/10(D)     GE0/0/11(D)     GE0/0/12(D)     GE0/0/13(D)     
                GE0/0/14(D)     GE0/0/15(D)     GE0/0/16(D)     GE0/0/17(D)     
                GE0/0/18(D)     GE0/0/19(D)     GE0/0/20(D)     GE0/0/21(D)     
                GE0/0/22(D)     GE0/0/23(D)     GE0/0/24(D)     XGE0/0/1(D)     
                XGE0/0/2(D)     XGE0/0/3(D)     XGE0/0/4(D)                     
2008 common  UT:GE0/0/1(U)                                                      

VID  Status  Property      MAC-LRN Statistics Description      
--------------------------------------------------------------------------------
1    enable  default       enable  disable    VLAN 0001                         
2008 enable  default       enable  disable    VLAN 2008                         
<MSH294317TEST2>

I add this https://github.com/networktocode/ntc-templates - also errors

dainok commented 8 months ago

You are required to fix NTC Templates. I can help you on that, but I expect busy days in the next weeks.ì so it will take times.