-
Notifications
You must be signed in to change notification settings - Fork 713
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into huawei_smartax_display_mac-address_ont_0_1…
…_2_0
- Loading branch information
Showing
17 changed files
with
618 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
ntc_templates/templates/huawei_smartax_display_ont_port_state_0_1_eth-state.textfsm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Value Key ONT_ID (\d+) | ||
Value ONT_PORT_ID (\d+) | ||
Value ONT_PORT_TYPE (\S+) | ||
Value SPEED_MBPS (\S+) | ||
Value DUPLEX (\S+) | ||
Value LINK_STATE (up|down) | ||
Value RING_STATUS (\S+) | ||
|
||
Start | ||
^\s+ONT-ID\s+ONT\s*ONT\s*Speed\(Mbps\)\s*Duplex\s*LinkState\s*RingStatus\s*$$ | ||
^\s+port-ID\s*Port-type\s*$$ | ||
^\s+${ONT_ID}\s+${ONT_PORT_ID}\s+${ONT_PORT_TYPE}\s*(-|${SPEED_MBPS})\s*(-|${DUPLEX})\s*${LINK_STATE}\s*${RING_STATUS} -> Record | ||
^\s+- | ||
^. -> Error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
tests/arista_eos/show_lldp_neighbors/arista_eos_show_lldp_neighbors2.raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Last table change time : 5 days, 8:24:38 ago | ||
Number of table inserts : 9 | ||
Number of table deletes : 3 | ||
Number of table drops : 0 | ||
Number of table age-outs : 3 | ||
Port Neighbor Device ID Neighbor Port ID TTL | ||
---------- ------------------------ ---------------------- --- | ||
Et2 arista2 Ethernet2 120 | ||
Et3 arista2 Ethernet3 120 | ||
Et4 arista2 Ethernet4 120 | ||
Et5 arista2 Ethernet5 120 | ||
Et6 arista2 Ethernet6 120 | ||
Et7 arista2 Ethernet7 120 |
20 changes: 20 additions & 0 deletions
20
tests/arista_eos/show_lldp_neighbors/arista_eos_show_lldp_neighbors2.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
parsed_sample: | ||
- neighbor_name: "arista2" | ||
local_interface: "Et2" | ||
neighbor_interface: "Ethernet2" | ||
- neighbor_name: "arista2" | ||
local_interface: "Et3" | ||
neighbor_interface: "Ethernet3" | ||
- neighbor_name: "arista2" | ||
local_interface: "Et4" | ||
neighbor_interface: "Ethernet4" | ||
- neighbor_name: "arista2" | ||
local_interface: "Et5" | ||
neighbor_interface: "Ethernet5" | ||
- neighbor_name: "arista2" | ||
local_interface: "Et6" | ||
neighbor_interface: "Ethernet6" | ||
- neighbor_name: "arista2" | ||
local_interface: "Et7" | ||
neighbor_interface: "Ethernet7" |
16 changes: 16 additions & 0 deletions
16
tests/arista_eos/show_processes_top_once/arista_eos_show_processes_top_once5.raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
top - 18:31:25 up 203 days, 9:59, 1 user, load average: 0.18, 0.20, 0.20 | ||
Tasks: 143 total, 1 running, 142 sleeping, 0 stopped, 0 zombie | ||
%Cpu(s): 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st | ||
MiB Mem : 3906.5 total, 1284.1 free, 617.5 used, 2005.0 buff/cache | ||
MiB Swap: 0.0 total, 0.0 free, 0.0 used. 3046.3 avail Mem | ||
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND | ||
31753 pyclass 20 0 9956 5356 4700 R 0.0 0.1 0:00.06 top | ||
1 root 20 0 15096 8404 6732 S 0.0 0.2 13:52.11 systemd | ||
2 root 20 0 0 0 0 S 0.0 0.0 0:09.44 kthreadd | ||
3 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rcu_gp | ||
4 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rcu_par_gp | ||
6 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kworker/0:0H-kblockd | ||
8 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 mm_percpu_wq | ||
9 root 20 0 0 0 0 S 0.0 0.0 20:39.06 ksoftirqd/0 | ||
10 root 20 0 0 0 0 I 0.0 0.0 1043:15 rcu_preempt | ||
11 root 20 0 0 0 0 I 0.0 0.0 0:00.03 rcu_sched |
Oops, something went wrong.