Skip to content

Commit

Permalink
updating the templates to add multiple PON ports (#1930)
Browse files Browse the repository at this point in the history
  • Loading branch information
evilmonkey19 authored Dec 11, 2024
1 parent 7fcccf0 commit a13dc8a
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 8 deletions.
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"

0 comments on commit a13dc8a

Please sign in to comment.