Skip to content

Commit a13dc8a

Browse files
authored
updating the templates to add multiple PON ports (#1930)
1 parent 7fcccf0 commit a13dc8a

File tree

3 files changed

+55
-8
lines changed

3 files changed

+55
-8
lines changed
Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
Value Required FSP (\w+\/\s\w+\/\w+)
22
Value Key ONT_ID (\d+)
3-
Value SERIAL_NUMBER (\w+)
4-
Value CONTROL_FLAG (\w+)
5-
Value RUN_STATE (\w*)
6-
Value CONFIG_STATE (\w*)
7-
Value MATCH_STATE (\w*)
3+
Value SERIAL_NUMBER ([A-Z0-9]{16})
4+
Value CONTROL_FLAG (active|deactive|configuring)
5+
Value RUN_STATE (online|offline)
6+
Value CONFIG_STATE (normal|mismatch|failing|online|initial)
7+
Value MATCH_STATE (initial|mismatch|match)
88
Value PROTECT_SIDE (no|yes)
99

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

1516
SNs
16-
^\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
17+
^\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
1718
^\s*-
18-
^\s*F\/S\/P\s+(ONT|ONT-ID)\s+Description -> EOF
19-
^. -> Error
19+
^\s*F\/S\/P\s+(ONT|ONT-ID)\s+Description
20+
^\s*$$
21+
^.-> Error
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
-----------------------------------------------------------------------------
2+
F/S/P ONT SN Control Run Config Match Protect
3+
ID flag state state state side
4+
-----------------------------------------------------------------------------
5+
0/ 1/0 0 46VBSM4LFW7QLGAV active online normal match no
6+
------------------------------- ----------------------------------------------
7+
F/S/P ONT-ID Description
8+
-----------------------------------------------------------------------------
9+
0/ 1/0 0 The boiling consignment budgets.
10+
-----------------------------------------------------------------------------
11+
In port 0/ 1/0, the total of ONTs are: 1, online: 1
12+
-----------------------------------------------------------------------------
13+
14+
-----------------------------------------------------------------------------
15+
F/S/P ONT SN Control Run Config Match Protect
16+
ID flag state state state side
17+
-----------------------------------------------------------------------------
18+
0/ 1/2 0 1234567890ABCDEF active online normal match no
19+
-----------------------------------------------------------------------------
20+
F/S/P ONT-ID Description
21+
-----------------------------------------------------------------------------
22+
0/ 1/2 0 ONT_NO_DESCRIPTION
23+
-----------------------------------------------------------------------------
24+
In port 0/ 1/2 , the total of ONTs are: 1, online: 1
25+
-----------------------------------------------------------------------------
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
parsed_sample:
3+
- config_state: "normal"
4+
control_flag: "active"
5+
description: "The boiling consignment budgets."
6+
fsp: "0/ 1/0"
7+
match_state: "match"
8+
ont_id: "0"
9+
protect_side: "no"
10+
run_state: "online"
11+
serial_number: "46VBSM4LFW7QLGAV"
12+
- config_state: "normal"
13+
control_flag: "active"
14+
description: "The boiling consignment budgets."
15+
fsp: "0/ 1/2"
16+
match_state: "match"
17+
ont_id: "0"
18+
protect_side: "no"
19+
run_state: "online"
20+
serial_number: "1234567890ABCDEF"

0 commit comments

Comments
 (0)