-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can we try to add Huawei support? #102
Comments
Best is if you are able to write discoverers, templates, ingestors. If not provide a lab and I'll do the best. Consider sponsoring :) |
The lab is created only with text files? Or did you export this files from a software? |
You can use a simulator but at the end you need a set of text and YAML files. Text files contain the output of "display" commands, YAML files contain what you expect to be ingested into Netbox. You can prepare a physical or a virtual lab then export logs, see https://github.com/dainok/netdoc/blob/master/scripts/lab_export.py |
Obviously lab files will be for public (testing purpose). |
Still interested? Can you provide the requested files? |
Hi!
Yes, I am still interested.
I’m trying to do what you’ve asked!
Enviado do meu iPhone
Em 19 de nov. de 2023, à(s) 06:16, Andrea Dainese ***@***.***> escreveu:
Still interested? Can you provide the requested files?
—
Reply to this email directly, view it on GitHub<#102 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ADRCQMJMBPMHLDAYXTWNDZ3YFHE6DAVCNFSM6AAAAAA7BQ7M5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJXG44TMMZYGM>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Ok, thank you for the feedback. |
Hi @dainok ! |
Thank you @gabrielat I'm working on that in the next weeks. |
@gabrielat one question: which netmiko tye should I use?
|
@dainok Huawei |
@gabrielat few questions:
|
See #112 |
Sure, I’ll do that later today.
But there were a few commands that didn’t have the “all” option. But I’ll confirm that and get back to you.
Best regards
Enviado do meu iPhone
Em 23 de nov. de 2023, à(s) 09:22, Andrea Dainese ***@***.***> escreveu:
@gabrielat<https://github.com/gabrielat> few questions:
1. can you confirm the command "display arp all"? (you reported "display arp" only)
2. can you provide the output of "display ip routing-table verbose" from node1?
3. can you provide the output of "display vlan all" from node1?
—
Reply to this email directly, view it on GitHub<#102 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ADRCQMO34RGZG35GLU77NCLYF45XDAVCNFSM6AAAAAA7BQ7M5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRUGM2DANRVG4>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
I will go with the following commands, please confirm: display current-configuration | include sysname No commands are required on a per vrf bassis. ARP and routing are included for all VRFs in the above commands. |
I need from your side:
|
Hi! |
I've disassembled the lab I did before, can I sent you the results for a real switch? display ip routing-table verbose:
|
Sure, please send in txt/raw format as a separated file.
|
Yes, that's it |
Here are the files ypu've asked for :-) |
@gabrielat parsing display vlan is very complex: I'm not able to parse tagged and untagged interfaces. |
Hi! I've looked the commands available but nothing seems to work properly.. From 'display vlan' I could see that tagged ports are preceeded with TG and untagged with UT.
Note that in section
Saying that VLAN 234 is UNTAGGED on ports XGE1/0/4 and on XGE1/0/5, both in Up state, and also TAGGED on por XGE1/0/24 in Down state. As we can see in:
I think it's not ideal, but this is the best way I could find.. |
It’s not ideal, it’s a nightmare!
Any other display something that can help?
What if you display vlan 10?
…On Wed, Nov 29, 2023 at 19:52, gabrielat ***@***.***(mailto:On Wed, Nov 29, 2023 at 19:52, gabrielat <<a href=)> wrote:
> ***@***.***(https://github.com/gabrielat) parsing display vlan is very complex: I'm not able to parse tagged and untagged interfaces. Any chance I can get which VLAN is passing and how on each interface? (display int or display vlan detail?
Hi! I've looked the commands available but nothing seems to work properly..
Huawei doesn't have 'display vlan detail' and doesn't show the tagged and untagged vlans on 'display interface'.
From 'display vlan' I could see that tagged ports are preceeded with TG and untagged with UT.
For instance:
<rout> display vlan 234
--------------------------------------------------------------------------------
U: Up; D: Down; TG: Tagged; UT: Untagged;
MP: Vlan-mapping; ST: Vlan-stacking;
#: ProtocolTransparent-vlan; *: Management-vlan;
--------------------------------------------------------------------------------
VID Type Ports
--------------------------------------------------------------------------------
234 common UT:XGE1/0/4(U) XGE1/0/5(U)
TG:XGE1/0/24(D)
VID Status Property MAC-LRN Statistics Description
--------------------------------------------------------------------------------
234 enable default enable disable vlan234
Note that in section
VID Type Ports
There is
234 common UT:XGE1/0/4(U) XGE1/0/5(U)
TG:XGE1/0/24(D)
Saying that VLAN 234 is UNTAGGED on ports XGE1/0/4 and on XGE1/0/5, both in Up state, and also TAGGED on por XGE1/0/24 in Down state.
As we can see in:
<rout>display current-configuration interface XGigabitEthernet 1/0/4
#
interface XGigabitEthernet1/0/4
port link-type access
port default vlan 234
#
return
<rout>display current-configuration interface XGigabitEthernet 1/0/5
#
interface XGigabitEthernet1/0/5
port link-type access
port default vlan 234
#
return
<rout-cs-dc-saude-01>display current-configuration interface XGigabitEthernet 1/0/24
#
interface XGigabitEthernet1/0/24
port link-type trunk
port trunk allow-pass vlan 100 234 1823
#
return
I think it's not ideal, but this is the best way I could find..
—
Reply to this email directly, [view it on GitHub](#102 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/ACGI3ZD44AWEMLV2FAUNJ3DYG6AAXAVCNFSM6AAAAAA7BQ7M5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZSGUYTCNBWGA).
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@gabrielat seems I successfully parsed VLANs. |
@gabrielat another question: |
@gabrielat I completed most of the required tasks. I need:
|
@gabrielat based on templates, you should have this command: display port vlan |
here is the display port vlan return |
@gabrielat ok go with tests. |
Hi @dainok ! Sorry, but I don't know how to add these on my installation. Can you tell me what I need to do? Thanks |
Follow https://github.com/dainok/netdoc/wiki/Developing-NetDoc |
@dainok trying to run for the first time, got this error:
|
@gabrielat fixed (hopefully). can you update netdoc and test again? |
@dainok it's running now |
@gabrielat everything is working? any error? |
@dainok the discovery ran ok, the ingest returned an error due to IPv6:
|
@gabrielat I see you are using IPv6. I'm not implemented it yet in NetDoc. IPv4 can be fine for now? |
Yes, but I ran netdoc on IPv4 addresses..
|
ok, let me think how I can skip IPv6 for now. |
@gabrielat update netdoc and try again |
there were only 2 logs that weren't ingested due to ipv6 addresses (both from lldp). |
I'll do that now |
1 ingest was ok, but then: Increase timeout and run again? |
Seems that the VM cannot reach API to lookup vendor MAC address. That VM can reach the Internet? Does it have any restrictions?
Sent from [Proton Mail](https://proton.me/mail/home) for iOS
…On Wed, Dec 6, 2023 at 18:55, Gabriela Todeschini ***@***.***(mailto:On Wed, Dec 6, 2023 at 18:55, Gabriela Todeschini <<a href=)> wrote:
> ***@***.***(https://github.com/gabrielat) update netdoc and try again
1 ingest was ok, but then:
[image.png (view on web)](https://github.com/dainok/netdoc/assets/14821425/1bce8be1-204b-464c-9a08-788e8c72a8c7)
—
Reply to this email directly, [view it on GitHub](#102 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/ACGI3ZGJA2QDX4OJKFMUP6LYICWRXAVCNFSM6AAAAAA7BQ7M5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBTGM4TCMZUGM).
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Yes, it has access and no restrictions.. |
Can you export the log and send it to me by email?
Sent from [Proton Mail](https://proton.me/mail/home) for iOS
…On Wed, Dec 6, 2023 at 19:15, Gabriela Todeschini ***@***.***(mailto:On Wed, Dec 6, 2023 at 19:15, Gabriela Todeschini <<a href=)> wrote:
> Seems that the VM cannot reach API to lookup vendor MAC address. That VM can reach the Internet? Does it have any restrictions? Sent from [Proton Mail](https://proton.me/mail/home) for iOS
> […](#)
> On Wed, Dec 6, 2023 at 18:55, Gabriela Todeschini @.(mailto:On Wed, Dec 6, 2023 at 18:55, Gabriela Todeschini <[wrote: > @.]())(https://github.com/gabrielat) update netdoc and try again 1 ingest was ok, but then: [image.png (view on web)](https://github.com/dainok/netdoc/assets/14821425/1bce8be1-204b-464c-9a08-788e8c72a8c7) — Reply to this email directly, [view it on GitHub]([#102 (comment)](#102 (comment))), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/ACGI3ZGJA2QDX4OJKFMUP6LYICWRXAVCNFSM6AAAAAA7BQ7M5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBTGM4TCMZUGM). You are receiving this because you were mentioned.Message ID: @.***>
Yes, it has access and no restrictions..
—
Reply to this email directly, [view it on GitHub](#102 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/ACGI3ZF2J6PELCH5FHULDD3YICY33AVCNFSM6AAAAAA7BQ7M5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBTGQZDMOBZGM).
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Another question: how many mac addresses do you have in log 394? |
Hi, good morning! |
do you still need it by email? |
No it's fine, thank you for the log. |
@gabrielat I tested on my lab and I'm ingesting 2k MAC addresses in a couple of minutes. So I cannot tell if you are triggering a bug or it is caused by a lack of resources. Could you try to increase timeout? And... could you skip/delete (for now) the log, so we can check if you are triggering other bugs? |
Hi! Thank you for the reply. |
@gabrielat can you confirm parsing is ok so I can send update to 3rd party repositories? |
@gabrielat beside this, other logs are ingesting fine? Could you please delete this one and go with others? |
Yes, the others are fine!
Enviado do meu iPhone
Em 21 de dez. de 2023, à(s) 04:59, Andrea Dainese ***@***.***> escreveu:
@gabrielat<https://github.com/gabrielat> beside this, other logs are ingesting fine? Could you please delete this one and go with others?
I need to publish changes as soon as possible.
—
Reply to this email directly, view it on GitHub<#102 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ADRCQMKFFKCWDUGLCEI2QGTYKPT3RAVCNFSM6AAAAAA7BQ7M5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRVHAYTOMZXGM>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@gabrielat both ntc-templates and netdoc are merged to master. Regarding your issue, can you try to manually ingest the huge log? (check https://github.com/dainok/netdoc/blob/master/scripts/log_ingest.py the script must be used in a NetBox/Django shell) |
Hello, I saw that there was an issue to add Huawei support, but it didn't follow through.
Is this all you need? How can I help?
To add a new supported device, we need, at least:
Originally posted by @dainok in #2 (comment)
The text was updated successfully, but these errors were encountered: