-
Notifications
You must be signed in to change notification settings - Fork 735
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
Added template for Huawei SmartAX: display_ont_port_vlan_0_1_byport_eth_0 #1796
Added template for Huawei SmartAX: display_ont_port_vlan_0_1_byport_eth_0 #1796
Conversation
@evilmonkey19 what do you mean by extra empty value, and by values that cannot be captured? |
If you look at the .yml file you will notice that the "native_vlan" value is fulfilled only once. I do this because of the output. I get the values from the list and the extra values (native_vlan and so on) are filled in an another value. |
Oh, I think you are looking for Fillup:
|
I have tried before but unfortunately i didn't make it work and I had no clue on how to make it work :'(
|
I sent a PR evilmonkey19#1 that passes tests for me |
I see! It works as expected but again it adds 3 values to the list instead of only 2, although the list is only 2 rows. To me, it looks even better your solution 😃. I gotta say that Huawei made this case hard xD |
Add Fillup for non-table values
Oh, the additional entry can also be fixed |
...lay_ont_port_vlan_0_1_byport_eth_0/huawei_smartax_display_ont_port_vlan_0_1_byport_eth_0.yml
Outdated
Show resolved
Hide resolved
ntc_templates/templates/huawei_smartax_display_ont_port_vlan_0_1_byport_eth_0.textfsm
Show resolved
Hide resolved
@evilmonkey19 there are two ways to solve that, either overriding the default behavior of |
Awesome! Thanks for letting me know ❤️ It was the first time for me with this kind of templates |
The idea with the extra empty empty value is to capture the native_vlan and other values that cannot be capture. I am open to any suggestion on how to improve.