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

updating the templates to add multiple PON ports #1930

Merged
Show file tree
Hide file tree
Changes from all 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
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
Value Required FSP (\w+\/\s\w+\/\w+)
Value Key ONT_ID (\d+)
Value SERIAL_NUMBER (\w+)
Value CONTROL_FLAG (\w+)
Value RUN_STATE (\w*)
Value CONFIG_STATE (\w*)
Value MATCH_STATE (\w*)
Value SERIAL_NUMBER ([A-Z0-9]{16})
Value CONTROL_FLAG (active|deactive|configuring)
Value RUN_STATE (online|offline)
Value CONFIG_STATE (normal|mismatch|failing|online|initial)
Value MATCH_STATE (initial|mismatch|match)
Value PROTECT_SIDE (no|yes)

Start
^\s+-
^\s+F\/S\/P\s+ONT\s+SN\s+Control\s+Run\s+Config\s+Match\s+Protect
^\s+ID\s+flag\s+state\s+state\s+state\s+side -> SNs
^.\s*$$ -> Error

SNs
^\s*${FSP}\s*${ONT_ID}\s*${SERIAL_NUMBER}\s*${CONTROL_FLAG}\s*(${RUN_STATE}|-)\s*(${CONFIG_STATE}|-)\s*(${MATCH_STATE}|-)\s*${PROTECT_SIDE}\s* -> Record
^\s*${FSP}\s*${ONT_ID}\s*${SERIAL_NUMBER}\s*${CONTROL_FLAG}\s*(-|${RUN_STATE})\s*(-|${CONFIG_STATE})\s*(-|${MATCH_STATE})\s*${PROTECT_SIDE}\s* -> Record
^\s*-
^\s*F\/S\/P\s+(ONT|ONT-ID)\s+Description -> EOF
^. -> Error
^\s*F\/S\/P\s+(ONT|ONT-ID)\s+Description
^\s*$$
^.-> Error
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
-----------------------------------------------------------------------------
F/S/P ONT SN Control Run Config Match Protect
ID flag state state state side
-----------------------------------------------------------------------------
0/ 1/0 0 46VBSM4LFW7QLGAV active online normal match no
------------------------------- ----------------------------------------------
F/S/P ONT-ID Description
-----------------------------------------------------------------------------
0/ 1/0 0 The boiling consignment budgets.
-----------------------------------------------------------------------------
In port 0/ 1/0, the total of ONTs are: 1, online: 1
-----------------------------------------------------------------------------

-----------------------------------------------------------------------------
F/S/P ONT SN Control Run Config Match Protect
ID flag state state state side
-----------------------------------------------------------------------------
0/ 1/2 0 1234567890ABCDEF active online normal match no
-----------------------------------------------------------------------------
F/S/P ONT-ID Description
-----------------------------------------------------------------------------
0/ 1/2 0 ONT_NO_DESCRIPTION
-----------------------------------------------------------------------------
In port 0/ 1/2 , the total of ONTs are: 1, online: 1
-----------------------------------------------------------------------------
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
parsed_sample:
- config_state: "normal"
control_flag: "active"
description: "The boiling consignment budgets."
fsp: "0/ 1/0"
match_state: "match"
ont_id: "0"
protect_side: "no"
run_state: "online"
serial_number: "46VBSM4LFW7QLGAV"
- config_state: "normal"
control_flag: "active"
description: "The boiling consignment budgets."
fsp: "0/ 1/2"
match_state: "match"
ont_id: "0"
protect_side: "no"
run_state: "online"
serial_number: "1234567890ABCDEF"