Skip to content
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

New template: huawei_smartax_port_vlan #1713

Merged
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions ntc_templates/templates/huawei_smartax_port_vlan.textfsm
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Value SUCCESS (\d+)
Value FAILED (\d+)

Start
^Set\sONT\sport\(s\)\sVLAN\sconfiguration,\ssuccess:\s*${SUCCESS},\s*failed:\s*${FAILED} -> Record
^\s*$$
^. -> Error
2 changes: 1 addition & 1 deletion ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ huawei_smartax_display_version.textfsm, .*, huawei_smartax, di[[splay]] ver[[sio
huawei_smartax_display_board.textfsm, .*^, huawei_smartax, di[[splay]] bo[[ard]]\s*
huawei_smartax_display_cpu.textfsm, .*, huawei_smartax, di[[splay]] cpu\s*
huawei_smartax_display_mem.textfsm, .*, huawei_smartax, di[[splay]] mem[[ory]]\s*

huawei_smartax_port_vlan.textfsm, .*, huawei_smartax, port vlan\s*

huawei_vrp_display_traffic-filter_applied-record.textfsm, .*, huawei_vrp, dis[[play]] traffic-filter applied-record
huawei_vrp_display_ip_vpn-instance_interface.textfsm, .*, huawei_vrp, di[[splay]] ip vpn[[-instance]] interface
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Set ONT port(s) VLAN configuration, success: 1, failed: 0
4 changes: 4 additions & 0 deletions tests/huawei_smartax/port_vlan/huawei_smartax_port_vlan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
parsed_sample:
- failed: "0"
success: "1"