From 87c62dc8c0c486229d634a3d2986d8962231a9b3 Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Mon, 22 Jul 2024 18:33:00 +0400 Subject: [PATCH 01/60] Add processes parsing to the template (#1461) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”> --- .../cisco_ios_show_processes_cpu.textfsm | 26 +- .../cisco_ios_show_processes_cpu.yml | 4112 ++++++++++++++++- 2 files changed, 4126 insertions(+), 12 deletions(-) diff --git a/ntc_templates/templates/cisco_ios_show_processes_cpu.textfsm b/ntc_templates/templates/cisco_ios_show_processes_cpu.textfsm index 3a5cf55676..e55df59bbb 100644 --- a/ntc_templates/templates/cisco_ios_show_processes_cpu.textfsm +++ b/ntc_templates/templates/cisco_ios_show_processes_cpu.textfsm @@ -1,10 +1,20 @@ -Value CPU_5_SEC (\d+) -Value CPU_1_MIN (\d+) -Value CPU_5_MIN (\d+) -Value INTERRUPTS (\d+) +Value Filldown CPU_USAGE_5_SEC (\d+) +Value Filldown CPU_INTERRUPTION_5_SEC (\d+) +Value Filldown CPU_USAGE_1_MIN (\d+) +Value Filldown CPU_USAGE_5_MIN (\d+) +Value Required PROCESS_PID (\d+) +Value PROCESS_RUNTIME (\d+) +Value PROCESS_INVOKED (\d+) +Value PROCESS_CPU_TIME_FOR_INVOCATION (\d+) +Value PROCESS_CPU_USAGE_5_SEC (\d+\.\d+) +Value PROCESS_CPU_USAGE_1_MIN (\d+\.\d+) +Value PROCESS_CPU_USAGE_5_MIN (\d+\.\d+) +Value PROCESS_TTY (\d+) +Value PROCESS_NAME (.*?) Start - ^CPU utilization for five seconds:\W+${CPU_5_SEC}%/${INTERRUPTS}%; one minute:\W+${CPU_1_MIN}%; five minutes:\W+${CPU_5_MIN}% -> Record - # Capture time-stamp if vty line has command time-stamping turned on - ^Load\s+for\s+ - ^Time\s+source\s+is + ^\s*CPU\s+utilization\s+for\s+five\s+seconds:\s+${CPU_USAGE_5_SEC}%/${CPU_INTERRUPTION_5_SEC}%;\s+one\s+minute:\s+${CPU_USAGE_1_MIN}%;\s+five\s+minutes:\s+${CPU_USAGE_5_MIN}%\s*$$ + ^\s*PID\s+Runtime\(ms\)\s+Invoked\s+uSecs\s+5Sec\s+1Min\s+5Min\s+TTY\s+Process\s*$$ + ^\s*${PROCESS_PID}\s+${PROCESS_RUNTIME}\s+${PROCESS_INVOKED}\s+${PROCESS_CPU_TIME_FOR_INVOCATION}\s+${PROCESS_CPU_USAGE_5_SEC}%\s+${PROCESS_CPU_USAGE_1_MIN}%\s+${PROCESS_CPU_USAGE_5_MIN}%\s+${PROCESS_TTY}\s+${PROCESS_NAME}\s*$$ -> Record + ^\s*$$ + ^. -> Error diff --git a/tests/cisco_ios/show_processes_cpu/cisco_ios_show_processes_cpu.yml b/tests/cisco_ios/show_processes_cpu/cisco_ios_show_processes_cpu.yml index 81fe3982cd..b27760ca1f 100644 --- a/tests/cisco_ios/show_processes_cpu/cisco_ios_show_processes_cpu.yml +++ b/tests/cisco_ios/show_processes_cpu/cisco_ios_show_processes_cpu.yml @@ -1,6 +1,4110 @@ --- parsed_sample: - - cpu_1_min: "6" - cpu_5_min: "5" - cpu_5_sec: "4" - interrupts: "0" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "1" + process_runtime: "0" + process_invoked: "22" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Chunk Manager" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "2" + process_runtime: "81" + process_invoked: "275153" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Load Meter" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "3" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Connection Mgr" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "4" + process_runtime: "12798734" + process_invoked: "606112" + process_cpu_time_for_invocation: "21116" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "1.18" + process_cpu_usage_5_min: "0.92" + process_tty: "0" + process_name: "Check heaps" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "5" + process_runtime: "0" + process_invoked: "175" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Pool Manager" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "6" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Timers" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "7" + process_runtime: "4176" + process_invoked: "92069" + process_cpu_time_for_invocation: "45" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Net Input" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "8" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Crash writer" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "9" + process_runtime: "71196" + process_invoked: "328952" + process_cpu_time_for_invocation: "216" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "ARP Input" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "10" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "CEF MIB API" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "11" + process_runtime: "16" + process_invoked: "3442" + process_cpu_time_for_invocation: "4" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "AAA_SERVER_DEADT" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "12" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "AAA high-capacit" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "13" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Policy Manager" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "14" + process_runtime: "17" + process_invoked: "3" + process_cpu_time_for_invocation: "5666" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Entity MIB API" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "15" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "IFS Agent Manage" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "16" + process_runtime: "8" + process_invoked: "22957" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "IPC Dynamic Cach" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "17" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "IPC Zone Manager" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "18" + process_runtime: "51" + process_invoked: "1368737" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "IPC Periodic Tim" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "19" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "IPC Managed Time" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "20" + process_runtime: "35" + process_invoked: "1368737" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "IPC Deferred Por" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "21" + process_runtime: "9" + process_invoked: "91820" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "IPC Seat Manager" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "22" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "IPC Session Serv" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "23" + process_runtime: "168" + process_invoked: "6" + process_cpu_time_for_invocation: "28000" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "PrstVbl" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "24" + process_runtime: "192" + process_invoked: "1368736" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Dynamic ARP Insp" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "25" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "ARP Snoop" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "26" + process_runtime: "265" + process_invoked: "1368710" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "GraphIt" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "27" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "XML Proxy Client" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "28" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Critical Bkgnd" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "29" + process_runtime: "556" + process_invoked: "585865" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Net Background" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "30" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "IDB Work" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "31" + process_runtime: "9" + process_invoked: "31" + process_cpu_time_for_invocation: "290" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Logger" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "32" + process_runtime: "534" + process_invoked: "1368706" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "TTY Background" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "33" + process_runtime: "957" + process_invoked: "1368765" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Per-Second Jobs" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "34" + process_runtime: "577745" + process_invoked: "23165" + process_cpu_time_for_invocation: "24940" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.04" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Per-minute Jobs" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "35" + process_runtime: "0" + process_invoked: "6" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "IF-MGR control p" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "36" + process_runtime: "0" + process_invoked: "8" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "IF-MGR event pro" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "37" + process_runtime: "511" + process_invoked: "275156" + process_cpu_time_for_invocation: "1" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Compute load avg" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "38" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "AggMgr Process" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "39" + process_runtime: "0" + process_invoked: "1615" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Transport Port A" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "40" + process_runtime: "294" + process_invoked: "412572" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HC Counter Timer" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "41" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "SFF8472" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "42" + process_runtime: "847" + process_invoked: "27329654" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "DownWhenLooped" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "43" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HULC PBR Tcam Me" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "44" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HULC ACL Tcam Me" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "45" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC EnergyWise" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "46" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC actual powe" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "47" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC lpip reques" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "48" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HLPIP Sync Proce" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "49" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HULC QM Tcam Mem" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "50" + process_runtime: "3739" + process_invoked: "22998" + process_cpu_time_for_invocation: "162" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "EEM ED ND" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "51" + process_runtime: "0" + process_invoked: "24" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "EEM ED Identity" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "52" + process_runtime: "17" + process_invoked: "47" + process_cpu_time_for_invocation: "361" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "EEM ED MAT" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "53" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC asic-stats" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "54" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC hsm request" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "55" + process_runtime: "0" + process_invoked: "7" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Stack Mgr" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "56" + process_runtime: "134" + process_invoked: "7" + process_cpu_time_for_invocation: "19142" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Stack Mgr Notifi" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "57" + process_runtime: "5329" + process_invoked: "73160933" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Fifo Error Detec" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "58" + process_runtime: "0" + process_invoked: "5" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Adjust Regions" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "59" + process_runtime: "388" + process_invoked: "1368744" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "hrpc -> response" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "60" + process_runtime: "24" + process_invoked: "275169" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "hrpc -> request" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "61" + process_runtime: "49" + process_invoked: "275169" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "hrpc <- response" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "62" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC hcomp reque" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "63" + process_runtime: "0" + process_invoked: "3" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HULC Device Mana" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "64" + process_runtime: "0" + process_invoked: "3" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC hdm non blo" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "65" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC hdm blockin" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "66" + process_runtime: "8" + process_invoked: "275153" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HIPC bkgrd proce" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "67" + process_runtime: "8" + process_invoked: "6" + process_cpu_time_for_invocation: "1333" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Hulc Port-Securi" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "68" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC hpsecure re" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "69" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC hlfm reques" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "70" + process_runtime: "1861" + process_invoked: "40920612" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HLFM address lea" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "71" + process_runtime: "67" + process_invoked: "1368710" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HLFM aging proce" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "72" + process_runtime: "1462" + process_invoked: "40920541" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HLFM address ret" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "73" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC hulc misc r" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "74" + process_runtime: "811" + process_invoked: "137719" + process_cpu_time_for_invocation: "5" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HULC Tcam Memory" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "75" + process_runtime: "24" + process_invoked: "458821" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HVLAN main bkgrd" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "76" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HVLAN Mapped Vla" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "77" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Vlan shutdown Pr" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "78" + process_runtime: "0" + process_invoked: "3" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC vlan reques" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "79" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HULC VLAN REF Ba" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "80" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC isis reques" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "81" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC hfbm reques" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "82" + process_runtime: "0" + process_invoked: "7656" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HCMP sync proces" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "83" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC ilp request" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "84" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HULC PM Vector P" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "85" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HPM Msg Retry Pr" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "86" + process_runtime: "0" + process_invoked: "11865" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "DHCPD Timer" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "87" + process_runtime: "2926" + process_invoked: "11067366" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "hpm main process" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "88" + process_runtime: "0" + process_invoked: "4" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HPM Stack Sync P" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "89" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC pm request" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "90" + process_runtime: "9084" + process_invoked: "1368710" + process_cpu_time_for_invocation: "6" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "hpm counter proc" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "91" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC pm-counters" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "92" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "hpm vp events ca" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "93" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC hcmp reques" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "94" + process_runtime: "0" + process_invoked: "658" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HCEF ADJ Refresh" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "95" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC hl3mm reque" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "96" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "hl3md_rpfq_thrl_" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "97" + process_runtime: "67" + process_invoked: "961221" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "hl3mm" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "98" + process_runtime: "16" + process_invoked: "687261" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "hl3mm_rp" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "99" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HACL Queue Proce" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "100" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC acl request" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "101" + process_runtime: "8" + process_invoked: "27" + process_cpu_time_for_invocation: "296" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HACL Acl Manager" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "102" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC backup inte" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "103" + process_runtime: "443" + process_invoked: "184" + process_cpu_time_for_invocation: "2407" + process_cpu_usage_5_sec: "0.31" + process_cpu_usage_1_min: "0.40" + process_cpu_usage_5_min: "0.11" + process_tty: "1" + process_name: "SSH Process" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "104" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC cdp request" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "105" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC lldp reques" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "106" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HULC CISP Proces" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "107" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC dot1x reque" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "108" + process_runtime: "0" + process_invoked: "3" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HULC DOT1X Proce" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "109" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC system mtu" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "110" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC rep request" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "111" + process_runtime: "0" + process_invoked: "3" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "REP Helper Proc" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "112" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "SMI MSG Retry Pr" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "113" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC Smart Insta" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "114" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC sdm request" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "115" + process_runtime: "870" + process_invoked: "6840245" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Hulc Storm Contr" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "116" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HSTP Sync Proces" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "117" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC stp_cli req" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "118" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC stp_state_s" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "119" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "S/W Bridge Proce" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "120" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC hudld reque" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "121" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC vqpc reques" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "122" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC iec_load_ba" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "123" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC l2pt qnq rp" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "124" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC aim request" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "125" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC hled reques" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "126" + process_runtime: "77860" + process_invoked: "32749110" + process_cpu_time_for_invocation: "2" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Hulc LED Process" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "127" + process_runtime: "671" + process_invoked: "1008171" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HL3U bkgrd proce" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "128" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC hl3u reques" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "129" + process_runtime: "0" + process_invoked: "314685" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HL3U PBR bkgrd p" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "130" + process_runtime: "0" + process_invoked: "11483" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HL3U PBR n-h res" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "131" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC dtp request" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "132" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC show_forwar" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "133" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC snmp reques" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "134" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HULC SNMP Proces" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "135" + process_runtime: "2508" + process_invoked: "275168" + process_cpu_time_for_invocation: "9" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HQM Stack Proces" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "136" + process_runtime: "60158" + process_invoked: "550317" + process_cpu_time_for_invocation: "109" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC qos request" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "137" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC span reques" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "138" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC system post" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "139" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Hulc Reload Mana" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "140" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC hrcli-event" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "141" + process_runtime: "49" + process_invoked: "1338922" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "BGP Scheduler" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "142" + process_runtime: "8" + process_invoked: "2" + process_cpu_time_for_invocation: "4000" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "image mgr" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "143" + process_runtime: "41" + process_invoked: "458820" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Power RPS Proces" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "144" + process_runtime: "8" + process_invoked: "3" + process_cpu_time_for_invocation: "2666" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HL2MCM" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "145" + process_runtime: "0" + process_invoked: "3" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HL2MCM" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "146" + process_runtime: "133" + process_invoked: "1368710" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "PI MATM Aging Pr" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "147" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "REP Topology cha" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "148" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Switch Backup In" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "149" + process_runtime: "0" + process_invoked: "22956" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "MMN bkgrd proces" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "150" + process_runtime: "0" + process_invoked: "4" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Auth Manager" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "151" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Dot1x Mgr Proces" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "152" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "MAB Framework" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "153" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "AUTH POLICY Fram" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "154" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "CMD HANDLER" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "155" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "802.1x switch" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "156" + process_runtime: "16" + process_invoked: "22957" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "802.1x MDA Aging" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "157" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "802.1x Webauth F" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "158" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "DTP Protocol" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "159" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "EAP Framework" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "160" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "EAP Test" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "161" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC dai request" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "162" + process_runtime: "95120" + process_invoked: "320678" + process_cpu_time_for_invocation: "296" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HULC DAI Process" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "163" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC ip device t" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "164" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC ip source g" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "165" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HULC IP Source g" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "166" + process_runtime: "135" + process_invoked: "1377942" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "UDLD" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "167" + process_runtime: "0" + process_invoked: "45932" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Port-Security" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "168" + process_runtime: "0" + process_invoked: "3" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "IP Host Track Pr" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "169" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Link State Group" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "170" + process_runtime: "0" + process_invoked: "137723" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Ethchnl" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "171" + process_runtime: "0" + process_invoked: "4" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "VMATM Callback" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "172" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "CDP Forward Proc" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "173" + process_runtime: "227" + process_invoked: "5848" + process_cpu_time_for_invocation: "38" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "AAA Server" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "174" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "AAA ACCT Proc" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "175" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "ACCT Periodic Pr" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "176" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "AAA System Acct" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "177" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Auth-proxy AAA B" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "178" + process_runtime: "0" + process_invoked: "4594" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "IP Admin SM Proc" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "179" + process_runtime: "15553" + process_invoked: "162485" + process_cpu_time_for_invocation: "95" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "CDP Protocol" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "180" + process_runtime: "8" + process_invoked: "91818" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "MDFS LC Download" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "181" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC x_setup req" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "182" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "AAA Dictionary R" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "183" + process_runtime: "0" + process_invoked: "11483" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "DHCP Snooping" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "184" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "DHCP Snooping db" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "185" + process_runtime: "0" + process_invoked: "3" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "CEF switching ba" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "186" + process_runtime: "65746" + process_invoked: "165537" + process_cpu_time_for_invocation: "397" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.01" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "IP Input" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "187" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "ICMP event handl" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "188" + process_runtime: "83" + process_invoked: "2659472" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "IP ARP Track" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "189" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "IPv6 ping proces" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "190" + process_runtime: "957" + process_invoked: "13678194" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "MDFS MFIB Proces" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "191" + process_runtime: "0" + process_invoked: "4" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "ADJ resolve proc" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "192" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "ADJ NSF process" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "193" + process_runtime: "0" + process_invoked: "56289" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "BGP Open" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "194" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "SMI Director DB" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "195" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "SMI CDP Update H" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "196" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "SMI Backup Proce" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "197" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "SMI IBC server p" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "198" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "SMI IBC client p" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "199" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "SMI IBC Download" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "200" + process_runtime: "53416" + process_invoked: "687249" + process_cpu_time_for_invocation: "77" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Spanning Tree" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "201" + process_runtime: "0" + process_invoked: "22967" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Spanning Tree St" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "202" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "EAPoUDP Process" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "203" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "KRB5 AAA" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "204" + process_runtime: "0" + process_invoked: "99" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "SXP CORE" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "205" + process_runtime: "50" + process_invoked: "28117" + process_cpu_time_for_invocation: "1" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "CEF background p" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "206" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "IP IRDP" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "207" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "CEF RF HULC Conv" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "208" + process_runtime: "0" + process_invoked: "3" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "XDR mcast" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "209" + process_runtime: "0" + process_invoked: "137722" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "IP ACL XDR LC Ba" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "210" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "IPC LC Message H" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "211" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "XDR RP Ping Back" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "212" + process_runtime: "0" + process_invoked: "11483" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "XDR RP backgroun" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "213" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "XDR RP Test Back" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "214" + process_runtime: "0" + process_invoked: "3" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "MDFS LC Process" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "215" + process_runtime: "1625" + process_invoked: "60942" + process_cpu_time_for_invocation: "26" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "TCP Timer" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "216" + process_runtime: "399" + process_invoked: "1616" + process_cpu_time_for_invocation: "246" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "TCP Protocols" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "217" + process_runtime: "107" + process_invoked: "1369387" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Socket Timers" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "218" + process_runtime: "0" + process_invoked: "4596" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HTTP CORE" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "219" + process_runtime: "0" + process_invoked: "17226" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Cluster L2" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "220" + process_runtime: "25" + process_invoked: "137721" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Cluster RARP" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "221" + process_runtime: "3812" + process_invoked: "195136" + process_cpu_time_for_invocation: "19" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Cluster Base" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "222" + process_runtime: "0" + process_invoked: "3" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "RARP Input" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "223" + process_runtime: "0" + process_invoked: "22961" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "DHCPD Database" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "224" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "REP LSL Proc" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "225" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "REP BPA/EPA Proc" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "226" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Critical Auth" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "227" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Dot1x Supplicant" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "228" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Dot1x Supplicant" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "229" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Dot1x Supplicant" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "230" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC dhcp snoopi" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "231" + process_runtime: "0" + process_invoked: "4" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HULC DHCP Snoopi" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "232" + process_runtime: "0" + process_invoked: "6" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "IGMPSN L2MCM" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "233" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "IGMPSN MRD" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "234" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "IGMPSN" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "235" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "IGMPQR" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "236" + process_runtime: "8" + process_invoked: "3" + process_cpu_time_for_invocation: "2666" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "L2TRACE SERVER" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "237" + process_runtime: "0" + process_invoked: "6" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "MLDSN L2MCM" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "238" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "MRD" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "239" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "MLD_SNOOP" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "240" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC hwccp reque" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "241" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HULC_WCCP_BACKGR" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "242" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "REP Switch Helpe" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "243" + process_runtime: "842" + process_invoked: "22960" + process_cpu_time_for_invocation: "36" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "IP RIB Update" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "244" + process_runtime: "6017" + process_invoked: "2740239" + process_cpu_time_for_invocation: "2" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "DHCPD Receive" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "245" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC hl2mcm igmp" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "246" + process_runtime: "932" + process_invoked: "13761838" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "MDFS RP process" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "247" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC hl2mcm mlds" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "248" + process_runtime: "343" + process_invoked: "1351077" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "OSPF-100 Router" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "249" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "EPM MAIN PROCESS" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "250" + process_runtime: "8604" + process_invoked: "52867" + process_cpu_time_for_invocation: "162" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.01" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "LOCAL AAA" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "251" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "ENABLE AAA" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "252" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "LINE AAA" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "253" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "BGP I/O" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "254" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "TPLUS" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "255" + process_runtime: "8" + process_invoked: "12" + process_cpu_time_for_invocation: "666" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "crypto engine pr" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "256" + process_runtime: "33" + process_invoked: "4" + process_cpu_time_for_invocation: "8250" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Crypto CA" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "257" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Crypto PKI-CRL" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "258" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Crypto SSL" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "259" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "encrypt proc" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "260" + process_runtime: "0" + process_invoked: "14" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "VTP Trap Process" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "261" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "VTPMIB EDIT BUFF" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "262" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "DHCP Security He" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "263" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HCD Process" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "264" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "HRPC cable diagn" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "265" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "DiagCard1/-1" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "266" + process_runtime: "194" + process_invoked: "3649120" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "PM Callback" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "267" + process_runtime: "25" + process_invoked: "3" + process_cpu_time_for_invocation: "8333" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "VLAN Manager" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "268" + process_runtime: "58" + process_invoked: "91950" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "BGP Router" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "269" + process_runtime: "0" + process_invoked: "110175" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "dhcp snooping sw" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "271" + process_runtime: "402" + process_invoked: "1600" + process_cpu_time_for_invocation: "251" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "AAA SEND STOP EV" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "272" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "EEM ED Routing" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "273" + process_runtime: "8" + process_invoked: "23" + process_cpu_time_for_invocation: "347" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "EEM ED Syslog" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "274" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Syslog Traps" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "275" + process_runtime: "0" + process_invoked: "15" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Syslog" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "276" + process_runtime: "42" + process_invoked: "146" + process_cpu_time_for_invocation: "287" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "EEM Server" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "277" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "EEM Policy Direc" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "279" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "EEM ED CLI" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "280" + process_runtime: "0" + process_invoked: "3" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "EEM ED Counter" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "281" + process_runtime: "0" + process_invoked: "3" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "EEM ED Interface" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "282" + process_runtime: "0" + process_invoked: "3" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "EEM ED IOSWD" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "283" + process_runtime: "0" + process_invoked: "3" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "EEM ED None" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "284" + process_runtime: "0" + process_invoked: "3" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "EEM ED OIR" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "285" + process_runtime: "254" + process_invoked: "767" + process_cpu_time_for_invocation: "331" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "SSH Event handle" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "286" + process_runtime: "0" + process_invoked: "3" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "EEM ED SNMP" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "287" + process_runtime: "0" + process_invoked: "3" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "EEM ED SNMP Obje" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "288" + process_runtime: "0" + process_invoked: "3" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "EEM ED Ipsla" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "289" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "EEM ED SNMP Noti" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "290" + process_runtime: "0" + process_invoked: "36810" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "EEM ED Timer" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "291" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "STP FAST TRANSIT" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "292" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "CSRT RAPID TRANS" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "293" + process_runtime: "16" + process_invoked: "3" + process_cpu_time_for_invocation: "5333" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "EEM ED RPC" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "294" + process_runtime: "0" + process_invoked: "3" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "RBM CORE" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "295" + process_runtime: "0" + process_invoked: "3" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "RADIUS POD SERVE" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "296" + process_runtime: "1686" + process_invoked: "2140245" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "CEF: IPv4 proces" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "297" + process_runtime: "0" + process_invoked: "3" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "ADJ background" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "298" + process_runtime: "264" + process_invoked: "22971" + process_cpu_time_for_invocation: "11" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "IP Background" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "299" + process_runtime: "0" + process_invoked: "3" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Dot1x Authentica" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "300" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Dot1x Authentica" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "301" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "TCP Listener" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "302" + process_runtime: "595843" + process_invoked: "33279" + process_cpu_time_for_invocation: "17904" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "crypto sw pk pro" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "303" + process_runtime: "192694" + process_invoked: "91817" + process_cpu_time_for_invocation: "2098" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "BGP Scanner" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "304" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "SNMP Timers" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "305" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "IP SNMP" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "306" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "PDU DISPATCHER" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "307" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "SNMP ENGINE" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "308" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "IP SNMPV6" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "309" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "SNMP ConfCopyPro" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "310" + process_runtime: "8" + process_invoked: "2" + process_cpu_time_for_invocation: "4000" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "SNMP Traps" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "311" + process_runtime: "1785" + process_invoked: "40930829" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "RADIUS" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "312" + process_runtime: "18" + process_invoked: "3407" + process_cpu_time_for_invocation: "5" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "AAA Test Process" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "313" + process_runtime: "75" + process_invoked: "1377947" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "NTP" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "314" + process_runtime: "0" + process_invoked: "2" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "hulc cfg mgr mas" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "315" + process_runtime: "6963" + process_invoked: "50" + process_cpu_time_for_invocation: "139260" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "hulc running con" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "316" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "OSPF-100 Hello" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "317" + process_runtime: "0" + process_invoked: "1" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "CEF RP IPC Backg" + - cpu_usage_5_sec: "4" + cpu_interruption_5_sec: "0" + cpu_usage_1_min: "6" + cpu_usage_5_min: "5" + process_pid: "318" + process_runtime: "0" + process_invoked: "3" + process_cpu_time_for_invocation: "0" + process_cpu_usage_5_sec: "0.00" + process_cpu_usage_1_min: "0.00" + process_cpu_usage_5_min: "0.00" + process_tty: "0" + process_name: "Collection proce" From cc267b50dd28a0d2203e64fef88c1627297730e3 Mon Sep 17 00:00:00 2001 From: Michael Bear <38406045+mjbear@users.noreply.github.com> Date: Mon, 22 Jul 2024 10:41:37 -0400 Subject: [PATCH 02/60] Docs contributing - version and release schedule grammar (#1467) Co-authored-by: Josh VanDeraa --- docs/dev/contributing.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/dev/contributing.md b/docs/dev/contributing.md index 7a5927f334..2b40ec8cd8 100644 --- a/docs/dev/contributing.md +++ b/docs/dev/contributing.md @@ -30,11 +30,11 @@ The branching policy includes the following tenets: - PRs intended to address bug fixes and security patches should be sourced from the master branch. - PRs intended to add new features that break backward compatibility should be discussed before a PR is created. -NTC-Templates will observes semantic versioning. This may result in an quick turn around in minor versions to keep pace with an ever growing feature set. +NTC-Templates observes semantic versioning. This may result in a quick turn around in minor/major versions to keep pace with an ever growing feature set. ## Release Policy -NTC Templates has currently no intended scheduled release schedule, and will release new features in minor versions. Any breaking changes will be done in _major_ releases. There is some development to maintain a data model that is applicable across multiple vendors. +NTC Templates currently does not have an intended release schedule cadence, and will release new features in minor versions. Any breaking changes will be done in _major_ releases. There is some development to maintain [a data model that is applicable across multiple vendors](data_model.md). When a new release is created the following should happen. @@ -50,4 +50,4 @@ When a new release is created the following should happen. - The description should be the changes that were added to the `version_..md` document. - A post release PR is created with. - Change the version from `..` to `..-beta` pyproject.toml. - - Once tests pass, merge. \ No newline at end of file + - Once tests pass, merge. From 04f0ae0135e66b6b93ecbecb3344a434e0d36679 Mon Sep 17 00:00:00 2001 From: Michael Bear <38406045+mjbear@users.noreply.github.com> Date: Mon, 22 Jul 2024 10:42:36 -0400 Subject: [PATCH 03/60] Fix aruba aoscx lldp issue1453 (#1470) * replace PORT_INFO with NEIGHBOR_INTERFACE for juniper_junos_show_lldp_neighbors to normalize * replace SYSTEM_DESCRIPTION with NEIGHBOR_DESCRIPTION to normalize cisco_ios_show_lldp_neighbors_detail * normalize management address capture groups in CDP/LLDP templates - replace REMOTE_MANAGEMENT_ADDRESS with MGMT_ADDRESS in hp_procurve_show_lldp_info_remote-device_detail - replace MGMT_ADDR with MGMT_ADDRESS in aruba_aoscx_show_lldp_neighbors-info_detail - replace MGMT_IP with MGMT_ADDRESS in cisco_nxos and cisco_xr cdp template - replace MANAGEMENT_IP with MGMT_ADDRESS in several templates Note: Chose not to include "IP" in the capture group name because Arista data sometimes includes Ethernet MAC addresses * fix issue#1453 - allow chassis/system for neighbor name and description capture groups * fix IP address typo in obfuscated test data * modify index to support singular or plural lldp neighbor command for aruba_aoscx --- docs/dev/data_model.md | 2 +- ...cx_show_lldp_neighbors-info_detail.textfsm | 6 +- ntc_templates/templates/index | 2 +- .../juniper_junos_show_lldp_neighbors.textfsm | 2 +- ...w_lldp_neighbors-info_detail_issue1453.raw | 132 ++++++++++++++++++ ...w_lldp_neighbors-info_detail_issue1453.yml | 30 ++++ 6 files changed, 167 insertions(+), 7 deletions(-) create mode 100644 tests/aruba_aoscx/show_lldp_neighbors-info_detail/show_lldp_neighbors-info_detail_issue1453.raw create mode 100644 tests/aruba_aoscx/show_lldp_neighbors-info_detail/show_lldp_neighbors-info_detail_issue1453.yml diff --git a/docs/dev/data_model.md b/docs/dev/data_model.md index 9732ab41f2..ec082e0892 100644 --- a/docs/dev/data_model.md +++ b/docs/dev/data_model.md @@ -43,7 +43,7 @@ Example: Imagine the extra programming logic needed to consume structured data w | `MAC_ADDRESS` | instead of MAC or MACADDR | | `MEMBER_INTERFACE` | list of physical member interface names that are bundled to make an etherchannel, LACP, LAG, or port-channel interface | | `MEMBER_INTERFACE_STATUS` | list of member interface statuses for an etherchannel, LACP, LAG, or port-channel interface | -| `MGMT_ADDRESS` | management address, used when data could be an Ethernet MAC address or an IP address (ex: CDP or LLDP templates) | +| `MGMT_ADDRESS` | management address, used when data could be an ***Ethernet MAC address or an IP address*** (ex: CDP or LLDP templates) | | `MGMT_IP_ADDRESS` | instead of MGMT_IP or MGMT_ADDRESS or MANAGEMENT_IP or REMOTE_MANAGEMENT_ADDRESS | | `NEIGHBOR_DESCRIPTION` | often represents CDP or LLDP neighbor or system name description | | `NEIGHBOR_ID` | for router IDs remote to the system being parsed | diff --git a/ntc_templates/templates/aruba_aoscx_show_lldp_neighbors-info_detail.textfsm b/ntc_templates/templates/aruba_aoscx_show_lldp_neighbors-info_detail.textfsm index 2200351ae7..fe3a11b9b1 100644 --- a/ntc_templates/templates/aruba_aoscx_show_lldp_neighbors-info_detail.textfsm +++ b/ntc_templates/templates/aruba_aoscx_show_lldp_neighbors-info_detail.textfsm @@ -11,10 +11,8 @@ Value NEIGHBOR_INTERFACE (\S+) Start ^Port\s*:\s*${LOCAL_INTERFACE} - ^Neighbor\s*Chassis-Name\s*:\s*${NEIGHBOR_NAME} - ^Neighbor\s+System-Name\s*:\s*${NEIGHBOR_NAME} - ^Neighbor\s*Chassis-Description\s*:\s*${NEIGHBOR_DESCRIPTION} - ^Neighbor\s+System-Description\s*:\s*${NEIGHBOR_DESCRIPTION} + ^Neighbor\s*(Chassis|System)-Name\s*:\s*${NEIGHBOR_NAME} + ^Neighbor\s*(Chassis|System)-Description\s*:\s*${NEIGHBOR_DESCRIPTION} ^Neighbor\s*Chassis-ID\s*:\s*${CHASSIS_ID} ^Neighbor\s*Management-Address\s*:\s*${MGMT_ADDRESS} ^Chassis\s*Capabilities\s*Available\s*:\s*${CAPABILITIES_SUPPORTED} diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index dfce172f04..fb17d4e1c0 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -93,7 +93,7 @@ arista_eos_show_vlan.textfsm, .*, arista_eos, sh[[ow]] vl[[an]] arista_eos_show_vrf.textfsm, .*, arista_eos, sh[[ow]] vrf aruba_aoscx_show_aaa_authentication_port-access_interface_all_client-status.textfsm , .*, aruba_aoscx, sh[[ow]] aa[[a]] authe[[ntication]] port-access interface all client-status -aruba_aoscx_show_lldp_neighbors-info_detail.textfsm, .*, aruba_aoscx, sh[[ow]] ll[[dp]] nei[[ghbors-info]] d[[etail]] +aruba_aoscx_show_lldp_neighbors-info_detail.textfsm, .*, aruba_aoscx, sh[[ow]] ll[[dp]] nei[[ghbor]]s?[[-info]] d[[etail]] aruba_aoscx_show_bgp_all-vrfs_all_summary.textfsm, .*, aruba_aoscx, sh[[ow]] bgp all-[[vrfs]] a[[ll]] s[[ummary]] aruba_aoscx_show_interface_dom_detail.textfsm , .*, aruba_aoscx, sh[[ow]] int[[erface]] dom d[[etail]] aruba_aoscx_show_ip_route_all-vrfs.textfsm, .*, aruba_aoscx, sh[[ow]] ip r[[oute]] a[[ll-vrfs]] diff --git a/ntc_templates/templates/juniper_junos_show_lldp_neighbors.textfsm b/ntc_templates/templates/juniper_junos_show_lldp_neighbors.textfsm index 7dfe695d8b..9b3cedfec9 100644 --- a/ntc_templates/templates/juniper_junos_show_lldp_neighbors.textfsm +++ b/ntc_templates/templates/juniper_junos_show_lldp_neighbors.textfsm @@ -8,4 +8,4 @@ Start ^Local\s+Interface\s+Parent\s+Interface\s+Chassis\s+Id\s+Port\s+info\s+System\s+Name ^${LOCAL_INTERFACE}\s*${PARENT_INTERFACE}\s+${CHASSIS_ID}\s+${NEIGHBOR_INTERFACE}\s+${NEIGHBOR_NAME} -> Record ^\s*$$ - ^. -> Error \ No newline at end of file + ^. -> Error diff --git a/tests/aruba_aoscx/show_lldp_neighbors-info_detail/show_lldp_neighbors-info_detail_issue1453.raw b/tests/aruba_aoscx/show_lldp_neighbors-info_detail/show_lldp_neighbors-info_detail_issue1453.raw new file mode 100644 index 0000000000..8339362972 --- /dev/null +++ b/tests/aruba_aoscx/show_lldp_neighbors-info_detail/show_lldp_neighbors-info_detail_issue1453.raw @@ -0,0 +1,132 @@ +SWITCH-NAME# show lldp neighbor-info detail +-------------------------------------------------------------------------------- +LLDP Neighbor Information +========================= + +Total Neighbor Entries : 3 +Total Neighbor Entries Deleted : 0 +Total Neighbor Entries Dropped : 0 +Total Neighbor Entries Aged-Out : 0 + +-------------------------------------------------------------------------------- + +Port : 1/1/10 +Neighbor Entries : 1 +Neighbor Entries Deleted : 0 +Neighbor Entries Dropped : 0 +Neighbor Entries Aged-Out : 0 +Neighbor System-Name : SYSNAME_TEXT +Neighbor System-Description : ArubaOS (MODEL: 503H), Version Aruba AP +Neighbor Chassis-ID : xx:xx:xx:xx:xx:xx +Neighbor Management-Address : 123.123.123.123 +Chassis Capabilities Available : Bridge, WLAN +Chassis Capabilities Enabled : WLAN +Neighbor Port-ID : xx:xx:xx:xx:xx:xx +Neighbor Port-Desc : eth0 +Neighbor Port VLAN ID : 1 +TTL : 120 + +Neighbor Mac-Phy details +Neighbor Auto-neg Supported : true +Neighbor Auto-Neg Enabled : true +Neighbor Auto-Neg Advertised : 1000 BASE_TFD, 100 BASE_TXFD, 100 BASE_TX, 10 BASET_FD, 10 BASE_T +Neighbor MAU type : 1000 BASETFD + +Neighbor EEE information : DOT3 +Neighbor TX Wake time : 0 us +Neighbor RX Wake time : 0 us +Neighbor Fallback time : 0 us +Neighbor TX Echo time : 0 us +Neighbor RX Echo time : 0 us + +-------------------------------------------------------------------------------- + +Port : 1/1/11 +Neighbor Entries : 1 +Neighbor Entries Deleted : 0 +Neighbor Entries Dropped : 0 +Neighbor Entries Aged-Out : 0 +Neighbor System-Name : AP3-4-3 +Neighbor System-Description : ArubaOS (MODEL: 315), Version Aruba AP +Neighbor Chassis-ID : xx:xx:xx:xx:xx:xx +Neighbor Management-Address : 123.123.123.123 +Chassis Capabilities Available : Bridge, WLAN +Chassis Capabilities Enabled : WLAN +Neighbor Port-ID : xx:xx:xx:xx:xx:xx +Neighbor Port-Desc : bond0 +Neighbor Port VLAN ID : 1 +TTL : 120 + +Neighbor PoE information : DOT3 +Neighbor Power Type : Type 2 PD +Neighbor Power Priority : Unknown +Neighbor Power Source : PSE +PD Requested Power Value : 20.80 W +PSE Allocated Power Value : 20.80 W +Neighbor Power Supported : No +Neighbor Power Enabled : No +Neighbor Power Class : Class4 +Neighbor Power Paircontrol : No +PSE Power Pairs : SIGNAL +Neighbor Power Down Request : +PD Associated TLV : dot3 +PD Requested TLV types : dot3 + +Neighbor Mac-Phy details +Neighbor Auto-neg Supported : true +Neighbor Auto-Neg Enabled : true +Neighbor Auto-Neg Advertised : 1000 BASE_TFD, 100 BASE_TXFD, 100 BASE_TX, 10 BASET_FD, 10 BASE_T +Neighbor MAU type : 1000 BASETFD + +Neighbor EEE information : DOT3 +Neighbor TX Wake time : 0 us +Neighbor RX Wake time : 0 us +Neighbor Fallback time : 0 us +Neighbor TX Echo time : 0 us +Neighbor RX Echo time : 0 us + +-------------------------------------------------------------------------------- + +Port : 1/1/12 +Neighbor Entries : 1 +Neighbor Entries Deleted : 0 +Neighbor Entries Dropped : 0 +Neighbor Entries Aged-Out : 0 +Neighbor System-Name : SYSNAME_TEXT +Neighbor System-Description : HP J9851A Switch 5412Rzl2, revision KB.16.10.0020, ROM KB.16.01.0009 (/ws/swbuildm/rel_ajanta_qaoff/code/build/bom(swbuildm_rel_ajanta_qaoff_rel_ajanta)) +Neighbor Chassis-ID : xx:xx:xx:xx:xx:xx +Neighbor Management-Address : 123.123.123.123 +Chassis Capabilities Available : Bridge, Router +Chassis Capabilities Enabled : Bridge +Neighbor Port-ID : 106 +Neighbor Port-Desc : D10 +Neighbor Port VLAN ID : 61 +TTL : 120 + +Neighbor PoE information : DOT3 +Neighbor Power Type : PSE +Neighbor Power Priority : Unknown +Neighbor Power Source : Unknown +PD Requested Power Value : 0.00 W +PSE Allocated Power Value : 0.00 W +Neighbor Power Supported : Yes +Neighbor Power Enabled : Yes +Neighbor Power Class : Class0 +Neighbor Power Paircontrol : No +PSE Power Pairs : SIGNAL +Neighbor Power Down Request : +PD Associated TLV : dot3 +PD Requested TLV types : None + +Neighbor Mac-Phy details +Neighbor Auto-neg Supported : true +Neighbor Auto-Neg Enabled : true +Neighbor Auto-Neg Advertised : 1000 BASE_TFD, 100 BASE_TXFD, 100 BASE_TX, 10 BASET_FD, 10 BASE_T +Neighbor MAU type : 1000 BASETFD + +Neighbor EEE information : DOT3 +Neighbor TX Wake time : 0 us +Neighbor RX Wake time : 0 us +Neighbor Fallback time : 0 us +Neighbor TX Echo time : 0 us +Neighbor RX Echo time : 0 us diff --git a/tests/aruba_aoscx/show_lldp_neighbors-info_detail/show_lldp_neighbors-info_detail_issue1453.yml b/tests/aruba_aoscx/show_lldp_neighbors-info_detail/show_lldp_neighbors-info_detail_issue1453.yml new file mode 100644 index 0000000000..5975d24c1a --- /dev/null +++ b/tests/aruba_aoscx/show_lldp_neighbors-info_detail/show_lldp_neighbors-info_detail_issue1453.yml @@ -0,0 +1,30 @@ +--- +parsed_sample: + - capabilities: "WLAN" + capabilities_supported: "Bridge, WLAN" + chassis_id: "xx:xx:xx:xx:xx:xx" + local_interface: "1/1/10" + mgmt_address: "123.123.123.123" + neighbor_description: "ArubaOS (MODEL: 503H), Version Aruba AP" + neighbor_interface: "eth0" + neighbor_name: "SYSNAME_TEXT" + neighbor_port_id: "xx:xx:xx:xx:xx:xx" + - capabilities: "WLAN" + capabilities_supported: "Bridge, WLAN" + chassis_id: "xx:xx:xx:xx:xx:xx" + local_interface: "1/1/11" + mgmt_address: "123.123.123.123" + neighbor_description: "ArubaOS (MODEL: 315), Version Aruba AP" + neighbor_interface: "bond0" + neighbor_name: "AP3-4-3" + neighbor_port_id: "xx:xx:xx:xx:xx:xx" + - capabilities: "Bridge" + capabilities_supported: "Bridge, Router" + chassis_id: "xx:xx:xx:xx:xx:xx" + local_interface: "1/1/12" + mgmt_address: "123.123.123.123" + neighbor_description: "HP J9851A Switch 5412Rzl2, revision KB.16.10.0020, ROM\ + \ KB.16.01.0009 (/ws/swbuildm/rel_ajanta_qaoff/code/build/bom(swbuildm_rel_ajanta_qaoff_rel_ajanta))" + neighbor_interface: "D10" + neighbor_name: "SYSNAME_TEXT" + neighbor_port_id: "106" From 6823cb918ebe9486fbcf3b8faaff381f79c3b9ce Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Mon, 22 Jul 2024 18:44:12 +0400 Subject: [PATCH 04/60] Add template for cisco_ios_show_ip_eigrp_neighbors_detail command (#1462) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”> Co-authored-by: Jacob McGill <9847006+jmcgill298@users.noreply.github.com> --- ...ios_show_ip_eigrp_neighbors_detail.textfsm | 33 +++++++++++++++++ ntc_templates/templates/index | 1 + ...sco_ios_show_ip_eigrp_neighbors_detail.raw | 10 ++++++ ...sco_ios_show_ip_eigrp_neighbors_detail.yml | 36 +++++++++++++++++++ 4 files changed, 80 insertions(+) create mode 100644 ntc_templates/templates/cisco_ios_show_ip_eigrp_neighbors_detail.textfsm create mode 100644 tests/cisco_ios/show_ip_eigrp_neighbors_detail/cisco_ios_show_ip_eigrp_neighbors_detail.raw create mode 100644 tests/cisco_ios/show_ip_eigrp_neighbors_detail/cisco_ios_show_ip_eigrp_neighbors_detail.yml diff --git a/ntc_templates/templates/cisco_ios_show_ip_eigrp_neighbors_detail.textfsm b/ntc_templates/templates/cisco_ios_show_ip_eigrp_neighbors_detail.textfsm new file mode 100644 index 0000000000..16f15685b3 --- /dev/null +++ b/ntc_templates/templates/cisco_ios_show_ip_eigrp_neighbors_detail.textfsm @@ -0,0 +1,33 @@ +Value Filldown AS (\d+) +Value Required H (\d+) +Value Required IP_ADDRESS ([0-9A-Fa-f:\.]+) +Value INTERFACE (\S+) +Value HOLD (\d+) +Value UPTIME (\S+) +Value SRTT (\d+) +Value RTO (\d+) +Value Q_CNT (\d+) +Value SEQ_NUM (\d+) +Value VERSION (\S+) +Value RETRANS (\d+) +Value RETRIES (\d+) +Value PREFIXES (\d+) +Value TOPOLOGY_IDS_FROM_PEER (\d+) +Value Fillup MAX_NEIGHBORS (\d+) +Value Fillup CURRENT_NEIGHBORS (\d+) + +Start + ^\s*(IP-|)EIGRP(-IPv[46](:\(\d+\))?|)\s+[Nn]eighbors\s+for\s+(process\s+|AS\()${AS}(\)|)\s*$$ + ^\s*(IP-|)EIGRP(-IPv[46](:\(\d+\))?|)\s+[Nn]eighbors\s+for\s+(process\s+|AS\()${AS}(\)|)\s+VRF default\s*$$ + ^\s*H\s+Address\s+Interface\s+Hold\s+Uptime\s+SRTT\s+RTO\s+Q\s+Seq\s*$$ + ^\s+\(sec\)\s+\(ms\)\s+Cnt\s+Num\s*$$ -> Neighbors + +Neighbors + ^\s*${H}\s+${IP_ADDRESS}\s+${INTERFACE}\s+${HOLD}\s+${UPTIME}\s+${SRTT}\s+${RTO}\s+${Q_CNT}\s+${SEQ_NUM}\s*$$ + ^\s*Version\s+${VERSION},\s+Retrans:\s+${RETRANS},\s+Retries:\s+${RETRIES},\s+Prefixes:\s+${PREFIXES}\s*$$ + ^\s*Topology-ids\s+from\s+peer\s+\-\s+${TOPOLOGY_IDS_FROM_PEER}\s*$$ -> Record + ^\s*Max\s+Nbrs\:\s+${MAX_NEIGHBORS}\,\s+Current\s+Nbrs\:\s+${CURRENT_NEIGHBORS}\s*$$ + ^\s*$$ + ^.* -> Error + +EOF diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index fb17d4e1c0..8c0cb4e153 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -230,6 +230,7 @@ cisco_ios_show_port-security_interface_interface.textfsm, .*, cisco_ios, sh[[ow] cisco_ios_show_capability_feature_routing.textfsm, .*, cisco_ios, sh[[ow]] cap[[ability]] f[[eature]] r[[outing]] cisco_ios_show_ip_bgp_vpnv4_all_neighbors.textfsm, .*, cisco_ios, sh[[ow]] ip bgp vpnv4 all nei[[ghbors]] cisco_ios_show_ip_eigrp_interfaces_detail.textfsm, .*, cisco_ios, sh[[ow]] ip ei[[grp]] i[[nterfaces]] de[[tail]] +cisco_ios_show_ip_eigrp_neighbors_detail.textfsm, .*, cisco_ios, sh[[ow]] ip ei[[grp]] nei[[ghbors]] de[[tail]] cisco_ios_show_ip_dhcp_snooping_binding.textfsm, .*, cisco_ios, sh[[ow]] ip dhcp sn[[ooping]] bi[[nding]] cisco_ios_show_ip_ospf_database_network.textfsm, .*, cisco_ios, sh[[ow]] ip ospf data[[base]] ne[[twork]] cisco_ios_show_authentication_sessions.textfsm, .*, cisco_ios, show authen[[tication]] ses[[sions]] diff --git a/tests/cisco_ios/show_ip_eigrp_neighbors_detail/cisco_ios_show_ip_eigrp_neighbors_detail.raw b/tests/cisco_ios/show_ip_eigrp_neighbors_detail/cisco_ios_show_ip_eigrp_neighbors_detail.raw new file mode 100644 index 0000000000..734d55d95a --- /dev/null +++ b/tests/cisco_ios/show_ip_eigrp_neighbors_detail/cisco_ios_show_ip_eigrp_neighbors_detail.raw @@ -0,0 +1,10 @@ +EIGRP-IPv4 Neighbors for AS(215) +H Address Interface Hold Uptime SRTT RTO Q Seq + (sec) (ms) Cnt Num +1 81.211.127.255 Tu5 13 18:52:46 55 330 0 1042408760 + Version 25.0/2.0, Retrans: 1, Retries: 0, Prefixes: 952 + Topology-ids from peer - 0 +0 83.151.157.254 Tu5 12 6d08h 50 300 0 564418354 + Version 25.0/2.0, Retrans: 6, Retries: 0, Prefixes: 952 + Topology-ids from peer - 0 +Max Nbrs: 0, Current Nbrs: 0 diff --git a/tests/cisco_ios/show_ip_eigrp_neighbors_detail/cisco_ios_show_ip_eigrp_neighbors_detail.yml b/tests/cisco_ios/show_ip_eigrp_neighbors_detail/cisco_ios_show_ip_eigrp_neighbors_detail.yml new file mode 100644 index 0000000000..41a3ddc6a1 --- /dev/null +++ b/tests/cisco_ios/show_ip_eigrp_neighbors_detail/cisco_ios_show_ip_eigrp_neighbors_detail.yml @@ -0,0 +1,36 @@ +--- +parsed_sample: + - as: "215" + h: "1" + ip_address: "81.211.127.255" + interface: "Tu5" + hold: "13" + uptime: "18:52:46" + srtt: "55" + rto: "330" + q_cnt: "0" + seq_num: "1042408760" + version: "25.0/2.0" + retrans: "1" + retries: "0" + prefixes: "952" + topology_ids_from_peer: "0" + max_neighbors: "0" + current_neighbors: "0" + - as: "215" + h: "0" + ip_address: "83.151.157.254" + interface: "Tu5" + hold: "12" + uptime: "6d08h" + srtt: "50" + rto: "300" + q_cnt: "0" + seq_num: "564418354" + version: "25.0/2.0" + retrans: "6" + retries: "0" + prefixes: "952" + topology_ids_from_peer: "0" + max_neighbors: "0" + current_neighbors: "0" From 5687273473b261093bef0f18a8fd62f405a74438 Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Mon, 22 Jul 2024 18:46:19 +0400 Subject: [PATCH 05/60] fortinet_get_router_info_ospf_status template + test (#1472) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --------- Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”> Co-authored-by: Josh VanDeraa --- ...rtinet_get_router_info_ospf_status.textfsm | 41 +++++++++++++++++++ ntc_templates/templates/index | 1 + .../fortinet_get_router_info_ospf_status.raw | 26 ++++++++++++ .../fortinet_get_router_info_ospf_status.yml | 12 ++++++ 4 files changed, 80 insertions(+) create mode 100644 ntc_templates/templates/fortinet_get_router_info_ospf_status.textfsm create mode 100644 tests/fortinet/get_router_info_ospf_status/fortinet_get_router_info_ospf_status.raw create mode 100644 tests/fortinet/get_router_info_ospf_status/fortinet_get_router_info_ospf_status.yml diff --git a/ntc_templates/templates/fortinet_get_router_info_ospf_status.textfsm b/ntc_templates/templates/fortinet_get_router_info_ospf_status.textfsm new file mode 100644 index 0000000000..21fff349c4 --- /dev/null +++ b/ntc_templates/templates/fortinet_get_router_info_ospf_status.textfsm @@ -0,0 +1,41 @@ +Value PROCESS_NAME (.*) +Value PROCESS_ID (\S+) +Value PROCESS_STATUS (.+) +Value ATTACHED_AREAS_NUMBER (\d+) +Value List ATTACHED_AREA (.*) +Value List ATTACHED_AREA_INTERFACES (\S+) +Value List ATTACHED_AREA_FULLY_ADJACENT_NEIGHBORS (\d+) + + +Start + ^\s*Routing\s+Process\s+\".*\".* -> Continue.Record + ^\s*Routing\s+Process\s+\"${PROCESS_NAME}\"\s+with\s+ID\s+${PROCESS_ID}\s*$$ + ^\s*Process\s+is\s+${PROCESS_STATUS}\s*$$ + ^\s*Process\s+bound.*$$ + ^\s*Conforms\s+to.*$$ + ^\s*Supports\s+only.*$$ + ^\s*Supports\s+opaque.*$$ + ^\s*Do\s+not\s+support\s+Restarting.*$$ + ^\s*SPF\s+schedule\s+delay\s+.*$$ + ^\s*Refresh\s+timer.*$$ + ^\s*Number\s+of\s+incomming\s+current\s+DD\s+exchange\s+neighbors\s+.*$$ + ^\s*Number\s+of\s+outgoing\s+current\s+DD\s+exchange\s+neighbors\s+.*$$ + ^\s*Number\s+of\s+external\s+LSA\s+\d+\.\s+Checksum\s+.*$$ + ^\s*Number\s+of\s+opaque\s+AS\s+LSA\s+\d+\.\s+Checksum\s+.*$$ + ^\s*Number\s+of\s+non\-default\s+external\s+LSA\s+.*$$ + ^\s*External\s+LSA\s+database\s+.*$$ + ^\s*Number\s+of\s+LSA\s+originated.*$$ + ^\s*Number\s+of\s+LSA\s+received.*$$ + ^\s*Number\s+of\s+areas\s+attached\s+to\s+this\s+router\:\s+${ATTACHED_AREAS_NUMBER}\s*$$ -> Areas + ^\s*$$ + ^. -> Error + +Areas + ^\s*Routing\s+Process\s+\".*\".* -> Continue.Record + ^\s*Area\s+(?!has)${ATTACHED_AREA}\s*$$ + ^\s*Number\s+of\s+interfaces\s+in\s+this\s+area\s+is\s+${ATTACHED_AREA_INTERFACES}\s*$$ + ^\s*Number\s+of\s+fully\s+adjacent\s+neighbors\s+in\s+this\s+area\s+is\s+${ATTACHED_AREA_FULLY_ADJACENT_NEIGHBORS}\s*$$ + ^\s*Area\s+has\s+.*$$ + ^\s*SPF\s+algorithm\s+last\s+executed\s+.*$$ + ^\s*SPF\s+algorithm\s+executed\s+.*$$ + ^\s*Number\s+of\s+LSA\s+.*$$ -> Areas diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 8c0cb4e153..48404c5f13 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -564,6 +564,7 @@ extreme_exos_show_iparp.textfsm, .*, extreme_exos, show iparp fortinet_get_system_interface_physical.textfsm, .*, fortinet, g[[et]] sy[[stem]] in[[terface]] p[[hysical]] fortinet_get_router_info_bgp_summary.textfsm, .*, fortinet, g[[et]] r[[outer]] info bg[[p]] su[[mmary]] +fortinet_get_router_info_ospf_status.textfsm, .*, fortinet, g[[et]] r[[outer]] info o[[spf]] s[[tatus]] fortinet_get_system_ha_status.textfsm, .*, fortinet, g[[et]] sy[[stem]] ha s[[tatus]] fortinet_get_system_interface.textfsm, .*, fortinet, g[[et]] sy[[stem]] in[[terface]] fortinet_get_system_status.textfsm, .*, fortinet, g[[et]] sy[[stem]] stat[[us]] diff --git a/tests/fortinet/get_router_info_ospf_status/fortinet_get_router_info_ospf_status.raw b/tests/fortinet/get_router_info_ospf_status/fortinet_get_router_info_ospf_status.raw new file mode 100644 index 0000000000..7392b0f5f7 --- /dev/null +++ b/tests/fortinet/get_router_info_ospf_status/fortinet_get_router_info_ospf_status.raw @@ -0,0 +1,26 @@ + Routing Process "ospf 0" with ID 10.123.105.1 + Process is not up + Process bound to VRF default + Conforms to RFC2328, and RFC1583Compatibility flag is disabled + Supports only single TOS(TOS0) routes + Supports opaque LSA + Do not support Restarting + SPF schedule delay 5 secs, Hold time between two SPFs 10 secs + Refresh timer 10 secs + Number of incomming current DD exchange neighbors 0/5 + Number of outgoing current DD exchange neighbors 0/5 + Number of external LSA 485. Checksum 0xF53F64 + Number of opaque AS LSA 0. Checksum 0x000000 + Number of non-default external LSA 483 + External LSA database is unlimited. + Number of LSA originated 1 + Number of LSA received 1026789 + Number of areas attached to this router: 1 + Area 0.0.0.0 (BACKBONE) + Number of interfaces in this area is 9(11) + Number of fully adjacent neighbors in this area is 2 + Area has no authentication + SPF algorithm last executed 00:00:22.990 ago + SPF algorithm executed 35480 times + Number of LSA 68. Checksum 0x207089 + diff --git a/tests/fortinet/get_router_info_ospf_status/fortinet_get_router_info_ospf_status.yml b/tests/fortinet/get_router_info_ospf_status/fortinet_get_router_info_ospf_status.yml new file mode 100644 index 0000000000..8203d537a6 --- /dev/null +++ b/tests/fortinet/get_router_info_ospf_status/fortinet_get_router_info_ospf_status.yml @@ -0,0 +1,12 @@ +--- +parsed_sample: + - process_name: "ospf 0" + process_id: "10.123.105.1" + process_status: "not up" + attached_areas_number: "1" + attached_area: + - "0.0.0.0 (BACKBONE)" + attached_area_interfaces: + - "9(11)" + attached_area_fully_adjacent_neighbors: + - "2" From b726498b88cb3baf8d5d789da4400101ac99c332 Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Mon, 22 Jul 2024 18:47:00 +0400 Subject: [PATCH 06/60] Add Edgecore platform with 7 templates (#1463) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --------- Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”> Co-authored-by: Maxim Shpak Co-authored-by: Josh VanDeraa Co-authored-by: Jacob McGill <9847006+jmcgill298@users.noreply.github.com> --- .../edgecore_show_interfaces_brief.textfsm | 21 + .../edgecore_show_interfaces_status.textfsm | 76 ++++ ...dgecore_show_interfaces_switchport.textfsm | 95 +++++ .../edgecore_show_ip_interface.textfsm | 11 + .../templates/edgecore_show_system.textfsm | 49 +++ .../templates/edgecore_show_version.textfsm | 31 ++ .../templates/edgecore_show_vlan.textfsm | 37 ++ ntc_templates/templates/index | 8 + .../edgecore_show_interfaces_brief.raw | 12 + .../edgecore_show_interfaces_brief.yml | 102 +++++ .../edgecore_show_interfaces_status.raw | 302 +++++++++++++++ .../edgecore_show_interfaces_status.yml | 366 ++++++++++++++++++ .../edgecore_show_interfaces_switchport_1.raw | 234 +++++++++++ .../edgecore_show_interfaces_switchport_1.yml | 350 +++++++++++++++++ .../edgecore_show_interfaces_switchport_2.raw | 209 ++++++++++ .../edgecore_show_interfaces_switchport_2.yml | 282 ++++++++++++++ .../edgecore_show_ip_interface.raw | 2 + .../edgecore_show_ip_interface.yml | 6 + .../show_system/edgecore_show_system.raw | 25 ++ .../show_system/edgecore_show_system.yml | 23 ++ .../show_version/edgecore_show_version_1.raw | 9 + .../show_version/edgecore_show_version_1.yml | 14 + .../show_version/edgecore_show_version_2.raw | 14 + .../show_version/edgecore_show_version_2.yml | 14 + .../edgecore/show_vlan/edgecore_show_vlan.raw | 31 ++ .../edgecore/show_vlan/edgecore_show_vlan.yml | 47 +++ tests/test_index_order.py | 1 + 27 files changed, 2371 insertions(+) create mode 100644 ntc_templates/templates/edgecore_show_interfaces_brief.textfsm create mode 100644 ntc_templates/templates/edgecore_show_interfaces_status.textfsm create mode 100644 ntc_templates/templates/edgecore_show_interfaces_switchport.textfsm create mode 100644 ntc_templates/templates/edgecore_show_ip_interface.textfsm create mode 100644 ntc_templates/templates/edgecore_show_system.textfsm create mode 100644 ntc_templates/templates/edgecore_show_version.textfsm create mode 100644 ntc_templates/templates/edgecore_show_vlan.textfsm create mode 100644 tests/edgecore/show_interfaces_brief/edgecore_show_interfaces_brief.raw create mode 100644 tests/edgecore/show_interfaces_brief/edgecore_show_interfaces_brief.yml create mode 100644 tests/edgecore/show_interfaces_status/edgecore_show_interfaces_status.raw create mode 100644 tests/edgecore/show_interfaces_status/edgecore_show_interfaces_status.yml create mode 100644 tests/edgecore/show_interfaces_switchport/edgecore_show_interfaces_switchport_1.raw create mode 100644 tests/edgecore/show_interfaces_switchport/edgecore_show_interfaces_switchport_1.yml create mode 100644 tests/edgecore/show_interfaces_switchport/edgecore_show_interfaces_switchport_2.raw create mode 100644 tests/edgecore/show_interfaces_switchport/edgecore_show_interfaces_switchport_2.yml create mode 100644 tests/edgecore/show_ip_interface/edgecore_show_ip_interface.raw create mode 100644 tests/edgecore/show_ip_interface/edgecore_show_ip_interface.yml create mode 100644 tests/edgecore/show_system/edgecore_show_system.raw create mode 100644 tests/edgecore/show_system/edgecore_show_system.yml create mode 100644 tests/edgecore/show_version/edgecore_show_version_1.raw create mode 100644 tests/edgecore/show_version/edgecore_show_version_1.yml create mode 100644 tests/edgecore/show_version/edgecore_show_version_2.raw create mode 100644 tests/edgecore/show_version/edgecore_show_version_2.yml create mode 100644 tests/edgecore/show_vlan/edgecore_show_vlan.raw create mode 100644 tests/edgecore/show_vlan/edgecore_show_vlan.yml diff --git a/ntc_templates/templates/edgecore_show_interfaces_brief.textfsm b/ntc_templates/templates/edgecore_show_interfaces_brief.textfsm new file mode 100644 index 0000000000..0b9a728e50 --- /dev/null +++ b/ntc_templates/templates/edgecore_show_interfaces_brief.textfsm @@ -0,0 +1,21 @@ +Value INTERFACE (\S+\s+\d+\s*/\s*\d+) +Value NAME (.*?) +Value STATUS (\S+) +Value PVID (\d+) +Value PRIORITY (\d+) +Value NEGOTIATION (Auto) +Value SPEED (\d+) +Value DUPLEX (\S+) +Value TYPE (\S+) +Value TRUNK (\S+) + +Start + ^\s*Interface\s+Name\s+Status\s+PVID\s+Pri\s+Speed/Duplex\s+Type\s+Trunk\s*$$ -> IfacesTable + ^\s*$$ + ^. -> Error + +IfacesTable + ^(?:\s*-+)+\s*$$ + ^\s*${INTERFACE}(?:\s+${NAME})?\s+${STATUS}\s+${PVID}\s+${PRIORITY}\s+(${NEGOTIATION}(\-)?)?(${SPEED})?(${DUPLEX})?\s+${TYPE}\s+${TRUNK}\s*$$ -> Record + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/edgecore_show_interfaces_status.textfsm b/ntc_templates/templates/edgecore_show_interfaces_status.textfsm new file mode 100644 index 0000000000..e182264b44 --- /dev/null +++ b/ntc_templates/templates/edgecore_show_interfaces_status.textfsm @@ -0,0 +1,76 @@ +Value Required PORT (.*) +Value PORT_TYPE (.*) +Value ADDRESS (.*) +Value NAME (.*) +Value PORT_ADMIN (.*) +Value MDIX_MODE (.*) +Value NEGOTIATION (Auto) +Value SPEED (\d+) +Value DUPLEX (\S+) +Value CAPABILITIES (.*) +Value BROADCAST_STORM (.*) +Value BROADCAST_STORM_LIMIT (.*) +Value MULTICAST_STORM (.*) +Value MULTICAST_STORM_LIMIT (.*) +Value UNKNOWNUNICAST_STORM (.*) +Value UNKNOWNUNICAST_STORM_LIMIT (.*) +Value FLOW_CONTROL (.*) +Value VLAN_TRUNKING (.*) +Value LACP (.*) +Value PORT_SECURITY (.*) +Value MAX_MAC_COUNT (.*) +Value PORT_SECURITY_ACTION (.*) +Value MEDIA_TYPE (.*) +Value GIGA_PHY_MODE (.*) +Value LINK_STATUS (.*) +Value OPERATION_STATUS (.*) +Value PORT_UPTIME (.*) +Value FLOW_CONTROL_TYPE (.*) + +Start + ^\s*Information\s+of.*$$ -> Continue.Record + ^\s*Information\s+of\s+${PORT}\s*$$ + ^\s*M(ac|AC)\s+Address:\s*${ADDRESS}\s*$$ + ^\s*Basic\s+Information:\s*$$ -> BasicInfo + ^\s*$$ + ^. -> Error + +BasicInfo + ^\s*Port\s+Type:\s*${PORT_TYPE}\s*$$ + ^\s*M(ac|AC)\s+Address:\s*${ADDRESS}\s*$$ + ^\s*Configuration:\s*$$ -> Configuration + ^\s*$$ + ^. -> Error + +Configuration + ^\s*Name:\s*${NAME}\s*$$ + ^\s*Port\s+Admin:\s*${PORT_ADMIN}\s*$$ + ^\s*MDIX\s+mode:\s*${MDIX_MODE}\s*$$ + ^\s*Speed-duplex:\s*${NEGOTIATION}\s*$$ + ^\s*Capabilities:\s*${CAPABILITIES}\s*$$ + ^\s*Broadcast\s+Storm:\s*${BROADCAST_STORM}\s*$$ + ^\s*Broadcast\s+Storm\s+Limit:\s*${BROADCAST_STORM_LIMIT}\s*$$ + ^\s*Multicast\s+Storm:\s*${MULTICAST_STORM}\s*$$ + ^\s*Multicast\s+Storm\s+Limit:\s*${MULTICAST_STORM_LIMIT}\s*$$ + ^\s*UnknownUnicast\s+Storm:\s*${UNKNOWNUNICAST_STORM}\s*$$ + ^\s*UnknownUnicast\s+Storm\s+Limit:\s*${UNKNOWNUNICAST_STORM_LIMIT}\s*$$ + ^\s*Flow\s+Control:\s*${FLOW_CONTROL}\s*$$ + ^\s*VLAN\s+Trunking:\s*${VLAN_TRUNKING}\s*$$ + ^\s*LACP:\s*${LACP}\s*$$ + ^\s*Port\s+Security:\s*${PORT_SECURITY}\s*$$ + ^\s*Max\s+MAC\s+Count:\s*${MAX_MAC_COUNT}\s*$$ + ^\s*Port\s+Security\s+Action:\s*${PORT_SECURITY_ACTION}\s*$$ + ^\s*Media\s+Type:\s*${MEDIA_TYPE}\s*$$ + ^\s*Giga\s+PHY\s+mode:\s*${GIGA_PHY_MODE}\s*$$ + ^\s*Current Status:\s*$$ -> CurrentStatus + ^\s*$$ + ^. -> Error + +CurrentStatus + ^\s*Link\s+Status:\s*${LINK_STATUS}\s*$$ + ^\s*Port\s+Operation\s+Status:\s*${OPERATION_STATUS}\s*$$ + ^\s*Operation\s+Speed-duplex:\s*${SPEED}${DUPLEX}\s*$$ + ^\s*Port\s+Uptime:\s*${PORT_UPTIME}\s*$$ + ^\s*Flow\s+Control\s+Type:\s*${FLOW_CONTROL_TYPE}\s*$$ + ^\s*$$ -> Start + ^. -> Error diff --git a/ntc_templates/templates/edgecore_show_interfaces_switchport.textfsm b/ntc_templates/templates/edgecore_show_interfaces_switchport.textfsm new file mode 100644 index 0000000000..453f0b4f3e --- /dev/null +++ b/ntc_templates/templates/edgecore_show_interfaces_switchport.textfsm @@ -0,0 +1,95 @@ +Value INTERFACE (.*) +Value BROADCAST_THRESHOLD (.*) +Value MULTICAST_THRESHOLD (.*) +Value UNICAST_THRESHOLD (.*) +Value UNKNOWN_UNICAST_THRESHOLD (.*) +Value LACP_STATUS (.*) +Value INGRESS_RATE_LIMIT (.*) +Value EGRESS_RATE_LIMIT (.*) +Value VLAN_MEMBERSHIP_MODE (.*) +Value INGRESS_RULE (.*) +Value ACCEPTABLE_FRAME_TYPE (.*) +Value NATIVE_VLAN (.*) +Value PRIORITY_FOR_UNTAGGED_TRAFFIC (.*) +Value GVRP_STATUS (.*) +Value List ALLOWED_VLAN (\d+) +Value List ALLOWED_VLAN_TAG (\w+) +Value List FORBIDDEN_VLAN (\d+) +Value List FORBIDDEN_VLAN_TAG (\w+) +Value PRIVATE_VLAN_MODE (.*) +Value PRIVATE_VLAN_HOST_ASSOCIATION (.*) +Value PRIVATE_VLAN_MAPPING (.*) +Value TUNNEL_STATUS_802_1Q (.*) +Value TUNNEL_MODE_802_1Q (.*) +Value TUNNEL_TPID_802_1Q (.*) +Value LAYER_2_PROTOCOL_TUNNEL (.*) + +Start + ^\s*Information\sof\s.*$$ -> Continue.Record + ^\s*Information\sof\s${INTERFACE}\s*$$ + ^\s*Broadcast\s+Threshold:\s*${BROADCAST_THRESHOLD}\s*$$ + ^\s*Multicast\s+Threshold:\s*${MULTICAST_THRESHOLD}\s*$$ + ^\s*Unicast\s+Threshold:\s*${UNICAST_THRESHOLD}\s*$$ + ^\s*Unknown-unicast\s+Threshold:\s*${UNKNOWN_UNICAST_THRESHOLD}\s*$$ + ^\s*LACP\s+Status:\s*${LACP_STATUS}\s*$$ + ^\s*Ingress\s+Rate\s+Limit:\s*${INGRESS_RATE_LIMIT}\s*$$ + ^\s*Egress\s+Rate\s+Limit:\s*${EGRESS_RATE_LIMIT}\s*$$ + ^\s*VLAN\sMembership\sMode:\s*${VLAN_MEMBERSHIP_MODE}\s*$$ + ^\s*Ingress\s+Rule:\s*${INGRESS_RULE}\s*$$ + ^\s*Acceptable\s+Frame\s+Type:\s*${ACCEPTABLE_FRAME_TYPE}\s*$$ + ^\s*Native\sVLAN:\s*${NATIVE_VLAN}\s*$$ + ^\s*Priority\s+for\s+Untagged\s+Traffic:\s*${PRIORITY_FOR_UNTAGGED_TRAFFIC}\s*$$ + ^\s*GVRP\s+Status:\s*${GVRP_STATUS}\s*$$ + ^\s*Allowed\sVLAN:\s*${ALLOWED_VLAN}\(${ALLOWED_VLAN_TAG}\).*$$ -> Continue + ^\s*Allowed\sVLAN:\s*(\d+\(\w+\),\s*){1}${ALLOWED_VLAN}\(${ALLOWED_VLAN_TAG}\).*$$ -> Continue + ^\s*Allowed\sVLAN:\s*(\d+\(\w+\),\s*){2}${ALLOWED_VLAN}\(${ALLOWED_VLAN_TAG}\).*$$ -> Continue + ^\s*Allowed\sVLAN:\s*(\d+\(\w+\),\s*){3}${ALLOWED_VLAN}\(${ALLOWED_VLAN_TAG}\).*$$ -> Continue + ^\s*Allowed\sVLAN:\s*(\d+\(\w+\),\s*){4}${ALLOWED_VLAN}\(${ALLOWED_VLAN_TAG}\).*$$ -> Continue + ^\s*Allowed\sVLAN:\s*(\d+\(\w+\),\s*){5}${ALLOWED_VLAN}\(${ALLOWED_VLAN_TAG}\).*$$ -> Continue + ^\s*Allowed\sVLAN:\s*(\d+\(\w+\),\s*){6}${ALLOWED_VLAN}\(${ALLOWED_VLAN_TAG}\).*$$ -> Continue + ^\s*Allowed\sVLAN:\s*(\d+\(\w+\),\s*){7}${ALLOWED_VLAN}\(${ALLOWED_VLAN_TAG}\).*$$ -> Continue + ^\s*Allowed\sVLAN:\s*(\d+\(\w+\),\s*){8}${ALLOWED_VLAN}\(${ALLOWED_VLAN_TAG}\).*$$ -> Continue + ^\s*Allowed\sVLAN:\s*(\d+\(\w+\),\s*){9}${ALLOWED_VLAN}\(${ALLOWED_VLAN_TAG}\).*$$ -> Continue + ^\s*Allowed\sVLAN:\s*(\d+\(\w+\),?\s*)*$$ + ^\s+${ALLOWED_VLAN}\(${ALLOWED_VLAN_TAG}\).*$$ -> Continue + ^\s+(\d+\(\w+\),\s*){1}${ALLOWED_VLAN}\(${ALLOWED_VLAN_TAG}\).*$$ -> Continue + ^\s+(\d+\(\w+\),\s*){2}${ALLOWED_VLAN}\(${ALLOWED_VLAN_TAG}\).*$$ -> Continue + ^\s+(\d+\(\w+\),\s*){3}${ALLOWED_VLAN}\(${ALLOWED_VLAN_TAG}\).*$$ -> Continue + ^\s+(\d+\(\w+\),\s*){4}${ALLOWED_VLAN}\(${ALLOWED_VLAN_TAG}\).*$$ -> Continue + ^\s+(\d+\(\w+\),\s*){5}${ALLOWED_VLAN}\(${ALLOWED_VLAN_TAG}\).*$$ -> Continue + ^\s+(\d+\(\w+\),\s*){6}${ALLOWED_VLAN}\(${ALLOWED_VLAN_TAG}\).*$$ -> Continue + ^\s+(\d+\(\w+\),\s*){7}${ALLOWED_VLAN}\(${ALLOWED_VLAN_TAG}\).*$$ -> Continue + ^\s+(\d+\(\w+\),\s*){8}${ALLOWED_VLAN}\(${ALLOWED_VLAN_TAG}\).*$$ -> Continue + ^\s+(\d+\(\w+\),\s*){9}${ALLOWED_VLAN}\(${ALLOWED_VLAN_TAG}\).*$$ -> Continue + ^\s+(\d+\(\w+\),?\s*)*$$ + ^\s*Forbidden\sVLAN:\s*${FORBIDDEN_VLAN}\(${FORBIDDEN_VLAN_TAG}\).*$$ -> Continue + ^\s*Forbidden\sVLAN:\s*(\d+\(\w+\),\s*){1}${FORBIDDEN_VLAN}\(${FORBIDDEN_VLAN_TAG}\).*$$ -> Continue + ^\s*Forbidden\sVLAN:\s*(\d+\(\w+\),\s*){2}${FORBIDDEN_VLAN}\(${FORBIDDEN_VLAN_TAG}\).*$$ -> Continue + ^\s*Forbidden\sVLAN:\s*(\d+\(\w+\),\s*){3}${FORBIDDEN_VLAN}\(${FORBIDDEN_VLAN_TAG}\).*$$ -> Continue + ^\s*Forbidden\sVLAN:\s*(\d+\(\w+\),\s*){4}${FORBIDDEN_VLAN}\(${FORBIDDEN_VLAN_TAG}\).*$$ -> Continue + ^\s*Forbidden\sVLAN:\s*(\d+\(\w+\),\s*){5}${FORBIDDEN_VLAN}\(${FORBIDDEN_VLAN_TAG}\).*$$ -> Continue + ^\s*Forbidden\sVLAN:\s*(\d+\(\w+\),\s*){6}${FORBIDDEN_VLAN}\(${FORBIDDEN_VLAN_TAG}\).*$$ -> Continue + ^\s*Forbidden\sVLAN:\s*(\d+\(\w+\),\s*){7}${FORBIDDEN_VLAN}\(${FORBIDDEN_VLAN_TAG}\).*$$ -> Continue + ^\s*Forbidden\sVLAN:\s*(\d+\(\w+\),\s*){8}${FORBIDDEN_VLAN}\(${FORBIDDEN_VLAN_TAG}\).*$$ -> Continue + ^\s*Forbidden\sVLAN:\s*(\d+\(\w+\),\s*){9}${FORBIDDEN_VLAN}\(${FORBIDDEN_VLAN_TAG}\).*$$ -> Continue + ^\s*Forbidden\sVLAN:\s*(\d+\(\w+\),?\s*)*$$ + ^\s+${FORBIDDEN_VLAN}\(${FORBIDDEN_VLAN_TAG}\).*$$ -> Continue + ^\s+(\d+\(\w+\),\s*){1}${FORBIDDEN_VLAN}\(${FORBIDDEN_VLAN_TAG}\).*$$ -> Continue + ^\s+(\d+\(\w+\),\s*){2}${FORBIDDEN_VLAN}\(${FORBIDDEN_VLAN_TAG}\).*$$ -> Continue + ^\s+(\d+\(\w+\),\s*){3}${FORBIDDEN_VLAN}\(${FORBIDDEN_VLAN_TAG}\).*$$ -> Continue + ^\s+(\d+\(\w+\),\s*){4}${FORBIDDEN_VLAN}\(${FORBIDDEN_VLAN_TAG}\).*$$ -> Continue + ^\s+(\d+\(\w+\),\s*){5}${FORBIDDEN_VLAN}\(${FORBIDDEN_VLAN_TAG}\).*$$ -> Continue + ^\s+(\d+\(\w+\),\s*){6}${FORBIDDEN_VLAN}\(${FORBIDDEN_VLAN_TAG}\).*$$ -> Continue + ^\s+(\d+\(\w+\),\s*){7}${FORBIDDEN_VLAN}\(${FORBIDDEN_VLAN_TAG}\).*$$ -> Continue + ^\s+(\d+\(\w+\),\s*){8}${FORBIDDEN_VLAN}\(${FORBIDDEN_VLAN_TAG}\).*$$ -> Continue + ^\s+(\d+\(\w+\),\s*){9}${FORBIDDEN_VLAN}\(${FORBIDDEN_VLAN_TAG}\).*$$ -> Continue + ^\s+(\d+\(\w+\),?\s*)*$$ + ^\s*Private-VLAN\s+Mode:\s*${PRIVATE_VLAN_MODE}\s*$$ + ^\s*Private-VLAN\s+host-association:\s*${PRIVATE_VLAN_HOST_ASSOCIATION}\s*$$ + ^\s*Private-VLAN\s+Mapping:\s*${PRIVATE_VLAN_MAPPING}\s*$$ + ^\s*802.1Q-tunnel\s+Status:\s*${TUNNEL_STATUS_802_1Q}\s*$$ + ^\s*802.1Q-tunnel\s+Mode:\s*${TUNNEL_MODE_802_1Q}\s*$$ + ^\s*802.1Q-tunnel\s+TPID:\s*${TUNNEL_TPID_802_1Q}\s*$$ + ^\s*Layer\s+2\s+Protocol\s+Tunnel\s*:\s*${LAYER_2_PROTOCOL_TUNNEL}\s*$$ + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/edgecore_show_ip_interface.textfsm b/ntc_templates/templates/edgecore_show_ip_interface.textfsm new file mode 100644 index 0000000000..06bbc4c976 --- /dev/null +++ b/ntc_templates/templates/edgecore_show_ip_interface.textfsm @@ -0,0 +1,11 @@ +Value IP (\S+) +Value NETMASK (\S+) +Value INTERFACE (.*) +Value ADDR_MODE (.*) + +Start + ^\s*IP\s+Address\s+and\s+Netmask:.*$$ -> Continue.Record + ^\s*IP\s+Address\s+and\s+Netmask:\s+${IP}\s+${NETMASK}\s+on\s+${INTERFACE},\s*$$ + ^\s*Address\s+Mode:\s+${ADDR_MODE}\s*$$ + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/edgecore_show_system.textfsm b/ntc_templates/templates/edgecore_show_system.textfsm new file mode 100644 index 0000000000..916c9281d5 --- /dev/null +++ b/ntc_templates/templates/edgecore_show_system.textfsm @@ -0,0 +1,49 @@ +Value DESCRIPTION (.*) +Value OID (\d+(\.\d+)*) +Value UPTIME (.*) +Value HOSTNAME (\S+) +Value LOCATION (.*) +Value CONTACT (.*) +Value ADDRESS ([a-zA-Z0-9]{2}(?:-[a-zA-Z0-9]{2}){5}) +Value SERVER_STATUS (\S+) +Value SERVER_PORT (\d+) +Value SECURE_SERVER_STATUS (\S+) +Value SECURE_SERVER_PORT (\d+) +Value TELNET_SERVER_STATUS (\S+) +Value TELNET_SERVER_PORT (\d+) +Value AUTH_LOGIN (.*) +Value AUTH_ENABLED (.*) +Value JUMBO_FRAME_STATUS (\S+) +Value List POST_RESULTS (.*) + +Start + ^\s*System\s+Description:\s+${DESCRIPTION}\s*$$ + ^\s*System\s+OID\s+String:\s+${OID}\s*$$ + ^\s*System\s+Information\s*$$ -> SystemInfo + ^\s*$$ + ^. -> Error + +SystemInfo + ^\s*System\s+Up\s+Time:\s+${UPTIME}\s*$$ + ^\s*System\s+Name:\s+${HOSTNAME}\s*$$ + ^\s*System\s+Location:\s+${LOCATION}\s*$$ + ^\s*System\s+Contact:\s+${CONTACT}\s*$$ + ^\s*MAC\s+Address\s+\(Unit\d+\):\s+${ADDRESS}\s*$$ + ^\s*Web\s+Server:\s+${SERVER_STATUS}\s*$$ + ^\s*Web\s+Server\s+Port:\s+${SERVER_PORT}\s*$$ + ^\s*Web\s+Secure\s+Server:\s+${SECURE_SERVER_STATUS}\s*$$ + ^\s*Web\s+Secure\s+Server\s+Port:\s+${SECURE_SERVER_PORT}\s*$$ + ^\s*Telnet\s+Server:\s+${TELNET_SERVER_STATUS}\s*$$ + ^\s*Telnet\s+Server\s+Port:\s+${TELNET_SERVER_PORT}\s*$$ + ^\s*Authentication\s+Login:\s+${AUTH_LOGIN}\s*$$ + ^\s*Authentication\s+Enabled:\s+${AUTH_ENABLED}\s*$$ + ^\s*Jumbo\s+Frame:\s+${JUMBO_FRAME_STATUS}\s*$$ + ^\s*POST\s+Result:\s*$$ -> PostResults + ^\s*$$ + ^. -> Error + +PostResults + ^\s*Done\s+All\s+Pass.\s*$$ + ^\s*$$ + ^\s*${POST_RESULTS}\s*$$ -> PostResults + ^. -> Error diff --git a/ntc_templates/templates/edgecore_show_version.textfsm b/ntc_templates/templates/edgecore_show_version.textfsm new file mode 100644 index 0000000000..3924839f23 --- /dev/null +++ b/ntc_templates/templates/edgecore_show_version.textfsm @@ -0,0 +1,31 @@ +Value UNIT (\d+) +Value SERIAL (.*) +Value SERVICE_TAG (.*) +Value HARDWARE_VERSION (.*) +Value CHIP_ID (.*) +Value EPLD_VERSION (.*) +Value NUM_OF_PORTS (.*) +Value POWER_STATUS (.*) +Value REDUNDANT_POWER_STATUS (.*) +Value LOADER_VERSION (.*) +Value ROM_VERSION (.*) +Value OPERATION_CODE_VERSION (.*) + +Start + ^\s*Unit\s+\d+$$ -> Continue.Record + ^\s*Unit\s+${UNIT}$$ + ^\s*Serial\s+Number:\s*${SERIAL}\s*$$ + ^\s*Service\s+Tag:(?:\s*${SERVICE_TAG})?\s*$$ + ^\s*Hardware\s+Version:\s*${HARDWARE_VERSION}\s*$$ + ^\s*Chip\s+Device\s+ID:\s*${CHIP_ID}\s*$$ + ^\s*EPLD\s+Version:\s*${EPLD_VERSION}\s*$$ + ^\s*Number\s+of\s+Ports:\s*${NUM_OF_PORTS}\s*$$ + ^\s*Main\s+Power\s+Status:\s*${POWER_STATUS}\s*$$ + ^\s*Redundant\s+Power\s+Status:\s*${REDUNDANT_POWER_STATUS}\s*$$ + ^\s*Agent.*$$ + ^\s*Unit\s+ID:\s*\d+\s*$$ + ^\s*Loader\s+Version:\s*${LOADER_VERSION}\s*$$ + ^\s*Boot\s+ROM\s+Version:\s*${ROM_VERSION}\s*$$ + ^\s*Operation\s+Code\s+Version:\s*${OPERATION_CODE_VERSION}\s*$$ + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/edgecore_show_vlan.textfsm b/ntc_templates/templates/edgecore_show_vlan.textfsm new file mode 100644 index 0000000000..2d85afe32c --- /dev/null +++ b/ntc_templates/templates/edgecore_show_vlan.textfsm @@ -0,0 +1,37 @@ +Value VLAN_ID (\d+) +Value TYPE (\S+) +Value VLAN_NAME (.*) +Value STATUS (\S+) +Value List PORTS (\S+\s*\d+\s*/\s*\d+) + +Start + ^\s*Default\s+VLAN\s+ID\s*:\s*\d+\s*$$ + ^\s*VLAN\s+ID:\s*\d+\s*$$ -> Continue.Record + ^\s*VLAN\s+ID:\s*${VLAN_ID}\s*$$ + ^\s*Type:\s*${TYPE}\s*$$ + ^\s*Name:\s*(?:${VLAN_NAME})?\s*$$ + ^\s*Status:\s*${STATUS}\s*$$ + ^\s*Ports/Port\s+Channels:\s*${PORTS}\s*\(\w+\).*$$ -> Continue + ^\s*Ports/Port\s+Channels:\s*(\S+\s*\d+\s*/\s*\d+\s*\(\w+\)\s*){1}${PORTS}\s*\(\w+\).*$$ -> Continue + ^\s*Ports/Port\s+Channels:\s*(\S+\s*\d+\s*/\s*\d+\s*\(\w+\)\s*){2}${PORTS}\s*\(\w+\).*$$ -> Continue + ^\s*Ports/Port\s+Channels:\s*(\S+\s*\d+\s*/\s*\d+\s*\(\w+\)\s*){3}${PORTS}\s*\(\w+\).*$$ -> Continue + ^\s*Ports/Port\s+Channels:\s*(\S+\s*\d+\s*/\s*\d+\s*\(\w+\)\s*){4}${PORTS}\s*\(\w+\).*$$ -> Continue + ^\s*Ports/Port\s+Channels:\s*(\S+\s*\d+\s*/\s*\d+\s*\(\w+\)\s*){5}${PORTS}\s*\(\w+\).*$$ -> Continue + ^\s*Ports/Port\s+Channels:\s*(\S+\s*\d+\s*/\s*\d+\s*\(\w+\)\s*){6}${PORTS}\s*\(\w+\).*$$ -> Continue + ^\s*Ports/Port\s+Channels:\s*(\S+\s*\d+\s*/\s*\d+\s*\(\w+\)\s*){7}${PORTS}\s*\(\w+\).*$$ -> Continue + ^\s*Ports/Port\s+Channels:\s*(\S+\s*\d+\s*/\s*\d+\s*\(\w+\)\s*){8}${PORTS}\s*\(\w+\).*$$ -> Continue + ^\s*Ports/Port\s+Channels:\s*(\S+\s*\d+\s*/\s*\d+\s*\(\w+\)\s*){9}${PORTS}\s*\(\w+\).*$$ -> Continue + ^\s*Ports/Port\s+Channels:\s*(\S+\s*\d+\s*/\s*\d+\s*\(\w+\)\s*)*$$ + ^\s*${PORTS}\s*\(\w+\).*$$ -> Continue + ^\s*(\S+\s*\d+\s*/\s*\d+\s*\(\w+\)\s*){1}${PORTS}\s*\(\w+\).*$$ -> Continue + ^\s*(\S+\s*\d+\s*/\s*\d+\s*\(\w+\)\s*){2}${PORTS}\s*\(\w+\).*$$ -> Continue + ^\s*(\S+\s*\d+\s*/\s*\d+\s*\(\w+\)\s*){3}${PORTS}\s*\(\w+\).*$$ -> Continue + ^\s*(\S+\s*\d+\s*/\s*\d+\s*\(\w+\)\s*){4}${PORTS}\s*\(\w+\).*$$ -> Continue + ^\s*(\S+\s*\d+\s*/\s*\d+\s*\(\w+\)\s*){5}${PORTS}\s*\(\w+\).*$$ -> Continue + ^\s*(\S+\s*\d+\s*/\s*\d+\s*\(\w+\)\s*){6}${PORTS}\s*\(\w+\).*$$ -> Continue + ^\s*(\S+\s*\d+\s*/\s*\d+\s*\(\w+\)\s*){7}${PORTS}\s*\(\w+\).*$$ -> Continue + ^\s*(\S+\s*\d+\s*/\s*\d+\s*\(\w+\)\s*){8}${PORTS}\s*\(\w+\).*$$ -> Continue + ^\s*(\S+\s*\d+\s*/\s*\d+\s*\(\w+\)\s*){9}${PORTS}\s*\(\w+\).*$$ -> Continue + ^\s*(\S+\s*\d+\s*/\s*\d+\s*\(\w+\)\s*)*$$ + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 48404c5f13..e75b817bd9 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -541,6 +541,14 @@ dell_powerconnect_show_interfaces_status.textfsm, .*, dell_powerconnect, sh[[ow] dlink_ds_show_arpentry.textfsm, .*, dlink_ds, sh[[ow]] arpe[[ntry]] +edgecore_show_interfaces_switchport.textfsm, .*, edgecore, show interfaces switchport +edgecore_show_interfaces_status.textfsm, .*, edgecore, show interfaces status +edgecore_show_interfaces_brief.textfsm, .*, edgecore, show interfaces brief +edgecore_show_ip_interface.textfsm, .*, edgecore, show ip interface +edgecore_show_version.textfsm, .*, edgecore, show version +edgecore_show_system.textfsm, .*, edgecore, show system +edgecore_show_vlan.textfsm, .*, edgecore, show vlan + eltex_show_interfaces_description.textfsm, .*, eltex, sh[[ow]] int[[erfaces]] de[[scription]] eltex_show_interfaces_switchport.textfsm, .*, eltex, sh[[ow]] int[[erfaces]] sw[[itchport]] eltex_show_interfaces_status.textfsm, .*, eltex, sh[[ow]] int[[erfaces]] st[[atus]] diff --git a/tests/edgecore/show_interfaces_brief/edgecore_show_interfaces_brief.raw b/tests/edgecore/show_interfaces_brief/edgecore_show_interfaces_brief.raw new file mode 100644 index 0000000000..63f9da12a5 --- /dev/null +++ b/tests/edgecore/show_interfaces_brief/edgecore_show_interfaces_brief.raw @@ -0,0 +1,12 @@ +Interface Name Status PVID Pri Speed/Duplex Type Trunk +--------- ------------------ -------- ---- --- ------------- ------------ ----- +Eth 1/ 1 Mikrotik-11.22.33. Down 1 0 Auto 100TX None +Eth 1/ 2 vl10_toTESTS-PC Down 5 0 Auto 100TX None +Eth 1/ 3 FortiGateLOL-vl10 Up 730 0 Auto-100full 100TX None +Eth 1/ 4 Down 3010 0 Auto 100TX None +Eth 1/ 5 Down 884 0 Auto 100TX None +Eth 1/ 6 Down 884 0 Auto 100TX None +Eth 1/ 7 Phone_Lollink_RNCB Up 222 0 Auto-100full 100TX None +Eth 1/ 8 Up 222 0 Auto-100full 100TX None +Eth 1/ 9 Up 1 0 Auto-1000full 1000T None +Eth 1/10 Up 1 0 Auto-1000full 1000T None diff --git a/tests/edgecore/show_interfaces_brief/edgecore_show_interfaces_brief.yml b/tests/edgecore/show_interfaces_brief/edgecore_show_interfaces_brief.yml new file mode 100644 index 0000000000..6babcb832e --- /dev/null +++ b/tests/edgecore/show_interfaces_brief/edgecore_show_interfaces_brief.yml @@ -0,0 +1,102 @@ +--- +parsed_sample: + - interface: "Eth 1/ 1" + name: "Mikrotik-11.22.33." + priority: "0" + pvid: "1" + negotiation: "Auto" + speed: "" + duplex: "" + status: "Down" + trunk: "None" + type: "100TX" + - interface: "Eth 1/ 2" + name: "vl10_toTESTS-PC" + priority: "0" + pvid: "5" + negotiation: "Auto" + speed: "" + duplex: "" + status: "Down" + trunk: "None" + type: "100TX" + - interface: "Eth 1/ 3" + name: "FortiGateLOL-vl10" + priority: "0" + pvid: "730" + negotiation: "Auto" + speed: "100" + duplex: "full" + status: "Up" + trunk: "None" + type: "100TX" + - interface: "Eth 1/ 4" + name: "" + priority: "0" + pvid: "3010" + negotiation: "Auto" + speed: "" + duplex: "" + status: "Down" + trunk: "None" + type: "100TX" + - interface: "Eth 1/ 5" + name: "" + priority: "0" + pvid: "884" + negotiation: "Auto" + speed: "" + duplex: "" + status: "Down" + trunk: "None" + type: "100TX" + - interface: "Eth 1/ 6" + name: "" + priority: "0" + pvid: "884" + negotiation: "Auto" + speed: "" + duplex: "" + status: "Down" + trunk: "None" + type: "100TX" + - interface: "Eth 1/ 7" + name: "Phone_Lollink_RNCB" + priority: "0" + pvid: "222" + negotiation: "Auto" + speed: "100" + duplex: "full" + status: "Up" + trunk: "None" + type: "100TX" + - interface: "Eth 1/ 8" + name: "" + priority: "0" + pvid: "222" + negotiation: "Auto" + speed: "100" + duplex: "full" + status: "Up" + trunk: "None" + type: "100TX" + - interface: "Eth 1/ 9" + name: "" + priority: "0" + pvid: "1" + negotiation: "Auto" + speed: "1000" + duplex: "full" + status: "Up" + trunk: "None" + type: "1000T" + - interface: "Eth 1/10" + name: "" + priority: "0" + pvid: "1" + negotiation: "Auto" + speed: "1000" + duplex: "full" + status: "Up" + trunk: "None" + type: "1000T" diff --git a/tests/edgecore/show_interfaces_status/edgecore_show_interfaces_status.raw b/tests/edgecore/show_interfaces_status/edgecore_show_interfaces_status.raw new file mode 100644 index 0000000000..c8ff8af168 --- /dev/null +++ b/tests/edgecore/show_interfaces_status/edgecore_show_interfaces_status.raw @@ -0,0 +1,302 @@ +Information of Eth 1/1 + Basic Information: + Port Type: 100TX + Mac Address: 12-34-56-78-AA-00 + Configuration: + Name: PC1 + Port Admin: Up + MDIX mode: Auto + Speed-duplex: Auto + Capabilities: 10half, 10full, 100half, 100full + Broadcast Storm: Enabled + Broadcast Storm Limit: 64 Kbits/second + Multicast Storm: Disabled + Multicast Storm Limit: 64 Kbits/second + UnknownUnicast Storm: Disabled + UnknownUnicast Storm Limit: 64 Kbits/second + Flow Control: Disabled + VLAN Trunking: Disabled + LACP: Disabled + Port Security: Disabled + Max MAC Count: 0 + Port Security Action: None + Media Type: None + Giga PHY mode: Auto preferred master + Current Status: + Link Status: Down + Operation Speed-duplex: 100full + Flow Control Type: None + +Information of Eth 1/2 + Basic Information: + Port Type: 100TX + Mac Address: 12-34-56-78-AA-01 + Configuration: + Name: PC2 + Port Admin: Up + MDIX mode: Auto + Speed-duplex: Auto + Capabilities: 10half, 10full, 100half, 100full + Broadcast Storm: Enabled + Broadcast Storm Limit: 64 Kbits/second + Multicast Storm: Disabled + Multicast Storm Limit: 64 Kbits/second + UnknownUnicast Storm: Disabled + UnknownUnicast Storm Limit: 64 Kbits/second + Flow Control: Disabled + VLAN Trunking: Disabled + LACP: Disabled + Port Security: Disabled + Max MAC Count: 0 + Port Security Action: None + Media Type: None + Giga PHY mode: Auto preferred master + Current Status: + Link Status: Down + Operation Speed-duplex: 100full + Flow Control Type: None + +Information of Eth 1/3 + Basic Information: + Port Type: 100TX + Mac Address: 12-34-56-78-AA-03 + Configuration: + Name: AH1100-DevTest + Port Admin: Up + MDIX mode: Auto + Speed-duplex: Auto + Capabilities: 10half, 10full, 100half, 100full + Broadcast Storm: Enabled + Broadcast Storm Limit: 64 Kbits/second + Multicast Storm: Disabled + Multicast Storm Limit: 64 Kbits/second + UnknownUnicast Storm: Disabled + UnknownUnicast Storm Limit: 64 Kbits/second + Flow Control: Disabled + VLAN Trunking: Disabled + LACP: Disabled + Port Security: Disabled + Max MAC Count: 0 + Port Security Action: None + Media Type: None + Giga PHY mode: Auto preferred master + Current Status: + Link Status: Down + Operation Speed-duplex: 100full + Flow Control Type: None + +Information of Eth 1/4 + Basic Information: + Port Type: 100TX + Mac Address: 12-34-56-78-AA-04 + Configuration: + Name: PC3 + Port Admin: Up + MDIX mode: Auto + Speed-duplex: Auto + Capabilities: 10half, 10full, 100half, 100full + Broadcast Storm: Enabled + Broadcast Storm Limit: 64 Kbits/second + Multicast Storm: Disabled + Multicast Storm Limit: 64 Kbits/second + UnknownUnicast Storm: Disabled + UnknownUnicast Storm Limit: 64 Kbits/second + Flow Control: Disabled + VLAN Trunking: Disabled + LACP: Disabled + Port Security: Disabled + Max MAC Count: 0 + Port Security Action: None + Media Type: None + Giga PHY mode: Auto preferred master + Current Status: + Link Status: Down + Operation Speed-duplex: 100full + Flow Control Type: None + +Information of Eth 1/5 + Basic Information: + Port Type: 100TX + Mac Address: 12-34-56-78-AA-05 + Configuration: + Name: Client_part + Port Admin: Up + MDIX mode: Auto + Speed-duplex: Auto + Capabilities: 10half, 10full, 100half, 100full + Broadcast Storm: Enabled + Broadcast Storm Limit: 64 Kbits/second + Multicast Storm: Disabled + Multicast Storm Limit: 64 Kbits/second + UnknownUnicast Storm: Disabled + UnknownUnicast Storm Limit: 64 Kbits/second + Flow Control: Disabled + VLAN Trunking: Disabled + LACP: Disabled + Port Security: Disabled + Max MAC Count: 0 + Port Security Action: None + Media Type: None + Giga PHY mode: Auto preferred master + Current Status: + Link Status: Down + Operation Speed-duplex: 100full + Flow Control Type: None + +Information of Eth 1/6 + Basic Information: + Port Type: 100TX + Mac Address: 12-34-56-78-AA-06 + Configuration: + Name: LAB LAN to VM + Port Admin: Up + MDIX mode: Auto + Speed-duplex: Auto + Capabilities: 10half, 10full, 100half, 100full + Broadcast Storm: Enabled + Broadcast Storm Limit: 64 Kbits/second + Multicast Storm: Disabled + Multicast Storm Limit: 64 Kbits/second + UnknownUnicast Storm: Disabled + UnknownUnicast Storm Limit: 64 Kbits/second + Flow Control: Disabled + VLAN Trunking: Disabled + LACP: Disabled + Port Security: Disabled + Max MAC Count: 0 + Port Security Action: None + Media Type: None + Giga PHY mode: Auto preferred master + Current Status: + Link Status: Down + Operation Speed-duplex: 100full + Flow Control Type: None + +Information of Eth 1/7 + Basic Information: + Port Type: 100TX + Mac Address: 12-34-56-78-AA-07 + Configuration: + Name: Stand + Port Admin: Up + MDIX mode: Auto + Speed-duplex: Auto + Capabilities: 10half, 10full, 100half, 100full + Broadcast Storm: Enabled + Broadcast Storm Limit: 64 Kbits/second + Multicast Storm: Disabled + Multicast Storm Limit: 64 Kbits/second + UnknownUnicast Storm: Disabled + UnknownUnicast Storm Limit: 64 Kbits/second + Flow Control: Disabled + VLAN Trunking: Disabled + LACP: Disabled + Port Security: Disabled + Max MAC Count: 0 + Port Security Action: None + Media Type: None + Giga PHY mode: Auto preferred master + Current Status: + Link Status: Down + Operation Speed-duplex: 100full + Flow Control Type: None + +Information of Eth 1/8 + Basic Information: + Port Type: 100TX + Mac Address: 12-34-56-78-AA-08 + Configuration: + Name: Stand fa4 + Port Admin: Up + MDIX mode: Auto + Speed-duplex: Auto + Capabilities: 10half, 10full, 100half, 100full + Broadcast Storm: Enabled + Broadcast Storm Limit: 64 Kbits/second + Multicast Storm: Disabled + Multicast Storm Limit: 64 Kbits/second + UnknownUnicast Storm: Disabled + UnknownUnicast Storm Limit: 64 Kbits/second + Flow Control: Disabled + VLAN Trunking: Disabled + LACP: Disabled + Port Security: Disabled + Max MAC Count: 0 + Port Security Action: None + Media Type: None + Giga PHY mode: Auto preferred master + Current Status: + Link Status: Down + Operation Speed-duplex: 100full + Flow Control Type: None + +Information of Eth 1/9 + Basic Information: + Port Type: 1000T + Mac Address: 12-34-56-78-AA-09 + Configuration: + Name: PC4 + Port Admin: Up + MDIX mode: Auto + Speed-duplex: Auto + Capabilities: 10half, 10full, 100half, 100full, 1000full + Broadcast Storm: Enabled + Broadcast Storm Limit: 64 Kbits/second + Multicast Storm: Disabled + Multicast Storm Limit: 64 Kbits/second + UnknownUnicast Storm: Disabled + UnknownUnicast Storm Limit: 64 Kbits/second + Flow Control: Disabled + VLAN Trunking: Disabled + LACP: Disabled + Port Security: Disabled + Max MAC Count: 0 + Port Security Action: None + Media Type: SFP preferred auto + Giga PHY mode: Auto preferred master + Current Status: + Link Status: Up + Port Operation Status: Up + Operation Speed-duplex: 1000full + Port Uptime: 1w 12d 11h 37m 14s (1078634 seconds) + Flow Control Type: None + +Information of Eth 1/10 + Basic Information: + Port Type: 1000T + Mac Address: 12-34-56-78-AA-10 + Configuration: + Name: Videowall-PC + Port Admin: Up + MDIX mode: Auto + Speed-duplex: Auto + Capabilities: 10half, 10full, 100half, 100full, 1000full + Broadcast Storm: Enabled + Broadcast Storm Limit: 64 Kbits/second + Multicast Storm: Disabled + Multicast Storm Limit: 64 Kbits/second + UnknownUnicast Storm: Disabled + UnknownUnicast Storm Limit: 64 Kbits/second + Flow Control: Disabled + VLAN Trunking: Disabled + LACP: Disabled + Port Security: Disabled + Max MAC Count: 0 + Port Security Action: None + Media Type: SFP preferred auto + Giga PHY mode: Auto preferred master + Current Status: + Link Status: Up + Port Operation Status: Up + Operation Speed-duplex: 1000full + Port Uptime: 3w 22d 1h 15m 40s (1905340 seconds) + Flow Control Type: None + +Information of VLAN 1 + MAC Address: 12-34-56-78-90-00 + +Information of VLAN 150 + MAC Address: 12-34-56-78-90-00 + +Information of VLAN 203 + MAC Address: 12-34-56-78-90-00 diff --git a/tests/edgecore/show_interfaces_status/edgecore_show_interfaces_status.yml b/tests/edgecore/show_interfaces_status/edgecore_show_interfaces_status.yml new file mode 100644 index 0000000000..759e0e8a7a --- /dev/null +++ b/tests/edgecore/show_interfaces_status/edgecore_show_interfaces_status.yml @@ -0,0 +1,366 @@ +--- +parsed_sample: + - port: "Eth 1/1" + port_type: "100TX" + address: "12-34-56-78-AA-00" + name: "PC1" + port_admin: "Up" + mdix_mode: "Auto" + negotiation: "Auto" + speed: "100" + duplex: "full" + capabilities: "10half, 10full, 100half, 100full" + broadcast_storm: "Enabled" + broadcast_storm_limit: "64 Kbits/second" + multicast_storm: "Disabled" + multicast_storm_limit: "64 Kbits/second" + unknownunicast_storm: "Disabled" + unknownunicast_storm_limit: "64 Kbits/second" + flow_control: "Disabled" + vlan_trunking: "Disabled" + lacp: "Disabled" + port_security: "Disabled" + max_mac_count: "0" + port_security_action: "None" + media_type: "None" + giga_phy_mode: "Auto preferred master" + link_status: "Down" + operation_status: "" + port_uptime: "" + flow_control_type: "None" + - port: "Eth 1/2" + port_type: "100TX" + address: "12-34-56-78-AA-01" + name: "PC2" + port_admin: "Up" + mdix_mode: "Auto" + negotiation: "Auto" + speed: "100" + duplex: "full" + capabilities: "10half, 10full, 100half, 100full" + broadcast_storm: "Enabled" + broadcast_storm_limit: "64 Kbits/second" + multicast_storm: "Disabled" + multicast_storm_limit: "64 Kbits/second" + unknownunicast_storm: "Disabled" + unknownunicast_storm_limit: "64 Kbits/second" + flow_control: "Disabled" + vlan_trunking: "Disabled" + lacp: "Disabled" + port_security: "Disabled" + max_mac_count: "0" + port_security_action: "None" + media_type: "None" + giga_phy_mode: "Auto preferred master" + link_status: "Down" + operation_status: "" + port_uptime: "" + flow_control_type: "None" + - port: "Eth 1/3" + port_type: "100TX" + address: "12-34-56-78-AA-03" + name: "AH1100-DevTest" + port_admin: "Up" + mdix_mode: "Auto" + negotiation: "Auto" + speed: "100" + duplex: "full" + capabilities: "10half, 10full, 100half, 100full" + broadcast_storm: "Enabled" + broadcast_storm_limit: "64 Kbits/second" + multicast_storm: "Disabled" + multicast_storm_limit: "64 Kbits/second" + unknownunicast_storm: "Disabled" + unknownunicast_storm_limit: "64 Kbits/second" + flow_control: "Disabled" + vlan_trunking: "Disabled" + lacp: "Disabled" + port_security: "Disabled" + max_mac_count: "0" + port_security_action: "None" + media_type: "None" + giga_phy_mode: "Auto preferred master" + link_status: "Down" + operation_status: "" + port_uptime: "" + flow_control_type: "None" + - port: "Eth 1/4" + port_type: "100TX" + address: "12-34-56-78-AA-04" + name: "PC3" + port_admin: "Up" + mdix_mode: "Auto" + negotiation: "Auto" + speed: "100" + duplex: "full" + capabilities: "10half, 10full, 100half, 100full" + broadcast_storm: "Enabled" + broadcast_storm_limit: "64 Kbits/second" + multicast_storm: "Disabled" + multicast_storm_limit: "64 Kbits/second" + unknownunicast_storm: "Disabled" + unknownunicast_storm_limit: "64 Kbits/second" + flow_control: "Disabled" + vlan_trunking: "Disabled" + lacp: "Disabled" + port_security: "Disabled" + max_mac_count: "0" + port_security_action: "None" + media_type: "None" + giga_phy_mode: "Auto preferred master" + link_status: "Down" + operation_status: "" + port_uptime: "" + flow_control_type: "None" + - port: "Eth 1/5" + port_type: "100TX" + address: "12-34-56-78-AA-05" + name: "Client_part" + port_admin: "Up" + mdix_mode: "Auto" + negotiation: "Auto" + speed: "100" + duplex: "full" + capabilities: "10half, 10full, 100half, 100full" + broadcast_storm: "Enabled" + broadcast_storm_limit: "64 Kbits/second" + multicast_storm: "Disabled" + multicast_storm_limit: "64 Kbits/second" + unknownunicast_storm: "Disabled" + unknownunicast_storm_limit: "64 Kbits/second" + flow_control: "Disabled" + vlan_trunking: "Disabled" + lacp: "Disabled" + port_security: "Disabled" + max_mac_count: "0" + port_security_action: "None" + media_type: "None" + giga_phy_mode: "Auto preferred master" + link_status: "Down" + operation_status: "" + port_uptime: "" + flow_control_type: "None" + - port: "Eth 1/6" + port_type: "100TX" + address: "12-34-56-78-AA-06" + name: "LAB LAN to VM" + port_admin: "Up" + mdix_mode: "Auto" + negotiation: "Auto" + speed: "100" + duplex: "full" + capabilities: "10half, 10full, 100half, 100full" + broadcast_storm: "Enabled" + broadcast_storm_limit: "64 Kbits/second" + multicast_storm: "Disabled" + multicast_storm_limit: "64 Kbits/second" + unknownunicast_storm: "Disabled" + unknownunicast_storm_limit: "64 Kbits/second" + flow_control: "Disabled" + vlan_trunking: "Disabled" + lacp: "Disabled" + port_security: "Disabled" + max_mac_count: "0" + port_security_action: "None" + media_type: "None" + giga_phy_mode: "Auto preferred master" + link_status: "Down" + operation_status: "" + port_uptime: "" + flow_control_type: "None" + - port: "Eth 1/7" + port_type: "100TX" + address: "12-34-56-78-AA-07" + name: "Stand" + port_admin: "Up" + mdix_mode: "Auto" + negotiation: "Auto" + speed: "100" + duplex: "full" + capabilities: "10half, 10full, 100half, 100full" + broadcast_storm: "Enabled" + broadcast_storm_limit: "64 Kbits/second" + multicast_storm: "Disabled" + multicast_storm_limit: "64 Kbits/second" + unknownunicast_storm: "Disabled" + unknownunicast_storm_limit: "64 Kbits/second" + flow_control: "Disabled" + vlan_trunking: "Disabled" + lacp: "Disabled" + port_security: "Disabled" + max_mac_count: "0" + port_security_action: "None" + media_type: "None" + giga_phy_mode: "Auto preferred master" + link_status: "Down" + operation_status: "" + port_uptime: "" + flow_control_type: "None" + - port: "Eth 1/8" + port_type: "100TX" + address: "12-34-56-78-AA-08" + name: "Stand fa4" + port_admin: "Up" + mdix_mode: "Auto" + negotiation: "Auto" + speed: "100" + duplex: "full" + capabilities: "10half, 10full, 100half, 100full" + broadcast_storm: "Enabled" + broadcast_storm_limit: "64 Kbits/second" + multicast_storm: "Disabled" + multicast_storm_limit: "64 Kbits/second" + unknownunicast_storm: "Disabled" + unknownunicast_storm_limit: "64 Kbits/second" + flow_control: "Disabled" + vlan_trunking: "Disabled" + lacp: "Disabled" + port_security: "Disabled" + max_mac_count: "0" + port_security_action: "None" + media_type: "None" + giga_phy_mode: "Auto preferred master" + link_status: "Down" + operation_status: "" + port_uptime: "" + flow_control_type: "None" + - port: "Eth 1/9" + port_type: "1000T" + address: "12-34-56-78-AA-09" + name: "PC4" + port_admin: "Up" + mdix_mode: "Auto" + negotiation: "Auto" + speed: "1000" + duplex: "full" + capabilities: "10half, 10full, 100half, 100full, 1000full" + broadcast_storm: "Enabled" + broadcast_storm_limit: "64 Kbits/second" + multicast_storm: "Disabled" + multicast_storm_limit: "64 Kbits/second" + unknownunicast_storm: "Disabled" + unknownunicast_storm_limit: "64 Kbits/second" + flow_control: "Disabled" + vlan_trunking: "Disabled" + lacp: "Disabled" + port_security: "Disabled" + max_mac_count: "0" + port_security_action: "None" + media_type: "SFP preferred auto" + giga_phy_mode: "Auto preferred master" + link_status: "Up" + operation_status: "Up" + port_uptime: "1w 12d 11h 37m 14s (1078634 seconds)" + flow_control_type: "None" + - port: "Eth 1/10" + port_type: "1000T" + address: "12-34-56-78-AA-10" + name: "Videowall-PC" + port_admin: "Up" + mdix_mode: "Auto" + negotiation: "Auto" + speed: "1000" + duplex: "full" + capabilities: "10half, 10full, 100half, 100full, 1000full" + broadcast_storm: "Enabled" + broadcast_storm_limit: "64 Kbits/second" + multicast_storm: "Disabled" + multicast_storm_limit: "64 Kbits/second" + unknownunicast_storm: "Disabled" + unknownunicast_storm_limit: "64 Kbits/second" + flow_control: "Disabled" + vlan_trunking: "Disabled" + lacp: "Disabled" + port_security: "Disabled" + max_mac_count: "0" + port_security_action: "None" + media_type: "SFP preferred auto" + giga_phy_mode: "Auto preferred master" + link_status: "Up" + operation_status: "Up" + port_uptime: "3w 22d 1h 15m 40s (1905340 seconds)" + flow_control_type: "None" + - port: "VLAN 1" + port_type: "" + address: "12-34-56-78-90-00" + name: "" + port_admin: "" + mdix_mode: "" + negotiation: "" + speed: "" + duplex: "" + capabilities: "" + broadcast_storm: "" + broadcast_storm_limit: "" + multicast_storm: "" + multicast_storm_limit: "" + unknownunicast_storm: "" + unknownunicast_storm_limit: "" + flow_control: "" + vlan_trunking: "" + lacp: "" + port_security: "" + max_mac_count: "" + port_security_action: "" + media_type: "" + giga_phy_mode: "" + link_status: "" + operation_status: "" + port_uptime: "" + flow_control_type: "" + - port: "VLAN 150" + port_type: "" + address: "12-34-56-78-90-00" + name: "" + port_admin: "" + mdix_mode: "" + negotiation: "" + speed: "" + duplex: "" + capabilities: "" + broadcast_storm: "" + broadcast_storm_limit: "" + multicast_storm: "" + multicast_storm_limit: "" + unknownunicast_storm: "" + unknownunicast_storm_limit: "" + flow_control: "" + vlan_trunking: "" + lacp: "" + port_security: "" + max_mac_count: "" + port_security_action: "" + media_type: "" + giga_phy_mode: "" + link_status: "" + operation_status: "" + port_uptime: "" + flow_control_type: "" + - port: "VLAN 203" + port_type: "" + address: "12-34-56-78-90-00" + name: "" + port_admin: "" + mdix_mode: "" + negotiation: "" + speed: "" + duplex: "" + capabilities: "" + broadcast_storm: "" + broadcast_storm_limit: "" + multicast_storm: "" + multicast_storm_limit: "" + unknownunicast_storm: "" + unknownunicast_storm_limit: "" + flow_control: "" + vlan_trunking: "" + lacp: "" + port_security: "" + max_mac_count: "" + port_security_action: "" + media_type: "" + giga_phy_mode: "" + link_status: "" + operation_status: "" + port_uptime: "" + flow_control_type: "" diff --git a/tests/edgecore/show_interfaces_switchport/edgecore_show_interfaces_switchport_1.raw b/tests/edgecore/show_interfaces_switchport/edgecore_show_interfaces_switchport_1.raw new file mode 100644 index 0000000000..266f27fbc4 --- /dev/null +++ b/tests/edgecore/show_interfaces_switchport/edgecore_show_interfaces_switchport_1.raw @@ -0,0 +1,234 @@ +Information of Eth 1/1 + Broadcast Threshold: Enabled, 64 Kbits/second + Multicast Threshold: Disabled + Unknown-unicast Threshold: Disabled + LACP Status: Disabled + Ingress Rate Limit: Disabled, 100000 Kbits per second + Egress Rate Limit: Disabled, 100000 Kbits per second + VLAN Membership Mode: Trunk + Ingress Rule: Enabled + Acceptable Frame Type: All frames + Native VLAN: 226 + Priority for Untagged Traffic: 0 + GVRP Status: Disabled + Allowed VLAN: 222(t), 226(t), + Forbidden VLAN: + Private-VLAN Mode: NONE + Private-VLAN host-association: NONE + Private-VLAN Mapping: NONE + 802.1Q-tunnel Status: Disable + 802.1Q-tunnel Mode: NORMAL + 802.1Q-tunnel TPID: 8100(Hex) + Layer 2 Protocol Tunnel : None + +Information of Eth 1/2 + Broadcast Threshold: Enabled, 64 Kbits/second + Multicast Threshold: Disabled + Unknown-unicast Threshold: Disabled + LACP Status: Disabled + Ingress Rate Limit: Disabled, 100000 Kbits per second + Egress Rate Limit: Disabled, 100000 Kbits per second + VLAN Membership Mode: Hybrid + Ingress Rule: Enabled + Acceptable Frame Type: All frames + Native VLAN: 1961 + Priority for Untagged Traffic: 0 + GVRP Status: Disabled + Allowed VLAN: 1(u), 203(u), 222(t), 226(u),1961(u), + Forbidden VLAN: + Private-VLAN Mode: NONE + Private-VLAN host-association: NONE + Private-VLAN Mapping: NONE + 802.1Q-tunnel Status: Disable + 802.1Q-tunnel Mode: NORMAL + 802.1Q-tunnel TPID: 8100(Hex) + Layer 2 Protocol Tunnel : None + +Information of Eth 1/3 + Broadcast Threshold: Enabled, 64 Kbits/second + Multicast Threshold: Disabled + Unknown-unicast Threshold: Disabled + LACP Status: Disabled + Ingress Rate Limit: Disabled, 100000 Kbits per second + Egress Rate Limit: Disabled, 100000 Kbits per second + VLAN Membership Mode: Trunk + Ingress Rule: Enabled + Acceptable Frame Type: All frames + Native VLAN: 1 + Priority for Untagged Traffic: 0 + GVRP Status: Disabled + Allowed VLAN: 1(t), 222(t), 229(t), 730(t),1221(t),1501(t), + 3096(t),3099(t), + Forbidden VLAN: + Private-VLAN Mode: NONE + Private-VLAN host-association: NONE + Private-VLAN Mapping: NONE + 802.1Q-tunnel Status: Disable + 802.1Q-tunnel Mode: NORMAL + 802.1Q-tunnel TPID: 8100(Hex) + Layer 2 Protocol Tunnel : None + +Information of Eth 1/4 + Broadcast Threshold: Enabled, 64 Kbits/second + Multicast Threshold: Disabled + Unknown-unicast Threshold: Disabled + LACP Status: Disabled + Ingress Rate Limit: Disabled, 100000 Kbits per second + Egress Rate Limit: Disabled, 100000 Kbits per second + VLAN Membership Mode: Access + Ingress Rule: Enabled + Acceptable Frame Type: All frames + Native VLAN: 226 + Priority for Untagged Traffic: 0 + GVRP Status: Disabled + Allowed VLAN: 226(u), + Forbidden VLAN: + Private-VLAN Mode: NONE + Private-VLAN host-association: NONE + Private-VLAN Mapping: NONE + 802.1Q-tunnel Status: Disable + 802.1Q-tunnel Mode: NORMAL + 802.1Q-tunnel TPID: 8100(Hex) + Layer 2 Protocol Tunnel : None + +Information of Eth 1/5 + Broadcast Threshold: Enabled, 64 Kbits/second + Multicast Threshold: Disabled + Unknown-unicast Threshold: Disabled + LACP Status: Disabled + Ingress Rate Limit: Disabled, 100000 Kbits per second + Egress Rate Limit: Disabled, 100000 Kbits per second + VLAN Membership Mode: Access + Ingress Rule: Enabled + Acceptable Frame Type: All frames + Native VLAN: 229 + Priority for Untagged Traffic: 0 + GVRP Status: Disabled + Allowed VLAN: 229(u), + Forbidden VLAN: + Private-VLAN Mode: NONE + Private-VLAN host-association: NONE + Private-VLAN Mapping: NONE + 802.1Q-tunnel Status: Disable + 802.1Q-tunnel Mode: NORMAL + 802.1Q-tunnel TPID: 8100(Hex) + Layer 2 Protocol Tunnel : None + +Information of Eth 1/6 + Broadcast Threshold: Enabled, 64 Kbits/second + Multicast Threshold: Disabled + Unknown-unicast Threshold: Disabled + LACP Status: Disabled + Ingress Rate Limit: Disabled, 100000 Kbits per second + Egress Rate Limit: Disabled, 100000 Kbits per second + VLAN Membership Mode: Access + Ingress Rule: Enabled + Acceptable Frame Type: All frames + Native VLAN: 3948 + Priority for Untagged Traffic: 0 + GVRP Status: Disabled + Allowed VLAN: 3948(u), + Forbidden VLAN: + Private-VLAN Mode: NONE + Private-VLAN host-association: NONE + Private-VLAN Mapping: NONE + 802.1Q-tunnel Status: Disable + 802.1Q-tunnel Mode: NORMAL + 802.1Q-tunnel TPID: 8100(Hex) + Layer 2 Protocol Tunnel : None + +Information of Eth 1/7 + Broadcast Threshold: Enabled, 64 Kbits/second + Multicast Threshold: Disabled + Unknown-unicast Threshold: Disabled + LACP Status: Disabled + Ingress Rate Limit: Disabled, 100000 Kbits per second + Egress Rate Limit: Disabled, 100000 Kbits per second + VLAN Membership Mode: Access + Ingress Rule: Enabled + Acceptable Frame Type: All frames + Native VLAN: 1024 + Priority for Untagged Traffic: 0 + GVRP Status: Disabled + Allowed VLAN: 1024(u), + Forbidden VLAN: + Private-VLAN Mode: NONE + Private-VLAN host-association: NONE + Private-VLAN Mapping: NONE + 802.1Q-tunnel Status: Disable + 802.1Q-tunnel Mode: NORMAL + 802.1Q-tunnel TPID: 8100(Hex) + Layer 2 Protocol Tunnel : None + +Information of Eth 1/8 + Broadcast Threshold: Enabled, 64 Kbits/second + Multicast Threshold: Disabled + Unknown-unicast Threshold: Disabled + LACP Status: Disabled + Ingress Rate Limit: Disabled, 100000 Kbits per second + Egress Rate Limit: Disabled, 100000 Kbits per second + VLAN Membership Mode: Access + Ingress Rule: Enabled + Acceptable Frame Type: All frames + Native VLAN: 884 + Priority for Untagged Traffic: 0 + GVRP Status: Disabled + Allowed VLAN: 884(u), + Forbidden VLAN: + Private-VLAN Mode: NONE + Private-VLAN host-association: NONE + Private-VLAN Mapping: NONE + 802.1Q-tunnel Status: Disable + 802.1Q-tunnel Mode: NORMAL + 802.1Q-tunnel TPID: 8100(Hex) + Layer 2 Protocol Tunnel : None + +Information of Eth 1/9 + Broadcast Threshold: Enabled, 64 Kbits/second + Multicast Threshold: Disabled + Unknown-unicast Threshold: Disabled + LACP Status: Disabled + Ingress Rate Limit: Disabled, 100000 Kbits per second + Egress Rate Limit: Disabled, 100000 Kbits per second + VLAN Membership Mode: Access + Ingress Rule: Enabled + Acceptable Frame Type: All frames + Native VLAN: 203 + Priority for Untagged Traffic: 0 + GVRP Status: Disabled + Allowed VLAN: 203(u), + Forbidden VLAN: + Private-VLAN Mode: NONE + Private-VLAN host-association: NONE + Private-VLAN Mapping: NONE + 802.1Q-tunnel Status: Disable + 802.1Q-tunnel Mode: NORMAL + 802.1Q-tunnel TPID: 8100(Hex) + Layer 2 Protocol Tunnel : None + +Information of Eth 1/10 + Broadcast Threshold: Enabled, 64 Kbits/second + Multicast Threshold: Disabled + Unknown-unicast Threshold: Disabled + LACP Status: Disabled + Ingress Rate Limit: Disabled, 1000000 Kbits per second + Egress Rate Limit: Disabled, 1000000 Kbits per second + VLAN Membership Mode: Trunk + Ingress Rule: Enabled + Acceptable Frame Type: All frames + Native VLAN: 1 + Priority for Untagged Traffic: 0 + GVRP Status: Disabled + Allowed VLAN: 1(t), 203(t), 222(t), 226(t), 229(t), 243(t), + 255(t), 362(t), 600(t), 730(t), 760(t), 761(t), + 884(t),1024(t),1115(t),1221(t),1266(t),1381(t), + 1501(t),1961(t),2498(t),2704(t),3010(t),3030(t), + 3040(t),3096(t),3099(t),3948(t), + Forbidden VLAN: + Private-VLAN Mode: NONE + Private-VLAN host-association: NONE + Private-VLAN Mapping: NONE + 802.1Q-tunnel Status: Disable + 802.1Q-tunnel Mode: NORMAL + 802.1Q-tunnel TPID: 8100(Hex) + Layer 2 Protocol Tunnel : None diff --git a/tests/edgecore/show_interfaces_switchport/edgecore_show_interfaces_switchport_1.yml b/tests/edgecore/show_interfaces_switchport/edgecore_show_interfaces_switchport_1.yml new file mode 100644 index 0000000000..14d9f1a922 --- /dev/null +++ b/tests/edgecore/show_interfaces_switchport/edgecore_show_interfaces_switchport_1.yml @@ -0,0 +1,350 @@ +--- +parsed_sample: + - acceptable_frame_type: "All frames" + allowed_vlan: + - "222" + - "226" + allowed_vlan_tag: + - "t" + - "t" + broadcast_threshold: "Enabled, 64 Kbits/second" + egress_rate_limit: "Disabled, 100000 Kbits per second" + forbidden_vlan: [] + forbidden_vlan_tag: [] + gvrp_status: "Disabled" + ingress_rate_limit: "Disabled, 100000 Kbits per second" + ingress_rule: "Enabled" + interface: "Eth 1/1" + lacp_status: "Disabled" + layer_2_protocol_tunnel: "None" + multicast_threshold: "Disabled" + native_vlan: "226" + priority_for_untagged_traffic: "0" + private_vlan_host_association: "NONE" + private_vlan_mapping: "NONE" + private_vlan_mode: "NONE" + tunnel_mode_802_1q: "NORMAL" + tunnel_status_802_1q: "Disable" + tunnel_tpid_802_1q: "8100(Hex)" + unicast_threshold: "" + unknown_unicast_threshold: "Disabled" + vlan_membership_mode: "Trunk" + - acceptable_frame_type: "All frames" + allowed_vlan: + - "1" + - "203" + - "222" + - "226" + - "1961" + allowed_vlan_tag: + - "u" + - "u" + - "t" + - "u" + - "u" + broadcast_threshold: "Enabled, 64 Kbits/second" + egress_rate_limit: "Disabled, 100000 Kbits per second" + forbidden_vlan: [] + forbidden_vlan_tag: [] + gvrp_status: "Disabled" + ingress_rate_limit: "Disabled, 100000 Kbits per second" + ingress_rule: "Enabled" + interface: "Eth 1/2" + lacp_status: "Disabled" + layer_2_protocol_tunnel: "None" + multicast_threshold: "Disabled" + native_vlan: "1961" + priority_for_untagged_traffic: "0" + private_vlan_host_association: "NONE" + private_vlan_mapping: "NONE" + private_vlan_mode: "NONE" + tunnel_mode_802_1q: "NORMAL" + tunnel_status_802_1q: "Disable" + tunnel_tpid_802_1q: "8100(Hex)" + unicast_threshold: "" + unknown_unicast_threshold: "Disabled" + vlan_membership_mode: "Hybrid" + - acceptable_frame_type: "All frames" + allowed_vlan: + - "1" + - "222" + - "229" + - "730" + - "1221" + - "1501" + - "3096" + - "3099" + allowed_vlan_tag: + - "t" + - "t" + - "t" + - "t" + - "t" + - "t" + - "t" + - "t" + broadcast_threshold: "Enabled, 64 Kbits/second" + egress_rate_limit: "Disabled, 100000 Kbits per second" + forbidden_vlan: [] + forbidden_vlan_tag: [] + gvrp_status: "Disabled" + ingress_rate_limit: "Disabled, 100000 Kbits per second" + ingress_rule: "Enabled" + interface: "Eth 1/3" + lacp_status: "Disabled" + layer_2_protocol_tunnel: "None" + multicast_threshold: "Disabled" + native_vlan: "1" + priority_for_untagged_traffic: "0" + private_vlan_host_association: "NONE" + private_vlan_mapping: "NONE" + private_vlan_mode: "NONE" + tunnel_mode_802_1q: "NORMAL" + tunnel_status_802_1q: "Disable" + tunnel_tpid_802_1q: "8100(Hex)" + unicast_threshold: "" + unknown_unicast_threshold: "Disabled" + vlan_membership_mode: "Trunk" + - acceptable_frame_type: "All frames" + allowed_vlan: + - "226" + allowed_vlan_tag: + - "u" + broadcast_threshold: "Enabled, 64 Kbits/second" + egress_rate_limit: "Disabled, 100000 Kbits per second" + forbidden_vlan: [] + forbidden_vlan_tag: [] + gvrp_status: "Disabled" + ingress_rate_limit: "Disabled, 100000 Kbits per second" + ingress_rule: "Enabled" + interface: "Eth 1/4" + lacp_status: "Disabled" + layer_2_protocol_tunnel: "None" + multicast_threshold: "Disabled" + native_vlan: "226" + priority_for_untagged_traffic: "0" + private_vlan_host_association: "NONE" + private_vlan_mapping: "NONE" + private_vlan_mode: "NONE" + tunnel_mode_802_1q: "NORMAL" + tunnel_status_802_1q: "Disable" + tunnel_tpid_802_1q: "8100(Hex)" + unicast_threshold: "" + unknown_unicast_threshold: "Disabled" + vlan_membership_mode: "Access" + - acceptable_frame_type: "All frames" + allowed_vlan: + - "229" + allowed_vlan_tag: + - "u" + broadcast_threshold: "Enabled, 64 Kbits/second" + egress_rate_limit: "Disabled, 100000 Kbits per second" + forbidden_vlan: [] + forbidden_vlan_tag: [] + gvrp_status: "Disabled" + ingress_rate_limit: "Disabled, 100000 Kbits per second" + ingress_rule: "Enabled" + interface: "Eth 1/5" + lacp_status: "Disabled" + layer_2_protocol_tunnel: "None" + multicast_threshold: "Disabled" + native_vlan: "229" + priority_for_untagged_traffic: "0" + private_vlan_host_association: "NONE" + private_vlan_mapping: "NONE" + private_vlan_mode: "NONE" + tunnel_mode_802_1q: "NORMAL" + tunnel_status_802_1q: "Disable" + tunnel_tpid_802_1q: "8100(Hex)" + unicast_threshold: "" + unknown_unicast_threshold: "Disabled" + vlan_membership_mode: "Access" + - acceptable_frame_type: "All frames" + allowed_vlan: + - "3948" + allowed_vlan_tag: + - "u" + broadcast_threshold: "Enabled, 64 Kbits/second" + egress_rate_limit: "Disabled, 100000 Kbits per second" + forbidden_vlan: [] + forbidden_vlan_tag: [] + gvrp_status: "Disabled" + ingress_rate_limit: "Disabled, 100000 Kbits per second" + ingress_rule: "Enabled" + interface: "Eth 1/6" + lacp_status: "Disabled" + layer_2_protocol_tunnel: "None" + multicast_threshold: "Disabled" + native_vlan: "3948" + priority_for_untagged_traffic: "0" + private_vlan_host_association: "NONE" + private_vlan_mapping: "NONE" + private_vlan_mode: "NONE" + tunnel_mode_802_1q: "NORMAL" + tunnel_status_802_1q: "Disable" + tunnel_tpid_802_1q: "8100(Hex)" + unicast_threshold: "" + unknown_unicast_threshold: "Disabled" + vlan_membership_mode: "Access" + - acceptable_frame_type: "All frames" + allowed_vlan: + - "1024" + allowed_vlan_tag: + - "u" + broadcast_threshold: "Enabled, 64 Kbits/second" + egress_rate_limit: "Disabled, 100000 Kbits per second" + forbidden_vlan: [] + forbidden_vlan_tag: [] + gvrp_status: "Disabled" + ingress_rate_limit: "Disabled, 100000 Kbits per second" + ingress_rule: "Enabled" + interface: "Eth 1/7" + lacp_status: "Disabled" + layer_2_protocol_tunnel: "None" + multicast_threshold: "Disabled" + native_vlan: "1024" + priority_for_untagged_traffic: "0" + private_vlan_host_association: "NONE" + private_vlan_mapping: "NONE" + private_vlan_mode: "NONE" + tunnel_mode_802_1q: "NORMAL" + tunnel_status_802_1q: "Disable" + tunnel_tpid_802_1q: "8100(Hex)" + unicast_threshold: "" + unknown_unicast_threshold: "Disabled" + vlan_membership_mode: "Access" + - acceptable_frame_type: "All frames" + allowed_vlan: + - "884" + allowed_vlan_tag: + - "u" + broadcast_threshold: "Enabled, 64 Kbits/second" + egress_rate_limit: "Disabled, 100000 Kbits per second" + forbidden_vlan: [] + forbidden_vlan_tag: [] + gvrp_status: "Disabled" + ingress_rate_limit: "Disabled, 100000 Kbits per second" + ingress_rule: "Enabled" + interface: "Eth 1/8" + lacp_status: "Disabled" + layer_2_protocol_tunnel: "None" + multicast_threshold: "Disabled" + native_vlan: "884" + priority_for_untagged_traffic: "0" + private_vlan_host_association: "NONE" + private_vlan_mapping: "NONE" + private_vlan_mode: "NONE" + tunnel_mode_802_1q: "NORMAL" + tunnel_status_802_1q: "Disable" + tunnel_tpid_802_1q: "8100(Hex)" + unicast_threshold: "" + unknown_unicast_threshold: "Disabled" + vlan_membership_mode: "Access" + - acceptable_frame_type: "All frames" + allowed_vlan: + - "203" + allowed_vlan_tag: + - "u" + broadcast_threshold: "Enabled, 64 Kbits/second" + egress_rate_limit: "Disabled, 100000 Kbits per second" + forbidden_vlan: [] + forbidden_vlan_tag: [] + gvrp_status: "Disabled" + ingress_rate_limit: "Disabled, 100000 Kbits per second" + ingress_rule: "Enabled" + interface: "Eth 1/9" + lacp_status: "Disabled" + layer_2_protocol_tunnel: "None" + multicast_threshold: "Disabled" + native_vlan: "203" + priority_for_untagged_traffic: "0" + private_vlan_host_association: "NONE" + private_vlan_mapping: "NONE" + private_vlan_mode: "NONE" + tunnel_mode_802_1q: "NORMAL" + tunnel_status_802_1q: "Disable" + tunnel_tpid_802_1q: "8100(Hex)" + unicast_threshold: "" + unknown_unicast_threshold: "Disabled" + vlan_membership_mode: "Access" + - acceptable_frame_type: "All frames" + allowed_vlan: + - "1" + - "203" + - "222" + - "226" + - "229" + - "243" + - "255" + - "362" + - "600" + - "730" + - "760" + - "761" + - "884" + - "1024" + - "1115" + - "1221" + - "1266" + - "1381" + - "1501" + - "1961" + - "2498" + - "2704" + - "3010" + - "3030" + - "3040" + - "3096" + - "3099" + - "3948" + allowed_vlan_tag: + - "t" + - "t" + - "t" + - "t" + - "t" + - "t" + - "t" + - "t" + - "t" + - "t" + - "t" + - "t" + - "t" + - "t" + - "t" + - "t" + - "t" + - "t" + - "t" + - "t" + - "t" + - "t" + - "t" + - "t" + - "t" + - "t" + - "t" + - "t" + broadcast_threshold: "Enabled, 64 Kbits/second" + egress_rate_limit: "Disabled, 1000000 Kbits per second" + forbidden_vlan: [] + forbidden_vlan_tag: [] + gvrp_status: "Disabled" + ingress_rate_limit: "Disabled, 1000000 Kbits per second" + ingress_rule: "Enabled" + interface: "Eth 1/10" + lacp_status: "Disabled" + layer_2_protocol_tunnel: "None" + multicast_threshold: "Disabled" + native_vlan: "1" + priority_for_untagged_traffic: "0" + private_vlan_host_association: "NONE" + private_vlan_mapping: "NONE" + private_vlan_mode: "NONE" + tunnel_mode_802_1q: "NORMAL" + tunnel_status_802_1q: "Disable" + tunnel_tpid_802_1q: "8100(Hex)" + unicast_threshold: "" + unknown_unicast_threshold: "Disabled" + vlan_membership_mode: "Trunk" diff --git a/tests/edgecore/show_interfaces_switchport/edgecore_show_interfaces_switchport_2.raw b/tests/edgecore/show_interfaces_switchport/edgecore_show_interfaces_switchport_2.raw new file mode 100644 index 0000000000..d88e381506 --- /dev/null +++ b/tests/edgecore/show_interfaces_switchport/edgecore_show_interfaces_switchport_2.raw @@ -0,0 +1,209 @@ +Information of Eth 1/1 + Broadcast Threshold: Enabled, scale:80K level:5 bits/second + Multicast Threshold: Disabled + Unicast Threshold: Disabled + LACP Status: Disabled + Ingress Rate Limit: Disabled, scale:8M level:10 + Egress Rate Limit: Disabled, scale:8M level:10 + VLAN Membership Mode: Hybrid + Ingress Rule: Enabled + Acceptable Frame Type: All frames + Native VLAN: 1 + Priority for Untagged Traffic: 0 + GVRP Status: Disabled + Allowed VLAN: 1(u), 692(t), 695(t), 698(t), + Forbidden VLAN: + Private-VLAN Mode: NONE + Private-VLAN Mapping: NONE + 802.1Q-tunnel Status: Disable + 802.1Q-tunnel Mode: NORMAL + 802.1Q-tunnel TPID: 8100(Hex) + +Information of Eth 1/2 + Broadcast Threshold: Enabled, scale:80K level:5 bits/second + Multicast Threshold: Disabled + Unicast Threshold: Disabled + LACP Status: Disabled + Ingress Rate Limit: Disabled, scale:8M level:10 + Egress Rate Limit: Disabled, scale:8M level:10 + VLAN Membership Mode: Hybrid + Ingress Rule: Enabled + Acceptable Frame Type: All frames + Native VLAN: 692 + Priority for Untagged Traffic: 0 + GVRP Status: Disabled + Allowed VLAN: 692(u), + Forbidden VLAN: + Private-VLAN Mode: NONE + Private-VLAN Mapping: NONE + 802.1Q-tunnel Status: Disable + 802.1Q-tunnel Mode: NORMAL + 802.1Q-tunnel TPID: 8100(Hex) + +Information of Eth 1/3 + Broadcast Threshold: Enabled, scale:80K level:5 bits/second + Multicast Threshold: Disabled + Unicast Threshold: Disabled + LACP Status: Disabled + Ingress Rate Limit: Disabled, scale:8M level:10 + Egress Rate Limit: Disabled, scale:8M level:10 + VLAN Membership Mode: Hybrid + Ingress Rule: Enabled + Acceptable Frame Type: All frames + Native VLAN: 692 + Priority for Untagged Traffic: 0 + GVRP Status: Disabled + Allowed VLAN: 692(u), + Forbidden VLAN: + Private-VLAN Mode: NONE + Private-VLAN Mapping: NONE + 802.1Q-tunnel Status: Disable + 802.1Q-tunnel Mode: NORMAL + 802.1Q-tunnel TPID: 8100(Hex) + +Information of Eth 1/4 + Broadcast Threshold: Enabled, scale:80K level:5 bits/second + Multicast Threshold: Disabled + Unicast Threshold: Disabled + LACP Status: Disabled + Ingress Rate Limit: Disabled, scale:8M level:10 + Egress Rate Limit: Disabled, scale:8M level:10 + VLAN Membership Mode: Hybrid + Ingress Rule: Enabled + Acceptable Frame Type: All frames + Native VLAN: 692 + Priority for Untagged Traffic: 0 + GVRP Status: Disabled + Allowed VLAN: 692(u), + Forbidden VLAN: + Private-VLAN Mode: NONE + Private-VLAN Mapping: NONE + 802.1Q-tunnel Status: Disable + 802.1Q-tunnel Mode: NORMAL + 802.1Q-tunnel TPID: 8100(Hex) + +Information of Eth 1/5 + Broadcast Threshold: Enabled, scale:80K level:5 bits/second + Multicast Threshold: Disabled + Unicast Threshold: Disabled + LACP Status: Disabled + Ingress Rate Limit: Disabled, scale:8M level:10 + Egress Rate Limit: Disabled, scale:8M level:10 + VLAN Membership Mode: Access + Ingress Rule: Enabled + Acceptable Frame Type: All frames + Native VLAN: 692 + Priority for Untagged Traffic: 0 + GVRP Status: Disabled + Allowed VLAN: 692(u), + Forbidden VLAN: + Private-VLAN Mode: NONE + Private-VLAN Mapping: NONE + 802.1Q-tunnel Status: Disable + 802.1Q-tunnel Mode: NORMAL + 802.1Q-tunnel TPID: 8100(Hex) + +Information of Eth 1/6 + Broadcast Threshold: Enabled, scale:80K level:5 bits/second + Multicast Threshold: Disabled + Unicast Threshold: Disabled + LACP Status: Disabled + Ingress Rate Limit: Disabled, scale:8M level:10 + Egress Rate Limit: Disabled, scale:8M level:10 + VLAN Membership Mode: Trunk + Ingress Rule: Enabled + Acceptable Frame Type: All frames + Native VLAN: 1 + Priority for Untagged Traffic: 0 + GVRP Status: Disabled + Allowed VLAN: 1(t), 692(t), 698(t), + Forbidden VLAN: + Private-VLAN Mode: NONE + Private-VLAN Mapping: NONE + 802.1Q-tunnel Status: Disable + 802.1Q-tunnel Mode: NORMAL + 802.1Q-tunnel TPID: 8100(Hex) + +Information of Eth 1/7 + Broadcast Threshold: Enabled, scale:80K level:5 bits/second + Multicast Threshold: Disabled + Unicast Threshold: Disabled + LACP Status: Disabled + Ingress Rate Limit: Disabled, scale:8M level:10 + Egress Rate Limit: Disabled, scale:8M level:10 + VLAN Membership Mode: Access + Ingress Rule: Enabled + Acceptable Frame Type: All frames + Native VLAN: 692 + Priority for Untagged Traffic: 0 + GVRP Status: Disabled + Allowed VLAN: 692(u), + Forbidden VLAN: + Private-VLAN Mode: NONE + Private-VLAN Mapping: NONE + 802.1Q-tunnel Status: Disable + 802.1Q-tunnel Mode: NORMAL + 802.1Q-tunnel TPID: 8100(Hex) + +Information of Eth 1/8 + Broadcast Threshold: Enabled, scale:80K level:5 bits/second + Multicast Threshold: Disabled + Unicast Threshold: Disabled + LACP Status: Disabled + Ingress Rate Limit: Disabled, scale:8M level:10 + Egress Rate Limit: Disabled, scale:8M level:10 + VLAN Membership Mode: Hybrid + Ingress Rule: Enabled + Acceptable Frame Type: All frames + Native VLAN: 692 + Priority for Untagged Traffic: 0 + GVRP Status: Disabled + Allowed VLAN: 692(u), + Forbidden VLAN: + Private-VLAN Mode: NONE + Private-VLAN Mapping: NONE + 802.1Q-tunnel Status: Disable + 802.1Q-tunnel Mode: NORMAL + 802.1Q-tunnel TPID: 8100(Hex) + +Information of Eth 1/9 + Broadcast Threshold: Enabled, scale:80K level:5 bits/second + Multicast Threshold: Disabled + Unicast Threshold: Disabled + LACP Status: Disabled + Ingress Rate Limit: Disabled, scale:8M level:10 + Egress Rate Limit: Disabled, scale:8M level:10 + VLAN Membership Mode: Hybrid + Ingress Rule: Enabled + Acceptable Frame Type: All frames + Native VLAN: 692 + Priority for Untagged Traffic: 0 + GVRP Status: Disabled + Allowed VLAN: 692(u), + Forbidden VLAN: + Private-VLAN Mode: NONE + Private-VLAN Mapping: NONE + 802.1Q-tunnel Status: Disable + 802.1Q-tunnel Mode: NORMAL + 802.1Q-tunnel TPID: 8100(Hex) + +Information of Eth 1/10 + Broadcast Threshold: Enabled, scale:80K level:5 bits/second + Multicast Threshold: Disabled + Unicast Threshold: Disabled + LACP Status: Disabled + Ingress Rate Limit: Disabled, scale:8M level:10 + Egress Rate Limit: Disabled, scale:8M level:10 + VLAN Membership Mode: Hybrid + Ingress Rule: Enabled + Acceptable Frame Type: All frames + Native VLAN: 692 + Priority for Untagged Traffic: 0 + GVRP Status: Disabled + Allowed VLAN: 692(u), + Forbidden VLAN: + Private-VLAN Mode: NONE + Private-VLAN Mapping: NONE + 802.1Q-tunnel Status: Disable + 802.1Q-tunnel Mode: NORMAL + 802.1Q-tunnel TPID: 8100(Hex) diff --git a/tests/edgecore/show_interfaces_switchport/edgecore_show_interfaces_switchport_2.yml b/tests/edgecore/show_interfaces_switchport/edgecore_show_interfaces_switchport_2.yml new file mode 100644 index 0000000000..be7f3b43fb --- /dev/null +++ b/tests/edgecore/show_interfaces_switchport/edgecore_show_interfaces_switchport_2.yml @@ -0,0 +1,282 @@ +--- +parsed_sample: + - acceptable_frame_type: "All frames" + allowed_vlan: + - "1" + - "692" + - "695" + - "698" + allowed_vlan_tag: + - "u" + - "t" + - "t" + - "t" + broadcast_threshold: "Enabled, scale:80K level:5 bits/second" + egress_rate_limit: "Disabled, scale:8M level:10" + forbidden_vlan: [] + forbidden_vlan_tag: [] + gvrp_status: "Disabled" + ingress_rate_limit: "Disabled, scale:8M level:10" + ingress_rule: "Enabled" + interface: "Eth 1/1" + lacp_status: "Disabled" + layer_2_protocol_tunnel: "" + multicast_threshold: "Disabled" + native_vlan: "1" + priority_for_untagged_traffic: "0" + private_vlan_host_association: "" + private_vlan_mapping: "NONE" + private_vlan_mode: "NONE" + tunnel_mode_802_1q: "NORMAL" + tunnel_status_802_1q: "Disable" + tunnel_tpid_802_1q: "8100(Hex)" + unicast_threshold: "Disabled" + unknown_unicast_threshold: "" + vlan_membership_mode: "Hybrid" + - acceptable_frame_type: "All frames" + allowed_vlan: + - "692" + allowed_vlan_tag: + - "u" + broadcast_threshold: "Enabled, scale:80K level:5 bits/second" + egress_rate_limit: "Disabled, scale:8M level:10" + forbidden_vlan: [] + forbidden_vlan_tag: [] + gvrp_status: "Disabled" + ingress_rate_limit: "Disabled, scale:8M level:10" + ingress_rule: "Enabled" + interface: "Eth 1/2" + lacp_status: "Disabled" + layer_2_protocol_tunnel: "" + multicast_threshold: "Disabled" + native_vlan: "692" + priority_for_untagged_traffic: "0" + private_vlan_host_association: "" + private_vlan_mapping: "NONE" + private_vlan_mode: "NONE" + tunnel_mode_802_1q: "NORMAL" + tunnel_status_802_1q: "Disable" + tunnel_tpid_802_1q: "8100(Hex)" + unicast_threshold: "Disabled" + unknown_unicast_threshold: "" + vlan_membership_mode: "Hybrid" + - acceptable_frame_type: "All frames" + allowed_vlan: + - "692" + allowed_vlan_tag: + - "u" + broadcast_threshold: "Enabled, scale:80K level:5 bits/second" + egress_rate_limit: "Disabled, scale:8M level:10" + forbidden_vlan: [] + forbidden_vlan_tag: [] + gvrp_status: "Disabled" + ingress_rate_limit: "Disabled, scale:8M level:10" + ingress_rule: "Enabled" + interface: "Eth 1/3" + lacp_status: "Disabled" + layer_2_protocol_tunnel: "" + multicast_threshold: "Disabled" + native_vlan: "692" + priority_for_untagged_traffic: "0" + private_vlan_host_association: "" + private_vlan_mapping: "NONE" + private_vlan_mode: "NONE" + tunnel_mode_802_1q: "NORMAL" + tunnel_status_802_1q: "Disable" + tunnel_tpid_802_1q: "8100(Hex)" + unicast_threshold: "Disabled" + unknown_unicast_threshold: "" + vlan_membership_mode: "Hybrid" + - acceptable_frame_type: "All frames" + allowed_vlan: + - "692" + allowed_vlan_tag: + - "u" + broadcast_threshold: "Enabled, scale:80K level:5 bits/second" + egress_rate_limit: "Disabled, scale:8M level:10" + forbidden_vlan: [] + forbidden_vlan_tag: [] + gvrp_status: "Disabled" + ingress_rate_limit: "Disabled, scale:8M level:10" + ingress_rule: "Enabled" + interface: "Eth 1/4" + lacp_status: "Disabled" + layer_2_protocol_tunnel: "" + multicast_threshold: "Disabled" + native_vlan: "692" + priority_for_untagged_traffic: "0" + private_vlan_host_association: "" + private_vlan_mapping: "NONE" + private_vlan_mode: "NONE" + tunnel_mode_802_1q: "NORMAL" + tunnel_status_802_1q: "Disable" + tunnel_tpid_802_1q: "8100(Hex)" + unicast_threshold: "Disabled" + unknown_unicast_threshold: "" + vlan_membership_mode: "Hybrid" + - acceptable_frame_type: "All frames" + allowed_vlan: + - "692" + allowed_vlan_tag: + - "u" + broadcast_threshold: "Enabled, scale:80K level:5 bits/second" + egress_rate_limit: "Disabled, scale:8M level:10" + forbidden_vlan: [] + forbidden_vlan_tag: [] + gvrp_status: "Disabled" + ingress_rate_limit: "Disabled, scale:8M level:10" + ingress_rule: "Enabled" + interface: "Eth 1/5" + lacp_status: "Disabled" + layer_2_protocol_tunnel: "" + multicast_threshold: "Disabled" + native_vlan: "692" + priority_for_untagged_traffic: "0" + private_vlan_host_association: "" + private_vlan_mapping: "NONE" + private_vlan_mode: "NONE" + tunnel_mode_802_1q: "NORMAL" + tunnel_status_802_1q: "Disable" + tunnel_tpid_802_1q: "8100(Hex)" + unicast_threshold: "Disabled" + unknown_unicast_threshold: "" + vlan_membership_mode: "Access" + - acceptable_frame_type: "All frames" + allowed_vlan: + - "1" + - "692" + - "698" + allowed_vlan_tag: + - "t" + - "t" + - "t" + broadcast_threshold: "Enabled, scale:80K level:5 bits/second" + egress_rate_limit: "Disabled, scale:8M level:10" + forbidden_vlan: [] + forbidden_vlan_tag: [] + gvrp_status: "Disabled" + ingress_rate_limit: "Disabled, scale:8M level:10" + ingress_rule: "Enabled" + interface: "Eth 1/6" + lacp_status: "Disabled" + layer_2_protocol_tunnel: "" + multicast_threshold: "Disabled" + native_vlan: "1" + priority_for_untagged_traffic: "0" + private_vlan_host_association: "" + private_vlan_mapping: "NONE" + private_vlan_mode: "NONE" + tunnel_mode_802_1q: "NORMAL" + tunnel_status_802_1q: "Disable" + tunnel_tpid_802_1q: "8100(Hex)" + unicast_threshold: "Disabled" + unknown_unicast_threshold: "" + vlan_membership_mode: "Trunk" + - acceptable_frame_type: "All frames" + allowed_vlan: + - "692" + allowed_vlan_tag: + - "u" + broadcast_threshold: "Enabled, scale:80K level:5 bits/second" + egress_rate_limit: "Disabled, scale:8M level:10" + forbidden_vlan: [] + forbidden_vlan_tag: [] + gvrp_status: "Disabled" + ingress_rate_limit: "Disabled, scale:8M level:10" + ingress_rule: "Enabled" + interface: "Eth 1/7" + lacp_status: "Disabled" + layer_2_protocol_tunnel: "" + multicast_threshold: "Disabled" + native_vlan: "692" + priority_for_untagged_traffic: "0" + private_vlan_host_association: "" + private_vlan_mapping: "NONE" + private_vlan_mode: "NONE" + tunnel_mode_802_1q: "NORMAL" + tunnel_status_802_1q: "Disable" + tunnel_tpid_802_1q: "8100(Hex)" + unicast_threshold: "Disabled" + unknown_unicast_threshold: "" + vlan_membership_mode: "Access" + - acceptable_frame_type: "All frames" + allowed_vlan: + - "692" + allowed_vlan_tag: + - "u" + broadcast_threshold: "Enabled, scale:80K level:5 bits/second" + egress_rate_limit: "Disabled, scale:8M level:10" + forbidden_vlan: [] + forbidden_vlan_tag: [] + gvrp_status: "Disabled" + ingress_rate_limit: "Disabled, scale:8M level:10" + ingress_rule: "Enabled" + interface: "Eth 1/8" + lacp_status: "Disabled" + layer_2_protocol_tunnel: "" + multicast_threshold: "Disabled" + native_vlan: "692" + priority_for_untagged_traffic: "0" + private_vlan_host_association: "" + private_vlan_mapping: "NONE" + private_vlan_mode: "NONE" + tunnel_mode_802_1q: "NORMAL" + tunnel_status_802_1q: "Disable" + tunnel_tpid_802_1q: "8100(Hex)" + unicast_threshold: "Disabled" + unknown_unicast_threshold: "" + vlan_membership_mode: "Hybrid" + - acceptable_frame_type: "All frames" + allowed_vlan: + - "692" + allowed_vlan_tag: + - "u" + broadcast_threshold: "Enabled, scale:80K level:5 bits/second" + egress_rate_limit: "Disabled, scale:8M level:10" + forbidden_vlan: [] + forbidden_vlan_tag: [] + gvrp_status: "Disabled" + ingress_rate_limit: "Disabled, scale:8M level:10" + ingress_rule: "Enabled" + interface: "Eth 1/9" + lacp_status: "Disabled" + layer_2_protocol_tunnel: "" + multicast_threshold: "Disabled" + native_vlan: "692" + priority_for_untagged_traffic: "0" + private_vlan_host_association: "" + private_vlan_mapping: "NONE" + private_vlan_mode: "NONE" + tunnel_mode_802_1q: "NORMAL" + tunnel_status_802_1q: "Disable" + tunnel_tpid_802_1q: "8100(Hex)" + unicast_threshold: "Disabled" + unknown_unicast_threshold: "" + vlan_membership_mode: "Hybrid" + - acceptable_frame_type: "All frames" + allowed_vlan: + - "692" + allowed_vlan_tag: + - "u" + broadcast_threshold: "Enabled, scale:80K level:5 bits/second" + egress_rate_limit: "Disabled, scale:8M level:10" + forbidden_vlan: [] + forbidden_vlan_tag: [] + gvrp_status: "Disabled" + ingress_rate_limit: "Disabled, scale:8M level:10" + ingress_rule: "Enabled" + interface: "Eth 1/10" + lacp_status: "Disabled" + layer_2_protocol_tunnel: "" + multicast_threshold: "Disabled" + native_vlan: "692" + priority_for_untagged_traffic: "0" + private_vlan_host_association: "" + private_vlan_mapping: "NONE" + private_vlan_mode: "NONE" + tunnel_mode_802_1q: "NORMAL" + tunnel_status_802_1q: "Disable" + tunnel_tpid_802_1q: "8100(Hex)" + unicast_threshold: "Disabled" + unknown_unicast_threshold: "" + vlan_membership_mode: "Hybrid" diff --git a/tests/edgecore/show_ip_interface/edgecore_show_ip_interface.raw b/tests/edgecore/show_ip_interface/edgecore_show_ip_interface.raw new file mode 100644 index 0000000000..36673840fc --- /dev/null +++ b/tests/edgecore/show_ip_interface/edgecore_show_ip_interface.raw @@ -0,0 +1,2 @@ + IP Address and Netmask: 10.255.5.55 255.255.0.0 on VLAN 255, + Address Mode: User specified diff --git a/tests/edgecore/show_ip_interface/edgecore_show_ip_interface.yml b/tests/edgecore/show_ip_interface/edgecore_show_ip_interface.yml new file mode 100644 index 0000000000..e2806ffb1c --- /dev/null +++ b/tests/edgecore/show_ip_interface/edgecore_show_ip_interface.yml @@ -0,0 +1,6 @@ +--- +parsed_sample: + - addr_mode: "User specified" + interface: "VLAN 255" + ip: "10.255.5.55" + netmask: "255.255.0.0" diff --git a/tests/edgecore/show_system/edgecore_show_system.raw b/tests/edgecore/show_system/edgecore_show_system.raw new file mode 100644 index 0000000000..71c18ab926 --- /dev/null +++ b/tests/edgecore/show_system/edgecore_show_system.raw @@ -0,0 +1,25 @@ +System Description: Layer2+ Fast Ethernet Standalone Switch ES3526XA +System OID String: 1.3.6.1.4.1.259.8.1.5 +System Information + System Up Time: 56 days, 21 hours, 46 minutes, and 56.65 seconds + System Name: DMIT-EdgeCore-near-side-0 + System Location: 1428 Elm Street + System Contact: [NONE] + MAC Address (Unit1): 00-12-34-56-78-90 + Web Server: Enabled + Web Server Port: 80 + Web Secure Server: Enabled + Web Secure Server Port: 443 + Telnet Server: Enable + Telnet Server Port: 23 + Authentication Login: Local RADIUS None + Authentication Enabled: Local RADIUS None + Jumbo Frame: Disabled + + POST Result: +DUMMY Test 1 ................. PASS +UART Loopback Test ........... PASS +DRAM Test .................... PASS +I2C Bus Initialization ....... PASS + +Done All Pass. diff --git a/tests/edgecore/show_system/edgecore_show_system.yml b/tests/edgecore/show_system/edgecore_show_system.yml new file mode 100644 index 0000000000..e48d705d60 --- /dev/null +++ b/tests/edgecore/show_system/edgecore_show_system.yml @@ -0,0 +1,23 @@ +--- +parsed_sample: + - address: "00-12-34-56-78-90" + auth_enabled: "Local RADIUS None" + auth_login: "Local RADIUS None" + contact: "[NONE]" + description: "Layer2+ Fast Ethernet Standalone Switch ES3526XA" + hostname: "DMIT-EdgeCore-near-side-0" + jumbo_frame_status: "Disabled" + location: "1428 Elm Street" + oid: "1.3.6.1.4.1.259.8.1.5" + post_results: + - "DUMMY Test 1 ................. PASS" + - "UART Loopback Test ........... PASS" + - "DRAM Test .................... PASS" + - "I2C Bus Initialization ....... PASS" + secure_server_port: "443" + secure_server_status: "Enabled" + server_port: "80" + server_status: "Enabled" + telnet_server_port: "23" + telnet_server_status: "Enable" + uptime: "56 days, 21 hours, 46 minutes, and 56.65 seconds" diff --git a/tests/edgecore/show_version/edgecore_show_version_1.raw b/tests/edgecore/show_version/edgecore_show_version_1.raw new file mode 100644 index 0000000000..1af771c29a --- /dev/null +++ b/tests/edgecore/show_version/edgecore_show_version_1.raw @@ -0,0 +1,9 @@ + Serial Number: A123456789 + Service Tag: + Hardware Version: R99 + EPLD Version: 1.23 + Number of Ports: 26 + Main Power Status: Up + Loader Version: 1.2.3.4 + Boot ROM Version: 1.2.3.5 + Operation Code Version: 1.2.3.6 diff --git a/tests/edgecore/show_version/edgecore_show_version_1.yml b/tests/edgecore/show_version/edgecore_show_version_1.yml new file mode 100644 index 0000000000..765b71bb68 --- /dev/null +++ b/tests/edgecore/show_version/edgecore_show_version_1.yml @@ -0,0 +1,14 @@ +--- +parsed_sample: + - chip_id: "" + epld_version: "1.23" + hardware_version: "R99" + loader_version: "1.2.3.4" + num_of_ports: "26" + operation_code_version: "1.2.3.6" + power_status: "Up" + redundant_power_status: "" + rom_version: "1.2.3.5" + serial: "A123456789" + service_tag: "" + unit: "" diff --git a/tests/edgecore/show_version/edgecore_show_version_2.raw b/tests/edgecore/show_version/edgecore_show_version_2.raw new file mode 100644 index 0000000000..b45f34fe8c --- /dev/null +++ b/tests/edgecore/show_version/edgecore_show_version_2.raw @@ -0,0 +1,14 @@ +Unit 1 + Serial Number: 123456789 + Hardware Version: R99 + Chip Device ID: Marvell 98DX106-B0, 88E6095[F] + EPLD Version: 1.23 + Number of Ports: 28 + Main Power Status: Up + Redundant Power Status: Not present + +Agent (Master) + Unit ID: 1 + Loader Version: 1.2.3.4 + Boot ROM Version: 1.2.3.5 + Operation Code Version: 1.2.3.6 diff --git a/tests/edgecore/show_version/edgecore_show_version_2.yml b/tests/edgecore/show_version/edgecore_show_version_2.yml new file mode 100644 index 0000000000..feb82e8dc7 --- /dev/null +++ b/tests/edgecore/show_version/edgecore_show_version_2.yml @@ -0,0 +1,14 @@ +--- +parsed_sample: + - chip_id: "Marvell 98DX106-B0, 88E6095[F]" + epld_version: "1.23" + hardware_version: "R99" + loader_version: "1.2.3.4" + num_of_ports: "28" + operation_code_version: "1.2.3.6" + power_status: "Up" + redundant_power_status: "Not present" + rom_version: "1.2.3.5" + serial: "123456789" + service_tag: "" + unit: "1" diff --git a/tests/edgecore/show_vlan/edgecore_show_vlan.raw b/tests/edgecore/show_vlan/edgecore_show_vlan.raw new file mode 100644 index 0000000000..3780b0e0f9 --- /dev/null +++ b/tests/edgecore/show_vlan/edgecore_show_vlan.raw @@ -0,0 +1,31 @@ +Default VLAN ID : 1 + + +VLAN ID: 1 +Type: Static +Name: DefaultVlan +Status: Active +Ports/Port Channels: Eth1/ 2(S) Eth1/ 3(S) Eth1/10(S) Eth1/14(S) Eth1/20(S) + Eth1/21(S) Eth1/22(S) Eth1/24(S) Eth1/25(S) Eth1/26(S) + + +VLAN ID: 203 +Type: Static +Name: Management +Status: Active +Ports/Port Channels: Eth1/ 2(S) Eth1/ 9(S) Eth1/24(S) Eth1/25(S) + + +VLAN ID: 226 +Type: Static +Name: +Status: Active +Ports/Port Channels: Eth1/ 1(S) Eth1/ 2(S) Eth1/ 4(S) Eth1/11(S) Eth1/23(S) + Eth1/24(S) Eth1/25(S) Eth1/27(S) + + +VLAN ID: 229 +Type: Static +Name: +Status: Active +Ports/Port Channels: Eth1/ 3(S) Eth1/ 5(S) Eth1/25(S) diff --git a/tests/edgecore/show_vlan/edgecore_show_vlan.yml b/tests/edgecore/show_vlan/edgecore_show_vlan.yml new file mode 100644 index 0000000000..357eecc55a --- /dev/null +++ b/tests/edgecore/show_vlan/edgecore_show_vlan.yml @@ -0,0 +1,47 @@ +--- +parsed_sample: + - vlan_name: "DefaultVlan" + ports: + - "Eth1/ 2" + - "Eth1/ 3" + - "Eth1/10" + - "Eth1/14" + - "Eth1/20" + - "Eth1/21" + - "Eth1/22" + - "Eth1/24" + - "Eth1/25" + - "Eth1/26" + status: "Active" + type: "Static" + vlan_id: "1" + - vlan_name: "Management" + ports: + - "Eth1/ 2" + - "Eth1/ 9" + - "Eth1/24" + - "Eth1/25" + status: "Active" + type: "Static" + vlan_id: "203" + - vlan_name: "" + ports: + - "Eth1/ 1" + - "Eth1/ 2" + - "Eth1/ 4" + - "Eth1/11" + - "Eth1/23" + - "Eth1/24" + - "Eth1/25" + - "Eth1/27" + status: "Active" + type: "Static" + vlan_id: "226" + - vlan_name: "" + ports: + - "Eth1/ 3" + - "Eth1/ 5" + - "Eth1/25" + status: "Active" + type: "Static" + vlan_id: "229" diff --git a/tests/test_index_order.py b/tests/test_index_order.py index 294c37201f..18ebd41e59 100755 --- a/tests/test_index_order.py +++ b/tests/test_index_order.py @@ -37,6 +37,7 @@ "dell_force10", "dell_powerconnect", "dlink_ds", + "edgecore", "eltex", "enterasys", "ericsson_ipos", From 4ea77d0f4bf0728ae0682d6e44317f66560ed452 Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Mon, 22 Jul 2024 18:48:53 +0400 Subject: [PATCH 07/60] Update 'fortinet_get_system_interface' for Fortinet v6.4.2 (#1473) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update for Fortinet v6.4.2 * Template fix --------- Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”> --- .../fortinet_get_system_interface.textfsm | 18 +- .../fortinet_get_system_interface.raw | 50 ++ .../fortinet_get_system_interface.yml | 527 ++++++++++++++++++ .../fortinet_get_system_interface_5.6.yml | 9 + .../fortinet_get_system_interface_6.0.yml | 9 + .../fortinet_get_system_interface_6.2.yml | 14 + .../fortinet_get_system_interface_6.4.2.raw | 42 ++ .../fortinet_get_system_interface_6.4.2.yml | 443 +++++++++++++++ 8 files changed, 1110 insertions(+), 2 deletions(-) create mode 100644 tests/fortinet/get_system_interface/fortinet_get_system_interface.raw create mode 100644 tests/fortinet/get_system_interface/fortinet_get_system_interface.yml create mode 100644 tests/fortinet/get_system_interface/fortinet_get_system_interface_6.4.2.raw create mode 100644 tests/fortinet/get_system_interface/fortinet_get_system_interface_6.4.2.yml diff --git a/ntc_templates/templates/fortinet_get_system_interface.textfsm b/ntc_templates/templates/fortinet_get_system_interface.textfsm index 110b3ed0a4..24e2cdf7e4 100644 --- a/ntc_templates/templates/fortinet_get_system_interface.textfsm +++ b/ntc_templates/templates/fortinet_get_system_interface.textfsm @@ -1,9 +1,10 @@ # -# Patrick Marc Preuss, Refried Jello +# Patrick Marc Preuss, Refried Jello, Pavlo Skliarenko # 2020-01-13 - Initial Version # 2021-01-08 - Update for 6.2 +# 2023-09-09 - Update for 6.4.2 # -# FG Version: 5.6, 6.0.7, 6.2 +# FG Version: 5.6, 6.0.7, 6.2, 6.4.2 # HW : varied # HA : AP # VDOMS : ENABLED @@ -23,6 +24,7 @@ Value SRC_CHECK (\S+) Value EXPLICIT_WEB_PROXY (\S+) Value EXPLICIT_FTP_PROXY (\S+) Value PROXY_CAPTIVE_PORTAL (\S+) +Value SWITCH_CONTROLLER_FEATURE (\S+) Value MTU_OVERRIDE (\S+) Value WCCP (\S+) Value DROP_OVERLAPPED_FRAGMENT (\S+) @@ -66,5 +68,17 @@ Start # npu_vlink # name:mode:management-ip:ip:status:netbios-forward:type:netflow-sampler:sflow-sampler:src-check:explicit-web-proxy:explicit-ftp-proxy:proxy-captive-portal:wccp:drop-overlapped-fragment:drop-fragment ^name:\s+${NAME}\s+mode:\s+${MODE}\s+management-ip:\s+${MANAGEMENT_IP}\s+${MANAGEMENT_NETMASK}\s+ip:\s+${IP_ADDRESS}\s+${NETMASK}\s+status:\s+${STATUS}\s+netbios-forward:\s+${NETBIOS_FORWARD}\s+type:\s+${TYPE}\s+netflow-sampler:\s+${NETFLOW_SAMPLER}\s+sflow-sampler:\s+${SFLOW_SAMPLER}\s+src-check:\s+${SRC_CHECK}\s+explicit-web-proxy:\s+${EXPLICIT_WEB_PROXY}\s+explicit-ftp-proxy:\s+${EXPLICIT_FTP_PROXY}\s+proxy-captive-portal:\s+${PROXY_CAPTIVE_PORTAL}\s+wccp:\s+${WCCP}\s+drop-overlapped-fragment:\s+${DROP_OVERLAPPED_FRAGMENT}\s+drop-fragment:\s+${DROP_FRAGMENT}\s*$$ -> Record + # name:mode:ip:status:netbios-forward:type:netflow-sampler:sflow-sampler:src-check:explicit-web-proxy:explicit-ftp-proxy:proxy-captive-portal:mtu-override:wccp:drop-overlapped-fragment:drop-fragment: + ^name:\s+${NAME}\s+mode:\s+${MODE}\s+ip:\s+${IP_ADDRESS}\s+${NETMASK}\s+status:\s+${STATUS}\s+netbios-forward:\s+${NETBIOS_FORWARD}\s+type:\s+${TYPE}\s+netflow-sampler:\s+${NETFLOW_SAMPLER}\s+sflow-sampler:\s+${SFLOW_SAMPLER}\s+src-check:\s+${SRC_CHECK}\s+explicit-web-proxy:\s+${EXPLICIT_WEB_PROXY}\s+explicit-ftp-proxy:\s+${EXPLICIT_FTP_PROXY}\s+proxy-captive-portal:\s+${PROXY_CAPTIVE_PORTAL}\s+mtu-override:\s+${MTU_OVERRIDE}\s+wccp:\s+${WCCP}\s+drop-overlapped-fragment:\s+${DROP_OVERLAPPED_FRAGMENT}\s+drop-fragment:\s+${DROP_FRAGMENT}\s*$$ -> Record + # name:mode:ip:netbios-forward:type:netflow-sampler:sflow-sampler:src-check:proxy-captive-portal:mtu-override:wccp:drop-overlapped-fragment:drop-fragment: + ^name:\s+${NAME}\s+mode:\s+${MODE}\s+ip:\s+${IP_ADDRESS}\s+${NETMASK}\s+netbios-forward:\s+${NETBIOS_FORWARD}\s+type:\s+${TYPE}\s+netflow-sampler:\s+${NETFLOW_SAMPLER}\s+sflow-sampler:\s+${SFLOW_SAMPLER}\s+src-check:\s+${SRC_CHECK}\s+proxy-captive-portal:\s+${PROXY_CAPTIVE_PORTAL}\s+mtu-override:\s+${MTU_OVERRIDE}\s+wccp:\s+${WCCP}\s+drop-overlapped-fragment:\s+${DROP_OVERLAPPED_FRAGMENT}\s+drop-fragment:\s+${DROP_FRAGMENT}\s*$$ -> Record + # name:mode:ip:status:netbios-forward:type:netflow-sampler:sflow-sampler:src-check:explicit-web-proxy:explicit-ftp-proxy:proxy-captive-portal:switch-controller-feature:mtu-override:wccp:drop-overlapped-fragment:drop-fragment: + ^name:\s+${NAME}\s+mode:\s+${MODE}\s+ip:\s+${IP_ADDRESS}\s+${NETMASK}\s+status:\s+${STATUS}\s+netbios-forward:\s+${NETBIOS_FORWARD}\s+type:\s+${TYPE}\s+netflow-sampler:\s+${NETFLOW_SAMPLER}\s+sflow-sampler:\s+${SFLOW_SAMPLER}\s+src-check:\s+${SRC_CHECK}\s+explicit-web-proxy:\s+${EXPLICIT_WEB_PROXY}\s+explicit-ftp-proxy:\s+${EXPLICIT_FTP_PROXY}\s+proxy-captive-portal:\s+${PROXY_CAPTIVE_PORTAL}\s+switch-controller-feature:\s+${SWITCH_CONTROLLER_FEATURE}\s+mtu-override:\s+${MTU_OVERRIDE}\s+wccp:\s+${WCCP}\s+drop-overlapped-fragment:\s+${DROP_OVERLAPPED_FRAGMENT}\s+drop-fragment:\s+${DROP_FRAGMENT}\s*$$ -> Record + # name:ip:status:type:netflow-sampler:sflow-sampler:src-check:explicit-web-proxy:explicit-ftp-proxy:proxy-captive-portal: + ^name:\s+${NAME}\s+ip:\s+${IP_ADDRESS}\s+${NETMASK}\s+status:\s+${STATUS}\s+type:\s+${TYPE}\s+netflow-sampler:\s+${NETFLOW_SAMPLER}\s+sflow-sampler:\s+${SFLOW_SAMPLER}\s+src-check:\s+${SRC_CHECK}\s+explicit-web-proxy:\s+${EXPLICIT_WEB_PROXY}\s+explicit-ftp-proxy:\s+${EXPLICIT_FTP_PROXY}\s+proxy-captive-portal:\s+${PROXY_CAPTIVE_PORTAL}\s*$$ -> Record + # name:ip:status:netbios-forward:type:netflow-sampler:sflow-sampler:src-check:explicit-web-proxy:explicit-ftp-proxy:proxy-captive-portal:mtu-override:wccp: + ^name:\s+${NAME}\s+ip:\s+${IP_ADDRESS}\s+${NETMASK}\s+status:\s+${STATUS}\s+netbios-forward:\s+${NETBIOS_FORWARD}\s+type:\s+${TYPE}\s+netflow-sampler:\s+${NETFLOW_SAMPLER}\s+sflow-sampler:\s+${SFLOW_SAMPLER}\s+src-check:\s+${SRC_CHECK}\s+explicit-web-proxy:\s+${EXPLICIT_WEB_PROXY}\s+explicit-ftp-proxy:\s+${EXPLICIT_FTP_PROXY}\s+proxy-captive-portal:\s+${PROXY_CAPTIVE_PORTAL}\s+mtu-override:\s+${MTU_OVERRIDE}\s+wccp:\s+${WCCP}\s*$$ -> Record + # name:status:type + ^name:\s+${NAME}\s+status:\s+${STATUS}\s+type:\s+${TYPE}\s*$$ -> Record ^\s*$$ ^. -> Error diff --git a/tests/fortinet/get_system_interface/fortinet_get_system_interface.raw b/tests/fortinet/get_system_interface/fortinet_get_system_interface.raw new file mode 100644 index 0000000000..7cfaba3aa1 --- /dev/null +++ b/tests/fortinet/get_system_interface/fortinet_get_system_interface.raw @@ -0,0 +1,50 @@ +== [ wan ] +name: wan mode: static ip: 10.180.1.229 255.255.255.252 status: up netbios-forward: disable type: physical netflow-sampler: disable sflow-sampler: disable src-check: enable explicit-web-proxy: disable explicit-ftp-proxy: disable proxy-captive-portal: disable mtu-override: disable wccp: disable drop-overlapped-fragment: disable drop-fragment: disable +== [ lan1 ] +name: lan1 status: up type: physical +== [ lan2 ] +name: lan2 status: up type: physical +== [ lan3 ] +name: lan3 mode: static ip: 0.0.0.0 0.0.0.0 status: up netbios-forward: disable type: physical netflow-sampler: disable sflow-sampler: disable src-check: enable explicit-web-proxy: disable explicit-ftp-proxy: disable proxy-captive-portal: disable mtu-override: disable wccp: disable drop-overlapped-fragment: disable drop-fragment: disable +== [ a ] +name: a mode: static ip: 0.0.0.0 0.0.0.0 status: up netbios-forward: disable type: physical netflow-sampler: disable sflow-sampler: disable src-check: enable explicit-web-proxy: disable explicit-ftp-proxy: disable proxy-captive-portal: disable mtu-override: disable wccp: disable drop-overlapped-fragment: disable drop-fragment: disable +== [ modem ] +name: modem mode: pppoe ip: 0.0.0.0 0.0.0.0 status: down netbios-forward: disable type: physical netflow-sampler: disable sflow-sampler: disable src-check: enable explicit-web-proxy: disable explicit-ftp-proxy: disable proxy-captive-portal: disable mtu-override: disable wccp: disable drop-overlapped-fragment: disable drop-fragment: disable +== [ ssl.root ] +name: ssl.root ip: 0.0.0.0 0.0.0.0 status: up netbios-forward: disable type: tunnel netflow-sampler: disable sflow-sampler: disable src-check: enable explicit-web-proxy: disable explicit-ftp-proxy: disable proxy-captive-portal: disable wccp: disable +== [ lan ] +name: lan mode: static ip: 10.152.1.230 255.255.255.252 status: up netbios-forward: disable type: hard-switch netflow-sampler: disable sflow-sampler: disable src-check: enable explicit-web-proxy: disable explicit-ftp-proxy: disable proxy-captive-portal: disable mtu-override: disable wccp: disable drop-overlapped-fragment: disable drop-fragment: disable +== [ lo0 ] +name: lo0 ip: 10.105.3.75 255.255.255.255 status: up type: loopback netflow-sampler: disable sflow-sampler: disable src-check: enable explicit-web-proxy: disable explicit-ftp-proxy: disable proxy-captive-portal: disable +== [ VPN1_0 ] +name: VPN1_0 ip: 10.105.1.75 255.255.255.255 status: up netbios-forward: disable type: tunnel netflow-sampler: disable sflow-sampler: disable src-check: enable explicit-web-proxy: disable explicit-ftp-proxy: disable proxy-captive-portal: disable mtu-override: disable wccp: disable +== [ VPN2_0 ] +name: VPN2_0 ip: 10.105.2.75 255.255.255.255 status: up netbios-forward: disable type: tunnel netflow-sampler: disable sflow-sampler: disable src-check: enable explicit-web-proxy: disable explicit-ftp-proxy: disable proxy-captive-portal: disable mtu-override: disable wccp: disable +== [ Vlan10 ] +name: Vlan10 mode: static ip: 10.18.61.1 255.255.255.240 status: up netbios-forward: disable type: vlan netflow-sampler: disable sflow-sampler: disable src-check: enable explicit-web-proxy: disable explicit-ftp-proxy: disable proxy-captive-portal: disable switch-controller-feature: none mtu-override: disable wccp: disable drop-overlapped-fragment: disable drop-fragment: disable +== [ Vlan20 ] +name: Vlan20 mode: static ip: 10.18.61.17 255.255.255.240 status: up netbios-forward: disable type: vlan netflow-sampler: disable sflow-sampler: disable src-check: enable explicit-web-proxy: disable explicit-ftp-proxy: disable proxy-captive-portal: disable switch-controller-feature: none mtu-override: disable wccp: disable drop-overlapped-fragment: disable drop-fragment: disable +== [ Vlan30 ] +name: Vlan30 mode: static ip: 10.18.61.33 255.255.255.224 status: up netbios-forward: disable type: vlan netflow-sampler: disable sflow-sampler: disable src-check: enable explicit-web-proxy: disable explicit-ftp-proxy: disable proxy-captive-portal: disable switch-controller-feature: none mtu-override: disable wccp: disable drop-overlapped-fragment: disable drop-fragment: disable +== [ Vlan40 ] +name: Vlan40 mode: static ip: 10.18.61.65 255.255.255.192 status: up netbios-forward: disable type: vlan netflow-sampler: disable sflow-sampler: disable src-check: enable explicit-web-proxy: disable explicit-ftp-proxy: disable proxy-captive-portal: disable switch-controller-feature: none mtu-override: disable wccp: disable drop-overlapped-fragment: disable drop-fragment: disable +== [ Vlan50 ] +name: Vlan50 mode: static ip: 10.18.61.129 255.255.255.224 status: up netbios-forward: disable type: vlan netflow-sampler: disable sflow-sampler: disable src-check: enable explicit-web-proxy: disable explicit-ftp-proxy: disable proxy-captive-portal: disable switch-controller-feature: none mtu-override: disable wccp: disable drop-overlapped-fragment: disable drop-fragment: disable +== [ Vlan60 ] +name: Vlan60 mode: static ip: 10.18.61.161 255.255.255.224 status: up netbios-forward: disable type: vlan netflow-sampler: disable sflow-sampler: disable src-check: enable explicit-web-proxy: disable explicit-ftp-proxy: disable proxy-captive-portal: disable switch-controller-feature: none mtu-override: disable wccp: disable drop-overlapped-fragment: disable drop-fragment: disable +== [ Vlan70 ] +name: Vlan70 mode: static ip: 10.18.61.193 255.255.255.240 status: up netbios-forward: disable type: vlan netflow-sampler: disable sflow-sampler: disable src-check: enable explicit-web-proxy: disable explicit-ftp-proxy: disable proxy-captive-portal: disable switch-controller-feature: none mtu-override: disable wccp: disable drop-overlapped-fragment: disable drop-fragment: disable +== [ Vlan80 ] +name: Vlan80 mode: static ip: 10.18.61.209 255.255.255.240 status: up netbios-forward: disable type: vlan netflow-sampler: disable sflow-sampler: disable src-check: enable explicit-web-proxy: disable explicit-ftp-proxy: disable proxy-captive-portal: disable switch-controller-feature: none mtu-override: disable wccp: disable drop-overlapped-fragment: disable drop-fragment: disable +== [ Vlan90 ] +name: Vlan90 mode: static ip: 10.18.61.225 255.255.255.224 status: up netbios-forward: disable type: vlan netflow-sampler: disable sflow-sampler: disable src-check: enable explicit-web-proxy: disable explicit-ftp-proxy: disable proxy-captive-portal: disable switch-controller-feature: none mtu-override: disable wccp: disable drop-overlapped-fragment: disable drop-fragment: disable +== [ Vlan100 ] +name: Vlan100 mode: static ip: 10.19.61.1 255.255.255.240 status: up netbios-forward: disable type: vlan netflow-sampler: disable sflow-sampler: disable src-check: enable explicit-web-proxy: disable explicit-ftp-proxy: disable proxy-captive-portal: disable switch-controller-feature: none mtu-override: disable wccp: disable drop-overlapped-fragment: disable drop-fragment: disable +== [ Vlan110 ] +name: Vlan110 mode: static ip: 10.19.61.17 255.255.255.248 status: up netbios-forward: disable type: vlan netflow-sampler: disable sflow-sampler: disable src-check: enable explicit-web-proxy: disable explicit-ftp-proxy: disable proxy-captive-portal: disable switch-controller-feature: none mtu-override: disable wccp: disable drop-overlapped-fragment: disable drop-fragment: disable +== [ Vlan120 ] +name: Vlan120 mode: static ip: 10.19.61.25 255.255.255.248 status: up netbios-forward: disable type: vlan netflow-sampler: disable sflow-sampler: disable src-check: enable explicit-web-proxy: disable explicit-ftp-proxy: disable proxy-captive-portal: disable switch-controller-feature: none mtu-override: disable wccp: disable drop-overlapped-fragment: disable drop-fragment: disable +== [ Vlan130 ] +name: Vlan130 mode: static ip: 10.19.61.33 255.255.255.224 status: up netbios-forward: disable type: vlan netflow-sampler: disable sflow-sampler: disable src-check: enable explicit-web-proxy: disable explicit-ftp-proxy: disable proxy-captive-portal: disable switch-controller-feature: none mtu-override: disable wccp: disable drop-overlapped-fragment: disable drop-fragment: disable +== [ Vlan140 ] +name: Vlan140 mode: static ip: 10.19.61.65 255.255.255.224 status: up netbios-forward: disable type: vlan netflow-sampler: disable sflow-sampler: disable src-check: enable explicit-web-proxy: disable explicit-ftp-proxy: disable proxy-captive-portal: disable switch-controller-feature: none mtu-override: disable wccp: disable drop-overlapped-fragment: disable drop-fragment: disable diff --git a/tests/fortinet/get_system_interface/fortinet_get_system_interface.yml b/tests/fortinet/get_system_interface/fortinet_get_system_interface.yml new file mode 100644 index 0000000000..fc08255037 --- /dev/null +++ b/tests/fortinet/get_system_interface/fortinet_get_system_interface.yml @@ -0,0 +1,527 @@ +--- +parsed_sample: + - drop_fragment: "disable" + drop_overlapped_fragment: "disable" + explicit_ftp_proxy: "disable" + explicit_web_proxy: "disable" + ip_address: "10.180.1.229" + management_ip: "" + management_netmask: "" + mode: "static" + mtu_override: "disable" + name: "wan" + netbios_forward: "disable" + netflow_sampler: "disable" + netmask: "255.255.255.252" + proxy_captive_portal: "disable" + scan_botnet_connections: "" + sflow_sampler: "disable" + src_check: "enable" + status: "up" + switch_controller_feature: "" + type: "physical" + wccp: "disable" + - drop_fragment: "" + drop_overlapped_fragment: "" + explicit_ftp_proxy: "" + explicit_web_proxy: "" + ip_address: "" + management_ip: "" + management_netmask: "" + mode: "" + mtu_override: "" + name: "lan1" + netbios_forward: "" + netflow_sampler: "" + netmask: "" + proxy_captive_portal: "" + scan_botnet_connections: "" + sflow_sampler: "" + src_check: "" + status: "up" + switch_controller_feature: "" + type: "physical" + wccp: "" + - drop_fragment: "" + drop_overlapped_fragment: "" + explicit_ftp_proxy: "" + explicit_web_proxy: "" + ip_address: "" + management_ip: "" + management_netmask: "" + mode: "" + mtu_override: "" + name: "lan2" + netbios_forward: "" + netflow_sampler: "" + netmask: "" + proxy_captive_portal: "" + scan_botnet_connections: "" + sflow_sampler: "" + src_check: "" + status: "up" + switch_controller_feature: "" + type: "physical" + wccp: "" + - drop_fragment: "disable" + drop_overlapped_fragment: "disable" + explicit_ftp_proxy: "disable" + explicit_web_proxy: "disable" + ip_address: "0.0.0.0" + management_ip: "" + management_netmask: "" + mode: "static" + mtu_override: "disable" + name: "lan3" + netbios_forward: "disable" + netflow_sampler: "disable" + netmask: "0.0.0.0" + proxy_captive_portal: "disable" + scan_botnet_connections: "" + sflow_sampler: "disable" + src_check: "enable" + status: "up" + switch_controller_feature: "" + type: "physical" + wccp: "disable" + - drop_fragment: "disable" + drop_overlapped_fragment: "disable" + explicit_ftp_proxy: "disable" + explicit_web_proxy: "disable" + ip_address: "0.0.0.0" + management_ip: "" + management_netmask: "" + mode: "static" + mtu_override: "disable" + name: "a" + netbios_forward: "disable" + netflow_sampler: "disable" + netmask: "0.0.0.0" + proxy_captive_portal: "disable" + scan_botnet_connections: "" + sflow_sampler: "disable" + src_check: "enable" + status: "up" + switch_controller_feature: "" + type: "physical" + wccp: "disable" + - drop_fragment: "disable" + drop_overlapped_fragment: "disable" + explicit_ftp_proxy: "disable" + explicit_web_proxy: "disable" + ip_address: "0.0.0.0" + management_ip: "" + management_netmask: "" + mode: "pppoe" + mtu_override: "disable" + name: "modem" + netbios_forward: "disable" + netflow_sampler: "disable" + netmask: "0.0.0.0" + proxy_captive_portal: "disable" + scan_botnet_connections: "" + sflow_sampler: "disable" + src_check: "enable" + status: "down" + switch_controller_feature: "" + type: "physical" + wccp: "disable" + - drop_fragment: "" + drop_overlapped_fragment: "" + explicit_ftp_proxy: "disable" + explicit_web_proxy: "disable" + ip_address: "0.0.0.0" + management_ip: "" + management_netmask: "" + mode: "" + mtu_override: "" + name: "ssl.root" + netbios_forward: "disable" + netflow_sampler: "disable" + netmask: "0.0.0.0" + proxy_captive_portal: "disable" + scan_botnet_connections: "" + sflow_sampler: "disable" + src_check: "enable" + status: "up" + switch_controller_feature: "" + type: "tunnel" + wccp: "disable" + - drop_fragment: "disable" + drop_overlapped_fragment: "disable" + explicit_ftp_proxy: "disable" + explicit_web_proxy: "disable" + ip_address: "10.152.1.230" + management_ip: "" + management_netmask: "" + mode: "static" + mtu_override: "disable" + name: "lan" + netbios_forward: "disable" + netflow_sampler: "disable" + netmask: "255.255.255.252" + proxy_captive_portal: "disable" + scan_botnet_connections: "" + sflow_sampler: "disable" + src_check: "enable" + status: "up" + switch_controller_feature: "" + type: "hard-switch" + wccp: "disable" + - drop_fragment: "" + drop_overlapped_fragment: "" + explicit_ftp_proxy: "disable" + explicit_web_proxy: "disable" + ip_address: "10.105.3.75" + management_ip: "" + management_netmask: "" + mode: "" + mtu_override: "" + name: "lo0" + netbios_forward: "" + netflow_sampler: "disable" + netmask: "255.255.255.255" + proxy_captive_portal: "disable" + scan_botnet_connections: "" + sflow_sampler: "disable" + src_check: "enable" + status: "up" + switch_controller_feature: "" + type: "loopback" + wccp: "" + - drop_fragment: "" + drop_overlapped_fragment: "" + explicit_ftp_proxy: "disable" + explicit_web_proxy: "disable" + ip_address: "10.105.1.75" + management_ip: "" + management_netmask: "" + mode: "" + mtu_override: "disable" + name: "VPN1_0" + netbios_forward: "disable" + netflow_sampler: "disable" + netmask: "255.255.255.255" + proxy_captive_portal: "disable" + scan_botnet_connections: "" + sflow_sampler: "disable" + src_check: "enable" + status: "up" + switch_controller_feature: "" + type: "tunnel" + wccp: "disable" + - drop_fragment: "" + drop_overlapped_fragment: "" + explicit_ftp_proxy: "disable" + explicit_web_proxy: "disable" + ip_address: "10.105.2.75" + management_ip: "" + management_netmask: "" + mode: "" + mtu_override: "disable" + name: "VPN2_0" + netbios_forward: "disable" + netflow_sampler: "disable" + netmask: "255.255.255.255" + proxy_captive_portal: "disable" + scan_botnet_connections: "" + sflow_sampler: "disable" + src_check: "enable" + status: "up" + switch_controller_feature: "" + type: "tunnel" + wccp: "disable" + - drop_fragment: "disable" + drop_overlapped_fragment: "disable" + explicit_ftp_proxy: "disable" + explicit_web_proxy: "disable" + ip_address: "10.18.61.1" + management_ip: "" + management_netmask: "" + mode: "static" + mtu_override: "disable" + name: "Vlan10" + netbios_forward: "disable" + netflow_sampler: "disable" + netmask: "255.255.255.240" + proxy_captive_portal: "disable" + scan_botnet_connections: "" + sflow_sampler: "disable" + src_check: "enable" + status: "up" + switch_controller_feature: "none" + type: "vlan" + wccp: "disable" + - drop_fragment: "disable" + drop_overlapped_fragment: "disable" + explicit_ftp_proxy: "disable" + explicit_web_proxy: "disable" + ip_address: "10.18.61.17" + management_ip: "" + management_netmask: "" + mode: "static" + mtu_override: "disable" + name: "Vlan20" + netbios_forward: "disable" + netflow_sampler: "disable" + netmask: "255.255.255.240" + proxy_captive_portal: "disable" + scan_botnet_connections: "" + sflow_sampler: "disable" + src_check: "enable" + status: "up" + switch_controller_feature: "none" + type: "vlan" + wccp: "disable" + - drop_fragment: "disable" + drop_overlapped_fragment: "disable" + explicit_ftp_proxy: "disable" + explicit_web_proxy: "disable" + ip_address: "10.18.61.33" + management_ip: "" + management_netmask: "" + mode: "static" + mtu_override: "disable" + name: "Vlan30" + netbios_forward: "disable" + netflow_sampler: "disable" + netmask: "255.255.255.224" + proxy_captive_portal: "disable" + scan_botnet_connections: "" + sflow_sampler: "disable" + src_check: "enable" + status: "up" + switch_controller_feature: "none" + type: "vlan" + wccp: "disable" + - drop_fragment: "disable" + drop_overlapped_fragment: "disable" + explicit_ftp_proxy: "disable" + explicit_web_proxy: "disable" + ip_address: "10.18.61.65" + management_ip: "" + management_netmask: "" + mode: "static" + mtu_override: "disable" + name: "Vlan40" + netbios_forward: "disable" + netflow_sampler: "disable" + netmask: "255.255.255.192" + proxy_captive_portal: "disable" + scan_botnet_connections: "" + sflow_sampler: "disable" + src_check: "enable" + status: "up" + switch_controller_feature: "none" + type: "vlan" + wccp: "disable" + - drop_fragment: "disable" + drop_overlapped_fragment: "disable" + explicit_ftp_proxy: "disable" + explicit_web_proxy: "disable" + ip_address: "10.18.61.129" + management_ip: "" + management_netmask: "" + mode: "static" + mtu_override: "disable" + name: "Vlan50" + netbios_forward: "disable" + netflow_sampler: "disable" + netmask: "255.255.255.224" + proxy_captive_portal: "disable" + scan_botnet_connections: "" + sflow_sampler: "disable" + src_check: "enable" + status: "up" + switch_controller_feature: "none" + type: "vlan" + wccp: "disable" + - drop_fragment: "disable" + drop_overlapped_fragment: "disable" + explicit_ftp_proxy: "disable" + explicit_web_proxy: "disable" + ip_address: "10.18.61.161" + management_ip: "" + management_netmask: "" + mode: "static" + mtu_override: "disable" + name: "Vlan60" + netbios_forward: "disable" + netflow_sampler: "disable" + netmask: "255.255.255.224" + proxy_captive_portal: "disable" + scan_botnet_connections: "" + sflow_sampler: "disable" + src_check: "enable" + status: "up" + switch_controller_feature: "none" + type: "vlan" + wccp: "disable" + - drop_fragment: "disable" + drop_overlapped_fragment: "disable" + explicit_ftp_proxy: "disable" + explicit_web_proxy: "disable" + ip_address: "10.18.61.193" + management_ip: "" + management_netmask: "" + mode: "static" + mtu_override: "disable" + name: "Vlan70" + netbios_forward: "disable" + netflow_sampler: "disable" + netmask: "255.255.255.240" + proxy_captive_portal: "disable" + scan_botnet_connections: "" + sflow_sampler: "disable" + src_check: "enable" + status: "up" + switch_controller_feature: "none" + type: "vlan" + wccp: "disable" + - drop_fragment: "disable" + drop_overlapped_fragment: "disable" + explicit_ftp_proxy: "disable" + explicit_web_proxy: "disable" + ip_address: "10.18.61.209" + management_ip: "" + management_netmask: "" + mode: "static" + mtu_override: "disable" + name: "Vlan80" + netbios_forward: "disable" + netflow_sampler: "disable" + netmask: "255.255.255.240" + proxy_captive_portal: "disable" + scan_botnet_connections: "" + sflow_sampler: "disable" + src_check: "enable" + status: "up" + switch_controller_feature: "none" + type: "vlan" + wccp: "disable" + - drop_fragment: "disable" + drop_overlapped_fragment: "disable" + explicit_ftp_proxy: "disable" + explicit_web_proxy: "disable" + ip_address: "10.18.61.225" + management_ip: "" + management_netmask: "" + mode: "static" + mtu_override: "disable" + name: "Vlan90" + netbios_forward: "disable" + netflow_sampler: "disable" + netmask: "255.255.255.224" + proxy_captive_portal: "disable" + scan_botnet_connections: "" + sflow_sampler: "disable" + src_check: "enable" + status: "up" + switch_controller_feature: "none" + type: "vlan" + wccp: "disable" + - drop_fragment: "disable" + drop_overlapped_fragment: "disable" + explicit_ftp_proxy: "disable" + explicit_web_proxy: "disable" + ip_address: "10.19.61.1" + management_ip: "" + management_netmask: "" + mode: "static" + mtu_override: "disable" + name: "Vlan100" + netbios_forward: "disable" + netflow_sampler: "disable" + netmask: "255.255.255.240" + proxy_captive_portal: "disable" + scan_botnet_connections: "" + sflow_sampler: "disable" + src_check: "enable" + status: "up" + switch_controller_feature: "none" + type: "vlan" + wccp: "disable" + - drop_fragment: "disable" + drop_overlapped_fragment: "disable" + explicit_ftp_proxy: "disable" + explicit_web_proxy: "disable" + ip_address: "10.19.61.17" + management_ip: "" + management_netmask: "" + mode: "static" + mtu_override: "disable" + name: "Vlan110" + netbios_forward: "disable" + netflow_sampler: "disable" + netmask: "255.255.255.248" + proxy_captive_portal: "disable" + scan_botnet_connections: "" + sflow_sampler: "disable" + src_check: "enable" + status: "up" + switch_controller_feature: "none" + type: "vlan" + wccp: "disable" + - drop_fragment: "disable" + drop_overlapped_fragment: "disable" + explicit_ftp_proxy: "disable" + explicit_web_proxy: "disable" + ip_address: "10.19.61.25" + management_ip: "" + management_netmask: "" + mode: "static" + mtu_override: "disable" + name: "Vlan120" + netbios_forward: "disable" + netflow_sampler: "disable" + netmask: "255.255.255.248" + proxy_captive_portal: "disable" + scan_botnet_connections: "" + sflow_sampler: "disable" + src_check: "enable" + status: "up" + switch_controller_feature: "none" + type: "vlan" + wccp: "disable" + - drop_fragment: "disable" + drop_overlapped_fragment: "disable" + explicit_ftp_proxy: "disable" + explicit_web_proxy: "disable" + ip_address: "10.19.61.33" + management_ip: "" + management_netmask: "" + mode: "static" + mtu_override: "disable" + name: "Vlan130" + netbios_forward: "disable" + netflow_sampler: "disable" + netmask: "255.255.255.224" + proxy_captive_portal: "disable" + scan_botnet_connections: "" + sflow_sampler: "disable" + src_check: "enable" + status: "up" + switch_controller_feature: "none" + type: "vlan" + wccp: "disable" + - drop_fragment: "disable" + drop_overlapped_fragment: "disable" + explicit_ftp_proxy: "disable" + explicit_web_proxy: "disable" + ip_address: "10.19.61.65" + management_ip: "" + management_netmask: "" + mode: "static" + mtu_override: "disable" + name: "Vlan140" + netbios_forward: "disable" + netflow_sampler: "disable" + netmask: "255.255.255.224" + proxy_captive_portal: "disable" + scan_botnet_connections: "" + sflow_sampler: "disable" + src_check: "enable" + status: "up" + switch_controller_feature: "none" + type: "vlan" + wccp: "disable" diff --git a/tests/fortinet/get_system_interface/fortinet_get_system_interface_5.6.yml b/tests/fortinet/get_system_interface/fortinet_get_system_interface_5.6.yml index 7ec960d611..0add22ea58 100644 --- a/tests/fortinet/get_system_interface/fortinet_get_system_interface_5.6.yml +++ b/tests/fortinet/get_system_interface/fortinet_get_system_interface_5.6.yml @@ -20,6 +20,7 @@ parsed_sample: status: "up" type: "physical" wccp: "disable" + switch_controller_feature: "" - drop_fragment: "disable" drop_overlapped_fragment: "disable" explicit_ftp_proxy: "disable" @@ -40,6 +41,7 @@ parsed_sample: status: "down" type: "physical" wccp: "disable" + switch_controller_feature: "" - drop_fragment: "disable" drop_overlapped_fragment: "disable" explicit_ftp_proxy: "disable" @@ -60,6 +62,7 @@ parsed_sample: status: "down" type: "physical" wccp: "disable" + switch_controller_feature: "" - drop_fragment: "disable" drop_overlapped_fragment: "disable" explicit_ftp_proxy: "" @@ -80,6 +83,7 @@ parsed_sample: status: "" type: "physical" wccp: "disable" + switch_controller_feature: "" - drop_fragment: "" drop_overlapped_fragment: "" explicit_ftp_proxy: "disable" @@ -100,6 +104,7 @@ parsed_sample: status: "up" type: "tunnel" wccp: "disable" + switch_controller_feature: "" - drop_fragment: "disable" drop_overlapped_fragment: "disable" explicit_ftp_proxy: "disable" @@ -120,6 +125,7 @@ parsed_sample: status: "up" type: "physical" wccp: "disable" + switch_controller_feature: "" - drop_fragment: "disable" drop_overlapped_fragment: "disable" explicit_ftp_proxy: "disable" @@ -140,6 +146,7 @@ parsed_sample: status: "up" type: "vlan" wccp: "disable" + switch_controller_feature: "" - drop_fragment: "" drop_overlapped_fragment: "" explicit_ftp_proxy: "disable" @@ -160,6 +167,7 @@ parsed_sample: status: "up" type: "tunnel" wccp: "disable" + switch_controller_feature: "" - drop_fragment: "" drop_overlapped_fragment: "" explicit_ftp_proxy: "disable" @@ -180,3 +188,4 @@ parsed_sample: status: "up" type: "loopback" wccp: "" + switch_controller_feature: "" diff --git a/tests/fortinet/get_system_interface/fortinet_get_system_interface_6.0.yml b/tests/fortinet/get_system_interface/fortinet_get_system_interface_6.0.yml index a26b3d95a2..afef0dc7be 100644 --- a/tests/fortinet/get_system_interface/fortinet_get_system_interface_6.0.yml +++ b/tests/fortinet/get_system_interface/fortinet_get_system_interface_6.0.yml @@ -20,6 +20,7 @@ parsed_sample: status: "up" type: "physical" wccp: "disable" + switch_controller_feature: "" - drop_fragment: "disable" drop_overlapped_fragment: "disable" explicit_ftp_proxy: "disable" @@ -40,6 +41,7 @@ parsed_sample: status: "up" type: "physical" wccp: "disable" + switch_controller_feature: "" - drop_fragment: "disable" drop_overlapped_fragment: "disable" explicit_ftp_proxy: "disable" @@ -60,6 +62,7 @@ parsed_sample: status: "up" type: "physical" wccp: "disable" + switch_controller_feature: "" - drop_fragment: "disable" drop_overlapped_fragment: "disable" explicit_ftp_proxy: "" @@ -80,6 +83,7 @@ parsed_sample: status: "" type: "physical" wccp: "disable" + switch_controller_feature: "" - drop_fragment: "" drop_overlapped_fragment: "" explicit_ftp_proxy: "disable" @@ -100,6 +104,7 @@ parsed_sample: status: "up" type: "tunnel" wccp: "disable" + switch_controller_feature: "" - drop_fragment: "disable" drop_overlapped_fragment: "disable" explicit_ftp_proxy: "disable" @@ -120,6 +125,7 @@ parsed_sample: status: "up" type: "physical" wccp: "disable" + switch_controller_feature: "" - drop_fragment: "disable" drop_overlapped_fragment: "disable" explicit_ftp_proxy: "disable" @@ -140,6 +146,7 @@ parsed_sample: status: "up" type: "physical" wccp: "disable" + switch_controller_feature: "" - drop_fragment: "disable" drop_overlapped_fragment: "disable" explicit_ftp_proxy: "disable" @@ -160,6 +167,7 @@ parsed_sample: status: "up" type: "vlan" wccp: "disable" + switch_controller_feature: "" - drop_fragment: "" drop_overlapped_fragment: "" explicit_ftp_proxy: "disable" @@ -180,3 +188,4 @@ parsed_sample: status: "up" type: "tunnel" wccp: "disable" + switch_controller_feature: "" diff --git a/tests/fortinet/get_system_interface/fortinet_get_system_interface_6.2.yml b/tests/fortinet/get_system_interface/fortinet_get_system_interface_6.2.yml index dd39ac71a4..7c4be419a6 100644 --- a/tests/fortinet/get_system_interface/fortinet_get_system_interface_6.2.yml +++ b/tests/fortinet/get_system_interface/fortinet_get_system_interface_6.2.yml @@ -20,6 +20,7 @@ parsed_sample: status: "up" type: "physical" wccp: "disable" + switch_controller_feature: "" - drop_fragment: "disable" drop_overlapped_fragment: "disable" explicit_ftp_proxy: "disable" @@ -40,6 +41,7 @@ parsed_sample: status: "up" type: "physical" wccp: "disable" + switch_controller_feature: "" - drop_fragment: "disable" drop_overlapped_fragment: "disable" explicit_ftp_proxy: "disable" @@ -60,6 +62,7 @@ parsed_sample: status: "up" type: "physical" wccp: "disable" + switch_controller_feature: "" - drop_fragment: "disable" drop_overlapped_fragment: "disable" explicit_ftp_proxy: "disable" @@ -80,6 +83,7 @@ parsed_sample: status: "up" type: "physical" wccp: "disable" + switch_controller_feature: "" - drop_fragment: "disable" drop_overlapped_fragment: "disable" explicit_ftp_proxy: "disable" @@ -100,6 +104,7 @@ parsed_sample: status: "up" type: "physical" wccp: "disable" + switch_controller_feature: "" - drop_fragment: "disable" drop_overlapped_fragment: "disable" explicit_ftp_proxy: "" @@ -120,6 +125,7 @@ parsed_sample: status: "up" type: "physical" wccp: "disable" + switch_controller_feature: "" - drop_fragment: "disable" drop_overlapped_fragment: "disable" explicit_ftp_proxy: "disable" @@ -140,6 +146,7 @@ parsed_sample: status: "up" type: "physical" wccp: "disable" + switch_controller_feature: "" - drop_fragment: "disable" drop_overlapped_fragment: "disable" explicit_ftp_proxy: "" @@ -160,6 +167,7 @@ parsed_sample: status: "" type: "physical" wccp: "disable" + switch_controller_feature: "" - drop_fragment: "" drop_overlapped_fragment: "" explicit_ftp_proxy: "disable" @@ -180,6 +188,7 @@ parsed_sample: status: "up" type: "tunnel" wccp: "disable" + switch_controller_feature: "" - drop_fragment: "disable" drop_overlapped_fragment: "disable" explicit_ftp_proxy: "disable" @@ -200,6 +209,7 @@ parsed_sample: status: "up" type: "physical" wccp: "disable" + switch_controller_feature: "" - drop_fragment: "disable" drop_overlapped_fragment: "disable" explicit_ftp_proxy: "disable" @@ -220,6 +230,7 @@ parsed_sample: status: "up" type: "aggregate" wccp: "disable" + switch_controller_feature: "" - drop_fragment: "disable" drop_overlapped_fragment: "disable" explicit_ftp_proxy: "disable" @@ -240,6 +251,7 @@ parsed_sample: status: "up" type: "vlan" wccp: "disable" + switch_controller_feature: "" - drop_fragment: "" drop_overlapped_fragment: "" explicit_ftp_proxy: "disable" @@ -260,6 +272,7 @@ parsed_sample: status: "up" type: "loopback" wccp: "" + switch_controller_feature: "" - drop_fragment: "" drop_overlapped_fragment: "" explicit_ftp_proxy: "disable" @@ -280,3 +293,4 @@ parsed_sample: status: "up" type: "tunnel" wccp: "disable" + switch_controller_feature: "" diff --git a/tests/fortinet/get_system_interface/fortinet_get_system_interface_6.4.2.raw b/tests/fortinet/get_system_interface/fortinet_get_system_interface_6.4.2.raw new file mode 100644 index 0000000000..242e1182be --- /dev/null +++ b/tests/fortinet/get_system_interface/fortinet_get_system_interface_6.4.2.raw @@ -0,0 +1,42 @@ +== [ wan ] +name: wan mode: static ip: 52.95.56.162 255.255.255.252 status: up netbios-forward: disable type: physical netflow-sampler: disable sflow-sampler: disable src-check: enable explicit-web-proxy: disable explicit-ftp-proxy: disable proxy-captive-portal: disable mtu-override: disable wccp: disable drop-overlapped-fragment: disable drop-fragment: disable +== [ lan3 ] +name: lan3 mode: static ip: 0.0.0.0 0.0.0.0 status: down netbios-forward: disable type: physical netflow-sampler: disable sflow-sampler: disable src-check: enable explicit-web-proxy: disable explicit-ftp-proxy: disable proxy-captive-portal: disable mtu-override: disable wccp: disable drop-overlapped-fragment: disable drop-fragment: disable +== [ modem ] +name: modem mode: pppoe ip: 0.0.0.0 0.0.0.0 netbios-forward: disable type: physical netflow-sampler: disable sflow-sampler: disable src-check: enable proxy-captive-portal: disable mtu-override: disable wccp: disable drop-overlapped-fragment: disable drop-fragment: disable +== [ ssl.root ] +name: ssl.root ip: 0.0.0.0 0.0.0.0 status: up netbios-forward: disable type: tunnel netflow-sampler: disable sflow-sampler: disable src-check: enable explicit-web-proxy: disable explicit-ftp-proxy: disable proxy-captive-portal: disable wccp: disable +== [ lan ] +name: lan mode: static ip: 16.100.1.230 255.255.255.252 status: up netbios-forward: disable type: hard-switch netflow-sampler: disable sflow-sampler: disable src-check: enable explicit-web-proxy: disable explicit-ftp-proxy: disable proxy-captive-portal: disable mtu-override: disable wccp: disable drop-overlapped-fragment: disable drop-fragment: disable +== [ Vlan10 ] +name: Vlan10 mode: static ip: 16.100.100.1 255.255.255.224 status: up netbios-forward: disable type: vlan netflow-sampler: disable sflow-sampler: disable src-check: enable explicit-web-proxy: disable explicit-ftp-proxy: disable proxy-captive-portal: disable switch-controller-feature: none mtu-override: disable wccp: disable drop-overlapped-fragment: disable drop-fragment: disable +== [ Vlan20 ] +name: Vlan20 mode: static ip: 16.100.100.33 255.255.255.224 status: up netbios-forward: disable type: vlan netflow-sampler: disable sflow-sampler: disable src-check: enable explicit-web-proxy: disable explicit-ftp-proxy: disable proxy-captive-portal: disable switch-controller-feature: none mtu-override: disable wccp: disable drop-overlapped-fragment: disable drop-fragment: disable +== [ Vlan30 ] +name: Vlan30 mode: static ip: 16.100.100.65 255.255.255.192 status: up netbios-forward: disable type: vlan netflow-sampler: disable sflow-sampler: disable src-check: enable explicit-web-proxy: disable explicit-ftp-proxy: disable proxy-captive-portal: disable switch-controller-feature: none mtu-override: disable wccp: disable drop-overlapped-fragment: disable drop-fragment: disable +== [ Vlan40 ] +name: Vlan40 mode: static ip: 16.100.100.225 255.255.255.224 status: up netbios-forward: disable type: vlan netflow-sampler: disable sflow-sampler: disable src-check: enable explicit-web-proxy: disable explicit-ftp-proxy: disable proxy-captive-portal: disable switch-controller-feature: none mtu-override: disable wccp: disable drop-overlapped-fragment: disable drop-fragment: disable +== [ Vlan50 ] +name: Vlan50 mode: static ip: 16.100.100.129 255.255.255.224 status: up netbios-forward: disable type: vlan netflow-sampler: disable sflow-sampler: disable src-check: enable explicit-web-proxy: disable explicit-ftp-proxy: disable proxy-captive-portal: disable switch-controller-feature: none mtu-override: disable wccp: disable drop-overlapped-fragment: disable drop-fragment: disable +== [ Vlan60 ] +name: Vlan60 mode: static ip: 16.100.100.161 255.255.255.224 status: up netbios-forward: disable type: vlan netflow-sampler: disable sflow-sampler: disable src-check: enable explicit-web-proxy: disable explicit-ftp-proxy: disable proxy-captive-portal: disable switch-controller-feature: none mtu-override: disable wccp: disable drop-overlapped-fragment: disable drop-fragment: disable +== [ Vlan70 ] +name: Vlan70 mode: static ip: 16.100.100.193 255.255.255.224 status: up netbios-forward: disable type: vlan netflow-sampler: disable sflow-sampler: disable src-check: enable explicit-web-proxy: disable explicit-ftp-proxy: disable proxy-captive-portal: disable switch-controller-feature: none mtu-override: disable wccp: disable drop-overlapped-fragment: disable drop-fragment: disable +== [ Loopback0 ] +name: Loopback0 ip: 0.0.0.0 0.0.0.0 status: down type: loopback netflow-sampler: disable sflow-sampler: disable src-check: enable explicit-web-proxy: disable explicit-ftp-proxy: disable proxy-captive-portal: disable +== [ Tu-Hub01-Main ] +name: Tu-Hub01-Main ip: 16.37.0.69 255.255.255.255 status: up netbios-forward: disable type: tunnel netflow-sampler: disable sflow-sampler: disable src-check: enable explicit-web-proxy: disable explicit-ftp-proxy: disable proxy-captive-portal: disable mtu-override: disable wccp: disable +== [ Tu-Hub02-Main ] +name: Tu-Hub02-Main ip: 16.37.1.69 255.255.255.255 status: up netbios-forward: disable type: tunnel netflow-sampler: disable sflow-sampler: disable src-check: enable explicit-web-proxy: disable explicit-ftp-proxy: disable proxy-captive-portal: disable mtu-override: disable wccp: disable +== [ Tu-Hub01-Rezerv ] +name: Tu-Hub01-Rezerv ip: 16.37.2.69 255.255.255.255 status: up netbios-forward: disable type: tunnel netflow-sampler: disable sflow-sampler: disable src-check: enable explicit-web-proxy: disable explicit-ftp-proxy: disable proxy-captive-portal: disable mtu-override: disable wccp: disable +== [ Tu-Hub02-Rezerv ] +name: Tu-Hub02-Rezerv ip: 16.37.3.69 255.255.255.255 status: up netbios-forward: disable type: tunnel netflow-sampler: disable sflow-sampler: disable src-check: enable explicit-web-proxy: disable explicit-ftp-proxy: disable proxy-captive-portal: disable mtu-override: disable wccp: disable +== [ port3_vl10 ] +name: port3_vl10 mode: static ip: 0.0.0.0 0.0.0.0 status: up netbios-forward: disable type: vlan netflow-sampler: disable sflow-sampler: disable src-check: enable explicit-web-proxy: disable explicit-ftp-proxy: disable proxy-captive-portal: disable switch-controller-feature: none mtu-override: disable wccp: disable drop-overlapped-fragment: disable drop-fragment: disable +== [ Loopback772 ] +name: Loopback772 ip: 0.0.0.0 0.0.0.0 status: up type: loopback netflow-sampler: disable sflow-sampler: disable src-check: enable explicit-web-proxy: disable explicit-ftp-proxy: disable proxy-captive-portal: disable +== [ Loopback773 ] +name: Loopback773 ip: 0.0.0.0 0.0.0.0 status: up type: loopback netflow-sampler: disable sflow-sampler: disable src-check: enable explicit-web-proxy: disable explicit-ftp-proxy: disable proxy-captive-portal: disable +== [ Tu-Rsnnc-Main ] +name: Tu-Rsnnc-Main ip: 192.168.64.10 255.255.255.255 status: up netbios-forward: disable type: tunnel netflow-sampler: disable sflow-sampler: disable src-check: enable explicit-web-proxy: disable explicit-ftp-proxy: disable proxy-captive-portal: disable wccp: disable diff --git a/tests/fortinet/get_system_interface/fortinet_get_system_interface_6.4.2.yml b/tests/fortinet/get_system_interface/fortinet_get_system_interface_6.4.2.yml new file mode 100644 index 0000000000..384a57d742 --- /dev/null +++ b/tests/fortinet/get_system_interface/fortinet_get_system_interface_6.4.2.yml @@ -0,0 +1,443 @@ +--- +parsed_sample: + - name: "wan" + mode: "static" + management_ip: "" + management_netmask: "" + ip_address: "52.95.56.162" + netmask: "255.255.255.252" + status: "up" + netbios_forward: "disable" + type: "physical" + netflow_sampler: "disable" + sflow_sampler: "disable" + scan_botnet_connections: "" + src_check: "enable" + explicit_web_proxy: "disable" + explicit_ftp_proxy: "disable" + proxy_captive_portal: "disable" + switch_controller_feature: "" + mtu_override: "disable" + wccp: "disable" + drop_overlapped_fragment: "disable" + drop_fragment: "disable" + - name: "lan3" + mode: "static" + management_ip: "" + management_netmask: "" + ip_address: "0.0.0.0" + netmask: "0.0.0.0" + status: "down" + netbios_forward: "disable" + type: "physical" + netflow_sampler: "disable" + sflow_sampler: "disable" + scan_botnet_connections: "" + src_check: "enable" + explicit_web_proxy: "disable" + explicit_ftp_proxy: "disable" + proxy_captive_portal: "disable" + switch_controller_feature: "" + mtu_override: "disable" + wccp: "disable" + drop_overlapped_fragment: "disable" + drop_fragment: "disable" + - name: "modem" + mode: "pppoe" + management_ip: "" + management_netmask: "" + ip_address: "0.0.0.0" + netmask: "0.0.0.0" + status: "" + netbios_forward: "disable" + type: "physical" + netflow_sampler: "disable" + sflow_sampler: "disable" + scan_botnet_connections: "" + src_check: "enable" + explicit_web_proxy: "" + explicit_ftp_proxy: "" + proxy_captive_portal: "disable" + switch_controller_feature: "" + mtu_override: "disable" + wccp: "disable" + drop_overlapped_fragment: "disable" + drop_fragment: "disable" + - name: "ssl.root" + mode: "" + management_ip: "" + management_netmask: "" + ip_address: "0.0.0.0" + netmask: "0.0.0.0" + status: "up" + netbios_forward: "disable" + type: "tunnel" + netflow_sampler: "disable" + sflow_sampler: "disable" + scan_botnet_connections: "" + src_check: "enable" + explicit_web_proxy: "disable" + explicit_ftp_proxy: "disable" + proxy_captive_portal: "disable" + switch_controller_feature: "" + mtu_override: "" + wccp: "disable" + drop_overlapped_fragment: "" + drop_fragment: "" + - name: "lan" + mode: "static" + management_ip: "" + management_netmask: "" + ip_address: "16.100.1.230" + netmask: "255.255.255.252" + status: "up" + netbios_forward: "disable" + type: "hard-switch" + netflow_sampler: "disable" + sflow_sampler: "disable" + scan_botnet_connections: "" + src_check: "enable" + explicit_web_proxy: "disable" + explicit_ftp_proxy: "disable" + proxy_captive_portal: "disable" + switch_controller_feature: "" + mtu_override: "disable" + wccp: "disable" + drop_overlapped_fragment: "disable" + drop_fragment: "disable" + - name: "Vlan10" + mode: "static" + management_ip: "" + management_netmask: "" + ip_address: "16.100.100.1" + netmask: "255.255.255.224" + status: "up" + netbios_forward: "disable" + type: "vlan" + netflow_sampler: "disable" + sflow_sampler: "disable" + scan_botnet_connections: "" + src_check: "enable" + explicit_web_proxy: "disable" + explicit_ftp_proxy: "disable" + proxy_captive_portal: "disable" + switch_controller_feature: "none" + mtu_override: "disable" + wccp: "disable" + drop_overlapped_fragment: "disable" + drop_fragment: "disable" + - name: "Vlan20" + mode: "static" + management_ip: "" + management_netmask: "" + ip_address: "16.100.100.33" + netmask: "255.255.255.224" + status: "up" + netbios_forward: "disable" + type: "vlan" + netflow_sampler: "disable" + sflow_sampler: "disable" + scan_botnet_connections: "" + src_check: "enable" + explicit_web_proxy: "disable" + explicit_ftp_proxy: "disable" + proxy_captive_portal: "disable" + switch_controller_feature: "none" + mtu_override: "disable" + wccp: "disable" + drop_overlapped_fragment: "disable" + drop_fragment: "disable" + - name: "Vlan30" + mode: "static" + management_ip: "" + management_netmask: "" + ip_address: "16.100.100.65" + netmask: "255.255.255.192" + status: "up" + netbios_forward: "disable" + type: "vlan" + netflow_sampler: "disable" + sflow_sampler: "disable" + scan_botnet_connections: "" + src_check: "enable" + explicit_web_proxy: "disable" + explicit_ftp_proxy: "disable" + proxy_captive_portal: "disable" + switch_controller_feature: "none" + mtu_override: "disable" + wccp: "disable" + drop_overlapped_fragment: "disable" + drop_fragment: "disable" + - name: "Vlan40" + mode: "static" + management_ip: "" + management_netmask: "" + ip_address: "16.100.100.225" + netmask: "255.255.255.224" + status: "up" + netbios_forward: "disable" + type: "vlan" + netflow_sampler: "disable" + sflow_sampler: "disable" + scan_botnet_connections: "" + src_check: "enable" + explicit_web_proxy: "disable" + explicit_ftp_proxy: "disable" + proxy_captive_portal: "disable" + switch_controller_feature: "none" + mtu_override: "disable" + wccp: "disable" + drop_overlapped_fragment: "disable" + drop_fragment: "disable" + - name: "Vlan50" + mode: "static" + management_ip: "" + management_netmask: "" + ip_address: "16.100.100.129" + netmask: "255.255.255.224" + status: "up" + netbios_forward: "disable" + type: "vlan" + netflow_sampler: "disable" + sflow_sampler: "disable" + scan_botnet_connections: "" + src_check: "enable" + explicit_web_proxy: "disable" + explicit_ftp_proxy: "disable" + proxy_captive_portal: "disable" + switch_controller_feature: "none" + mtu_override: "disable" + wccp: "disable" + drop_overlapped_fragment: "disable" + drop_fragment: "disable" + - name: "Vlan60" + mode: "static" + management_ip: "" + management_netmask: "" + ip_address: "16.100.100.161" + netmask: "255.255.255.224" + status: "up" + netbios_forward: "disable" + type: "vlan" + netflow_sampler: "disable" + sflow_sampler: "disable" + scan_botnet_connections: "" + src_check: "enable" + explicit_web_proxy: "disable" + explicit_ftp_proxy: "disable" + proxy_captive_portal: "disable" + switch_controller_feature: "none" + mtu_override: "disable" + wccp: "disable" + drop_overlapped_fragment: "disable" + drop_fragment: "disable" + - name: "Vlan70" + mode: "static" + management_ip: "" + management_netmask: "" + ip_address: "16.100.100.193" + netmask: "255.255.255.224" + status: "up" + netbios_forward: "disable" + type: "vlan" + netflow_sampler: "disable" + sflow_sampler: "disable" + scan_botnet_connections: "" + src_check: "enable" + explicit_web_proxy: "disable" + explicit_ftp_proxy: "disable" + proxy_captive_portal: "disable" + switch_controller_feature: "none" + mtu_override: "disable" + wccp: "disable" + drop_overlapped_fragment: "disable" + drop_fragment: "disable" + - name: "Loopback0" + mode: "" + management_ip: "" + management_netmask: "" + ip_address: "0.0.0.0" + netmask: "0.0.0.0" + status: "down" + netbios_forward: "" + type: "loopback" + netflow_sampler: "disable" + sflow_sampler: "disable" + scan_botnet_connections: "" + src_check: "enable" + explicit_web_proxy: "disable" + explicit_ftp_proxy: "disable" + proxy_captive_portal: "disable" + switch_controller_feature: "" + mtu_override: "" + wccp: "" + drop_overlapped_fragment: "" + drop_fragment: "" + - name: "Tu-Hub01-Main" + mode: "" + management_ip: "" + management_netmask: "" + ip_address: "16.37.0.69" + netmask: "255.255.255.255" + status: "up" + netbios_forward: "disable" + type: "tunnel" + netflow_sampler: "disable" + sflow_sampler: "disable" + scan_botnet_connections: "" + src_check: "enable" + explicit_web_proxy: "disable" + explicit_ftp_proxy: "disable" + proxy_captive_portal: "disable" + switch_controller_feature: "" + mtu_override: "disable" + wccp: "disable" + drop_overlapped_fragment: "" + drop_fragment: "" + - name: "Tu-Hub02-Main" + mode: "" + management_ip: "" + management_netmask: "" + ip_address: "16.37.1.69" + netmask: "255.255.255.255" + status: "up" + netbios_forward: "disable" + type: "tunnel" + netflow_sampler: "disable" + sflow_sampler: "disable" + scan_botnet_connections: "" + src_check: "enable" + explicit_web_proxy: "disable" + explicit_ftp_proxy: "disable" + proxy_captive_portal: "disable" + switch_controller_feature: "" + mtu_override: "disable" + wccp: "disable" + drop_overlapped_fragment: "" + drop_fragment: "" + - name: "Tu-Hub01-Rezerv" + mode: "" + management_ip: "" + management_netmask: "" + ip_address: "16.37.2.69" + netmask: "255.255.255.255" + status: "up" + netbios_forward: "disable" + type: "tunnel" + netflow_sampler: "disable" + sflow_sampler: "disable" + scan_botnet_connections: "" + src_check: "enable" + explicit_web_proxy: "disable" + explicit_ftp_proxy: "disable" + proxy_captive_portal: "disable" + switch_controller_feature: "" + mtu_override: "disable" + wccp: "disable" + drop_overlapped_fragment: "" + drop_fragment: "" + - name: "Tu-Hub02-Rezerv" + mode: "" + management_ip: "" + management_netmask: "" + ip_address: "16.37.3.69" + netmask: "255.255.255.255" + status: "up" + netbios_forward: "disable" + type: "tunnel" + netflow_sampler: "disable" + sflow_sampler: "disable" + scan_botnet_connections: "" + src_check: "enable" + explicit_web_proxy: "disable" + explicit_ftp_proxy: "disable" + proxy_captive_portal: "disable" + switch_controller_feature: "" + mtu_override: "disable" + wccp: "disable" + drop_overlapped_fragment: "" + drop_fragment: "" + - name: "port3_vl10" + mode: "static" + management_ip: "" + management_netmask: "" + ip_address: "0.0.0.0" + netmask: "0.0.0.0" + status: "up" + netbios_forward: "disable" + type: "vlan" + netflow_sampler: "disable" + sflow_sampler: "disable" + scan_botnet_connections: "" + src_check: "enable" + explicit_web_proxy: "disable" + explicit_ftp_proxy: "disable" + proxy_captive_portal: "disable" + switch_controller_feature: "none" + mtu_override: "disable" + wccp: "disable" + drop_overlapped_fragment: "disable" + drop_fragment: "disable" + - name: "Loopback772" + mode: "" + management_ip: "" + management_netmask: "" + ip_address: "0.0.0.0" + netmask: "0.0.0.0" + status: "up" + netbios_forward: "" + type: "loopback" + netflow_sampler: "disable" + sflow_sampler: "disable" + scan_botnet_connections: "" + src_check: "enable" + explicit_web_proxy: "disable" + explicit_ftp_proxy: "disable" + proxy_captive_portal: "disable" + switch_controller_feature: "" + mtu_override: "" + wccp: "" + drop_overlapped_fragment: "" + drop_fragment: "" + - name: "Loopback773" + mode: "" + management_ip: "" + management_netmask: "" + ip_address: "0.0.0.0" + netmask: "0.0.0.0" + status: "up" + netbios_forward: "" + type: "loopback" + netflow_sampler: "disable" + sflow_sampler: "disable" + scan_botnet_connections: "" + src_check: "enable" + explicit_web_proxy: "disable" + explicit_ftp_proxy: "disable" + proxy_captive_portal: "disable" + switch_controller_feature: "" + mtu_override: "" + wccp: "" + drop_overlapped_fragment: "" + drop_fragment: "" + - name: "Tu-Rsnnc-Main" + mode: "" + management_ip: "" + management_netmask: "" + ip_address: "192.168.64.10" + netmask: "255.255.255.255" + status: "up" + netbios_forward: "disable" + type: "tunnel" + netflow_sampler: "disable" + sflow_sampler: "disable" + scan_botnet_connections: "" + src_check: "enable" + explicit_web_proxy: "disable" + explicit_ftp_proxy: "disable" + proxy_captive_portal: "disable" + switch_controller_feature: "" + mtu_override: "" + wccp: "disable" + drop_overlapped_fragment: "" + drop_fragment: "" From 2ab1e657221053da0d266ca11ec68e9de0c9161d Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Mon, 22 Jul 2024 18:54:41 +0400 Subject: [PATCH 08/60] Add IOS sh ip dhcp binding template (#1476) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”> --- .../cisco_ios_show_ip_dhcp_binding.textfsm | 17 +++++++++++++++++ ntc_templates/templates/index | 1 + .../cisco_ios_show_ip_dhcp_binding.raw | 6 ++++++ .../cisco_ios_show_ip_dhcp_binding.yml | 10 ++++++++++ 4 files changed, 34 insertions(+) create mode 100644 ntc_templates/templates/cisco_ios_show_ip_dhcp_binding.textfsm create mode 100644 tests/cisco_ios/show_ip_dhcp_binding/cisco_ios_show_ip_dhcp_binding.raw create mode 100644 tests/cisco_ios/show_ip_dhcp_binding/cisco_ios_show_ip_dhcp_binding.yml diff --git a/ntc_templates/templates/cisco_ios_show_ip_dhcp_binding.textfsm b/ntc_templates/templates/cisco_ios_show_ip_dhcp_binding.textfsm new file mode 100644 index 0000000000..dbd8f8ecbe --- /dev/null +++ b/ntc_templates/templates/cisco_ios_show_ip_dhcp_binding.textfsm @@ -0,0 +1,17 @@ +Value IP_ADDRESS (\S+) +Value HARDWARE_ADDRESS (\S+) +Value EXPIRATION (\S+) +Value TYPE (\S+) + +Start + ^\s*Bindings from all pools not associated with VRF:\s*$$ + ^\s*IP\s+address\s+Client-ID/(?:Hardware\s+address/(?:User\s+name)?)?\s+Lease expiration\s+Type\s*$$ -> DhcpTable + ^\s*$$ + ^. -> Error + +DhcpTable + ^\s*Hardware\s+address/\s*$$ + ^\s*User\s+name\s*$$ + ^\s*${IP_ADDRESS}\s+${HARDWARE_ADDRESS}\s+${EXPIRATION}\s+${TYPE}\s*$$ -> Record + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index e75b817bd9..90754e41eb 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -268,6 +268,7 @@ cisco_ios_show_ip_ospf_database.textfsm, .*, cisco_ios, sh[[ow]] ip ospf data[[b cisco_ios_show_ip_ospf_neighbor.textfsm, .*, cisco_ios, sh[[ow]] ip ospf nei[[ghbor]] cisco_ios_show_ip_route_summary.textfsm, .*, cisco_ios, sh[[ow]] ip ro[[ute]] sum[[mary]] cisco_ios_show_ip_access-lists.textfsm, .*, cisco_ios, sh[[ow]] ip acce[[ss-lists]] +cisco_ios_show_ip_dhcp_binding.textfsm, .*, cisco_ios, sh[[ow]] ip dh[[cp]] b[[inding]] cisco_ios_show_mpls_interfaces.textfsm, .*, cisco_ios, sh[[ow]] mpls interfa[[ces]] cisco_ios_show_power_available.textfsm, .*, cisco_ios, sh[[ow]] pow[[er]] a[[vailable]] cisco_ios_show_access-session.textfsm, .*, cisco_ios, show access-s[[ession]] diff --git a/tests/cisco_ios/show_ip_dhcp_binding/cisco_ios_show_ip_dhcp_binding.raw b/tests/cisco_ios/show_ip_dhcp_binding/cisco_ios_show_ip_dhcp_binding.raw new file mode 100644 index 0000000000..02b38d7725 --- /dev/null +++ b/tests/cisco_ios/show_ip_dhcp_binding/cisco_ios_show_ip_dhcp_binding.raw @@ -0,0 +1,6 @@ +Bindings from all pools not associated with VRF: +IP address Client-ID/ Lease expiration Type + Hardware address/ + User name +10.100.88.26 01aa.aaaa.aaaa.aa Infinite Manual +10.100.88.197 01dd.dddd.dddd.dd Infinite Manual diff --git a/tests/cisco_ios/show_ip_dhcp_binding/cisco_ios_show_ip_dhcp_binding.yml b/tests/cisco_ios/show_ip_dhcp_binding/cisco_ios_show_ip_dhcp_binding.yml new file mode 100644 index 0000000000..d2fc8bd41b --- /dev/null +++ b/tests/cisco_ios/show_ip_dhcp_binding/cisco_ios_show_ip_dhcp_binding.yml @@ -0,0 +1,10 @@ +--- +parsed_sample: + - expiration: "Infinite" + hardware_address: "01aa.aaaa.aaaa.aa" + ip_address: "10.100.88.26" + type: "Manual" + - expiration: "Infinite" + hardware_address: "01dd.dddd.dddd.dd" + ip_address: "10.100.88.197" + type: "Manual" From 6cd1f02ba285fd668de58a531df7ca7eb68a56d8 Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Mon, 22 Jul 2024 18:59:41 +0400 Subject: [PATCH 09/60] Add IOS 'show arp' template (#1474) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --------- Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”> Co-authored-by: Jacob McGill <9847006+jmcgill298@users.noreply.github.com> --- .../templates/cisco_ios_show_arp.textfsm | 16 ++++++++++ ntc_templates/templates/index | 1 + .../cisco_ios/show_arp/cisco_ios_show_arp.raw | 6 ++++ .../cisco_ios/show_arp/cisco_ios_show_arp.yml | 32 +++++++++++++++++++ 4 files changed, 55 insertions(+) create mode 100644 ntc_templates/templates/cisco_ios_show_arp.textfsm create mode 100644 tests/cisco_ios/show_arp/cisco_ios_show_arp.raw create mode 100644 tests/cisco_ios/show_arp/cisco_ios_show_arp.yml diff --git a/ntc_templates/templates/cisco_ios_show_arp.textfsm b/ntc_templates/templates/cisco_ios_show_arp.textfsm new file mode 100644 index 0000000000..b01b3460d9 --- /dev/null +++ b/ntc_templates/templates/cisco_ios_show_arp.textfsm @@ -0,0 +1,16 @@ +Value PROTOCOL (\S+) +Value ADDRESS (\S+) +Value AGE_MIN (\S+) +Value HARDWARE_ADDRESS ((?:([a-f0-9]{4}\.){2}[a-f0-9]{4})|Incomplete) +Value TYPE (\S+) +Value INTERFACE (\S+) + +Start + ^\s*Protocol\s+Address\s+Age\s+\(min\)\s+Hardware\s+Addr\s+Type\s+Interface\s*$$ -> ArpTable + ^\s*$$ + ^. -> Error + +ArpTable + ^\s*${PROTOCOL}\s+${ADDRESS}\s+${AGE_MIN}\s+${HARDWARE_ADDRESS}\s+${TYPE}(?:\s+${INTERFACE})?\s*$$ -> Record + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 90754e41eb..60b66e2c86 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -331,6 +331,7 @@ cisco_ios_show_vlans.textfsm, .*, cisco_ios, sh[[ow]] vlans cisco_ios_traceroute.textfsm, .*, cisco_ios, tr[[aceroute]] cisco_ios_show_boot.textfsm, .*, cisco_ios, sh[[ow]] boot cisco_ios_show_vlan.textfsm, .*, cisco_ios, sh[[ow]] vlan +cisco_ios_show_arp.textfsm, .*, cisco_ios, sh[[ow]] arp cisco_ios_show_vrf.textfsm, .*, cisco_ios, sh[[ow]] vrf cisco_ios_ping.textfsm, .*, cisco_ios, ping cisco_ios_dir.textfsm, .*, cisco_ios, dir diff --git a/tests/cisco_ios/show_arp/cisco_ios_show_arp.raw b/tests/cisco_ios/show_arp/cisco_ios_show_arp.raw new file mode 100644 index 0000000000..3fc0b4827c --- /dev/null +++ b/tests/cisco_ios/show_arp/cisco_ios_show_arp.raw @@ -0,0 +1,6 @@ +Protocol Address Age (min) Hardware Addr Type Interface +Internet 10.100.88.1 - c4f7.d564.b716 ARPA Vlan10 +Internet 10.100.88.199 0 Incomplete ARPA +Internet 10.152.1.229 0 488f.5a5a.87ea ARPA Vlan1 +Internet 1.2.3.4 0 c4ad.3425.b7be ARPA FastEthernet4 +Internet 1.2.3.5 - c4f7.d564.b71a ARPA FastEthernet4 diff --git a/tests/cisco_ios/show_arp/cisco_ios_show_arp.yml b/tests/cisco_ios/show_arp/cisco_ios_show_arp.yml new file mode 100644 index 0000000000..222a2d01d6 --- /dev/null +++ b/tests/cisco_ios/show_arp/cisco_ios_show_arp.yml @@ -0,0 +1,32 @@ +--- +parsed_sample: + - address: "10.100.88.1" + age_min: "-" + hardware_address: "c4f7.d564.b716" + interface: "Vlan10" + protocol: "Internet" + type: "ARPA" + - address: "10.100.88.199" + age_min: "0" + hardware_address: "Incomplete" + interface: "" + protocol: "Internet" + type: "ARPA" + - address: "10.152.1.229" + age_min: "0" + hardware_address: "488f.5a5a.87ea" + interface: "Vlan1" + protocol: "Internet" + type: "ARPA" + - address: "1.2.3.4" + age_min: "0" + hardware_address: "c4ad.3425.b7be" + interface: "FastEthernet4" + protocol: "Internet" + type: "ARPA" + - address: "1.2.3.5" + age_min: "-" + hardware_address: "c4f7.d564.b71a" + interface: "FastEthernet4" + protocol: "Internet" + type: "ARPA" From edc31a2aba30e6a84649da3ea33038747c886e53 Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Mon, 22 Jul 2024 19:00:31 +0400 Subject: [PATCH 10/60] Add IOS show users template (#1475) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”> Co-authored-by: Jacob McGill <9847006+jmcgill298@users.noreply.github.com> --- .../templates/cisco_ios_show_users.textfsm | 16 +++++++++++ ntc_templates/templates/index | 1 + .../show_users/cisco_ios_show_users.raw | 4 +++ .../show_users/cisco_ios_show_users.yml | 7 +++++ .../show_users/cisco_ios_show_users_all.raw | 8 ++++++ .../show_users/cisco_ios_show_users_all.yml | 27 +++++++++++++++++++ 6 files changed, 63 insertions(+) create mode 100644 ntc_templates/templates/cisco_ios_show_users.textfsm create mode 100644 tests/cisco_ios/show_users/cisco_ios_show_users.raw create mode 100644 tests/cisco_ios/show_users/cisco_ios_show_users.yml create mode 100644 tests/cisco_ios/show_users/cisco_ios_show_users_all.raw create mode 100644 tests/cisco_ios/show_users/cisco_ios_show_users_all.yml diff --git a/ntc_templates/templates/cisco_ios_show_users.textfsm b/ntc_templates/templates/cisco_ios_show_users.textfsm new file mode 100644 index 0000000000..385381a5fb --- /dev/null +++ b/ntc_templates/templates/cisco_ios_show_users.textfsm @@ -0,0 +1,16 @@ +Value LINE ((\*\s+)?\d+\s+(con|aux|tty|vty)\s+\d+) +Value USER (\S+) +Value HOSTS (\S+) +Value IDLE (\S+) +Value LOCATION (\S+) + +Start + ^\s*Line\s+User\s+Host\(s\)\s+Idle\s+Location\s*$$ -> UsersTable + ^\s*$$ + ^. -> Error + +UsersTable + ^\s*${LINE}(?:\s+${USER})?(?:\s+${HOSTS})?\s+${IDLE}(?:\s+${LOCATION})?\s*$$ -> Record + ^\s*Interface\s+User\s+Mode\s+Idle\s+Peer\s+Address\s*$$ + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 60b66e2c86..774dc3b01b 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -327,6 +327,7 @@ cisco_ios_show_ip_cef.textfsm, .*, cisco_ios, sh[[ow]] ip ce[[f]](?: vrf? \S+)?\ cisco_ios_show_tacacs.textfsm, .*, cisco_ios, sh[[ow]] tacacs cisco_ios_show_clock.textfsm, .*, cisco_ios, sh[[ow]] clo[[ck]] cisco_ios_show_dmvpn.textfsm, .*, cisco_ios, sh[[ow]] dm[[vpn]] +cisco_ios_show_users.textfsm, .*, cisco_ios, sh[[ow]] users(?: (?:a[[ll]]))? cisco_ios_show_vlans.textfsm, .*, cisco_ios, sh[[ow]] vlans cisco_ios_traceroute.textfsm, .*, cisco_ios, tr[[aceroute]] cisco_ios_show_boot.textfsm, .*, cisco_ios, sh[[ow]] boot diff --git a/tests/cisco_ios/show_users/cisco_ios_show_users.raw b/tests/cisco_ios/show_users/cisco_ios_show_users.raw new file mode 100644 index 0000000000..7851120a16 --- /dev/null +++ b/tests/cisco_ios/show_users/cisco_ios_show_users.raw @@ -0,0 +1,4 @@ + Line User Host(s) Idle Location +* 10 vty 0 arm idle 00:00:00 1.2.3.4 + + Interface User Mode Idle Peer Address diff --git a/tests/cisco_ios/show_users/cisco_ios_show_users.yml b/tests/cisco_ios/show_users/cisco_ios_show_users.yml new file mode 100644 index 0000000000..88abb8a2dd --- /dev/null +++ b/tests/cisco_ios/show_users/cisco_ios_show_users.yml @@ -0,0 +1,7 @@ +--- +parsed_sample: + - hosts: "idle" + idle: "00:00:00" + line: "* 10 vty 0" + location: "1.2.3.4" + user: "arm" diff --git a/tests/cisco_ios/show_users/cisco_ios_show_users_all.raw b/tests/cisco_ios/show_users/cisco_ios_show_users_all.raw new file mode 100644 index 0000000000..3bc9356ad2 --- /dev/null +++ b/tests/cisco_ios/show_users/cisco_ios_show_users_all.raw @@ -0,0 +1,8 @@ + Line User Host(s) Idle Location + 0 con 0 00:00:00 + 1 aux 0 00:00:00 +* 10 vty 0 arm idle 00:00:00 1.2.3.4 + 11 vty 1 00:00:00 + 12 vty 2 00:00:00 + + Interface User Mode Idle Peer Address diff --git a/tests/cisco_ios/show_users/cisco_ios_show_users_all.yml b/tests/cisco_ios/show_users/cisco_ios_show_users_all.yml new file mode 100644 index 0000000000..3be5e26fc6 --- /dev/null +++ b/tests/cisco_ios/show_users/cisco_ios_show_users_all.yml @@ -0,0 +1,27 @@ +--- +parsed_sample: + - hosts: "" + idle: "00:00:00" + line: "0 con 0" + location: "" + user: "" + - hosts: "" + idle: "00:00:00" + line: "1 aux 0" + location: "" + user: "" + - hosts: "idle" + idle: "00:00:00" + line: "* 10 vty 0" + location: "1.2.3.4" + user: "arm" + - hosts: "" + idle: "00:00:00" + line: "11 vty 1" + location: "" + user: "" + - hosts: "" + idle: "00:00:00" + line: "12 vty 2" + location: "" + user: "" From 3bf5206db8fd9170176f0d32d418d26adf79b7b2 Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Mon, 22 Jul 2024 19:02:18 +0400 Subject: [PATCH 11/60] Add IOS show mpls l2transport vc template (#1477) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”> --- .../cisco_ios_show_mpls_l2transport_vc.textfsm | 16 ++++++++++++++++ ntc_templates/templates/index | 1 + .../cisco_ios_show_mpls_l2transport_vc.raw | 5 +++++ .../cisco_ios_show_mpls_l2transport_vc.yml | 17 +++++++++++++++++ 4 files changed, 39 insertions(+) create mode 100644 ntc_templates/templates/cisco_ios_show_mpls_l2transport_vc.textfsm create mode 100644 tests/cisco_ios/show_mpls_l2transport_vc/cisco_ios_show_mpls_l2transport_vc.raw create mode 100644 tests/cisco_ios/show_mpls_l2transport_vc/cisco_ios_show_mpls_l2transport_vc.yml diff --git a/ntc_templates/templates/cisco_ios_show_mpls_l2transport_vc.textfsm b/ntc_templates/templates/cisco_ios_show_mpls_l2transport_vc.textfsm new file mode 100644 index 0000000000..7758309daf --- /dev/null +++ b/ntc_templates/templates/cisco_ios_show_mpls_l2transport_vc.textfsm @@ -0,0 +1,16 @@ +Value INTERFACE ([a-zA-Z0-9\-/.]+) +Value LOCAL_CIRCUIT (.*) +Value DEST_ADDRESS (\S+) +Value VC_ID (\d+) +Value STATUS (.*) + +Start + ^\s*Local\s+intf\s+Local\s+circuit\s+Dest\s+address\s+VC\s+ID\s+Status\s*$$ -> L2transportTable + ^\s*$$ + ^. -> Error + +L2transportTable + ^\s*-+(\s+-+)*\s*$$ + ^\s*${INTERFACE}\s+${LOCAL_CIRCUIT}\s+${DEST_ADDRESS}\s+${VC_ID}\s+${STATUS}\s*$$ -> Record + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 774dc3b01b..8c6f190001 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -253,6 +253,7 @@ cisco_ios_show_cdp_neighbors_detail.textfsm, .*, cisco_ios, sh[[ow]] c[[dp]] nei cisco_ios_show_etherchannel_summary.textfsm, .*, cisco_ios, sh[[ow]] etherchann[[el]] summ[[ary]] cisco_ios_show_ipv6_interface_brief.textfsm, .*, cisco_ios, sh[[ow]] ipv[[6]] i[[nterface]] b[[rief]] cisco_ios_show_ip_nat_translations.textfsm, .*, cisco_ios, sh[[ow]] ip nat translation[[s]] +cisco_ios_show_mpls_l2transport_vc.textfsm, .*, cisco_ios, sh[[ow]] m[[pls]] l2[[transport]] v[[c]] cisco_ios_show_ip_eigrp_neighbors.textfsm, .*, cisco_ios, sh[[ow]] ip ei[[grp]] nei[[ghbors]] cisco_ios_show_ip_flow_toptalkers.textfsm, .*, cisco_ios, sh[[ow]] ip fl[[ow]] top[[-talkers]] cisco_ios_show_ip_interface_brief.textfsm, .*, cisco_ios, sh[[ow]] ip int[[erface]] br[[ief]] diff --git a/tests/cisco_ios/show_mpls_l2transport_vc/cisco_ios_show_mpls_l2transport_vc.raw b/tests/cisco_ios/show_mpls_l2transport_vc/cisco_ios_show_mpls_l2transport_vc.raw new file mode 100644 index 0000000000..85bdbc0855 --- /dev/null +++ b/tests/cisco_ios/show_mpls_l2transport_vc/cisco_ios_show_mpls_l2transport_vc.raw @@ -0,0 +1,5 @@ +Local intf Local circuit Dest address VC ID Status +------------- ------------------ --------------- ---------- ---------- +Se5/0 FR DLCI 55 10.0.0.1 55 UP +AT4/0 ATM AAL5 0/100 10.0.0.1 100 UP +AT4/0.300 ATM AAL5 0/300 10.0.0.1 300 UP diff --git a/tests/cisco_ios/show_mpls_l2transport_vc/cisco_ios_show_mpls_l2transport_vc.yml b/tests/cisco_ios/show_mpls_l2transport_vc/cisco_ios_show_mpls_l2transport_vc.yml new file mode 100644 index 0000000000..adde43ead5 --- /dev/null +++ b/tests/cisco_ios/show_mpls_l2transport_vc/cisco_ios_show_mpls_l2transport_vc.yml @@ -0,0 +1,17 @@ +--- +parsed_sample: + - dest_address: "10.0.0.1" + interface: "Se5/0" + local_circuit: "FR DLCI 55 " + status: "UP" + vc_id: "55" + - dest_address: "10.0.0.1" + interface: "AT4/0" + local_circuit: "ATM AAL5 0/100 " + status: "UP" + vc_id: "100" + - dest_address: "10.0.0.1" + interface: "AT4/0.300" + local_circuit: "ATM AAL5 0/300 " + status: "UP" + vc_id: "300" From e237294241d7901c21eafa6c3237393a0fd070ce Mon Sep 17 00:00:00 2001 From: Jacob McGill <9847006+jmcgill298@users.noreply.github.com> Date: Mon, 22 Jul 2024 11:02:53 -0400 Subject: [PATCH 12/60] Add panos show license template (#1775) * add PANOS license info * add test cases --------- Co-authored-by: Julio Dinocco --- ntc_templates/templates/index | 1 + ...aloalto_panos_request_license_info.textfsm | 22 +++++++ .../pr-comment-provided.raw | 64 +++++++++++++++++++ .../pr-comment-provided.yml | 58 +++++++++++++++++ 4 files changed, 145 insertions(+) create mode 100644 ntc_templates/templates/paloalto_panos_request_license_info.textfsm create mode 100644 tests/paloalto_panos/request_license_info/pr-comment-provided.raw create mode 100644 tests/paloalto_panos/request_license_info/pr-comment-provided.yml diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 8c6f190001..c6ddfb85f5 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -714,6 +714,7 @@ paloalto_panos_show_interface_management.textfsm, .*, paloalto_panos, sh[[ow]] i paloalto_panos_show_interface_hardware.textfsm, .*, paloalto_panos, sh[[ow]] int[[erface]] hard[[ware]] paloalto_panos_show_running_nat-policy.textfsm, .*, paloalto_panos, sh[[ow]] runn[[ing]] nat[[-policy]] paloalto_panos_show_interface_logical.textfsm, .*, paloalto_panos, sh[[ow]] int[[erface]] logi[[cal]] +paloalto_panos_request_license_info.textfsm, .*, paloalto_panos, request license info paloalto_panos_show_counter_global.textfsm, .*, paloalto_panos, sh[[ow]] coun[[ter]] glo[[bal]] paloalto_panos_debug_swm_status.textfsm, .*, paloalto_panos, de[[bug]] s[[wm]] status paloalto_panos_show_system_info.textfsm, .*, paloalto_panos, sh[[ow]] sys[[tem]] in[[fo]] diff --git a/ntc_templates/templates/paloalto_panos_request_license_info.textfsm b/ntc_templates/templates/paloalto_panos_request_license_info.textfsm new file mode 100644 index 0000000000..403ed7d278 --- /dev/null +++ b/ntc_templates/templates/paloalto_panos_request_license_info.textfsm @@ -0,0 +1,22 @@ +Value FEATURE (.+) +Value DESCRIPTION (.+) +Value SERIAL (.+) +Value AUTH_CODE (.+) +Value ISSUED (.+) +Value EXPIRES (.+) +Value EXPIRED (yes|no) +Value BASE_LICENSE (.+?) + +Start + ^License\s+entry: -> Record + ^Feature: ${FEATURE} + ^Description: ${DESCRIPTION} + ^Serial: ${SERIAL} + ^Authcode: ${AUTH_CODE} + ^Issued: ${ISSUED} + ^Expires: ${EXPIRES} + ^Expired\?: ${EXPIRED} + ^Base\s+[Ll]icense:\s+${BASE_LICENSE}\s*$$ + ^\s*Current\s+\S+\s+[Dd]ate + ^\s*$$ + ^. -> Error diff --git a/tests/paloalto_panos/request_license_info/pr-comment-provided.raw b/tests/paloalto_panos/request_license_info/pr-comment-provided.raw new file mode 100644 index 0000000000..422f28d58e --- /dev/null +++ b/tests/paloalto_panos/request_license_info/pr-comment-provided.raw @@ -0,0 +1,64 @@ +Current PDT Date: May 19, 2021 + +License entry: +Feature: WildFire License +Description: WildFire signature feed, integrated WildFire logs, WildFire API +Serial: 0000000xxxxxxxx +Issued: January 13, 2020 +Expires: March 08, 2023 +Expired?: no +Base license: PA-VM + +License entry: +Feature: Premium +Description: 24 x 7 phone support; advanced replacement hardware service +Serial: 0000000xxxxxxxx +Issued: January 13, 2020 +Expires: January 09, 2023 +Expired?: no +Base license: PA-VM + +License entry: +Feature: PAN-DB URL Filtering +Description: Palo Alto Networks URL Filtering License +Serial: 0000000xxxxxxxx +Issued: January 13, 2020 +Expires: March 08, 2023 +Expired?: no +Base license: PA-VM + +License entry: +Feature: GlobalProtect Portal +Description: GlobalProtect Portal License +Serial: 0000000xxxxxxxx +Issued: March 08, 2017 +Expires: Never +Expired?: no +Base license: PA-VM + +License entry: +Feature: PA-VM +Description: Standard VM-100 +Serial: 0000000xxxxxxxx +Issued: March 08, 2017 +Expires: Never +Expired?: no + +License entry: +Feature: Threat Prevention +Description: Threat Prevention +Serial: 0000000xxxxxxxx +Issued: January 13, 2020 +Expires: January 13, 2023 +Expired?: no +Base license: PA-VM + +License entry: +Feature: GlobalProtect Gateway +Description: GlobalProtect Gateway License +Serial: 0000000xxxxxxxx +Issued: January 13, 2020 +Expires: March 08, 2023 +Expired?: no +Base license: PA-VM +Authcode: abc def diff --git a/tests/paloalto_panos/request_license_info/pr-comment-provided.yml b/tests/paloalto_panos/request_license_info/pr-comment-provided.yml new file mode 100644 index 0000000000..18422e2fad --- /dev/null +++ b/tests/paloalto_panos/request_license_info/pr-comment-provided.yml @@ -0,0 +1,58 @@ +--- +parsed_sample: + - auth_code: "" + base_license: "PA-VM" + description: "WildFire signature feed, integrated WildFire logs, WildFire API" + expired: "no" + expires: "March 08, 2023" + feature: "WildFire License" + issued: "January 13, 2020" + serial: "0000000xxxxxxxx" + - auth_code: "" + base_license: "PA-VM" + description: "24 x 7 phone support; advanced replacement hardware service" + expired: "no" + expires: "January 09, 2023" + feature: "Premium" + issued: "January 13, 2020" + serial: "0000000xxxxxxxx" + - auth_code: "" + base_license: "PA-VM" + description: "Palo Alto Networks URL Filtering License" + expired: "no" + expires: "March 08, 2023" + feature: "PAN-DB URL Filtering" + issued: "January 13, 2020" + serial: "0000000xxxxxxxx" + - auth_code: "" + base_license: "PA-VM" + description: "GlobalProtect Portal License" + expired: "no" + expires: "Never" + feature: "GlobalProtect Portal" + issued: "March 08, 2017" + serial: "0000000xxxxxxxx" + - auth_code: "" + base_license: "" + description: "Standard VM-100" + expired: "no" + expires: "Never" + feature: "PA-VM" + issued: "March 08, 2017" + serial: "0000000xxxxxxxx" + - auth_code: "" + base_license: "PA-VM" + description: "Threat Prevention" + expired: "no" + expires: "January 13, 2023" + feature: "Threat Prevention" + issued: "January 13, 2020" + serial: "0000000xxxxxxxx" + - auth_code: "abc def" + base_license: "PA-VM" + description: "GlobalProtect Gateway License" + expired: "no" + expires: "March 08, 2023" + feature: "GlobalProtect Gateway" + issued: "January 13, 2020" + serial: "0000000xxxxxxxx" From 5db1e0174e2a66f01956c0ec2432e7f3a019a926 Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Mon, 22 Jul 2024 19:31:18 +0400 Subject: [PATCH 13/60] Add IOS show ip ospf nie det template (#1478) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”> --- ...o_ios_show_ip_ospf_neighbor_detail.textfsm | 40 ++++++++++++++++ ntc_templates/templates/index | 1 + ...cisco_ios_show_ip_ospf_neighbor_detail.raw | 24 ++++++++++ ...cisco_ios_show_ip_ospf_neighbor_detail.yml | 48 +++++++++++++++++++ 4 files changed, 113 insertions(+) create mode 100644 ntc_templates/templates/cisco_ios_show_ip_ospf_neighbor_detail.textfsm create mode 100644 tests/cisco_ios/show_ip_ospf_neighbor_detail/cisco_ios_show_ip_ospf_neighbor_detail.raw create mode 100644 tests/cisco_ios/show_ip_ospf_neighbor_detail/cisco_ios_show_ip_ospf_neighbor_detail.yml diff --git a/ntc_templates/templates/cisco_ios_show_ip_ospf_neighbor_detail.textfsm b/ntc_templates/templates/cisco_ios_show_ip_ospf_neighbor_detail.textfsm new file mode 100644 index 0000000000..0aafc9ff76 --- /dev/null +++ b/ntc_templates/templates/cisco_ios_show_ip_ospf_neighbor_detail.textfsm @@ -0,0 +1,40 @@ +Value NEIGHBOR_ID (\S+) +Value ADDRESS (\S+) +Value AREA (\S+) +Value INTERFACE (\S+) +Value PRIORITY (\d+) +Value STATE (\S+/\s+-|\S+) +Value STATE_CHANGES (\d+) +Value DR (\S+) +Value BDR (\S+) +Value OPTIONS (0[xX][0-9a-fA-F]+) +Value LLS_OPTIONS (.+?(?=,)) +Value LAST_OOB_RESYNC (\d+:\d+:\d+) +Value DEAD_TIME (\d+:\d+:\d+) +Value UP_TIME (\d+:\d+:\d+) +Value RQ_INDEX (\d+/\d+) +Value RQ_LENGTH (\d+) +Value RETRANSMISSION_NUMBER (\d+) +Value FIRST_PACKET (\S+) +Value NEXT_PACKET (\S+) +Value LAST_RETRANSMISSION_SCAN_LENGTH (\d+) +Value MAX_RETRANSMISSION_SCAN_LENGTH (\d+) +Value LAST_RETRANSMISSION_SCAN_TIME (\d+) +Value MAX_RETRANSMISSION_SCAN_TIME (\d+) + +Start + ^\s*Neighbor\s\S+,\sinterface\saddress\s\S+\s*$$ -> Continue.Record + ^\s*Neighbor\s${NEIGHBOR_ID},\sinterface\saddress\s${ADDRESS}\s*$$ + ^\s*In\sthe\sarea\s${AREA}\svia\sinterface\s${INTERFACE}\s*$$ + ^\s*Neighbor\spriority\sis\s${PRIORITY},\sState\sis\s${STATE},\s+${STATE_CHANGES}\sstate\schanges\s*$$ + ^\s*DR\sis\s${DR}\sBDR\sis\s${BDR}\s*$$ + ^\s*Options\sis\s${OPTIONS}\s*$$ + ^\s*LLS\sOptions\sis\s${LLS_OPTIONS},\slast\sOOB-Resync\s${LAST_OOB_RESYNC}\sago\s*$$ + ^\s*Dead\stimer\sdue\sin\s${DEAD_TIME}\s*$$ + ^\s*Neighbor\sis\sup\sfor\s${UP_TIME}\s*$$ + ^\s*Index\s${RQ_INDEX},\sretransmission\squeue\slength\s${RQ_LENGTH},\snumber\sof\sretransmission\s${RETRANSMISSION_NUMBER}\s*$$ + ^\s*First\s${FIRST_PACKET}\sNext\s${NEXT_PACKET}\s*$$ + ^\s*Last\sretransmission\sscan\slength\sis\s${LAST_RETRANSMISSION_SCAN_LENGTH},\smaximum\sis\s${MAX_RETRANSMISSION_SCAN_LENGTH}\s*$$ + ^\s*Last\sretransmission\sscan\stime\sis\s${LAST_RETRANSMISSION_SCAN_TIME}\smsec,\smaximum\sis\s${MAX_RETRANSMISSION_SCAN_TIME}\smsec\s*$$ + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index c6ddfb85f5..27fc7ee6a9 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -238,6 +238,7 @@ cisco_ios_show_crypto_pki_certificates.textfsm, .*, cisco_ios, sh[[ow]] cry[[pto cisco_ios_show_environment_temperature.textfsm, .*, cisco_ios, sh[[ow]] envi[[ronment]] t[[emperature]] cisco_ios_show_ip_ospf_database_router.textfsm, .*, cisco_ios, sh[[ow]] ip ospf data[[base]] r[[outer]] cisco_ios_show_ip_ospf_interface_brief.textfsm, .*, cisco_ios, sh[[ow]] ip ospf int[[erface]] +cisco_ios_show_ip_ospf_neighbor_detail.textfsm, .*, cisco_ios, sh[[ow]] ip ospf nei[[ghbors]] d[[etail]] cisco_ios_show_processes_memory_sorted.textfsm, .*, cisco_ios, sh[[ow]] pro[[cesses]] mem[[ory]] so[[rted]] cisco_ios_show_crypto_ipsec_sa_detail.textfsm, .*, cisco_ios, sh[[ow]] cry[[pto]] ip[[sec]] sa d[[etail]] cisco_ios_show_interfaces_description.textfsm, .*, cisco_ios, sh[[ow]] int[[erfaces]](?: (?:\S+))? des[[cription]] diff --git a/tests/cisco_ios/show_ip_ospf_neighbor_detail/cisco_ios_show_ip_ospf_neighbor_detail.raw b/tests/cisco_ios/show_ip_ospf_neighbor_detail/cisco_ios_show_ip_ospf_neighbor_detail.raw new file mode 100644 index 0000000000..b9b3c3bb5a --- /dev/null +++ b/tests/cisco_ios/show_ip_ospf_neighbor_detail/cisco_ios_show_ip_ospf_neighbor_detail.raw @@ -0,0 +1,24 @@ +Neighbor 192.168.5.2, interface address 10.225.200.28 + In the area 0 via interface GigabitEthernet1/0/0 + Neighbor priority is 1, State is FULL, 6 state changes + DR is 10.225.200.28 BDR is 10.225.200.30 + Options is 0x42 + LLS Options is 0x1 (LR), last OOB-Resync 00:03:08 ago + Dead timer due in 00:00:36 + Neighbor is up for 00:09:46 + Index 1/1, retransmission queue length 0, number of retransmission 1 + First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0) + Last retransmission scan length is 1, maximum is 1 + Last retransmission scan time is 0 msec, maximum is 0 msec + +Neighbor 10.0.0.2, interface address 10.0.0.2 + In the area 0 via interface FastEthernet0/0 + Neighbor priority is 1, State is FULL, 6 state changes + DR is 10.0.0.1 BDR is 10.0.0.2 + Options is 0x52 + Dead timer due in 00:00:39 + Neighbor is up for 00:03:15 + Index 1/1, retransmission queue length 0, number of retransmission 1 + First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0) + Last retransmission scan length is 1, maximum is 1 + Last retransmission scan time is 0 msec, maximum is 0 msec diff --git a/tests/cisco_ios/show_ip_ospf_neighbor_detail/cisco_ios_show_ip_ospf_neighbor_detail.yml b/tests/cisco_ios/show_ip_ospf_neighbor_detail/cisco_ios_show_ip_ospf_neighbor_detail.yml new file mode 100644 index 0000000000..3e99be3b80 --- /dev/null +++ b/tests/cisco_ios/show_ip_ospf_neighbor_detail/cisco_ios_show_ip_ospf_neighbor_detail.yml @@ -0,0 +1,48 @@ +--- +parsed_sample: + - address: "10.225.200.28" + area: "0" + bdr: "10.225.200.30" + dead_time: "00:00:36" + dr: "10.225.200.28" + first_packet: "0x0(0)/0x0(0)" + interface: "GigabitEthernet1/0/0" + last_oob_resync: "00:03:08" + last_retransmission_scan_length: "1" + last_retransmission_scan_time: "0" + lls_options: "0x1 (LR)" + max_retransmission_scan_length: "1" + max_retransmission_scan_time: "0" + neighbor_id: "192.168.5.2" + next_packet: "0x0(0)/0x0(0)" + options: "0x42" + priority: "1" + retransmission_number: "1" + rq_index: "1/1" + rq_length: "0" + state: "FULL" + state_changes: "6" + up_time: "00:09:46" + - address: "10.0.0.2" + area: "0" + bdr: "10.0.0.2" + dead_time: "00:00:39" + dr: "10.0.0.1" + first_packet: "0x0(0)/0x0(0)" + interface: "FastEthernet0/0" + last_oob_resync: "" + last_retransmission_scan_length: "1" + last_retransmission_scan_time: "0" + lls_options: "" + max_retransmission_scan_length: "1" + max_retransmission_scan_time: "0" + neighbor_id: "10.0.0.2" + next_packet: "0x0(0)/0x0(0)" + options: "0x52" + priority: "1" + retransmission_number: "1" + rq_index: "1/1" + rq_length: "0" + state: "FULL" + state_changes: "6" + up_time: "00:03:15" From e227c97778a67d0117b227bbb91bba91ac4f9fe7 Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Mon, 22 Jul 2024 19:32:17 +0400 Subject: [PATCH 14/60] Add fortinet exec time template (#1479) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”> --- ntc_templates/templates/fortinet_execute_time.textfsm | 10 ++++++++++ ntc_templates/templates/index | 1 + tests/fortinet/execute_time/fortinet_execute_time.raw | 2 ++ tests/fortinet/execute_time/fortinet_execute_time.yml | 6 ++++++ 4 files changed, 19 insertions(+) create mode 100644 ntc_templates/templates/fortinet_execute_time.textfsm create mode 100644 tests/fortinet/execute_time/fortinet_execute_time.raw create mode 100644 tests/fortinet/execute_time/fortinet_execute_time.yml diff --git a/ntc_templates/templates/fortinet_execute_time.textfsm b/ntc_templates/templates/fortinet_execute_time.textfsm new file mode 100644 index 0000000000..59c249bcdb --- /dev/null +++ b/ntc_templates/templates/fortinet_execute_time.textfsm @@ -0,0 +1,10 @@ +Value HOUR (\d{2}) +Value MINUTE (\d{2}) +Value SECOND (\d{2}) +Value LAST_NTP_SYNC (.*?) + +Start + ^\s*current\s+time\s+is:\s+${HOUR}:${MINUTE}:${SECOND}\s*$$ + ^\s*last\s+ntp\s+sync:\s+${LAST_NTP_SYNC}\s*$$ -> Record + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 27fc7ee6a9..5bdbbbb443 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -582,6 +582,7 @@ fortinet_get_system_ha_status.textfsm, .*, fortinet, g[[et]] sy[[stem]] ha s[[ta fortinet_get_system_interface.textfsm, .*, fortinet, g[[et]] sy[[stem]] in[[terface]] fortinet_get_system_status.textfsm, .*, fortinet, g[[et]] sy[[stem]] stat[[us]] fortinet_get_system_arp.textfsm, .*, fortinet, g[[et]] sy[[stem]] arp +fortinet_execute_time.textfsm, .*, fortinet, exec[[ute]] ti[[me]] hp_comware_display_lldp_neighbor-information_verbose.textfsm, .*, hp_comware, di[[splay]] ll[[dp]] n[[eighbor-information]] v[[erbose]] hp_comware_display_lldp_neighbor-information_list.textfsm, .*, hp_comware, di[[splay]] ll[[dp]] n[[eighbor-information]] l[[ist]] diff --git a/tests/fortinet/execute_time/fortinet_execute_time.raw b/tests/fortinet/execute_time/fortinet_execute_time.raw new file mode 100644 index 0000000000..e06a053021 --- /dev/null +++ b/tests/fortinet/execute_time/fortinet_execute_time.raw @@ -0,0 +1,2 @@ +current time is: 21:05:34 +last ntp sync: never diff --git a/tests/fortinet/execute_time/fortinet_execute_time.yml b/tests/fortinet/execute_time/fortinet_execute_time.yml new file mode 100644 index 0000000000..5a738a3264 --- /dev/null +++ b/tests/fortinet/execute_time/fortinet_execute_time.yml @@ -0,0 +1,6 @@ +--- +parsed_sample: + - hour: "21" + last_ntp_sync: "never" + minute: "05" + second: "34" From 2f09a144bfddb18005fc538688b4aa1c7536f91a Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Mon, 22 Jul 2024 19:34:01 +0400 Subject: [PATCH 15/60] Add Fortinet get hardware nic template (#1482) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”> --- .../templates/fortinet_get_hardware_nic.textfsm | 7 +++++++ ntc_templates/templates/index | 1 + .../get_hardware_nic/fortinet_get_hardware_nic.raw | 9 +++++++++ .../get_hardware_nic/fortinet_get_hardware_nic.yml | 10 ++++++++++ 4 files changed, 27 insertions(+) create mode 100644 ntc_templates/templates/fortinet_get_hardware_nic.textfsm create mode 100644 tests/fortinet/get_hardware_nic/fortinet_get_hardware_nic.raw create mode 100644 tests/fortinet/get_hardware_nic/fortinet_get_hardware_nic.yml diff --git a/ntc_templates/templates/fortinet_get_hardware_nic.textfsm b/ntc_templates/templates/fortinet_get_hardware_nic.textfsm new file mode 100644 index 0000000000..7ff2e66f8b --- /dev/null +++ b/ntc_templates/templates/fortinet_get_hardware_nic.textfsm @@ -0,0 +1,7 @@ +Value NIC (\S+) + +Start + ^The\s+following\s+NICs\s+are\s+available:\s*$$ + ^\s*${NIC}\s*$$ -> Record + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 5bdbbbb443..28563697f7 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -581,6 +581,7 @@ fortinet_get_router_info_ospf_status.textfsm, .*, fortinet, g[[et]] r[[outer]] i fortinet_get_system_ha_status.textfsm, .*, fortinet, g[[et]] sy[[stem]] ha s[[tatus]] fortinet_get_system_interface.textfsm, .*, fortinet, g[[et]] sy[[stem]] in[[terface]] fortinet_get_system_status.textfsm, .*, fortinet, g[[et]] sy[[stem]] stat[[us]] +fortinet_get_hardware_nic.textfsm, .*, fortinet, g[[et]] hard[[ware]] n[[ic]] fortinet_get_system_arp.textfsm, .*, fortinet, g[[et]] sy[[stem]] arp fortinet_execute_time.textfsm, .*, fortinet, exec[[ute]] ti[[me]] diff --git a/tests/fortinet/get_hardware_nic/fortinet_get_hardware_nic.raw b/tests/fortinet/get_hardware_nic/fortinet_get_hardware_nic.raw new file mode 100644 index 0000000000..4cce3ff9ba --- /dev/null +++ b/tests/fortinet/get_hardware_nic/fortinet_get_hardware_nic.raw @@ -0,0 +1,9 @@ +The following NICs are available: + a + lan + lan1 + lan2 + lan3 + npu0_vlink0 + npu0_vlink1 + wan diff --git a/tests/fortinet/get_hardware_nic/fortinet_get_hardware_nic.yml b/tests/fortinet/get_hardware_nic/fortinet_get_hardware_nic.yml new file mode 100644 index 0000000000..a0591496f2 --- /dev/null +++ b/tests/fortinet/get_hardware_nic/fortinet_get_hardware_nic.yml @@ -0,0 +1,10 @@ +--- +parsed_sample: + - nic: "a" + - nic: "lan" + - nic: "lan1" + - nic: "lan2" + - nic: "lan3" + - nic: "npu0_vlink0" + - nic: "npu0_vlink1" + - nic: "wan" From 355b09a26b9b6eae4441063cd80f6021614740f8 Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Mon, 22 Jul 2024 19:39:32 +0400 Subject: [PATCH 16/60] Add Fortinet exec ping template (#1480) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”> --- .../templates/fortinet_execute_ping.textfsm | 21 ++++++++++ ntc_templates/templates/index | 1 + .../execute_ping/fortinet_execute_ping.raw | 10 +++++ .../execute_ping/fortinet_execute_ping.yml | 39 +++++++++++++++++++ .../fortinet_execute_ping_unreachable.raw | 4 ++ .../fortinet_execute_ping_unreachable.yml | 14 +++++++ 6 files changed, 89 insertions(+) create mode 100644 ntc_templates/templates/fortinet_execute_ping.textfsm create mode 100644 tests/fortinet/execute_ping/fortinet_execute_ping.raw create mode 100644 tests/fortinet/execute_ping/fortinet_execute_ping.yml create mode 100644 tests/fortinet/execute_ping/fortinet_execute_ping_unreachable.raw create mode 100644 tests/fortinet/execute_ping/fortinet_execute_ping_unreachable.yml diff --git a/ntc_templates/templates/fortinet_execute_ping.textfsm b/ntc_templates/templates/fortinet_execute_ping.textfsm new file mode 100644 index 0000000000..fc8ffaf7b0 --- /dev/null +++ b/ntc_templates/templates/fortinet_execute_ping.textfsm @@ -0,0 +1,21 @@ +Value List SENT_PACKET_SIZE (\d+) +Value List SENT_PACKET_ADDRESS (\S+) +Value List SENT_PACKET_ICMP_SEQ (\d+) +Value List SENT_PACKET_TTL (\d+) +Value List SENT_PACKET_TIME (\d+(?:\.\d+)?) +Value ADDRESS (\S+) +Value TRANSMITTED (\d+) +Value RECEIVED (\d+) +Value PACKET_LOSS (\d+) +Value MIN_RTT (\d+(?:\.\d+)?) +Value AVG_RTT (\d+(?:\.\d+)?) +Value MAX_RTT (\d+(?:\.\d+)?) + +Start + ^\s*PING.*\s*$$ + ^\s*${SENT_PACKET_SIZE}\s+bytes\s+from\s+${SENT_PACKET_ADDRESS}:\s+icmp_seq=${SENT_PACKET_ICMP_SEQ}\s+ttl=${SENT_PACKET_TTL}\s+time=${SENT_PACKET_TIME}\s+.*$$ + ^\s*---\s+${ADDRESS}\s+ping\s+statistics\s+---\s*$$ + ^\s*${TRANSMITTED}\s+packets\s+transmitted\,\s+${RECEIVED}\s+packets\s+received\,\s+${PACKET_LOSS}\%\s+packet\s+loss\s*$$ + ^\s*round-trip\s+min/avg/max\s+=\s+${MIN_RTT}/${AVG_RTT}/${MAX_RTT}\s+ms\s*$$ + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 28563697f7..f7293099d6 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -583,6 +583,7 @@ fortinet_get_system_interface.textfsm, .*, fortinet, g[[et]] sy[[stem]] in[[terf fortinet_get_system_status.textfsm, .*, fortinet, g[[et]] sy[[stem]] stat[[us]] fortinet_get_hardware_nic.textfsm, .*, fortinet, g[[et]] hard[[ware]] n[[ic]] fortinet_get_system_arp.textfsm, .*, fortinet, g[[et]] sy[[stem]] arp +fortinet_execute_ping.textfsm, .*, fortinet, exec[[ute]] ping fortinet_execute_time.textfsm, .*, fortinet, exec[[ute]] ti[[me]] hp_comware_display_lldp_neighbor-information_verbose.textfsm, .*, hp_comware, di[[splay]] ll[[dp]] n[[eighbor-information]] v[[erbose]] diff --git a/tests/fortinet/execute_ping/fortinet_execute_ping.raw b/tests/fortinet/execute_ping/fortinet_execute_ping.raw new file mode 100644 index 0000000000..b38d110816 --- /dev/null +++ b/tests/fortinet/execute_ping/fortinet_execute_ping.raw @@ -0,0 +1,10 @@ +PING 8.8.8.8 (8.8.8.8): 56 data bytes +64 bytes from 8.8.8.8: icmp_seq=0 ttl=110 time=25.9 ms +64 bytes from 8.8.8.8: icmp_seq=1 ttl=110 time=25.8 ms +64 bytes from 8.8.8.8: icmp_seq=2 ttl=110 time=25.8 ms +64 bytes from 8.8.8.8: icmp_seq=3 ttl=110 time=25.8 ms +64 bytes from 8.8.8.8: icmp_seq=4 ttl=110 time=25.8 ms + +--- 8.8.8.8 ping statistics --- +5 packets transmitted, 5 packets received, 0% packet loss +round-trip min/avg/max = 25.8/25.8/25.9 ms diff --git a/tests/fortinet/execute_ping/fortinet_execute_ping.yml b/tests/fortinet/execute_ping/fortinet_execute_ping.yml new file mode 100644 index 0000000000..9df93df9e7 --- /dev/null +++ b/tests/fortinet/execute_ping/fortinet_execute_ping.yml @@ -0,0 +1,39 @@ +--- +parsed_sample: + - address: "8.8.8.8" + avg_rtt: "25.8" + max_rtt: "25.9" + min_rtt: "25.8" + packet_loss: "0" + received: "5" + sent_packet_address: + - "8.8.8.8" + - "8.8.8.8" + - "8.8.8.8" + - "8.8.8.8" + - "8.8.8.8" + sent_packet_icmp_seq: + - "0" + - "1" + - "2" + - "3" + - "4" + sent_packet_size: + - "64" + - "64" + - "64" + - "64" + - "64" + sent_packet_time: + - "25.9" + - "25.8" + - "25.8" + - "25.8" + - "25.8" + sent_packet_ttl: + - "110" + - "110" + - "110" + - "110" + - "110" + transmitted: "5" diff --git a/tests/fortinet/execute_ping/fortinet_execute_ping_unreachable.raw b/tests/fortinet/execute_ping/fortinet_execute_ping_unreachable.raw new file mode 100644 index 0000000000..fee02ef41e --- /dev/null +++ b/tests/fortinet/execute_ping/fortinet_execute_ping_unreachable.raw @@ -0,0 +1,4 @@ +PING 8.87.8.8 (8.87.8.8): 56 data bytes + +--- 8.87.8.8 ping statistics --- +5 packets transmitted, 0 packets received, 100% packet loss diff --git a/tests/fortinet/execute_ping/fortinet_execute_ping_unreachable.yml b/tests/fortinet/execute_ping/fortinet_execute_ping_unreachable.yml new file mode 100644 index 0000000000..b1e08289c0 --- /dev/null +++ b/tests/fortinet/execute_ping/fortinet_execute_ping_unreachable.yml @@ -0,0 +1,14 @@ +--- +parsed_sample: + - address: "8.87.8.8" + avg_rtt: "" + max_rtt: "" + min_rtt: "" + packet_loss: "100" + received: "0" + sent_packet_address: [] + sent_packet_icmp_seq: [] + sent_packet_size: [] + sent_packet_time: [] + sent_packet_ttl: [] + transmitted: "5" From 226fe153c4c02fa461b317404fd6b905ab064cb0 Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Mon, 22 Jul 2024 19:48:30 +0400 Subject: [PATCH 17/60] Add Fortinet exec data template (#1481) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”> --- ntc_templates/templates/fortinet_execute_date.textfsm | 8 ++++++++ ntc_templates/templates/index | 1 + tests/fortinet/execute_date/fortinet_execute_date.raw | 1 + tests/fortinet/execute_date/fortinet_execute_date.yml | 5 +++++ 4 files changed, 15 insertions(+) create mode 100644 ntc_templates/templates/fortinet_execute_date.textfsm create mode 100644 tests/fortinet/execute_date/fortinet_execute_date.raw create mode 100644 tests/fortinet/execute_date/fortinet_execute_date.yml diff --git a/ntc_templates/templates/fortinet_execute_date.textfsm b/ntc_templates/templates/fortinet_execute_date.textfsm new file mode 100644 index 0000000000..4563084e05 --- /dev/null +++ b/ntc_templates/templates/fortinet_execute_date.textfsm @@ -0,0 +1,8 @@ +Value YEAR (\d{4}) +Value MONTH (\d{2}) +Value DAY (\d{2}) + +Start + ^\s*current\s+date\s+is:\s+${YEAR}-${MONTH}-${DAY}\s*$$ -> Record + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index f7293099d6..e1fcd900a4 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -583,6 +583,7 @@ fortinet_get_system_interface.textfsm, .*, fortinet, g[[et]] sy[[stem]] in[[terf fortinet_get_system_status.textfsm, .*, fortinet, g[[et]] sy[[stem]] stat[[us]] fortinet_get_hardware_nic.textfsm, .*, fortinet, g[[et]] hard[[ware]] n[[ic]] fortinet_get_system_arp.textfsm, .*, fortinet, g[[et]] sy[[stem]] arp +fortinet_execute_date.textfsm, .*, fortinet, exec[[ute]] da[[te]] fortinet_execute_ping.textfsm, .*, fortinet, exec[[ute]] ping fortinet_execute_time.textfsm, .*, fortinet, exec[[ute]] ti[[me]] diff --git a/tests/fortinet/execute_date/fortinet_execute_date.raw b/tests/fortinet/execute_date/fortinet_execute_date.raw new file mode 100644 index 0000000000..ab89397aee --- /dev/null +++ b/tests/fortinet/execute_date/fortinet_execute_date.raw @@ -0,0 +1 @@ +current date is: 2023-08-07 diff --git a/tests/fortinet/execute_date/fortinet_execute_date.yml b/tests/fortinet/execute_date/fortinet_execute_date.yml new file mode 100644 index 0000000000..e68ea3603f --- /dev/null +++ b/tests/fortinet/execute_date/fortinet_execute_date.yml @@ -0,0 +1,5 @@ +--- +parsed_sample: + - year: "2023" + month: "08" + day: "07" From 4d0d66ff17770afb63a954d62975eeeeb5783cbc Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Mon, 22 Jul 2024 20:01:22 +0400 Subject: [PATCH 18/60] Add Fortinet diagnos sys top template (#1483) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”> --- .../fortinet_diagnose_sys_top.textfsm | 27 ++++++ ntc_templates/templates/index | 1 + .../fortinet_diagnose_sys_top.raw | 6 ++ .../fortinet_diagnose_sys_top.yml | 82 +++++++++++++++++++ 4 files changed, 116 insertions(+) create mode 100644 ntc_templates/templates/fortinet_diagnose_sys_top.textfsm create mode 100644 tests/fortinet/diagnose_sys_top/fortinet_diagnose_sys_top.raw create mode 100644 tests/fortinet/diagnose_sys_top/fortinet_diagnose_sys_top.yml diff --git a/ntc_templates/templates/fortinet_diagnose_sys_top.textfsm b/ntc_templates/templates/fortinet_diagnose_sys_top.textfsm new file mode 100644 index 0000000000..f9c7926d0d --- /dev/null +++ b/ntc_templates/templates/fortinet_diagnose_sys_top.textfsm @@ -0,0 +1,27 @@ +Value UPTIME_DAYS (\d+) +Value UPTIME_HOURS (\d+) +Value UPTIME_MINUTES (\d+) +Value USERSPACE_APP_CPU (\d+) +Value N_CPU (\d+) +Value SYSTEM_APP_CPU (\d+) +Value IDLE_CPU (\d+) +Value WA_CPU (\d+) +Value HI_CPU (\d+) +Value SI_CPU (\d+) +Value ST_CPU (\d+) +Value TOTAL_MEMORY (\d+) +Value FREE_MEMORY (\d+) +Value TOTAL_SHARED_MEMORY_PAGES (\d+) +Value PROCESS_NAME (\S+) +Value PROCESS_ID (\d+) +Value PROCESS_STATE ((R|S|Z|D)(\s+(<|N))?) +Value PROCESS_CPU_USAGE (\d+\.\d+) +Value PROCESS_MEMORY_USAGE (\d+\.\d+) +Value PROCESS_CPU_CORE (\d+) + +Start + ^\s*Run\s+Time:\s+${UPTIME_DAYS}\s+days,\s+${UPTIME_HOURS}\s+hours\s+and\s+${UPTIME_MINUTES}\s+minutes\s*$$ + ^\s*${USERSPACE_APP_CPU}U(,\s+${N_CPU}N)?,\s+${SYSTEM_APP_CPU}S,\s+${IDLE_CPU}I(,\s+${WA_CPU}WA)?(,\s+${HI_CPU}HI)?(,\s+${SI_CPU}SI)?(,\s+${ST_CPU}ST)?;\s+${TOTAL_MEMORY}T,\s+${FREE_MEMORY}F(,\s+${TOTAL_SHARED_MEMORY_PAGES}KF)?\s*$$ + ^\s*${PROCESS_NAME}\s+${PROCESS_ID}\s+${PROCESS_STATE}\s+${PROCESS_CPU_USAGE}\s+${PROCESS_MEMORY_USAGE}(\s+${PROCESS_CPU_CORE})?\s*$$ -> Record + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index e1fcd900a4..85780eaf04 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -581,6 +581,7 @@ fortinet_get_router_info_ospf_status.textfsm, .*, fortinet, g[[et]] r[[outer]] i fortinet_get_system_ha_status.textfsm, .*, fortinet, g[[et]] sy[[stem]] ha s[[tatus]] fortinet_get_system_interface.textfsm, .*, fortinet, g[[et]] sy[[stem]] in[[terface]] fortinet_get_system_status.textfsm, .*, fortinet, g[[et]] sy[[stem]] stat[[us]] +fortinet_diagnose_sys_top.textfsm, .*, fortinet, d[[iagnose]] sy[[s]] top fortinet_get_hardware_nic.textfsm, .*, fortinet, g[[et]] hard[[ware]] n[[ic]] fortinet_get_system_arp.textfsm, .*, fortinet, g[[et]] sy[[stem]] arp fortinet_execute_date.textfsm, .*, fortinet, exec[[ute]] da[[te]] diff --git a/tests/fortinet/diagnose_sys_top/fortinet_diagnose_sys_top.raw b/tests/fortinet/diagnose_sys_top/fortinet_diagnose_sys_top.raw new file mode 100644 index 0000000000..5965e39365 --- /dev/null +++ b/tests/fortinet/diagnose_sys_top/fortinet_diagnose_sys_top.raw @@ -0,0 +1,6 @@ +Run Time: 12 days, 3 hours and 4 minutes +0U, 0N, 0S, 100I, 0WA, 0HI, 0SI, 0ST; 1919T, 1214F + newcli 29806 R 0.1 0.5 + sshd 29800 S 0.1 0.4 + ipshelper 199 S < 0.0 1.8 + httpsd 211 S 0.0 1.5 diff --git a/tests/fortinet/diagnose_sys_top/fortinet_diagnose_sys_top.yml b/tests/fortinet/diagnose_sys_top/fortinet_diagnose_sys_top.yml new file mode 100644 index 0000000000..db15a41c30 --- /dev/null +++ b/tests/fortinet/diagnose_sys_top/fortinet_diagnose_sys_top.yml @@ -0,0 +1,82 @@ +--- +parsed_sample: + - uptime_days: "12" + uptime_hours: "3" + uptime_minutes: "4" + userspace_app_cpu: "0" + n_cpu: "0" + system_app_cpu: "0" + idle_cpu: "100" + wa_cpu: "0" + hi_cpu: "0" + si_cpu: "0" + st_cpu: "0" + total_memory: "1919" + free_memory: "1214" + total_shared_memory_pages: "" + process_name: "newcli" + process_id: "29806" + process_state: "R" + process_cpu_usage: "0.1" + process_memory_usage: "0.5" + process_cpu_core: "" + - uptime_days: "" + uptime_hours: "" + uptime_minutes: "" + userspace_app_cpu: "" + n_cpu: "" + system_app_cpu: "" + idle_cpu: "" + wa_cpu: "" + hi_cpu: "" + si_cpu: "" + st_cpu: "" + total_memory: "" + free_memory: "" + total_shared_memory_pages: "" + process_name: "sshd" + process_id: "29800" + process_state: "S" + process_cpu_usage: "0.1" + process_memory_usage: "0.4" + process_cpu_core: "" + - uptime_days: "" + uptime_hours: "" + uptime_minutes: "" + userspace_app_cpu: "" + n_cpu: "" + system_app_cpu: "" + idle_cpu: "" + wa_cpu: "" + hi_cpu: "" + si_cpu: "" + st_cpu: "" + total_memory: "" + free_memory: "" + total_shared_memory_pages: "" + process_name: "ipshelper" + process_id: "199" + process_state: "S <" + process_cpu_usage: "0.0" + process_memory_usage: "1.8" + process_cpu_core: "" + - uptime_days: "" + uptime_hours: "" + uptime_minutes: "" + userspace_app_cpu: "" + n_cpu: "" + system_app_cpu: "" + idle_cpu: "" + wa_cpu: "" + hi_cpu: "" + si_cpu: "" + st_cpu: "" + total_memory: "" + free_memory: "" + total_shared_memory_pages: "" + process_name: "httpsd" + process_id: "211" + process_state: "S" + process_cpu_usage: "0.0" + process_memory_usage: "1.5" + process_cpu_core: "" From 48d3d031912dcffa9282b8876d8700d06d6b1bb4 Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Mon, 22 Jul 2024 20:01:48 +0400 Subject: [PATCH 19/60] Add Fortinet fnsysctl ifconfig template (#1484) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”> --- .../fortinet_fnsysctl_ifconfig.textfsm | 37 +++ ntc_templates/templates/index | 1 + .../fortinet_fnsysctl_ifconfig.raw | 84 ++++++ .../fortinet_fnsysctl_ifconfig.yml | 277 ++++++++++++++++++ 4 files changed, 399 insertions(+) create mode 100644 ntc_templates/templates/fortinet_fnsysctl_ifconfig.textfsm create mode 100644 tests/fortinet/fnsysctl_ifconfig/fortinet_fnsysctl_ifconfig.raw create mode 100644 tests/fortinet/fnsysctl_ifconfig/fortinet_fnsysctl_ifconfig.yml diff --git a/ntc_templates/templates/fortinet_fnsysctl_ifconfig.textfsm b/ntc_templates/templates/fortinet_fnsysctl_ifconfig.textfsm new file mode 100644 index 0000000000..c601476824 --- /dev/null +++ b/ntc_templates/templates/fortinet_fnsysctl_ifconfig.textfsm @@ -0,0 +1,37 @@ +Value NIC (.*?) +Value LINK_ENCAP (.*?) +Value HARDWARE_ADDRESS ([a-zA-Z0-9]{2}(:[a-zA-Z0-9]{2}){5}) +Value IP_ADDRESS (\S+) +Value BCAST (\S+) +Value MASK (\S+) +Value LINK_LOCAL6 (\S+) +Value LINK_LOCAL6_PREFIXLEN (\d+) +Value MULTICAST (.*(? Record + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 85780eaf04..fb09cb4ef8 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -580,6 +580,7 @@ fortinet_get_router_info_bgp_summary.textfsm, .*, fortinet, g[[et]] r[[outer]] i fortinet_get_router_info_ospf_status.textfsm, .*, fortinet, g[[et]] r[[outer]] info o[[spf]] s[[tatus]] fortinet_get_system_ha_status.textfsm, .*, fortinet, g[[et]] sy[[stem]] ha s[[tatus]] fortinet_get_system_interface.textfsm, .*, fortinet, g[[et]] sy[[stem]] in[[terface]] +fortinet_fnsysctl_ifconfig.textfsm, .*, fortinet, fnsysctl ifconfig fortinet_get_system_status.textfsm, .*, fortinet, g[[et]] sy[[stem]] stat[[us]] fortinet_diagnose_sys_top.textfsm, .*, fortinet, d[[iagnose]] sy[[s]] top fortinet_get_hardware_nic.textfsm, .*, fortinet, g[[et]] hard[[ware]] n[[ic]] diff --git a/tests/fortinet/fnsysctl_ifconfig/fortinet_fnsysctl_ifconfig.raw b/tests/fortinet/fnsysctl_ifconfig/fortinet_fnsysctl_ifconfig.raw new file mode 100644 index 0000000000..079240d015 --- /dev/null +++ b/tests/fortinet/fnsysctl_ifconfig/fortinet_fnsysctl_ifconfig.raw @@ -0,0 +1,84 @@ +nturbo_rx Link encap:Ethernet + UP BROADCAST MULTICAST MTU:1500 Metric:1 + RX packets:0 errors:0 dropped:0 overruns:0 frame:0 + TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 + collisions:0 txqueuelen:1000 + RX bytes:0 (0 Bytes) TX bytes:0 (0 Bytes) + +wan Link encap:Ethernet HWaddr 12:34:56:78:90:AA + inet addr:1.2.3.4 Bcast:1.2.3.5 Mask:255.255.255.252 + UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 + RX packets:7513822 errors:0 dropped:0 overruns:0 frame:0 + TX packets:12533342 errors:0 dropped:0 overruns:0 carrier:0 + collisions:0 txqueuelen:1000 + RX bytes:1116754241 (1.0 GB) TX bytes:2218288063 (2.1 GB) + +lan1 Link encap:Ethernet HWaddr 12:34:56:78:90:AB + UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 + RX packets:3336406 errors:0 dropped:0 overruns:0 frame:0 + TX packets:3382703 errors:0 dropped:0 overruns:0 carrier:0 + collisions:0 txqueuelen:1000 + RX bytes:258477533 (246.5 MB) TX bytes:365165072 (348.2 MB) + +ssl.root Link encap:Unknown + UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 + RX packets:0 errors:0 dropped:0 overruns:0 frame:0 + TX packets:0 errors:0 dropped:2 overruns:0 carrier:0 + collisions:0 txqueuelen:0 + RX bytes:0 (0 Bytes) TX bytes:0 (0 Bytes) + +Loopback772 Link encap:Unknown + inet addr:127.0.0.1 Bcast:0.0.0.0 Mask:255.0.0.0 + UP BROADCAST LOOPBACK RUNNING NOARP MULTICAST MTU:1500 Metric:1 + RX packets:0 errors:0 dropped:0 overruns:0 frame:0 + TX packets:2 errors:0 dropped:0 overruns:0 carrier:0 + collisions:0 txqueuelen:0 + RX bytes:0 (0 Bytes) TX bytes:152 (152 Bytes) + +lan Link encap:Ethernet HWaddr 12:34:56:78:90:AC + inet addr:10.152.1.230 Bcast:10.152.1.231 Mask:255.255.255.252 + UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 + RX packets:1695331 errors:0 dropped:0 overruns:0 frame:0 + TX packets:2829487 errors:0 dropped:0 overruns:0 carrier:0 + collisions:0 txqueuelen:1000 + RX bytes:154509025 (147.4 MB) TX bytes:320990192 (306.1 MB) + +Tu-Hub01-Main Link encap:Unknown + inet addr:10.149.0.69 Mask:255.255.0.0 + UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1438 Metric:1 + RX packets:2669 errors:0 dropped:0 overruns:0 frame:0 + TX packets:64643 errors:0 dropped:0 overruns:0 carrier:0 + collisions:0 txqueuelen:0 + RX bytes:919078 (897.5 KB) TX bytes:5464602 (5.2 MB) + +Tu-Rsnnc-Main Link encap:Unknown HWaddr 12:34:56:78:90:AD + inet addr:192.168.64.10 Mask:255.255.255.252 + link-local6: fe80::200:aaaa:5f4f:54f4 prefixlen 64 + UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1476 Metric:1 + RX packets:121755 errors:0 dropped:0 overruns:0 frame:0 + TX packets:1 errors:0 dropped:0 overruns:0 carrier:0 + collisions:0 txqueuelen:0 + RX bytes:8018365 (7.6 MB) TX bytes:84 (84 Bytes) + +Vlan1 Link encap:Ethernet HWaddr 12:34:56:78:90:AE + inet addr:10.100.105.1 Bcast:10.100.105.31 Mask:255.255.255.224 + UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 + RX packets:69882 errors:0 dropped:0 overruns:0 frame:0 + TX packets:65 errors:0 dropped:0 overruns:0 carrier:0 + collisions:0 txqueuelen:0 + RX bytes:10988958 (10.5 MB) TX bytes:3128 (3.1 KB) + +port_ha Link encap:Ethernet HWaddr 12:34:56:78:90:AF + UP BROADCAST MULTICAST MTU:1496 Metric:1 + RX packets:0 errors:0 dropped:0 overruns:0 frame:0 + TX packets:0 errors:0 dropped:1 overruns:0 carrier:0 + collisions:0 txqueuelen:1000 + RX bytes:0 (0 Bytes) TX bytes:0 (0 Bytes) + +vsys_fgfm Link encap:Local Loopback + inet addr:127.0.0.1 Mask:255.0.0.0 + UP LOOPBACK RUNNING MTU:16436 Metric:1 + RX packets:0 errors:0 dropped:0 overruns:0 frame:0 + TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 + collisions:0 txqueuelen:0 + RX bytes:0 (0 Bytes) TX bytes:0 (0 Bytes) diff --git a/tests/fortinet/fnsysctl_ifconfig/fortinet_fnsysctl_ifconfig.yml b/tests/fortinet/fnsysctl_ifconfig/fortinet_fnsysctl_ifconfig.yml new file mode 100644 index 0000000000..3bc2fafb90 --- /dev/null +++ b/tests/fortinet/fnsysctl_ifconfig/fortinet_fnsysctl_ifconfig.yml @@ -0,0 +1,277 @@ +--- +parsed_sample: + - bcast: "" + collisions: "0" + hardware_address: "" + ip_address: "" + link_encap: "Ethernet" + link_local6: "" + link_local6_prefixlen: "" + mask: "" + metric: "1" + mtu: "1500" + multicast: "UP BROADCAST MULTICAST" + nic: "nturbo_rx" + rx_bytes: "0" + rx_dropped: "0" + rx_errors: "0" + rx_frame: "0" + rx_overruns: "0" + rx_packets: "0" + tx_bytes: "0" + tx_carrier: "0" + tx_dropped: "0" + tx_errors: "0" + tx_overruns: "0" + tx_packets: "0" + tx_queue_len: "1000" + - bcast: "1.2.3.5" + collisions: "0" + hardware_address: "12:34:56:78:90:AA" + ip_address: "1.2.3.4" + link_encap: "Ethernet" + link_local6: "" + link_local6_prefixlen: "" + mask: "255.255.255.252" + metric: "1" + mtu: "1500" + multicast: "UP BROADCAST RUNNING MULTICAST" + nic: "wan" + rx_bytes: "1116754241" + rx_dropped: "0" + rx_errors: "0" + rx_frame: "0" + rx_overruns: "0" + rx_packets: "7513822" + tx_bytes: "2218288063" + tx_carrier: "0" + tx_dropped: "0" + tx_errors: "0" + tx_overruns: "0" + tx_packets: "12533342" + tx_queue_len: "1000" + - bcast: "" + collisions: "0" + hardware_address: "12:34:56:78:90:AB" + ip_address: "" + link_encap: "Ethernet" + link_local6: "" + link_local6_prefixlen: "" + mask: "" + metric: "1" + mtu: "1500" + multicast: "UP BROADCAST RUNNING MULTICAST" + nic: "lan1" + rx_bytes: "258477533" + rx_dropped: "0" + rx_errors: "0" + rx_frame: "0" + rx_overruns: "0" + rx_packets: "3336406" + tx_bytes: "365165072" + tx_carrier: "0" + tx_dropped: "0" + tx_errors: "0" + tx_overruns: "0" + tx_packets: "3382703" + tx_queue_len: "1000" + - bcast: "" + collisions: "0" + hardware_address: "" + ip_address: "" + link_encap: "Unknown" + link_local6: "" + link_local6_prefixlen: "" + mask: "" + metric: "1" + mtu: "1500" + multicast: "UP POINTOPOINT RUNNING NOARP MULTICAST" + nic: "ssl.root" + rx_bytes: "0" + rx_dropped: "0" + rx_errors: "0" + rx_frame: "0" + rx_overruns: "0" + rx_packets: "0" + tx_bytes: "0" + tx_carrier: "0" + tx_dropped: "2" + tx_errors: "0" + tx_overruns: "0" + tx_packets: "0" + tx_queue_len: "0" + - bcast: "0.0.0.0" + collisions: "0" + hardware_address: "" + ip_address: "127.0.0.1" + link_encap: "Unknown" + link_local6: "" + link_local6_prefixlen: "" + mask: "255.0.0.0" + metric: "1" + mtu: "1500" + multicast: "UP BROADCAST LOOPBACK RUNNING NOARP MULTICAST" + nic: "Loopback772" + rx_bytes: "0" + rx_dropped: "0" + rx_errors: "0" + rx_frame: "0" + rx_overruns: "0" + rx_packets: "0" + tx_bytes: "152" + tx_carrier: "0" + tx_dropped: "0" + tx_errors: "0" + tx_overruns: "0" + tx_packets: "2" + tx_queue_len: "0" + - bcast: "10.152.1.231" + collisions: "0" + hardware_address: "12:34:56:78:90:AC" + ip_address: "10.152.1.230" + link_encap: "Ethernet" + link_local6: "" + link_local6_prefixlen: "" + mask: "255.255.255.252" + metric: "1" + mtu: "1500" + multicast: "UP BROADCAST RUNNING MULTICAST" + nic: "lan" + rx_bytes: "154509025" + rx_dropped: "0" + rx_errors: "0" + rx_frame: "0" + rx_overruns: "0" + rx_packets: "1695331" + tx_bytes: "320990192" + tx_carrier: "0" + tx_dropped: "0" + tx_errors: "0" + tx_overruns: "0" + tx_packets: "2829487" + tx_queue_len: "1000" + - bcast: "" + collisions: "0" + hardware_address: "" + ip_address: "10.149.0.69" + link_encap: "Unknown" + link_local6: "" + link_local6_prefixlen: "" + mask: "255.255.0.0" + metric: "1" + mtu: "1438" + multicast: "UP POINTOPOINT RUNNING NOARP MULTICAST" + nic: "Tu-Hub01-Main" + rx_bytes: "919078" + rx_dropped: "0" + rx_errors: "0" + rx_frame: "0" + rx_overruns: "0" + rx_packets: "2669" + tx_bytes: "5464602" + tx_carrier: "0" + tx_dropped: "0" + tx_errors: "0" + tx_overruns: "0" + tx_packets: "64643" + tx_queue_len: "0" + - bcast: "" + collisions: "0" + hardware_address: "12:34:56:78:90:AD" + ip_address: "192.168.64.10" + link_encap: "Unknown" + link_local6: "fe80::200:aaaa:5f4f:54f4" + link_local6_prefixlen: "64" + mask: "255.255.255.252" + metric: "1" + mtu: "1476" + multicast: "UP POINTOPOINT RUNNING NOARP MULTICAST" + nic: "Tu-Rsnnc-Main" + rx_bytes: "8018365" + rx_dropped: "0" + rx_errors: "0" + rx_frame: "0" + rx_overruns: "0" + rx_packets: "121755" + tx_bytes: "84" + tx_carrier: "0" + tx_dropped: "0" + tx_errors: "0" + tx_overruns: "0" + tx_packets: "1" + tx_queue_len: "0" + - bcast: "10.100.105.31" + collisions: "0" + hardware_address: "12:34:56:78:90:AE" + ip_address: "10.100.105.1" + link_encap: "Ethernet" + link_local6: "" + link_local6_prefixlen: "" + mask: "255.255.255.224" + metric: "1" + mtu: "1500" + multicast: "UP BROADCAST RUNNING MULTICAST" + nic: "Vlan1" + rx_bytes: "10988958" + rx_dropped: "0" + rx_errors: "0" + rx_frame: "0" + rx_overruns: "0" + rx_packets: "69882" + tx_bytes: "3128" + tx_carrier: "0" + tx_dropped: "0" + tx_errors: "0" + tx_overruns: "0" + tx_packets: "65" + tx_queue_len: "0" + - bcast: "" + collisions: "0" + hardware_address: "12:34:56:78:90:AF" + ip_address: "" + link_encap: "Ethernet" + link_local6: "" + link_local6_prefixlen: "" + mask: "" + metric: "1" + mtu: "1496" + multicast: "UP BROADCAST MULTICAST" + nic: "port_ha" + rx_bytes: "0" + rx_dropped: "0" + rx_errors: "0" + rx_frame: "0" + rx_overruns: "0" + rx_packets: "0" + tx_bytes: "0" + tx_carrier: "0" + tx_dropped: "1" + tx_errors: "0" + tx_overruns: "0" + tx_packets: "0" + tx_queue_len: "1000" + - bcast: "" + collisions: "0" + hardware_address: "" + ip_address: "127.0.0.1" + link_encap: "Local Loopback" + link_local6: "" + link_local6_prefixlen: "" + mask: "255.0.0.0" + metric: "1" + mtu: "16436" + multicast: "UP LOOPBACK RUNNING" + nic: "vsys_fgfm" + rx_bytes: "0" + rx_dropped: "0" + rx_errors: "0" + rx_frame: "0" + rx_overruns: "0" + rx_packets: "0" + tx_bytes: "0" + tx_carrier: "0" + tx_dropped: "0" + tx_errors: "0" + tx_overruns: "0" + tx_packets: "0" + tx_queue_len: "0" From 1dc2c719eac791501f6daa458f6e328eb0e1b370 Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Mon, 22 Jul 2024 22:39:00 +0400 Subject: [PATCH 20/60] Add Fortinet get router info routing-table all template (#1490) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”> --- ..._get_router_info_routing-table_all.textfsm | 20 ++++++ ntc_templates/templates/index | 1 + ...inet_get_router_info_routing-table_all.raw | 18 +++++ ...inet_get_router_info_routing-table_all.yml | 72 +++++++++++++++++++ 4 files changed, 111 insertions(+) create mode 100644 ntc_templates/templates/fortinet_get_router_info_routing-table_all.textfsm create mode 100644 tests/fortinet/get_router_info_routing-table_all/fortinet_get_router_info_routing-table_all.raw create mode 100644 tests/fortinet/get_router_info_routing-table_all/fortinet_get_router_info_routing-table_all.yml diff --git a/ntc_templates/templates/fortinet_get_router_info_routing-table_all.textfsm b/ntc_templates/templates/fortinet_get_router_info_routing-table_all.textfsm new file mode 100644 index 0000000000..887eb0b66f --- /dev/null +++ b/ntc_templates/templates/fortinet_get_router_info_routing-table_all.textfsm @@ -0,0 +1,20 @@ +Value Filldown TYPE ((?:K|C|S|R|B|O|IA|N1|N2|E1|E2|i|L1|L2|ia|\*|\s)+?) +Value Filldown DESTINATION (\S+) +Value DISTANCE (\d+) +Value METRIC (\d+) +Value Required GATEWAY (\S+|is\s+directly\s+connected) +Value Required INTERFACE (\S+) +Value LAST_TIME_UPDATE (\S+) + +Start + ^\s*Codes:\s+K\s+-\s+kernel,\s+C\s+-\s+connected,\s+S\s+-\s+static,\s+R\s+-\s+RIP,\s+B\s+-\s+BGP\s*$$ + ^\s*O\s+-\s+OSPF,\s+IA\s+-\s+OSPF\s+inter\s+area\s*$$ + ^\s*N1\s+-\s+OSPF\s+NSSA\s+external\s+type\s+1,\s+N2\s+-\s+OSPF\s+NSSA\s+external\s+type\s+2\s*$$ + ^\s*E1\s+-\s+OSPF\s+external\s+type\s+1,\s+E2\s+-\s+OSPF\s+external\s+type\s+2\s*$$ + ^\s*i\s+-\s+IS-IS,\s+L1\s+-\s+IS-IS\s+level-1,\s+L2\s+-\s+IS-IS\s+level-2,\s+ia\s+-\s+IS-IS\s+inter\s+area\s*$$ + ^\s*\*\s+-\s+candidate\s+default\s*$$ + ^\s*Routing\s+table\s+for\s+VRF=\d+\s*$$ + ^\s*${TYPE}\s+${DESTINATION}(?:\s+\[${DISTANCE}/${METRIC}\]\s+via)?\s+${GATEWAY},\s*${INTERFACE}(?:\s*,\s*${LAST_TIME_UPDATE})?\s*$$ -> Record + ^\s*(?:\[${DISTANCE}/${METRIC}\]\s+via\s+)?${GATEWAY},\s*${INTERFACE}(?:\s*,\s*${LAST_TIME_UPDATE})?\s*$$ -> Record + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index fb09cb4ef8..977fc5d384 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -575,6 +575,7 @@ extreme_exos_show_ipconfig.textfsm, .*, extreme_exos, show ipconfig extreme_exos_show_sharing.textfsm, .*, extreme_exos, show sharing extreme_exos_show_iparp.textfsm, .*, extreme_exos, show iparp +fortinet_get_router_info_routing-table_all.textfsm, .*, fortinet, g[[et]] r[[outer]] info ro[[uting-table]] a[[ll]] fortinet_get_system_interface_physical.textfsm, .*, fortinet, g[[et]] sy[[stem]] in[[terface]] p[[hysical]] fortinet_get_router_info_bgp_summary.textfsm, .*, fortinet, g[[et]] r[[outer]] info bg[[p]] su[[mmary]] fortinet_get_router_info_ospf_status.textfsm, .*, fortinet, g[[et]] r[[outer]] info o[[spf]] s[[tatus]] diff --git a/tests/fortinet/get_router_info_routing-table_all/fortinet_get_router_info_routing-table_all.raw b/tests/fortinet/get_router_info_routing-table_all/fortinet_get_router_info_routing-table_all.raw new file mode 100644 index 0000000000..ffbfff4ab6 --- /dev/null +++ b/tests/fortinet/get_router_info_routing-table_all/fortinet_get_router_info_routing-table_all.raw @@ -0,0 +1,18 @@ +Codes: K - kernel, C - connected, S - static, R - RIP, B - BGP + O - OSPF, IA - OSPF inter area + N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 + E1 - OSPF external type 1, E2 - OSPF external type 2 + i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area + * - candidate default + +Routing table for VRF=0 +O*E2 0.0.0.0/0 [110/10] via 10.149.127.253, Tu-Hub01-Main, 03w2d20h +S 8.8.8.8/32 [200/0] via 4.3.2.1, wan +O 10.80.58.224/27 [110/201] via 10.149.127.253, Tu-Hub01-Main, 3d13h31m +O E2 10.80.130.0/24 [110/20] via 10.149.127.253, Tu-Hub01-Main, 22:00:53 +C 10.100.105.224/27 is directly connected, Vlan40 +C 10.149.0.0/16 is directly connected, Tu-Hub01-Main + is directly connected, Tu-Hub02-Main +B 10.160.0.0/23 [20/0] via 10.142.0.74, port3, 2d18h02m +S 1.2.3.4/32 [10/0] via 10.152.1.229, lan + [10/0] via 4.3.2.1, wan diff --git a/tests/fortinet/get_router_info_routing-table_all/fortinet_get_router_info_routing-table_all.yml b/tests/fortinet/get_router_info_routing-table_all/fortinet_get_router_info_routing-table_all.yml new file mode 100644 index 0000000000..813885eabc --- /dev/null +++ b/tests/fortinet/get_router_info_routing-table_all/fortinet_get_router_info_routing-table_all.yml @@ -0,0 +1,72 @@ +--- +parsed_sample: + - destination: "0.0.0.0/0" + distance: "110" + gateway: "10.149.127.253" + interface: "Tu-Hub01-Main" + last_time_update: "03w2d20h" + metric: "10" + type: "O*E2" + - destination: "8.8.8.8/32" + distance: "200" + gateway: "4.3.2.1" + interface: "wan" + last_time_update: "" + metric: "0" + type: "S" + - destination: "10.80.58.224/27" + distance: "110" + gateway: "10.149.127.253" + interface: "Tu-Hub01-Main" + last_time_update: "3d13h31m" + metric: "201" + type: "O" + - destination: "10.80.130.0/24" + distance: "110" + gateway: "10.149.127.253" + interface: "Tu-Hub01-Main" + last_time_update: "22:00:53" + metric: "20" + type: "O E2" + - destination: "10.100.105.224/27" + distance: "" + gateway: "is directly connected" + interface: "Vlan40" + last_time_update: "" + metric: "" + type: "C" + - destination: "10.149.0.0/16" + distance: "" + gateway: "is directly connected" + interface: "Tu-Hub01-Main" + last_time_update: "" + metric: "" + type: "C" + - destination: "10.149.0.0/16" + distance: "" + gateway: "is directly connected" + interface: "Tu-Hub02-Main" + last_time_update: "" + metric: "" + type: "C" + - destination: "10.160.0.0/23" + distance: "20" + gateway: "10.142.0.74" + interface: "port3" + last_time_update: "2d18h02m" + metric: "0" + type: "B" + - destination: "1.2.3.4/32" + distance: "10" + gateway: "10.152.1.229" + interface: "lan" + last_time_update: "" + metric: "0" + type: "S" + - destination: "1.2.3.4/32" + distance: "10" + gateway: "4.3.2.1" + interface: "wan" + last_time_update: "" + metric: "0" + type: "S" From c4880778706dd9c40c6669b6b0b8fbd81f635dbf Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Mon, 22 Jul 2024 22:44:43 +0400 Subject: [PATCH 21/60] Add MikroTik ip arp print template (#1491) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”> --- ntc_templates/templates/index | 1 + .../mikrotik_routeros_ip_arp_print.textfsm | 17 ++++++++++++ .../mikrotik_routeros_ip_arp_print.raw | 7 +++++ .../mikrotik_routeros_ip_arp_print.yml | 27 +++++++++++++++++++ 4 files changed, 52 insertions(+) create mode 100644 ntc_templates/templates/mikrotik_routeros_ip_arp_print.textfsm create mode 100644 tests/mikrotik_routeros/ip_arp_print/mikrotik_routeros_ip_arp_print.raw create mode 100644 tests/mikrotik_routeros/ip_arp_print/mikrotik_routeros_ip_arp_print.yml diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 977fc5d384..3572570a0d 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -709,6 +709,7 @@ mikrotik_routeros_ip_route_print_terse.textfsm, .*, mikrotik_routeros, [[/]]ip(v mikrotik_routeros_system_clock_print.textfsm, .*, mikrotik_routeros, [[/]]sy[[stem]] cl[[ock]] p[[rint]] mikrotik_routeros_user_active_print.textfsm, .*, mikrotik_routeros, [[/]]us[[er]] ac[[tive]] p[[rint]] mikrotik_routeros_ip_address_print.textfsm, .*, mikrotik_routeros, [[/]]ip ad[[dress]] p[[rint]] +mikrotik_routeros_ip_arp_print.textfsm, .*, mikrotik_routeros, [[/]]ip a[[rp]] p[[rint]] mikrotik_routeros_ping.textfsm, .*, mikrotik_routeros, [[/]]pin[[g]] oneaccess_oneos_show_voice_voip-call_active_all.textfsm, .*, oneaccess_oneos, sh[[ow]] voice voip-call active diff --git a/ntc_templates/templates/mikrotik_routeros_ip_arp_print.textfsm b/ntc_templates/templates/mikrotik_routeros_ip_arp_print.textfsm new file mode 100644 index 0000000000..33b89064d4 --- /dev/null +++ b/ntc_templates/templates/mikrotik_routeros_ip_arp_print.textfsm @@ -0,0 +1,17 @@ +Value NUM (\d+) +Value FLAGS ([XIHDPC]+) +Value IP_ADDRESS (\S+) +Value MAC_ADDRESS ((?:[0-9a-fA-F]{2}:){5}[0-9a-fA-F]{2}) +Value INTERFACE (\S+) + +Start + ^\s*Flags:\s+X\s+-\s+disabled,\s+I\s+-\s+invalid,\s+H\s+-\s+DHCP,\s+D\s+-\s+dynamic,\s+P\s+-\s+published,\s+C\s+-\s+complete\s*$$ + ^\s*#\s+ADDRESS\s+MAC-ADDRESS\s+INTERFACE\s*$$ -> EntriesTable + ^\s*$$ + ^. -> Error + +EntriesTable + ^\s*${NUM}(?:\s+${FLAGS})?\s+${IP_ADDRESS}(?:\s+${MAC_ADDRESS})?(?:\s+${INTERFACE})?\s*$$ -> Record + ^\s*(?:\d{2}:){2}\d{2}\s+echo:\s*.*$$ + ^\s*$$ + ^. -> Error diff --git a/tests/mikrotik_routeros/ip_arp_print/mikrotik_routeros_ip_arp_print.raw b/tests/mikrotik_routeros/ip_arp_print/mikrotik_routeros_ip_arp_print.raw new file mode 100644 index 0000000000..2e936583eb --- /dev/null +++ b/tests/mikrotik_routeros/ip_arp_print/mikrotik_routeros_ip_arp_print.raw @@ -0,0 +1,7 @@ +Flags: X - disabled, I - invalid, H - DHCP, D - dynamic, P - published, C - complete + # ADDRESS MAC-ADDRESS INTERFACE + 0 DC 10.160.1.230 12:34:56:78:90:AA ether2 + 1 10.152.1.230 12:34:56:78:90:AB ether5 + 2 10.152.1.231 12:34:56:78:90:AC + 3 10.152.1.232 ether4 + 4 DC 10.152.1.233 diff --git a/tests/mikrotik_routeros/ip_arp_print/mikrotik_routeros_ip_arp_print.yml b/tests/mikrotik_routeros/ip_arp_print/mikrotik_routeros_ip_arp_print.yml new file mode 100644 index 0000000000..13ec959462 --- /dev/null +++ b/tests/mikrotik_routeros/ip_arp_print/mikrotik_routeros_ip_arp_print.yml @@ -0,0 +1,27 @@ +--- +parsed_sample: + - ip_address: "10.160.1.230" + flags: "DC" + interface: "ether2" + mac_address: "12:34:56:78:90:AA" + num: "0" + - ip_address: "10.152.1.230" + flags: "" + interface: "ether5" + mac_address: "12:34:56:78:90:AB" + num: "1" + - ip_address: "10.152.1.231" + flags: "" + interface: "" + mac_address: "12:34:56:78:90:AC" + num: "2" + - ip_address: "10.152.1.232" + flags: "" + interface: "ether4" + mac_address: "" + num: "3" + - ip_address: "10.152.1.233" + flags: "DC" + interface: "" + mac_address: "" + num: "4" From 25be9e0a76d326fdb30b4ae1605cb8406a8626ac Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Mon, 22 Jul 2024 22:48:55 +0400 Subject: [PATCH 22/60] Add Mikrotik ip route print detail template (#1492) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”> --- ntc_templates/templates/index | 1 + ...tik_routeros_ip_route_print_detail.textfsm | 22 ++++ ...ikrotik_routeros_ip_route_print_detail.raw | 15 +++ ...ikrotik_routeros_ip_route_print_detail.yml | 100 ++++++++++++++++++ 4 files changed, 138 insertions(+) create mode 100644 ntc_templates/templates/mikrotik_routeros_ip_route_print_detail.textfsm create mode 100644 tests/mikrotik_routeros/ip_route_print_detail/mikrotik_routeros_ip_route_print_detail.raw create mode 100644 tests/mikrotik_routeros/ip_route_print_detail/mikrotik_routeros_ip_route_print_detail.yml diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 3572570a0d..544c309988 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -705,6 +705,7 @@ mikrotik_routeros_ip_arp_print_without-paging.textfsm, .*, mikrotik_routeros, [[ mikrotik_routeros_ip_address_export_verbose.textfsm, .*, mikrotik_routeros, [[/]]ip a[[ddress]] e[[xport]] [[verbose]] mikrotik_routeros_interface_ethernet_print.textfsm, .*, mikrotik_routeros, [[/]]in[[terface]] et[[hernet]] pr[[int]] mikrotik_routeros_system_routerboard_print.textfsm, .*, mikrotik_routeros, [[/]]system routerboard print +mikrotik_routeros_ip_route_print_detail.textfsm, .*, mikrotik_routeros, [[/]]ip r[[oute]] p[[rint]] d[[etail]] mikrotik_routeros_ip_route_print_terse.textfsm, .*, mikrotik_routeros, [[/]]ip(v6)? route print terse mikrotik_routeros_system_clock_print.textfsm, .*, mikrotik_routeros, [[/]]sy[[stem]] cl[[ock]] p[[rint]] mikrotik_routeros_user_active_print.textfsm, .*, mikrotik_routeros, [[/]]us[[er]] ac[[tive]] p[[rint]] diff --git a/ntc_templates/templates/mikrotik_routeros_ip_route_print_detail.textfsm b/ntc_templates/templates/mikrotik_routeros_ip_route_print_detail.textfsm new file mode 100644 index 0000000000..4bf3b558e6 --- /dev/null +++ b/ntc_templates/templates/mikrotik_routeros_ip_route_print_detail.textfsm @@ -0,0 +1,22 @@ +Value NUMBER (\d+) +Value COMMENT (.*?) +Value ACTIVE (.) +Value DYNAMIC (.) +Value PROTOCOL (.) +Value DISCARD_PACKET (.) +Value Required NETWORK (\S+) +Value MASK (\d{1,2}) +Value PREF_SRC (\S+) +Value GATEWAY (\S+) +Value GATEWAY_STATUS (.+?(?=[^\=]\S+\=)) +Value CHECK_GATEWAY (\S+) +Value DISTANCE (\d+) +Value TYPE (\S+) + +Start + ^\s*Flags:\s+X\s+-\s+disabled,\s+A\s+-\s+active,\s+D\s+-\s+dynamic,\s+C\s+-\s+connect,\s+S\s+-\s+static,\s+r\s+-\s+rip,\s+b\s+-\s+bgp,\s+o\s+-\s+ospf,\s+m\s+-\s+mme,\s+B\s+-\s+blackhole,\s+U\s+-\s+unreachable,\s+P\s+-\s+prohibit\s*$$ + ^\s*${NUMBER}\s+${ACTIVE}${DYNAMIC}${PROTOCOL}${DISCARD_PACKET}\s+dst-address=${NETWORK}/${MASK}(?:\s+pref-src=${PREF_SRC})?(?:\s+gateway\=${GATEWAY})?(?:\s+gateway-status=${GATEWAY_STATUS})?.*?(?:\s+check-gateway=${CHECK_GATEWAY})?\s+distance=${DISTANCE}.*?(\s+ospf-type=${TYPE})?.*$$ -> Record + ^\s*${NUMBER}\s+${ACTIVE}${DYNAMIC}${PROTOCOL}${DISCARD_PACKET}\s+;{3}\s*${COMMENT}\s*$$ + ^\s*dst-address=${NETWORK}/${MASK}(?:\s+pref-src=${PREF_SRC})?(?:\s+gateway\=${GATEWAY})?(?:\s+gateway-status=${GATEWAY_STATUS})?.*?(?:\s+check-gateway=${CHECK_GATEWAY})?\s+distance=${DISTANCE}.*?(\s+ospf-type=${TYPE})?.*$$ -> Record + ^\s*$$ + ^. -> Error diff --git a/tests/mikrotik_routeros/ip_route_print_detail/mikrotik_routeros_ip_route_print_detail.raw b/tests/mikrotik_routeros/ip_route_print_detail/mikrotik_routeros_ip_route_print_detail.raw new file mode 100644 index 0000000000..3785cb4180 --- /dev/null +++ b/tests/mikrotik_routeros/ip_route_print_detail/mikrotik_routeros_ip_route_print_detail.raw @@ -0,0 +1,15 @@ +Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, B - blackhole, U - unreachable, P - prohibit + 0 ADS dst-address=0.0.0.0/0 gateway=192.168.8.1 gateway-status=192.168.8.1 reachable via lte1 distance=2 scope=30 target-scope=10 vrf-interface=lte1 + + 1 ADC dst-address=10.160.1.228/30 pref-src=10.160.1.230 gateway=ether1 gateway-status=ether1 reachable distance=0 scope=10 + + 2 A S dst-address=10.213.20.64/32 gateway=10.160.1.229 gateway-status=10.160.1.229 reachable via ether1 distance=1 scope=30 target-scope=10 + + 3 A S ;;; to Internet + dst-address=0.0.0.0/0 gateway=10.160.1.230 gateway-status=10.160.1.230 reachable via ether2 distance=1 scope=30 target-scope=10 routing-mark=to-reserve + + 4 A S dst-address=0.0.0.0/0 gateway=1.2.3.4 gateway-status=1.2.3.4 recursive via 10.152.1.230 ether5 distance=1 scope=30 target-scope=10 routing-mark=Free_Wi-Fi + + 5 A SB dst-address=10.0.0.0/8 type=blackhole distance=100 routing-mark=Free_Wi-Fi + + 6 A S dst-address=0.0.0.0/0 gateway=1.2.3.4 gateway-status=1.2.3.4 recursive via 10.152.1.230 ether5 check-gateway=ping distance=1 scope=30 target-scope=10 diff --git a/tests/mikrotik_routeros/ip_route_print_detail/mikrotik_routeros_ip_route_print_detail.yml b/tests/mikrotik_routeros/ip_route_print_detail/mikrotik_routeros_ip_route_print_detail.yml new file mode 100644 index 0000000000..e7dab402d2 --- /dev/null +++ b/tests/mikrotik_routeros/ip_route_print_detail/mikrotik_routeros_ip_route_print_detail.yml @@ -0,0 +1,100 @@ +--- +parsed_sample: + - active: "A" + check_gateway: "" + comment: "" + discard_packet: " " + distance: "2" + dynamic: "D" + gateway: "192.168.8.1" + gateway_status: "192.168.8.1 reachable via lte1" + mask: "0" + network: "0.0.0.0" + number: "0" + pref_src: "" + protocol: "S" + type: "" + - active: "A" + check_gateway: "" + comment: "" + discard_packet: " " + distance: "0" + dynamic: "D" + gateway: "ether1" + gateway_status: "ether1 reachable" + mask: "30" + network: "10.160.1.228" + number: "1" + pref_src: "10.160.1.230" + protocol: "C" + type: "" + - active: "A" + check_gateway: "" + comment: "" + discard_packet: " " + distance: "1" + dynamic: " " + gateway: "10.160.1.229" + gateway_status: "10.160.1.229 reachable via ether1" + mask: "32" + network: "10.213.20.64" + number: "2" + pref_src: "" + protocol: "S" + type: "" + - active: "A" + check_gateway: "" + comment: "to Internet" + discard_packet: " " + distance: "1" + dynamic: " " + gateway: "10.160.1.230" + gateway_status: "10.160.1.230 reachable via ether2" + mask: "0" + network: "0.0.0.0" + number: "3" + pref_src: "" + protocol: "S" + type: "" + - active: "A" + check_gateway: "" + comment: "" + discard_packet: " " + distance: "1" + dynamic: " " + gateway: "1.2.3.4" + gateway_status: "1.2.3.4 recursive via 10.152.1.230 ether5" + mask: "0" + network: "0.0.0.0" + number: "4" + pref_src: "" + protocol: "S" + type: "" + - active: "A" + check_gateway: "" + comment: "" + discard_packet: "B" + distance: "100" + dynamic: " " + gateway: "" + gateway_status: "" + mask: "8" + network: "10.0.0.0" + number: "5" + pref_src: "" + protocol: "S" + type: "" + - active: "A" + check_gateway: "ping" + comment: "" + discard_packet: " " + distance: "1" + dynamic: " " + gateway: "1.2.3.4" + gateway_status: "1.2.3.4 recursive via 10.152.1.230 ether5" + mask: "0" + network: "0.0.0.0" + number: "6" + pref_src: "" + protocol: "S" + type: "" From fa3a4639bb7153e239e749790038c38a76611221 Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Mon, 22 Jul 2024 22:49:57 +0400 Subject: [PATCH 23/60] Add Fortinet get router info bgp neighbors template (#1489) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”> --- ...inet_get_router_info_bgp_neighbors.textfsm | 68 ++++++++++++++ ntc_templates/templates/index | 1 + ...fortinet_get_router_info_bgp_neighbors.raw | 92 +++++++++++++++++++ ...fortinet_get_router_info_bgp_neighbors.yml | 70 ++++++++++++++ ...et_get_router_info_bgp_neighbors_empty.raw | 0 ...et_get_router_info_bgp_neighbors_empty.yml | 2 + 6 files changed, 233 insertions(+) create mode 100644 ntc_templates/templates/fortinet_get_router_info_bgp_neighbors.textfsm create mode 100644 tests/fortinet/get_router_info_bgp_neighbors/fortinet_get_router_info_bgp_neighbors.raw create mode 100644 tests/fortinet/get_router_info_bgp_neighbors/fortinet_get_router_info_bgp_neighbors.yml create mode 100644 tests/fortinet/get_router_info_bgp_neighbors/fortinet_get_router_info_bgp_neighbors_empty.raw create mode 100644 tests/fortinet/get_router_info_bgp_neighbors/fortinet_get_router_info_bgp_neighbors_empty.yml diff --git a/ntc_templates/templates/fortinet_get_router_info_bgp_neighbors.textfsm b/ntc_templates/templates/fortinet_get_router_info_bgp_neighbors.textfsm new file mode 100644 index 0000000000..5071461c73 --- /dev/null +++ b/ntc_templates/templates/fortinet_get_router_info_bgp_neighbors.textfsm @@ -0,0 +1,68 @@ +Value NEIGHBOR (\S+) +Value BGP_VERSION (\d+) +Value REMOTE_ASN (\d+) +Value LOCAL_ASN (\d+) +Value REMOTE_ROUTER_ID (\S+) +Value BGP_STATE ([\w\s\(\)]+) +Value UPTIME (\S+) +Value List ADDR_FAMILY (\w+(?:\s+\w+)?) +Value List TABLE_VERSION (\d+) +Value List NEI_TABLE_VERSION (\d+) +Value List INBOUND_ROUTEMAP (\S+) +Value List OUTBOUND_ROUTEMAP (\S+) +Value List ACCEPTED_PREFIXES (\d+) +Value List ACCEPTED_PREFIXES_RIB (\d+) +Value List ANNOUNCED_PREFIXES (\d+) +Value LOCALHOST_IP (\S+) +Value LOCALHOST_PORT (\d+) +Value REMOTE_IP (\S+) +Value REMOTE_PORT (\d+) +Value NEXTHOP_IP (\S+) +Value NEXTHOP_INTERFACE (\S+) + +Start + ^VRF\s+\d+\s+neighbor\s+table:\s*$$ + ^BGP\s+neighbor\s+is -> Continue.Record + ^BGP\s+neighbor\s+is\s+${NEIGHBOR},\s+remote\s+AS\s+${REMOTE_ASN},\s+local\s+AS\s+${LOCAL_ASN},.*$$ + ^\s+BGP\s+version\s+${BGP_VERSION},\s+remote\s+router\s+ID\s+${REMOTE_ROUTER_ID}\s*$$ + ^\s+BGP\s+state\s+=\s+${BGP_STATE},\s+\w+\s+for\s+${UPTIME}\s*$$ + ^\s+Last\s+read\s+\d{2}:\d{2}:\d{2},\s+hold\s+time\s+is\s+\d+,\s+keepalive\s+interval\s+is\s+\d+\s+seconds\s*$$ + ^\s+Configured\s+hold\s+time\s+is\s+\d+,\s+keepalive\s+interval\s+is\s+\d+\s+seconds\s*$$ + ^\s+Neighbor\s+capabilities:\s*$$ + ^\s+Route\s+refresh:\s+.*$$ + ^\s+Address\s+family\s+IPv4\s+Unicast:\s+.*$$ + ^\s+Address\s+family\s+IPv6\s+Unicast:\s+.*$$ + ^\s+Received\s+\d+\s+messages,\s+\d+\s+notifications,\s+\d+\s+in\s+queue\s*$$ + ^\s+Sent\s+\d+\s+messages,\s+\d+\s+notifications,\s+\d+\s+in\s+queue\s*$$ + ^\s+Route\s+refresh\s+request:\s+received\s+\d+,\s+sent\s+\d+\s*$$ + ^\s+Minimum\s+time\s+between\s+advertisement\s+runs\s+is\s+\d+\s+seconds\s*$$ + ^\s+For\s+address\s+family:\s+${ADDR_FAMILY}\s*$$ -> AddrFamState + ^\s+Connections\s+established\s+\d+;\s+dropped\s+\d+\s*$$ + ^Local\s+host:\s+${LOCALHOST_IP},\s+Local port:\s+${LOCALHOST_PORT}\s*$$ + ^Foreign\s+host:\s+${REMOTE_IP},\s+Foreign port:\s+${REMOTE_PORT}\s*$$ + ^Nexthop:\s+${NEXTHOP_IP}\s*$$ + ^Nexthop\s+interface:\s+${NEXTHOP_INTERFACE}\s*$$ + ^Nexthop\s+global:\s+.*$$ + ^Nexthop\s+local:\s+.*$$ + ^BGP\s+connection:\s+.*$$ + ^Last\s+Reset:\s+\S+,\s+.*$$ + ^Notification\s+Error\s+Message:\s+.*$$ + ^\s*\%\s+No\s+neighbor\s+exist\s*$$ + ^\s*$$ + ^. -> Error + +AddrFamState + ^\s+BGP\s+table\s+version\s+${TABLE_VERSION},\s+neighbor\s+version\s+${NEI_TABLE_VERSION}\s*$$ + ^\s+Index\s+\d+,\s+Offset\s+\d+,\s+Mask\s+\w+\s*$$ + ^\s+Additional\s+Path:\s*$$ + ^\s+Send-mode:\s+.*$$ + ^\s+Receive-mode:\s+.*$$ + ^\s+NEXT_HOP\s+is\s+always\s+this\s+router\s*$$ + ^\s+Community\s+attribute\s+sent\s+to\s+this\s+neighbor.*$$ + ^\s+Inbound\s+path\s+policy\s+configured\s*$$ + ^\s+Route\s+map\s+for\s+incoming\s+advertisements\s+is\s+${INBOUND_ROUTEMAP}\s*$$ + ^\s+Route\s+map\s+for\s+outgoing\s+advertisements\s+is\s+${OUTBOUND_ROUTEMAP}\s*$$ + ^\s+${ACCEPTED_PREFIXES}\saccepted\sprefixes,\s${ACCEPTED_PREFIXES_RIB}\sprefixes\sin\srib\s*$$ + ^\s+${ANNOUNCED_PREFIXES}\sannounced\sprefixes\s*$$ -> Start + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 544c309988..2b7849ecd7 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -576,6 +576,7 @@ extreme_exos_show_sharing.textfsm, .*, extreme_exos, show sharing extreme_exos_show_iparp.textfsm, .*, extreme_exos, show iparp fortinet_get_router_info_routing-table_all.textfsm, .*, fortinet, g[[et]] r[[outer]] info ro[[uting-table]] a[[ll]] +fortinet_get_router_info_bgp_neighbors.textfsm, .*, fortinet, g[[et]] r[[outer]] info bg[[p]] nei[[ghbors]] fortinet_get_system_interface_physical.textfsm, .*, fortinet, g[[et]] sy[[stem]] in[[terface]] p[[hysical]] fortinet_get_router_info_bgp_summary.textfsm, .*, fortinet, g[[et]] r[[outer]] info bg[[p]] su[[mmary]] fortinet_get_router_info_ospf_status.textfsm, .*, fortinet, g[[et]] r[[outer]] info o[[spf]] s[[tatus]] diff --git a/tests/fortinet/get_router_info_bgp_neighbors/fortinet_get_router_info_bgp_neighbors.raw b/tests/fortinet/get_router_info_bgp_neighbors/fortinet_get_router_info_bgp_neighbors.raw new file mode 100644 index 0000000000..a462433974 --- /dev/null +++ b/tests/fortinet/get_router_info_bgp_neighbors/fortinet_get_router_info_bgp_neighbors.raw @@ -0,0 +1,92 @@ +VRF 0 neighbor table: +BGP neighbor is 10.105.1.254, remote AS 65400, local AS 65400, internal link + BGP version 4, remote router ID 10.105.3.254 + BGP state = Established, up for 4d14h28m + Last read 00:00:00, hold time is 3, keepalive interval is 1 seconds + Configured hold time is 3, keepalive interval is 1 seconds + Neighbor capabilities: + Route refresh: advertised and received (old and new) + Address family IPv4 Unicast: advertised and received + Address family IPv6 Unicast: advertised and received + Received 1517339 messages, 2 notifications, 0 in queue + Sent 1482858 messages, 6 notifications, 0 in queue + Route refresh request: received 0, sent 0 + Minimum time between advertisement runs is 1 seconds + + For address family: IPv4 Unicast + BGP table version 31, neighbor version 25 + Index 1, Offset 0, Mask 0x2 + Additional Path: + Send-mode: received + Receive-mode: advertised + NEXT_HOP is always this router + Community attribute sent to this neighbor (both) + Inbound path policy configured + Route map for incoming advertisements is *prefer_vpn1root + 423 accepted prefixes, 423 prefixes in rib + 3 announced prefixes + + For address family: IPv6 Unicast + BGP table version 1, neighbor version 1 + Index 1, Offset 0, Mask 0x2 + Community attribute sent to this neighbor (both) + 0 accepted prefixes, 0 prefixes in rib + 0 announced prefixes + + Connections established 9; dropped 8 +Local host: 10.105.1.2, Local port: 3777 +Foreign host: 10.105.1.254, Foreign port: 179 +Nexthop: 10.105.1.2 +Nexthop interface: VPN1_0 +Nexthop global: :: +Nexthop local: :: +BGP connection: non shared network +Last Reset: 4d14h38m, due to BGP Notification sent +Notification Error Message: (Hold Timer Expired/Unspecified Error Subcode) + +BGP neighbor is 10.105.2.254, remote AS 65400, local AS 65400, internal link + BGP version 4, remote router ID 10.105.3.254 + BGP state = Established, up for 12:41:52 + Last read 00:00:00, hold time is 3, keepalive interval is 1 seconds + Configured hold time is 3, keepalive interval is 1 seconds + Neighbor capabilities: + Route refresh: advertised and received (old and new) + Address family IPv4 Unicast: advertised and received + Address family IPv6 Unicast: advertised and received + Received 1517182 messages, 4 notifications, 0 in queue + Sent 1481876 messages, 16 notifications, 0 in queue + Route refresh request: received 0, sent 0 + Minimum time between advertisement runs is 1 seconds + + For address family: IPv4 Unicast + BGP table version 31, neighbor version 30 + Index 2, Offset 0, Mask 0x4 + Additional Path: + Send-mode: received + Receive-mode: advertised + NEXT_HOP is always this router + Community attribute sent to this neighbor (both) + Inbound path policy configured + Route map for incoming advertisements is *prefer_vpn2root + 423 accepted prefixes, 423 prefixes in rib + 3 announced prefixes + + For address family: IPv6 Unicast + BGP table version 1, neighbor version 1 + Index 2, Offset 0, Mask 0x4 + Community attribute sent to this neighbor (both) + 0 accepted prefixes, 0 prefixes in rib + 0 announced prefixes + + Connections established 21; dropped 20 +Local host: 10.105.2.2, Local port: 21489 +Foreign host: 10.105.2.254, Foreign port: 179 +Nexthop: 10.105.2.2 +Nexthop interface: VPN2_0 +Nexthop global: :: +Nexthop local: :: +BGP connection: non shared network +Last Reset: 12:55:18, due to BGP Notification sent +Notification Error Message: (Hold Timer Expired/Unspecified Error Subcode) + + diff --git a/tests/fortinet/get_router_info_bgp_neighbors/fortinet_get_router_info_bgp_neighbors.yml b/tests/fortinet/get_router_info_bgp_neighbors/fortinet_get_router_info_bgp_neighbors.yml new file mode 100644 index 0000000000..2f4bb9c2e7 --- /dev/null +++ b/tests/fortinet/get_router_info_bgp_neighbors/fortinet_get_router_info_bgp_neighbors.yml @@ -0,0 +1,70 @@ +--- +parsed_sample: + - accepted_prefixes: + - "423" + - "0" + accepted_prefixes_rib: + - "423" + - "0" + addr_family: + - "IPv4 Unicast" + - "IPv6 Unicast" + announced_prefixes: + - "3" + - "0" + bgp_state: "Established" + bgp_version: "4" + inbound_routemap: + - "*prefer_vpn1root" + local_asn: "65400" + localhost_ip: "10.105.1.2" + localhost_port: "3777" + nei_table_version: + - "25" + - "1" + neighbor: "10.105.1.254" + nexthop_interface: "VPN1_0" + nexthop_ip: "10.105.1.2" + outbound_routemap: [] + remote_asn: "65400" + remote_ip: "10.105.1.254" + remote_port: "179" + remote_router_id: "10.105.3.254" + table_version: + - "31" + - "1" + uptime: "4d14h28m" + - accepted_prefixes: + - "423" + - "0" + accepted_prefixes_rib: + - "423" + - "0" + addr_family: + - "IPv4 Unicast" + - "IPv6 Unicast" + announced_prefixes: + - "3" + - "0" + bgp_state: "Established" + bgp_version: "4" + inbound_routemap: + - "*prefer_vpn2root" + local_asn: "65400" + localhost_ip: "10.105.2.2" + localhost_port: "21489" + nei_table_version: + - "30" + - "1" + neighbor: "10.105.2.254" + nexthop_interface: "VPN2_0" + nexthop_ip: "10.105.2.2" + outbound_routemap: [] + remote_asn: "65400" + remote_ip: "10.105.2.254" + remote_port: "179" + remote_router_id: "10.105.3.254" + table_version: + - "31" + - "1" + uptime: "12:41:52" diff --git a/tests/fortinet/get_router_info_bgp_neighbors/fortinet_get_router_info_bgp_neighbors_empty.raw b/tests/fortinet/get_router_info_bgp_neighbors/fortinet_get_router_info_bgp_neighbors_empty.raw new file mode 100644 index 0000000000..e69de29bb2 diff --git a/tests/fortinet/get_router_info_bgp_neighbors/fortinet_get_router_info_bgp_neighbors_empty.yml b/tests/fortinet/get_router_info_bgp_neighbors/fortinet_get_router_info_bgp_neighbors_empty.yml new file mode 100644 index 0000000000..e77add67ed --- /dev/null +++ b/tests/fortinet/get_router_info_bgp_neighbors/fortinet_get_router_info_bgp_neighbors_empty.yml @@ -0,0 +1,2 @@ +--- +parsed_sample: [] From 0d31dbb4987140a6e17a0bb35ef24f19d035f64e Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Mon, 22 Jul 2024 22:57:23 +0400 Subject: [PATCH 24/60] Add Mikrotik interface print brief template(#1493) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”> --- ntc_templates/templates/index | 1 + ...tik_routeros_interface_print_brief.textfsm | 21 +++++ ...ikrotik_routeros_interface_print_brief.raw | 10 +++ ...ikrotik_routeros_interface_print_brief.yml | 82 +++++++++++++++++++ 4 files changed, 114 insertions(+) create mode 100644 ntc_templates/templates/mikrotik_routeros_interface_print_brief.textfsm create mode 100644 tests/mikrotik_routeros/interface_print_brief/mikrotik_routeros_interface_print_brief.raw create mode 100644 tests/mikrotik_routeros/interface_print_brief/mikrotik_routeros_interface_print_brief.yml diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 2b7849ecd7..116b4aa5ae 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -706,6 +706,7 @@ mikrotik_routeros_ip_arp_print_without-paging.textfsm, .*, mikrotik_routeros, [[ mikrotik_routeros_ip_address_export_verbose.textfsm, .*, mikrotik_routeros, [[/]]ip a[[ddress]] e[[xport]] [[verbose]] mikrotik_routeros_interface_ethernet_print.textfsm, .*, mikrotik_routeros, [[/]]in[[terface]] et[[hernet]] pr[[int]] mikrotik_routeros_system_routerboard_print.textfsm, .*, mikrotik_routeros, [[/]]system routerboard print +mikrotik_routeros_interface_print_brief.textfsm, .*, mikrotik_routeros, [[/]]in[[terface]] p[[rint]] b[[rief]] mikrotik_routeros_ip_route_print_detail.textfsm, .*, mikrotik_routeros, [[/]]ip r[[oute]] p[[rint]] d[[etail]] mikrotik_routeros_ip_route_print_terse.textfsm, .*, mikrotik_routeros, [[/]]ip(v6)? route print terse mikrotik_routeros_system_clock_print.textfsm, .*, mikrotik_routeros, [[/]]sy[[stem]] cl[[ock]] p[[rint]] diff --git a/ntc_templates/templates/mikrotik_routeros_interface_print_brief.textfsm b/ntc_templates/templates/mikrotik_routeros_interface_print_brief.textfsm new file mode 100644 index 0000000000..1e1bd61900 --- /dev/null +++ b/ntc_templates/templates/mikrotik_routeros_interface_print_brief.textfsm @@ -0,0 +1,21 @@ +Value ID (\d+) +Value DYNAMIC (D) +Value STATUS (X|R) +Value SLAVE (S) +Value NAME (\S+) +Value TYPE (\S+) +Value ACTUAL_MTU (\d+) +Value L2MTU (\d+) +Value MAX_L2MTU (\d+) +Value MAC_ADDRESS ([0-9a-fA-F]{2}(?::[0-9a-fA-F]{2}){5}) + +Start + ^\s*Flags:\s+D\s+-\s+dynamic,\s+X\s+-\s+disabled,\s+R\s+-\s+running,\s+S\s+-\s+slave\s*$$ + ^\s*#\s+NAME\s+TYPE\s+ACTUAL-MTU\s+L2MTU\s+MAX-L2MTU\s+MAC-ADDRESS\s*$$ -> IfaceTable + ^\s*$$ + ^. -> Error + +IfaceTable + ^\s*${ID}(?:\s+${DYNAMIC})?(?:\s*${STATUS})?(?:\s*${SLAVE})?\s+${NAME}\s+${TYPE}\s+${ACTUAL_MTU}(?:\s+${L2MTU})?(?:\s+${MAX_L2MTU})?(?:\s+${MAC_ADDRESS})?\s*$$ -> Record + ^\s*$$ + ^. -> Error diff --git a/tests/mikrotik_routeros/interface_print_brief/mikrotik_routeros_interface_print_brief.raw b/tests/mikrotik_routeros/interface_print_brief/mikrotik_routeros_interface_print_brief.raw new file mode 100644 index 0000000000..a1f6e50405 --- /dev/null +++ b/tests/mikrotik_routeros/interface_print_brief/mikrotik_routeros_interface_print_brief.raw @@ -0,0 +1,10 @@ +Flags: D - dynamic, X - disabled, R - running, S - slave + # NAME TYPE ACTUAL-MTU L2MTU MAX-L2MTU MAC-ADDRESS + 0 ether1 ether 1500 1598 2028 12:34:56:78:90:AA + 1 D ether2 ether 1500 1598 12:34:56:78:90:AB + 2 R ether3 ether 1500 12:34:56:78:90:AC + 3 S ether4 ether 1500 1598 + 4 DR ether5 ether 1500 + 5 RS ether6 ether 1500 1598 2028 12:34:56:78:90:AD + 6 D S lte1 lte 1500 1598 2028 12:34:56:78:90:AE + 7 DRS pptp-out1 pptp-out 1450 1598 2028 diff --git a/tests/mikrotik_routeros/interface_print_brief/mikrotik_routeros_interface_print_brief.yml b/tests/mikrotik_routeros/interface_print_brief/mikrotik_routeros_interface_print_brief.yml new file mode 100644 index 0000000000..b22041fef1 --- /dev/null +++ b/tests/mikrotik_routeros/interface_print_brief/mikrotik_routeros_interface_print_brief.yml @@ -0,0 +1,82 @@ +--- +parsed_sample: + - actual_mtu: "1500" + dynamic: "" + id: "0" + l2mtu: "1598" + mac_address: "12:34:56:78:90:AA" + max_l2mtu: "2028" + name: "ether1" + slave: "" + status: "" + type: "ether" + - actual_mtu: "1500" + dynamic: "D" + id: "1" + l2mtu: "1598" + mac_address: "12:34:56:78:90:AB" + max_l2mtu: "" + name: "ether2" + slave: "" + status: "" + type: "ether" + - actual_mtu: "1500" + dynamic: "" + id: "2" + l2mtu: "" + mac_address: "12:34:56:78:90:AC" + max_l2mtu: "" + name: "ether3" + slave: "" + status: "R" + type: "ether" + - actual_mtu: "1500" + dynamic: "" + id: "3" + l2mtu: "1598" + mac_address: "" + max_l2mtu: "" + name: "ether4" + slave: "S" + status: "" + type: "ether" + - actual_mtu: "1500" + dynamic: "D" + id: "4" + l2mtu: "" + mac_address: "" + max_l2mtu: "" + name: "ether5" + slave: "" + status: "R" + type: "ether" + - actual_mtu: "1500" + dynamic: "" + id: "5" + l2mtu: "1598" + mac_address: "12:34:56:78:90:AD" + max_l2mtu: "2028" + name: "ether6" + slave: "S" + status: "R" + type: "ether" + - actual_mtu: "1500" + dynamic: "D" + id: "6" + l2mtu: "1598" + mac_address: "12:34:56:78:90:AE" + max_l2mtu: "2028" + name: "lte1" + slave: "S" + status: "" + type: "lte" + - actual_mtu: "1450" + dynamic: "D" + id: "7" + l2mtu: "1598" + mac_address: "" + max_l2mtu: "2028" + name: "pptp-out1" + slave: "S" + status: "R" + type: "pptp-out" From 554f8f2139526dd0c69449becc59d6bdeece4e9f Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Mon, 22 Jul 2024 23:12:37 +0400 Subject: [PATCH 25/60] Add Fortinet get hardware nic nic-name'template (#1488) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”> --- ...fortinet_get_hardware_nic_nic-name.textfsm | 76 +++++++++++++++++++ ntc_templates/templates/index | 1 + .../fortinet_get_hardware_nic_nic-name.raw | 35 +++++++++ .../fortinet_get_hardware_nic_nic-name.yml | 35 +++++++++ 4 files changed, 147 insertions(+) create mode 100644 ntc_templates/templates/fortinet_get_hardware_nic_nic-name.textfsm create mode 100644 tests/fortinet/get_hardware_nic_nic-name/fortinet_get_hardware_nic_nic-name.raw create mode 100644 tests/fortinet/get_hardware_nic_nic-name/fortinet_get_hardware_nic_nic-name.yml diff --git a/ntc_templates/templates/fortinet_get_hardware_nic_nic-name.textfsm b/ntc_templates/templates/fortinet_get_hardware_nic_nic-name.textfsm new file mode 100644 index 0000000000..7534ff13f6 --- /dev/null +++ b/ntc_templates/templates/fortinet_get_hardware_nic_nic-name.textfsm @@ -0,0 +1,76 @@ +Value DESCRIPTION (.+) +Value DRIVER_NAME (.+) +Value BOARD (\w+) +Value LIF_ID (\d+) +Value LIF_OID (\d+) +Value NETDEV_OID (\d+) +Value CURRENT_HWADDR ([a-zA-Z0-9]{2}(:[a-zA-Z0-9]{2}){5}) +Value PERMANENT_HWADDR ([a-zA-Z0-9]{2}(:[a-zA-Z0-9]{2}){5}) +Value ADMIN (\S+) +Value NETDEV_STATUS (\S+) +Value AUTONEGO_SETTING (\d+) +Value LINK_SETTING (\d+) +Value SPEED_SETTING (\d+) +Value DUPLEX_SETTING (\d+) +Value SPEED (\d+) +Value DUPLEX (\S+) +Value LINK_STATUS (\S+) +Value RX_PACKETS (\d+) +Value RX_BYTES (\d+) +Value TX_PACKETS (\d+) +Value TX_BYTES (\d+) +Value HOST_RX_PACKETS (\d+) +Value HOST_RX_BYTES (\d+) +Value HOST_TX_PACKETS (\d+) +Value HOST_TX_BYTES (\d+) +Value HOST_TX_DROPPED (\d+) +Value FRAGTXCREATE (\d+) +Value FRAGTXOK (\d+) +Value FRAGTXDROP (\d+) +Value List MEMBER_PORTS (\[\d+\]:\s+\S+) + +Start + ^Description\s*:${DESCRIPTION}\s*$$ + ^Driver\s+Name\s*:${DRIVER_NAME}\s*$$ + ^Board\s*:${BOARD}\s*$$ + ^lif\s+id\s*:${LIF_ID}\s*$$ + ^lif\s+oid\s*:${LIF_OID}\s*$$ + ^netdev\s+oid\s*:${NETDEV_OID}\s*$$ + ^Current_HWaddr\s*${CURRENT_HWADDR}\s*$$ + ^Permanent_HWaddr\s*${PERMANENT_HWADDR}\s*$$ + ^=+\s+Link\s+Status\s+=+ -> LinkStatus + ^=+\s+Counters\s+=+ -> Counters + ^\s*$$ + ^. -> Error + +LinkStatus + ^Admin\s*:${ADMIN}\s*$$ + ^netdev\s+status\s*:${NETDEV_STATUS}\s*$$ + ^autonego_setting\s*:${AUTONEGO_SETTING}\s*$$ + ^link_setting\s*:${LINK_SETTING}\s*$$ + ^speed_setting\s*:${SPEED_SETTING}\s*$$ + ^duplex_setting\s*:${DUPLEX_SETTING}\s*$$ + ^Speed\s*:${SPEED}\s*$$ + ^Duplex\s*:${DUPLEX}\s*$$ + ^link_status\s*:${LINK_STATUS}\s*$$ -> Start + ^\s*$$ + ^. -> Error + +Counters + ^Rx\s+Pkts\s*:${RX_PACKETS}\s*$$ + ^Rx\s+Bytes\s*:${RX_BYTES}\s*$$ + ^Tx\s+Pkts\s*:${TX_PACKETS}\s*$$ + ^Tx\s+Bytes\s*:${TX_BYTES}\s*$$ + ^Host\s+Rx\s+Pkts\s*:${HOST_RX_PACKETS}\s*$$ + ^Host\s+Rx\s+Bytes\s*:${HOST_RX_BYTES}\s*$$ + ^Host\s+Tx\s+Pkts\s*:${HOST_TX_PACKETS}\s*$$ + ^Host\s+Tx\s+Bytes\s*:${HOST_TX_BYTES}\s*$$ + ^Host\s+Tx\s+dropped\s*:${HOST_TX_DROPPED}\s*$$ + ^FragTxCreate\s*:${FRAGTXCREATE}\s*$$ + ^FragTxOk\s*:${FRAGTXOK}\s*$$ + ^FragTxDrop\s*:${FRAGTXDROP}\s*$$ + # No 'Member Ports' parsing + ^Member\s+Ports\s*\:\s*$$ + ^\s*${MEMBER_PORTS}\s*$$ + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 116b4aa5ae..819c4f2dd9 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -580,6 +580,7 @@ fortinet_get_router_info_bgp_neighbors.textfsm, .*, fortinet, g[[et]] r[[outer]] fortinet_get_system_interface_physical.textfsm, .*, fortinet, g[[et]] sy[[stem]] in[[terface]] p[[hysical]] fortinet_get_router_info_bgp_summary.textfsm, .*, fortinet, g[[et]] r[[outer]] info bg[[p]] su[[mmary]] fortinet_get_router_info_ospf_status.textfsm, .*, fortinet, g[[et]] r[[outer]] info o[[spf]] s[[tatus]] +fortinet_get_hardware_nic_nic-name.textfsm, .*, fortinet, g[[et]] hard[[ware]] n[[ic]] (\S+) fortinet_get_system_ha_status.textfsm, .*, fortinet, g[[et]] sy[[stem]] ha s[[tatus]] fortinet_get_system_interface.textfsm, .*, fortinet, g[[et]] sy[[stem]] in[[terface]] fortinet_fnsysctl_ifconfig.textfsm, .*, fortinet, fnsysctl ifconfig diff --git a/tests/fortinet/get_hardware_nic_nic-name/fortinet_get_hardware_nic_nic-name.raw b/tests/fortinet/get_hardware_nic_nic-name/fortinet_get_hardware_nic_nic-name.raw new file mode 100644 index 0000000000..b414128948 --- /dev/null +++ b/tests/fortinet/get_hardware_nic_nic-name/fortinet_get_hardware_nic_nic-name.raw @@ -0,0 +1,35 @@ +Description :FortiASIC NP6XLITE Adapter +Driver Name :FortiASIC NP6XLITE Driver +Board :40F +lif id :7 +lif oid :71 +netdev oid :71 +Current_HWaddr 12:34:56:78:90:ab +Permanent_HWaddr 12:34:56:78:90:ab +========== Link Status ========== +Admin :up +netdev status :N/A +autonego_setting:1 +link_setting :0 +speed_setting :1000 +duplex_setting :1 +Speed :100 +Duplex :Full +link_status :Up +============ Counters =========== +Rx Pkts :645878 +Rx Bytes :62442497 +Tx Pkts :1025883 +Tx Bytes :76984876 +Host Rx Pkts :1395584 +Host Rx Bytes :87501251 +Host Tx Pkts :933331 +Host Tx Bytes :69433499 +Host Tx dropped :0 +FragTxCreate :0 +FragTxOk :0 +FragTxDrop :0 +Member Ports : + [00]: a + [01]: lan1 + [02]: lan2 diff --git a/tests/fortinet/get_hardware_nic_nic-name/fortinet_get_hardware_nic_nic-name.yml b/tests/fortinet/get_hardware_nic_nic-name/fortinet_get_hardware_nic_nic-name.yml new file mode 100644 index 0000000000..0ccb8a6c22 --- /dev/null +++ b/tests/fortinet/get_hardware_nic_nic-name/fortinet_get_hardware_nic_nic-name.yml @@ -0,0 +1,35 @@ +--- +parsed_sample: + - admin: "up" + autonego_setting: "1" + board: "40F" + current_hwaddr: "12:34:56:78:90:ab" + description: "FortiASIC NP6XLITE Adapter" + driver_name: "FortiASIC NP6XLITE Driver" + duplex: "Full" + duplex_setting: "1" + fragtxcreate: "0" + fragtxdrop: "0" + fragtxok: "0" + host_rx_bytes: "87501251" + host_rx_packets: "1395584" + host_tx_bytes: "69433499" + host_tx_dropped: "0" + host_tx_packets: "933331" + lif_id: "7" + lif_oid: "71" + link_setting: "0" + link_status: "Up" + member_ports: + - "[00]: a" + - "[01]: lan1" + - "[02]: lan2" + netdev_oid: "71" + netdev_status: "N/A" + permanent_hwaddr: "12:34:56:78:90:ab" + rx_bytes: "62442497" + rx_packets: "645878" + speed: "100" + speed_setting: "1000" + tx_bytes: "76984876" + tx_packets: "1025883" From 16467e98da5da90af98dd82356c7214ef8f80e03 Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Mon, 22 Jul 2024 23:21:03 +0400 Subject: [PATCH 26/60] Add MikroTik RouterOS interface print detail template (#1494) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”> Co-authored-by: Jacob McGill <9847006+jmcgill298@users.noreply.github.com> --- ntc_templates/templates/index | 1 + ...ik_routeros_interface_print_detail.textfsm | 30 ++++ ...krotik_routeros_interface_print_detail.raw | 21 +++ ...krotik_routeros_interface_print_detail.yml | 149 ++++++++++++++++++ 4 files changed, 201 insertions(+) create mode 100644 ntc_templates/templates/mikrotik_routeros_interface_print_detail.textfsm create mode 100644 tests/mikrotik_routeros/interface_print_detail/mikrotik_routeros_interface_print_detail.raw create mode 100644 tests/mikrotik_routeros/interface_print_detail/mikrotik_routeros_interface_print_detail.yml diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 819c4f2dd9..a5974ce2d1 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -707,6 +707,7 @@ mikrotik_routeros_ip_arp_print_without-paging.textfsm, .*, mikrotik_routeros, [[ mikrotik_routeros_ip_address_export_verbose.textfsm, .*, mikrotik_routeros, [[/]]ip a[[ddress]] e[[xport]] [[verbose]] mikrotik_routeros_interface_ethernet_print.textfsm, .*, mikrotik_routeros, [[/]]in[[terface]] et[[hernet]] pr[[int]] mikrotik_routeros_system_routerboard_print.textfsm, .*, mikrotik_routeros, [[/]]system routerboard print +mikrotik_routeros_interface_print_detail.textfsm, .*, mikrotik_routeros, [[/]]in[[terface]] p[[rint]] d[[etail]] mikrotik_routeros_interface_print_brief.textfsm, .*, mikrotik_routeros, [[/]]in[[terface]] p[[rint]] b[[rief]] mikrotik_routeros_ip_route_print_detail.textfsm, .*, mikrotik_routeros, [[/]]ip r[[oute]] p[[rint]] d[[etail]] mikrotik_routeros_ip_route_print_terse.textfsm, .*, mikrotik_routeros, [[/]]ip(v6)? route print terse diff --git a/ntc_templates/templates/mikrotik_routeros_interface_print_detail.textfsm b/ntc_templates/templates/mikrotik_routeros_interface_print_detail.textfsm new file mode 100644 index 0000000000..4d2dcea58d --- /dev/null +++ b/ntc_templates/templates/mikrotik_routeros_interface_print_detail.textfsm @@ -0,0 +1,30 @@ +Value Required ID (\d+) +Value DYNAMIC (D) +Value STATUS (X|R) +Value SLAVE (S) +Value NAME (\S+) +Value List DESCRIPTION ((?!\s*$).+[^\s]) +Value DEFAULT_NAME (\S+) +Value TYPE (\S+) +Value MTU (\d+|auto) +Value ACTUAL_MTU (\d+) +Value L2MTU (\d+|auto) +Value MAX_L2MTU (\d+) +Value MAC_ADDRESS ([a-zA-Z0-9]{2}(?::[a-zA-Z0-9]{2}){5}) +Value LAST_LINK_DOWN_TIME ([a-z]{3}/\d+/\d+\s\d+\:\d+\:\d+) +Value LAST_LINK_UP_TIME ([a-z]{3}/\d+/\d+\s\d+\:\d+\:\d+) +Value LINK_DOWNS (\d+) + +Start + ^\s*Flags:\s+D\s+-\s+dynamic,\s+X\s+-\s+disabled,\s+R\s+-\s+running,\s+S\s+-\s+slave\s*$$ -> Interface + ^\s*$$ + ^. -> Error + +Interface + ^\s*\d+(?:\s+D)?(?:\s*X|R)?(?:\s*S)?\s+ -> Continue.Record + ^\s*${ID}(?:\s+${DYNAMIC})?(?:\s*${STATUS})?(?:\s*${SLAVE})?\s+name="${NAME}"(?:\s+default-name="${DEFAULT_NAME}")?\s+type="${TYPE}"(\s+mtu=${MTU})?(?:\s+actual-mtu=${ACTUAL_MTU})?(?:\s+l2mtu=${L2MTU})?(?:\s+max-l2mtu=${MAX_L2MTU})?(?:\s+mac-address=${MAC_ADDRESS})?(?:\s+last-link-down-time=${LAST_LINK_DOWN_TIME})?(?:\s+last-link-up-time=${LAST_LINK_UP_TIME})?(?:\s+link-downs=${LINK_DOWNS})?\s*$$ + ^\s*name="${NAME}"(?:\s+default-name="${DEFAULT_NAME}")?\s+type="${TYPE}"(\s+mtu=${MTU})?(?:\s+actual-mtu=${ACTUAL_MTU})?(?:\s+l2mtu=${L2MTU})?(?:\s+max-l2mtu=${MAX_L2MTU})?(?:\s+mac-address=${MAC_ADDRESS})?(?:\s+last-link-down-time=${LAST_LINK_DOWN_TIME})?(?:\s+last-link-up-time=${LAST_LINK_UP_TIME})?(?:\s+link-downs=${LINK_DOWNS})?\s*$$ + ^\s*${ID}(?:\s+${DYNAMIC})?(?:\s*${STATUS})?(?:\s*${SLAVE})?\s+;{3}\s+${DESCRIPTION}\s*$$ + ^${DESCRIPTION}\s*$$ + ^\s*$$ + ^. -> Error diff --git a/tests/mikrotik_routeros/interface_print_detail/mikrotik_routeros_interface_print_detail.raw b/tests/mikrotik_routeros/interface_print_detail/mikrotik_routeros_interface_print_detail.raw new file mode 100644 index 0000000000..420a1b73fd --- /dev/null +++ b/tests/mikrotik_routeros/interface_print_detail/mikrotik_routeros_interface_print_detail.raw @@ -0,0 +1,21 @@ +Flags: D - dynamic, X - disabled, R - running, S - slave + 0 name="ether1" default-name="ether1" type="ether" mtu=1500 actual-mtu=1500 l2mtu=1598 max-l2mtu=2028 mac-address=12:34:56:78:90:AA last-link-down-time=jul/09/2023 07:18:33 last-link-up-time=jul/09/2023 07:18:42 link-downs=20 + + 1 D name="ether2" default-name="ether2" type="ether" mtu=1500 actual-mtu=1500 l2mtu=1598 max-l2mtu=2028 mac-address=12:34:56:78:90:AB last-link-down-time=jul/09/2023 07:18:34 last-link-up-time=jul/09/2023 07:18:43 link-downs=20 + + 2 R name="ether3" default-name="ether3" type="ether" mtu=1500 actual-mtu=1500 l2mtu=1598 max-l2mtu=2028 mac-address=12:34:56:78:90:AC link-downs=0 + + 3 S name="ether4" default-name="ether4" type="ether" mtu=1500 actual-mtu=1500 l2mtu=1598 max-l2mtu=2028 mac-address=12:34:56:78:90:AD link-downs=0 + + 4 DR name="ether5" default-name="ether5" type="ether" mtu=1500 actual-mtu=1500 l2mtu=1598 max-l2mtu=2028 mac-address=12:34:56:78:90:AE link-downs=0 + + 5 RS name="ether6" default-name="ether6" type="ether" mtu=1500 actual-mtu=1500 l2mtu=1598 max-l2mtu=2028 mac-address=12:34:56:78:90:AF link-downs=0 + + 6 D S name="lte1" type="lte" mtu=1500 actual-mtu=1500 mac-address=12:34:56:78:90:BA last-link-down-time=jul/21/2023 07:47:40 last-link-up-time=jul/21/2023 07:47:46 link-downs=114 + + 7 DRS ;;; very very long +multiline description + name="pptp-out1" type="pptp-out" mtu=1450 actual-mtu=1450 last-link-down-time=jul/21/2023 07:47:03 last-link-up-time=jul/21/2023 07:47:56 link-downs=304 + + 8 RS ;;; Free Wi-Fi HTTPS + name="pptp-to-AH1100-HS" type="pptp-out" mtu=1596 actual-mtu=1596 last-link-down-time=nov/03/1970 12:24:10 last-link-up-time=nov/03/1970 12:24:10 link-downs=38 diff --git a/tests/mikrotik_routeros/interface_print_detail/mikrotik_routeros_interface_print_detail.yml b/tests/mikrotik_routeros/interface_print_detail/mikrotik_routeros_interface_print_detail.yml new file mode 100644 index 0000000000..2cc4e96b91 --- /dev/null +++ b/tests/mikrotik_routeros/interface_print_detail/mikrotik_routeros_interface_print_detail.yml @@ -0,0 +1,149 @@ +--- +parsed_sample: + - actual_mtu: "1500" + default_name: "ether1" + dynamic: "" + id: "0" + l2mtu: "1598" + last_link_down_time: "jul/09/2023 07:18:33" + last_link_up_time: "jul/09/2023 07:18:42" + link_downs: "20" + mac_address: "12:34:56:78:90:AA" + max_l2mtu: "2028" + mtu: "1500" + name: "ether1" + description: [] + slave: "" + status: "" + type: "ether" + - actual_mtu: "1500" + default_name: "ether2" + dynamic: "D" + id: "1" + l2mtu: "1598" + last_link_down_time: "jul/09/2023 07:18:34" + last_link_up_time: "jul/09/2023 07:18:43" + link_downs: "20" + mac_address: "12:34:56:78:90:AB" + max_l2mtu: "2028" + mtu: "1500" + name: "ether2" + description: [] + slave: "" + status: "" + type: "ether" + - actual_mtu: "1500" + default_name: "ether3" + dynamic: "" + id: "2" + l2mtu: "1598" + last_link_down_time: "" + last_link_up_time: "" + link_downs: "0" + mac_address: "12:34:56:78:90:AC" + max_l2mtu: "2028" + mtu: "1500" + name: "ether3" + description: [] + slave: "" + status: "R" + type: "ether" + - actual_mtu: "1500" + default_name: "ether4" + dynamic: "" + id: "3" + l2mtu: "1598" + last_link_down_time: "" + last_link_up_time: "" + link_downs: "0" + mac_address: "12:34:56:78:90:AD" + max_l2mtu: "2028" + mtu: "1500" + name: "ether4" + description: [] + slave: "S" + status: "" + type: "ether" + - actual_mtu: "1500" + default_name: "ether5" + dynamic: "D" + id: "4" + l2mtu: "1598" + last_link_down_time: "" + last_link_up_time: "" + link_downs: "0" + mac_address: "12:34:56:78:90:AE" + max_l2mtu: "2028" + mtu: "1500" + name: "ether5" + description: [] + slave: "" + status: "R" + type: "ether" + - actual_mtu: "1500" + default_name: "ether6" + dynamic: "" + id: "5" + l2mtu: "1598" + last_link_down_time: "" + last_link_up_time: "" + link_downs: "0" + mac_address: "12:34:56:78:90:AF" + max_l2mtu: "2028" + mtu: "1500" + name: "ether6" + description: [] + slave: "S" + status: "R" + type: "ether" + - actual_mtu: "1500" + default_name: "" + dynamic: "D" + id: "6" + l2mtu: "" + last_link_down_time: "jul/21/2023 07:47:40" + last_link_up_time: "jul/21/2023 07:47:46" + link_downs: "114" + mac_address: "12:34:56:78:90:BA" + max_l2mtu: "" + mtu: "1500" + name: "lte1" + description: [] + slave: "S" + status: "" + type: "lte" + - actual_mtu: "1450" + default_name: "" + dynamic: "D" + id: "7" + l2mtu: "" + last_link_down_time: "jul/21/2023 07:47:03" + last_link_up_time: "jul/21/2023 07:47:56" + link_downs: "304" + mac_address: "" + max_l2mtu: "" + mtu: "1450" + name: "pptp-out1" + description: + - "very very long" + - "multiline description" + slave: "S" + status: "R" + type: "pptp-out" + - actual_mtu: "1596" + default_name: "" + dynamic: "" + id: "8" + l2mtu: "" + last_link_down_time: "nov/03/1970 12:24:10" + last_link_up_time: "nov/03/1970 12:24:10" + link_downs: "38" + mac_address: "" + max_l2mtu: "" + mtu: "1596" + name: "pptp-to-AH1100-HS" + description: + - "Free Wi-Fi HTTPS" + slave: "S" + status: "R" + type: "pptp-out" From 63aa20d44f1bb9abf2cb94d6a1c6b2786d527f0a Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Mon, 22 Jul 2024 23:21:48 +0400 Subject: [PATCH 27/60] Add Fortinet execute dhcp lease-list template (#1487) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”> --- .../fortinet_execute_dhcp_lease-list.textfsm | 29 +++++++++++++ ntc_templates/templates/index | 1 + ...inet_execute_dhcp_lease-list_5_columns.raw | 10 +++++ ...inet_execute_dhcp_lease-list_5_columns.yml | 34 +++++++++++++++ ...inet_execute_dhcp_lease-list_7_columns.raw | 11 +++++ ...inet_execute_dhcp_lease-list_7_columns.yml | 42 +++++++++++++++++++ 6 files changed, 127 insertions(+) create mode 100644 ntc_templates/templates/fortinet_execute_dhcp_lease-list.textfsm create mode 100644 tests/fortinet/execute_dhcp_lease-list/fortinet_execute_dhcp_lease-list_5_columns.raw create mode 100644 tests/fortinet/execute_dhcp_lease-list/fortinet_execute_dhcp_lease-list_5_columns.yml create mode 100644 tests/fortinet/execute_dhcp_lease-list/fortinet_execute_dhcp_lease-list_7_columns.raw create mode 100644 tests/fortinet/execute_dhcp_lease-list/fortinet_execute_dhcp_lease-list_7_columns.yml diff --git a/ntc_templates/templates/fortinet_execute_dhcp_lease-list.textfsm b/ntc_templates/templates/fortinet_execute_dhcp_lease-list.textfsm new file mode 100644 index 0000000000..959b79e9f8 --- /dev/null +++ b/ntc_templates/templates/fortinet_execute_dhcp_lease-list.textfsm @@ -0,0 +1,29 @@ +Value Filldown INTERFACE (\S+) +Value Required IP (\S+) +Value MAC_ADDRESS (([a-f0-9]{2}:){5}[a-f0-9]{2}) +Value HOSTNAME ([^ ].+?(?=\s{2})) +Value VCI ([^ ].+?(?=\s{2})) +Value SSID (\S+) +Value AP (\S+) +Value EXPIRY ((Mon|Tue|Wed|Thu|Fri|Sat|Sun)\s+(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s+\d+\s+\d+\:\d+\:\d+\s+\d+) + +Start + ^\s*${INTERFACE}\s*$$ + ^\s*IP\s+MAC-Address\s+Hostname\s+VCI\s+SSID\s+AP\s+Expiry\s*$$ -> SevenColumns + ^\s*IP\s+MAC-Address\s+Hostname\s+VCI\s+Expiry\s*$$ -> FiveColumns + ^\s*$$ + ^. -> Error + +SevenColumns + ^\s*IP\s+MAC-Address\s+Hostname\s+VCI\s+SSID\s+AP\s+Expiry\s*$$ + ^\s*${INTERFACE}\s*$$ + ^\s*${IP}\s+${MAC_ADDRESS}\s+${HOSTNAME}(\s+${VCI})?(\s+${SSID})?(\s+${AP})?\s+${EXPIRY}\s*$$ -> Record + ^\s*$$ + ^. -> Error + +FiveColumns + ^\s*IP\s+MAC-Address\s+Hostname\s+VCI\s+Expiry\s*$$ + ^\s*${INTERFACE}\s*$$ + ^\s*${IP}\s+${MAC_ADDRESS}\s+${HOSTNAME}(\s+${VCI})?\s+${EXPIRY}\s*$$ -> Record + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index a5974ce2d1..d6edca2dbf 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -581,6 +581,7 @@ fortinet_get_system_interface_physical.textfsm, .*, fortinet, g[[et]] sy[[stem]] fortinet_get_router_info_bgp_summary.textfsm, .*, fortinet, g[[et]] r[[outer]] info bg[[p]] su[[mmary]] fortinet_get_router_info_ospf_status.textfsm, .*, fortinet, g[[et]] r[[outer]] info o[[spf]] s[[tatus]] fortinet_get_hardware_nic_nic-name.textfsm, .*, fortinet, g[[et]] hard[[ware]] n[[ic]] (\S+) +fortinet_execute_dhcp_lease-list.textfsm, .*, fortinet, exec[[ute]] dhcp lease-l[[ist]] fortinet_get_system_ha_status.textfsm, .*, fortinet, g[[et]] sy[[stem]] ha s[[tatus]] fortinet_get_system_interface.textfsm, .*, fortinet, g[[et]] sy[[stem]] in[[terface]] fortinet_fnsysctl_ifconfig.textfsm, .*, fortinet, fnsysctl ifconfig diff --git a/tests/fortinet/execute_dhcp_lease-list/fortinet_execute_dhcp_lease-list_5_columns.raw b/tests/fortinet/execute_dhcp_lease-list/fortinet_execute_dhcp_lease-list_5_columns.raw new file mode 100644 index 0000000000..4ab90bade1 --- /dev/null +++ b/tests/fortinet/execute_dhcp_lease-list/fortinet_execute_dhcp_lease-list_5_columns.raw @@ -0,0 +1,10 @@ +Staff_Wifi +IP MAC-Address Hostname VCI Expiry +10.0.0.4 cc:cc:cc:cc:cc:cc MyOtherPhone MSFT 5.0 Sat Aug 10 04:55:47 2019 +10.0.0.6 ee:ee:ee:ee:ee:ee Joes Phone Fri Aug 9 21:12:36 2019 +Guest_Wifi +IP MAC-Address Hostname VCI Expiry +172.16.31.3 11:11:11:11:11:11 android android-dhcp Mon Aug 12 07:47:46 2019 +port15 +IP MAC-Address Hostname VCI Expiry +192.168.4.101 08:5b:0e:48:48:48 FortiAP-FP221C Sat Aug 10 14:10:44 2019 diff --git a/tests/fortinet/execute_dhcp_lease-list/fortinet_execute_dhcp_lease-list_5_columns.yml b/tests/fortinet/execute_dhcp_lease-list/fortinet_execute_dhcp_lease-list_5_columns.yml new file mode 100644 index 0000000000..0a7e1803bc --- /dev/null +++ b/tests/fortinet/execute_dhcp_lease-list/fortinet_execute_dhcp_lease-list_5_columns.yml @@ -0,0 +1,34 @@ +--- +parsed_sample: + - ap: "" + expiry: "Sat Aug 10 04:55:47 2019" + hostname: "MyOtherPhone" + interface: "Staff_Wifi" + ip: "10.0.0.4" + mac_address: "cc:cc:cc:cc:cc:cc" + ssid: "" + vci: "MSFT 5.0" + - ap: "" + expiry: "Fri Aug 9 21:12:36 2019" + hostname: "Joes Phone" + interface: "Staff_Wifi" + ip: "10.0.0.6" + mac_address: "ee:ee:ee:ee:ee:ee" + ssid: "" + vci: "" + - ap: "" + expiry: "Mon Aug 12 07:47:46 2019" + hostname: "android" + interface: "Guest_Wifi" + ip: "172.16.31.3" + mac_address: "11:11:11:11:11:11" + ssid: "" + vci: "android-dhcp" + - ap: "" + expiry: "Sat Aug 10 14:10:44 2019" + hostname: "FortiAP-FP221C" + interface: "port15" + ip: "192.168.4.101" + mac_address: "08:5b:0e:48:48:48" + ssid: "" + vci: "" diff --git a/tests/fortinet/execute_dhcp_lease-list/fortinet_execute_dhcp_lease-list_7_columns.raw b/tests/fortinet/execute_dhcp_lease-list/fortinet_execute_dhcp_lease-list_7_columns.raw new file mode 100644 index 0000000000..b7cf0e342c --- /dev/null +++ b/tests/fortinet/execute_dhcp_lease-list/fortinet_execute_dhcp_lease-list_7_columns.raw @@ -0,0 +1,11 @@ +Vlan1 + IP MAC-Address Hostname VCI SSID AP Expiry + 10.32.159.11 cc:6b:1e:14:15:e1 NLZ0637-02 MSFT 5.0 Tue Jul 18 19:24:19 2023 + 10.32.159.26 34:db:fd:5d:b6:b5 SPA112 Tue Jul 18 19:02:45 2023 +Vlan2 + IP MAC-Address Hostname VCI SSID AP Expiry + 10.32.159.162 b8:27:eb:9c:56:f9 YUM-FM_567 dhcpcd-6.7.1:Linux-4.4.21-v7+:armv7l:BCM2709 Mon Jul 24 20:00:26 2023 +Vlan3 + IP MAC-Address Hostname VCI SSID AP Expiry + 10.32.159.197 74:ac:b9:96:51:fd Unifi3BS21ubnt Sun Jul 23 21:13:54 2023 + 10.32.159.199 74:ac:b9:96:51:e4 Unifi1BS21ubnt Sun Jul 23 21:13:29 2023 diff --git a/tests/fortinet/execute_dhcp_lease-list/fortinet_execute_dhcp_lease-list_7_columns.yml b/tests/fortinet/execute_dhcp_lease-list/fortinet_execute_dhcp_lease-list_7_columns.yml new file mode 100644 index 0000000000..2480d466b6 --- /dev/null +++ b/tests/fortinet/execute_dhcp_lease-list/fortinet_execute_dhcp_lease-list_7_columns.yml @@ -0,0 +1,42 @@ +--- +parsed_sample: + - ap: "" + expiry: "Tue Jul 18 19:24:19 2023" + hostname: "NLZ0637-02" + interface: "Vlan1" + ip: "10.32.159.11" + mac_address: "cc:6b:1e:14:15:e1" + ssid: "" + vci: "MSFT 5.0" + - ap: "" + expiry: "Tue Jul 18 19:02:45 2023" + hostname: "SPA112" + interface: "Vlan1" + ip: "10.32.159.26" + mac_address: "34:db:fd:5d:b6:b5" + ssid: "" + vci: "" + - ap: "" + expiry: "Mon Jul 24 20:00:26 2023" + hostname: "YUM-FM_567" + interface: "Vlan2" + ip: "10.32.159.162" + mac_address: "b8:27:eb:9c:56:f9" + ssid: "" + vci: "dhcpcd-6.7.1:Linux-4.4.21-v7+:armv7l:BCM2709" + - ap: "" + expiry: "Sun Jul 23 21:13:54 2023" + hostname: "Unifi3BS21ubnt" + interface: "Vlan3" + ip: "10.32.159.197" + mac_address: "74:ac:b9:96:51:fd" + ssid: "" + vci: "" + - ap: "" + expiry: "Sun Jul 23 21:13:29 2023" + hostname: "Unifi1BS21ubnt" + interface: "Vlan3" + ip: "10.32.159.199" + mac_address: "74:ac:b9:96:51:e4" + ssid: "" + vci: "" From 5e786840935f6420aaf5dc506c26e4d96c0b2862 Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Mon, 22 Jul 2024 23:30:28 +0400 Subject: [PATCH 28/60] Add MikroTik routing bgp peer print status template (#1497) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”> --- ntc_templates/templates/index | 1 + ...tik_routeros_routing_bgp_peer_print_status.textfsm | 11 +++++++++++ ...ikrotik_routeros_routing_bgp_peer_print_status.raw | 3 +++ ...ikrotik_routeros_routing_bgp_peer_print_status.yml | 6 ++++++ 4 files changed, 21 insertions(+) create mode 100644 ntc_templates/templates/mikrotik_routeros_routing_bgp_peer_print_status.textfsm create mode 100644 tests/mikrotik_routeros/routing_bgp_peer_print_status/mikrotik_routeros_routing_bgp_peer_print_status.raw create mode 100644 tests/mikrotik_routeros/routing_bgp_peer_print_status/mikrotik_routeros_routing_bgp_peer_print_status.yml diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index d6edca2dbf..be812450a5 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -704,6 +704,7 @@ mikrotik_routeros_ip_firewall_address-list_print_terse.textfsm, .*, mikrotik_rou mikrotik_routeros_snmp_community_print_without-paging.textfsm, .*, mikrotik_routeros, [[/]]snmp community print without-paging mikrotik_routeros_ipv6_neighbor_print_without-paging.textfsm, .*, mikrotik_routeros, [[/]]ipv6 neighbor print without-paging mikrotik_routeros_log_print_detail_without-paging.textfsm, .*, mikrotik_routeros, [[/]]log p[[rint]] d[[etail]] wi[[thout-paging]] +mikrotik_routeros_routing_bgp_peer_print_status.textfsm, .*, mikrotik_routeros, [[/]]r[[outing]] bg[[p]] p[[eer]] p[[rint]] s[[tatus]] mikrotik_routeros_ip_arp_print_without-paging.textfsm, .*, mikrotik_routeros, [[/]]ip arp print without-paging mikrotik_routeros_ip_address_export_verbose.textfsm, .*, mikrotik_routeros, [[/]]ip a[[ddress]] e[[xport]] [[verbose]] mikrotik_routeros_interface_ethernet_print.textfsm, .*, mikrotik_routeros, [[/]]in[[terface]] et[[hernet]] pr[[int]] diff --git a/ntc_templates/templates/mikrotik_routeros_routing_bgp_peer_print_status.textfsm b/ntc_templates/templates/mikrotik_routeros_routing_bgp_peer_print_status.textfsm new file mode 100644 index 0000000000..a157fcedc0 --- /dev/null +++ b/ntc_templates/templates/mikrotik_routeros_routing_bgp_peer_print_status.textfsm @@ -0,0 +1,11 @@ +Value BGP_NEIGHBOR (\S+) +Value NEIGHBOR_AS (\d+) +Value UP_DOWN (\S+) +Value STATE (\S+) + +Start + ^\s*Flags:\s+X\s+-\s+disabled,\s+E\s+-\s+established\s*$$ + ^.*remote-address=${BGP_NEIGHBOR}.*remote-as=${NEIGHBOR_AS}.*(?:uptime=${UP_DOWN})?.*$$ + ^.*state=${STATE}.*$$ -> Record + ^\s*$$ + ^. -> Error diff --git a/tests/mikrotik_routeros/routing_bgp_peer_print_status/mikrotik_routeros_routing_bgp_peer_print_status.raw b/tests/mikrotik_routeros/routing_bgp_peer_print_status/mikrotik_routeros_routing_bgp_peer_print_status.raw new file mode 100644 index 0000000000..f983bf770f --- /dev/null +++ b/tests/mikrotik_routeros/routing_bgp_peer_print_status/mikrotik_routeros_routing_bgp_peer_print_status.raw @@ -0,0 +1,3 @@ +Flags: X - disabled, E - established + 0 name="peer1" instance=default remote-address=192.168.1.134 remote-as=65001 tcp-md5-key="" nexthop-choice=default multihop=no route-reflect=no hold-time=3m + ttl=255 in-filter="" out-filter="" address-families=ip,ipv6 default-originate=never remove-private-as=no as-override=no passive=no use-bfd=no state=opensent diff --git a/tests/mikrotik_routeros/routing_bgp_peer_print_status/mikrotik_routeros_routing_bgp_peer_print_status.yml b/tests/mikrotik_routeros/routing_bgp_peer_print_status/mikrotik_routeros_routing_bgp_peer_print_status.yml new file mode 100644 index 0000000000..815f33953a --- /dev/null +++ b/tests/mikrotik_routeros/routing_bgp_peer_print_status/mikrotik_routeros_routing_bgp_peer_print_status.yml @@ -0,0 +1,6 @@ +--- +parsed_sample: + - bgp_neighbor: "192.168.1.134" + neighbor_as: "65001" + state: "opensent" + up_down: "" From a9273b8c35d64f22d05d5c8ef8ce5db9a2ee4d9e Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Mon, 22 Jul 2024 23:46:56 +0400 Subject: [PATCH 29/60] Add Fortinet execute log display template (#1486) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”> --- .../fortinet_execute_log_display.textfsm | 19 ++++++ ntc_templates/templates/index | 1 + .../fortinet_execute_log_display.raw | 9 +++ .../fortinet_execute_log_display.yml | 66 +++++++++++++++++++ .../fortinet_execute_log_display_no_logs.raw | 2 + .../fortinet_execute_log_display_no_logs.yml | 13 ++++ 6 files changed, 110 insertions(+) create mode 100644 ntc_templates/templates/fortinet_execute_log_display.textfsm create mode 100644 tests/fortinet/execute_log_display/fortinet_execute_log_display.raw create mode 100644 tests/fortinet/execute_log_display/fortinet_execute_log_display.yml create mode 100644 tests/fortinet/execute_log_display/fortinet_execute_log_display_no_logs.raw create mode 100644 tests/fortinet/execute_log_display/fortinet_execute_log_display_no_logs.yml diff --git a/ntc_templates/templates/fortinet_execute_log_display.textfsm b/ntc_templates/templates/fortinet_execute_log_display.textfsm new file mode 100644 index 0000000000..267f3ee76f --- /dev/null +++ b/ntc_templates/templates/fortinet_execute_log_display.textfsm @@ -0,0 +1,19 @@ +Value LOGS_FOUND (\d+) +Value LOGS_RETURNED (\d+) +Value LOGS_SEARCHED (\d+(?:\.\d+)?) +Value MESSAGE_NUMBER (\d+) +Value YEAR (\d{4}) +Value MONTH (\d{2}) +Value DAY (\d{2}) +Value HOUR (\d{2}) +Value MINUTE (\d{2}) +Value SECOND (\d{2}) +Value MESSAGE (.+?) + +Start + ^\s*${LOGS_FOUND}\s+logs\s+found\.\s*$$ + ^\s*${LOGS_RETURNED}\s+logs\s+returned\.\s*$$ + ^\s*${LOGS_SEARCHED}%\s+of\s+logs\s+has\s+been\s+searched\.\s*$$ + ^\s*${MESSAGE_NUMBER}:\s+date=${YEAR}-${MONTH}-${DAY}\s+time=${HOUR}:${MINUTE}:${SECOND}\s+${MESSAGE}\s*$$ -> Record + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index be812450a5..1e7a881c72 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -584,6 +584,7 @@ fortinet_get_hardware_nic_nic-name.textfsm, .*, fortinet, g[[et]] hard[[ware]] n fortinet_execute_dhcp_lease-list.textfsm, .*, fortinet, exec[[ute]] dhcp lease-l[[ist]] fortinet_get_system_ha_status.textfsm, .*, fortinet, g[[et]] sy[[stem]] ha s[[tatus]] fortinet_get_system_interface.textfsm, .*, fortinet, g[[et]] sy[[stem]] in[[terface]] +fortinet_execute_log_display.textfsm, .*, fortinet, exec[[ute]] l[[og]] di[[splay]] fortinet_fnsysctl_ifconfig.textfsm, .*, fortinet, fnsysctl ifconfig fortinet_get_system_status.textfsm, .*, fortinet, g[[et]] sy[[stem]] stat[[us]] fortinet_diagnose_sys_top.textfsm, .*, fortinet, d[[iagnose]] sy[[s]] top diff --git a/tests/fortinet/execute_log_display/fortinet_execute_log_display.raw b/tests/fortinet/execute_log_display/fortinet_execute_log_display.raw new file mode 100644 index 0000000000..e2ae914816 --- /dev/null +++ b/tests/fortinet/execute_log_display/fortinet_execute_log_display.raw @@ -0,0 +1,9 @@ +2492 logs found. +10 logs returned. +5.8% of logs has been searched. + +1: date=2023-08-10 time=19:41:18 logid="0000000013" type="traffic" subtype="forward" level="notice" vd="root" eventtime=1691685678378886140 tz="+0300" srcip=10.18.158.26 srcname="SPA112" srcport=51753 srcintf="Vlan10" srcintfrole="lan" dstip=192.168.211.2 dstport=69 dstintf="Tu-Hub01-Main" dstintfrole="undefined" srccountry="Reserved" dstcountry="Reserved" sessionid=27409697 proto=17 action="accept" policyid=17 policytype="policy" poluuid="764f657a-c0dd-51ec-9d9c-2374a4d1b1d4" policyname="Permit IP-Phones Vlan10 OUT" service="TFTP" trandisp="noop" duration=1805 sentbyte=66 rcvdbyte=0 sentpkt=1 rcvdpkt=0 vpn="Tu-Hub01-Main" vpntype="ipsec-static" appcat="unscanned" srchwvendor="Cisco" devtype="IP Phone" srcfamily="ATA" srchwversion="SPA112" mastersrcmac="50:67:ae:f0:6c:80" srcmac="50:67:ae:f0:6c:80" srcserver=0 + +2: date=2023-08-10 time=19:40:47 logid="0000000013" type="traffic" subtype="forward" level="notice" vd="root" eventtime=1691685647648897600 tz="+0300" srcip=10.18.158.26 srcname="SPA112" srcport=46212 srcintf="Vlan10" srcintfrole="lan" dstip=192.168.211.2 dstport=69 dstintf="Tu-Hub01-Main" dstintfrole="undefined" srccountry="Reserved" dstcountry="Reserved" sessionid=27408109 proto=17 action="accept" policyid=17 policytype="policy" poluuid="764f657a-c0dd-51ec-9d9c-2374a4d1b1d4" policyname="Permit IP-Phones Vlan10 OUT" service="TFTP" trandisp="noop" duration=1804 sentbyte=66 rcvdbyte=0 sentpkt=1 rcvdpkt=0 vpn="Tu-Hub01-Main" vpntype="ipsec-static" appcat="unscanned" srchwvendor="Cisco" devtype="IP Phone" srcfamily="ATA" srchwversion="SPA112" mastersrcmac="50:67:ae:f0:6c:80" srcmac="50:67:ae:f0:6c:80" srcserver=0 + +3: date=2023-08-10 time=19:40:28 logid="0000000020" type="traffic" subtype="forward" level="notice" vd="root" eventtime=1691685628534615260 tz="+0300" srcip=10.18.158.26 srcname="SPA112" srcport=5060 srcintf="Vlan10" srcintfrole="lan" dstip=10.18.253.10 dstport=5060 dstintf="Tu-Hub01-Main" dstintfrole="undefined" srccountry="Reserved" dstcountry="Reserved" sessionid=1920 proto=17 action="accept" policyid=17 policytype="policy" poluuid="764f657a-c0dd-51ec-9d9c-2374a4d1b1d4" policyname="Permit IP-Phones Vlan10 OUT" service="SIP" trandisp="noop" duration=1506311 sentbyte=12959083 rcvdbyte=16082785 sentpkt=27800 rcvdpkt=27778 vpn="Tu-Hub01-Main" vpntype="ipsec-static" appcat="unscanned" sentdelta=890 rcvddelta=1158 srchwvendor="Cisco" devtype="IP Phone" srcfamily="ATA" srchwversion="SPA112" mastersrcmac="50:67:ae:f0:6c:80" srcmac="50:67:ae:f0:6c:80" srcserver=0 diff --git a/tests/fortinet/execute_log_display/fortinet_execute_log_display.yml b/tests/fortinet/execute_log_display/fortinet_execute_log_display.yml new file mode 100644 index 0000000000..828b98dee6 --- /dev/null +++ b/tests/fortinet/execute_log_display/fortinet_execute_log_display.yml @@ -0,0 +1,66 @@ +--- +parsed_sample: + - day: "10" + hour: "19" + logs_found: "2492" + logs_returned: "10" + logs_searched: "5.8" + message: "logid=\"0000000013\" type=\"traffic\" subtype=\"forward\" level=\"notice\"\ + \ vd=\"root\" eventtime=1691685678378886140 tz=\"+0300\" srcip=10.18.158.26\ + \ srcname=\"SPA112\" srcport=51753 srcintf=\"Vlan10\" srcintfrole=\"lan\" dstip=192.168.211.2\ + \ dstport=69 dstintf=\"Tu-Hub01-Main\" dstintfrole=\"undefined\" srccountry=\"\ + Reserved\" dstcountry=\"Reserved\" sessionid=27409697 proto=17 action=\"accept\"\ + \ policyid=17 policytype=\"policy\" poluuid=\"764f657a-c0dd-51ec-9d9c-2374a4d1b1d4\"\ + \ policyname=\"Permit IP-Phones Vlan10 OUT\" service=\"TFTP\" trandisp=\"noop\"\ + \ duration=1805 sentbyte=66 rcvdbyte=0 sentpkt=1 rcvdpkt=0 vpn=\"Tu-Hub01-Main\"\ + \ vpntype=\"ipsec-static\" appcat=\"unscanned\" srchwvendor=\"Cisco\" devtype=\"\ + IP Phone\" srcfamily=\"ATA\" srchwversion=\"SPA112\" mastersrcmac=\"50:67:ae:f0:6c:80\"\ + \ srcmac=\"50:67:ae:f0:6c:80\" srcserver=0" + minute: "41" + month: "08" + message_number: "1" + second: "18" + year: "2023" + - day: "10" + hour: "19" + logs_found: "" + logs_returned: "" + logs_searched: "" + message: "logid=\"0000000013\" type=\"traffic\" subtype=\"forward\" level=\"notice\"\ + \ vd=\"root\" eventtime=1691685647648897600 tz=\"+0300\" srcip=10.18.158.26\ + \ srcname=\"SPA112\" srcport=46212 srcintf=\"Vlan10\" srcintfrole=\"lan\" dstip=192.168.211.2\ + \ dstport=69 dstintf=\"Tu-Hub01-Main\" dstintfrole=\"undefined\" srccountry=\"\ + Reserved\" dstcountry=\"Reserved\" sessionid=27408109 proto=17 action=\"accept\"\ + \ policyid=17 policytype=\"policy\" poluuid=\"764f657a-c0dd-51ec-9d9c-2374a4d1b1d4\"\ + \ policyname=\"Permit IP-Phones Vlan10 OUT\" service=\"TFTP\" trandisp=\"noop\"\ + \ duration=1804 sentbyte=66 rcvdbyte=0 sentpkt=1 rcvdpkt=0 vpn=\"Tu-Hub01-Main\"\ + \ vpntype=\"ipsec-static\" appcat=\"unscanned\" srchwvendor=\"Cisco\" devtype=\"\ + IP Phone\" srcfamily=\"ATA\" srchwversion=\"SPA112\" mastersrcmac=\"50:67:ae:f0:6c:80\"\ + \ srcmac=\"50:67:ae:f0:6c:80\" srcserver=0" + minute: "40" + month: "08" + message_number: "2" + second: "47" + year: "2023" + - day: "10" + hour: "19" + logs_found: "" + logs_returned: "" + logs_searched: "" + message: "logid=\"0000000020\" type=\"traffic\" subtype=\"forward\" level=\"notice\"\ + \ vd=\"root\" eventtime=1691685628534615260 tz=\"+0300\" srcip=10.18.158.26\ + \ srcname=\"SPA112\" srcport=5060 srcintf=\"Vlan10\" srcintfrole=\"lan\" dstip=10.18.253.10\ + \ dstport=5060 dstintf=\"Tu-Hub01-Main\" dstintfrole=\"undefined\" srccountry=\"\ + Reserved\" dstcountry=\"Reserved\" sessionid=1920 proto=17 action=\"accept\"\ + \ policyid=17 policytype=\"policy\" poluuid=\"764f657a-c0dd-51ec-9d9c-2374a4d1b1d4\"\ + \ policyname=\"Permit IP-Phones Vlan10 OUT\" service=\"SIP\" trandisp=\"noop\"\ + \ duration=1506311 sentbyte=12959083 rcvdbyte=16082785 sentpkt=27800 rcvdpkt=27778\ + \ vpn=\"Tu-Hub01-Main\" vpntype=\"ipsec-static\" appcat=\"unscanned\" sentdelta=890\ + \ rcvddelta=1158 srchwvendor=\"Cisco\" devtype=\"IP Phone\" srcfamily=\"ATA\"\ + \ srchwversion=\"SPA112\" mastersrcmac=\"50:67:ae:f0:6c:80\" srcmac=\"50:67:ae:f0:6c:80\"\ + \ srcserver=0" + minute: "40" + month: "08" + message_number: "3" + second: "28" + year: "2023" diff --git a/tests/fortinet/execute_log_display/fortinet_execute_log_display_no_logs.raw b/tests/fortinet/execute_log_display/fortinet_execute_log_display_no_logs.raw new file mode 100644 index 0000000000..2db4ba9561 --- /dev/null +++ b/tests/fortinet/execute_log_display/fortinet_execute_log_display_no_logs.raw @@ -0,0 +1,2 @@ +0 logs found. +0 logs returned. diff --git a/tests/fortinet/execute_log_display/fortinet_execute_log_display_no_logs.yml b/tests/fortinet/execute_log_display/fortinet_execute_log_display_no_logs.yml new file mode 100644 index 0000000000..634ef9e82c --- /dev/null +++ b/tests/fortinet/execute_log_display/fortinet_execute_log_display_no_logs.yml @@ -0,0 +1,13 @@ +--- +parsed_sample: + - day: "" + hour: "" + logs_found: "0" + logs_returned: "0" + logs_searched: "" + message: "" + minute: "" + month: "" + message_number: "" + second: "" + year: "" From 5b7d09f35d42a120dd6c056b21d3b68f7a23e2be Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Mon, 22 Jul 2024 23:51:17 +0400 Subject: [PATCH 30/60] Add MikroTik RouterOS ip neighbor print detail template (#1511) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”> Co-authored-by: Josh VanDeraa Co-authored-by: Maxim Shpak Co-authored-by: Jacob McGill <9847006+jmcgill298@users.noreply.github.com> --- ntc_templates/templates/index | 1 + ..._routeros_ip_neighbor_print_detail.textfsm | 23 +++++++++++++++++++ ...otik_routeros_ip_neighbor_print_detail.raw | 1 + ...otik_routeros_ip_neighbor_print_detail.yml | 20 ++++++++++++++++ 4 files changed, 45 insertions(+) create mode 100644 ntc_templates/templates/mikrotik_routeros_ip_neighbor_print_detail.textfsm create mode 100644 tests/mikrotik_routeros/ip_neighbor_print_detail/mikrotik_routeros_ip_neighbor_print_detail.raw create mode 100644 tests/mikrotik_routeros/ip_neighbor_print_detail/mikrotik_routeros_ip_neighbor_print_detail.yml diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 1e7a881c72..92f06d7570 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -709,6 +709,7 @@ mikrotik_routeros_routing_bgp_peer_print_status.textfsm, .*, mikrotik_routeros, mikrotik_routeros_ip_arp_print_without-paging.textfsm, .*, mikrotik_routeros, [[/]]ip arp print without-paging mikrotik_routeros_ip_address_export_verbose.textfsm, .*, mikrotik_routeros, [[/]]ip a[[ddress]] e[[xport]] [[verbose]] mikrotik_routeros_interface_ethernet_print.textfsm, .*, mikrotik_routeros, [[/]]in[[terface]] et[[hernet]] pr[[int]] +mikrotik_routeros_ip_neighbor_print_detail.textfsm, .*, mikrotik_routeros, [[/]]ip n[[eighbor]] p[[rint]] d[[etail]] mikrotik_routeros_system_routerboard_print.textfsm, .*, mikrotik_routeros, [[/]]system routerboard print mikrotik_routeros_interface_print_detail.textfsm, .*, mikrotik_routeros, [[/]]in[[terface]] p[[rint]] d[[etail]] mikrotik_routeros_interface_print_brief.textfsm, .*, mikrotik_routeros, [[/]]in[[terface]] p[[rint]] b[[rief]] diff --git a/ntc_templates/templates/mikrotik_routeros_ip_neighbor_print_detail.textfsm b/ntc_templates/templates/mikrotik_routeros_ip_neighbor_print_detail.textfsm new file mode 100644 index 0000000000..298ec9697c --- /dev/null +++ b/ntc_templates/templates/mikrotik_routeros_ip_neighbor_print_detail.textfsm @@ -0,0 +1,23 @@ +Value NUMBER (\d+) +Value INTERFACE (\S+) +Value IP_ADDRESS (\S+) +Value IPV4_ADDRESS (\S+) +Value MAC_ADDRESS ([a-zA-Z0-9]{2}(:[a-zA-Z0-9]{2}){5}) +Value IDENTITY (.*) +Value PLATFORM (.*) +Value VERSION (.*) +Value UNPACK (none|simple|uncompressed-headers|uncompressed-all) +Value AGE ([0-9a-z]+) +Value UPTIME ([0-9a-z]+) +Value SOFTWARE_ID (\S+) +Value BOARD (\S+) +Value IPV6 (yes|no) +Value INTERFACE_NAME (.*?(?=")) +Value SYSTEM_DESCRIPTION (.*?(?=")) +Value SYSTEM_CAPS ([a-zA-Z0-9,-]*) +Value SYSTEM_CAPS_ENABLED ([a-zA-Z0-9,-]*) + +Start + ^\s*${NUMBER}\s+interface=${INTERFACE}(?:\s+address=${IP_ADDRESS})?(?:\s+address4=${IPV4_ADDRESS})?\s+mac-address=${MAC_ADDRESS}\s+identity="${IDENTITY}"\s+platform="${PLATFORM}"\s+version="${VERSION}"\s+unpack=${UNPACK}\s+age=${AGE}(?:\s+uptime=${UPTIME})?(?:\s+software-id="${SOFTWARE_ID}")?(?:\s+board="${BOARD}")?(?:\s+ipv6=${IPV6})?\s+interface-name="${INTERFACE_NAME}"(?:\s+system-description="${SYSTEM_DESCRIPTION}")?\s+system-caps="?${SYSTEM_CAPS}"?\s+system-caps-enabled="?${SYSTEM_CAPS_ENABLED}"?\s*$$ -> Record + ^\s*$$ + ^. -> Error diff --git a/tests/mikrotik_routeros/ip_neighbor_print_detail/mikrotik_routeros_ip_neighbor_print_detail.raw b/tests/mikrotik_routeros/ip_neighbor_print_detail/mikrotik_routeros_ip_neighbor_print_detail.raw new file mode 100644 index 0000000000..91373b6357 --- /dev/null +++ b/tests/mikrotik_routeros/ip_neighbor_print_detail/mikrotik_routeros_ip_neighbor_print_detail.raw @@ -0,0 +1 @@ + 0 interface=ether1 address=10.159.1.159 address4=10.159.1.159 mac-address=12:34:56:78:90:AB identity="MikroTik-Dev" platform="MikroTik" version="6.48.6 (long-term)" unpack=none age=17s uptime=1w5d2h31m30s software-id="1234-ABCD" board="RB750UPr2" interface-name="ether2" system-description="MikroTik RouterOS 6.48.6 (long-term) RB750UPr2" system-caps=bridge,router system-caps-enabled=bridge,wlan-ap,router diff --git a/tests/mikrotik_routeros/ip_neighbor_print_detail/mikrotik_routeros_ip_neighbor_print_detail.yml b/tests/mikrotik_routeros/ip_neighbor_print_detail/mikrotik_routeros_ip_neighbor_print_detail.yml new file mode 100644 index 0000000000..0a011bbe45 --- /dev/null +++ b/tests/mikrotik_routeros/ip_neighbor_print_detail/mikrotik_routeros_ip_neighbor_print_detail.yml @@ -0,0 +1,20 @@ +--- +parsed_sample: + - number: "0" + interface: "ether1" + ip_address: "10.159.1.159" + ipv4_address: "10.159.1.159" + mac_address: "12:34:56:78:90:AB" + identity: "MikroTik-Dev" + platform: "MikroTik" + version: "6.48.6 (long-term)" + unpack: "none" + age: "17s" + uptime: "1w5d2h31m30s" + software_id: "1234-ABCD" + board: "RB750UPr2" + ipv6: "" + interface_name: "ether2" + system_description: "MikroTik RouterOS 6.48.6 (long-term) RB750UPr2" + system_caps: "bridge,router" + system_caps_enabled: "bridge,wlan-ap,router" From e16348efc9aedaaf37942b6b5174029a24e92d2a Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Tue, 23 Jul 2024 00:08:36 +0400 Subject: [PATCH 31/60] Add Fortinet exec traceroute template (#1485) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”> Co-authored-by: Jacob McGill <9847006+jmcgill298@users.noreply.github.com> --- .../fortinet_execute_traceroute.textfsm | 14 ++++++ ntc_templates/templates/index | 1 + .../fortinet_execute_traceroute1.raw | 3 ++ .../fortinet_execute_traceroute1.yml | 17 +++++++ .../fortinet_execute_traceroute2.raw | 7 +++ .../fortinet_execute_traceroute2.yml | 44 +++++++++++++++++++ 6 files changed, 86 insertions(+) create mode 100644 ntc_templates/templates/fortinet_execute_traceroute.textfsm create mode 100644 tests/fortinet/execute_traceroute/fortinet_execute_traceroute1.raw create mode 100644 tests/fortinet/execute_traceroute/fortinet_execute_traceroute1.yml create mode 100644 tests/fortinet/execute_traceroute/fortinet_execute_traceroute2.raw create mode 100644 tests/fortinet/execute_traceroute/fortinet_execute_traceroute2.yml diff --git a/ntc_templates/templates/fortinet_execute_traceroute.textfsm b/ntc_templates/templates/fortinet_execute_traceroute.textfsm new file mode 100644 index 0000000000..3c99170bf9 --- /dev/null +++ b/ntc_templates/templates/fortinet_execute_traceroute.textfsm @@ -0,0 +1,14 @@ +Value DESTINATION_ADDRESS (\S+) +Value HOPS_MAX (\d+) +Value PACKETS_PER_HOP (\d+) +Value PACKET_SIZE (\d+) +Value HOP_NUM (\d+) +Value ADDRESS ((?!\*(?:\s+\*)*)\S+) +Value DETAILS (.*) + +Start + ^\s*traceroute\s+to\s+${DESTINATION_ADDRESS}\s+\(.*?\),\s+${HOPS_MAX}\s+hops\s+max,\s+${PACKETS_PER_HOP}\s+probe\s+packets\s+per\s+hop,\s+${PACKET_SIZE}\s+byte\s+packets\s*$$ + ^\s*${HOP_NUM}(?:\s+${ADDRESS})?\s+${DETAILS}\s*$$ -> Record + ^\s*\*\s*$$ + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 92f06d7570..5751458bdc 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -585,6 +585,7 @@ fortinet_execute_dhcp_lease-list.textfsm, .*, fortinet, exec[[ute]] dhcp lease-l fortinet_get_system_ha_status.textfsm, .*, fortinet, g[[et]] sy[[stem]] ha s[[tatus]] fortinet_get_system_interface.textfsm, .*, fortinet, g[[et]] sy[[stem]] in[[terface]] fortinet_execute_log_display.textfsm, .*, fortinet, exec[[ute]] l[[og]] di[[splay]] +fortinet_execute_traceroute.textfsm, .*, fortinet, exec[[ute]] traceroute fortinet_fnsysctl_ifconfig.textfsm, .*, fortinet, fnsysctl ifconfig fortinet_get_system_status.textfsm, .*, fortinet, g[[et]] sy[[stem]] stat[[us]] fortinet_diagnose_sys_top.textfsm, .*, fortinet, d[[iagnose]] sy[[s]] top diff --git a/tests/fortinet/execute_traceroute/fortinet_execute_traceroute1.raw b/tests/fortinet/execute_traceroute/fortinet_execute_traceroute1.raw new file mode 100644 index 0000000000..26e9edaa97 --- /dev/null +++ b/tests/fortinet/execute_traceroute/fortinet_execute_traceroute1.raw @@ -0,0 +1,3 @@ +traceroute to 8.8.8.8 (8.8.8.8), 32 hops max, 10 probe packets per hop, 84 byte packets + 1 1.2.3.4 0.454 ms 0.503 ms 0.262 ms 0.191 ms 0.187 ms 0.191 ms 0.191 ms 0.192 ms 0.193 ms 0.185 ms + 2 5.6.7.8 1.225 ms * * * diff --git a/tests/fortinet/execute_traceroute/fortinet_execute_traceroute1.yml b/tests/fortinet/execute_traceroute/fortinet_execute_traceroute1.yml new file mode 100644 index 0000000000..d3307ef79c --- /dev/null +++ b/tests/fortinet/execute_traceroute/fortinet_execute_traceroute1.yml @@ -0,0 +1,17 @@ +--- +parsed_sample: + - address: "1.2.3.4" + destination_address: "8.8.8.8" + details: "0.454 ms 0.503 ms 0.262 ms 0.191 ms 0.187 ms 0.191 ms 0.191 ms\ + \ 0.192 ms 0.193 ms 0.185 ms" + hop_num: "1" + hops_max: "32" + packet_size: "84" + packets_per_hop: "10" + - address: "5.6.7.8" + destination_address: "" + details: "1.225 ms * * *" + hop_num: "2" + hops_max: "" + packet_size: "" + packets_per_hop: "" diff --git a/tests/fortinet/execute_traceroute/fortinet_execute_traceroute2.raw b/tests/fortinet/execute_traceroute/fortinet_execute_traceroute2.raw new file mode 100644 index 0000000000..3324c50465 --- /dev/null +++ b/tests/fortinet/execute_traceroute/fortinet_execute_traceroute2.raw @@ -0,0 +1,7 @@ +traceroute to 8.8.8.8 (8.8.8.8), 32 hops max, 3 probe packets per hop, 84 byte packets + 1 1.2.3.4 0.423 ms 2.123 ms 0.274 ms + 2 5.6.7.8 0.389 ms 0.445 ms 0.178 ms + 3 * * * + 4 * * * + 5 * * * + 6 8.8.8.8 15.494 ms 15.488 ms 15.469 ms diff --git a/tests/fortinet/execute_traceroute/fortinet_execute_traceroute2.yml b/tests/fortinet/execute_traceroute/fortinet_execute_traceroute2.yml new file mode 100644 index 0000000000..5142ee4180 --- /dev/null +++ b/tests/fortinet/execute_traceroute/fortinet_execute_traceroute2.yml @@ -0,0 +1,44 @@ +--- +parsed_sample: + - address: "1.2.3.4" + destination_address: "8.8.8.8" + details: "0.423 ms 2.123 ms 0.274 ms" + hop_num: "1" + hops_max: "32" + packet_size: "84" + packets_per_hop: "3" + - address: "5.6.7.8" + destination_address: "" + details: "0.389 ms 0.445 ms 0.178 ms" + hop_num: "2" + hops_max: "" + packet_size: "" + packets_per_hop: "" + - address: "" + destination_address: "" + details: "* * *" + hop_num: "3" + hops_max: "" + packet_size: "" + packets_per_hop: "" + - address: "" + destination_address: "" + details: "* * *" + hop_num: "4" + hops_max: "" + packet_size: "" + packets_per_hop: "" + - address: "" + destination_address: "" + details: "* * *" + hop_num: "5" + hops_max: "" + packet_size: "" + packets_per_hop: "" + - address: "8.8.8.8" + destination_address: "" + details: "15.494 ms 15.488 ms 15.469 ms" + hop_num: "6" + hops_max: "" + packet_size: "" + packets_per_hop: "" From 212cf12a65bde0deb21ce325716b326db6449c2c Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Tue, 23 Jul 2024 00:36:03 +0400 Subject: [PATCH 32/60] Add MikroTik system resource print template (#1510) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”> Co-authored-by: Maxim Shpak --- ntc_templates/templates/index | 1 + ...tik_routeros_system_resource_print.textfsm | 46 +++++++++++++++++++ ...rotik_routeros_system_resource_print_1.raw | 17 +++++++ ...rotik_routeros_system_resource_print_1.yml | 25 ++++++++++ ...rotik_routeros_system_resource_print_2.raw | 18 ++++++++ ...rotik_routeros_system_resource_print_2.yml | 25 ++++++++++ 6 files changed, 132 insertions(+) create mode 100644 ntc_templates/templates/mikrotik_routeros_system_resource_print.textfsm create mode 100644 tests/mikrotik_routeros/system_resource_print/mikrotik_routeros_system_resource_print_1.raw create mode 100644 tests/mikrotik_routeros/system_resource_print/mikrotik_routeros_system_resource_print_1.yml create mode 100644 tests/mikrotik_routeros/system_resource_print/mikrotik_routeros_system_resource_print_2.raw create mode 100644 tests/mikrotik_routeros/system_resource_print/mikrotik_routeros_system_resource_print_2.yml diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 5751458bdc..c9be2be5e6 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -715,6 +715,7 @@ mikrotik_routeros_system_routerboard_print.textfsm, .*, mikrotik_routeros, [[/]] mikrotik_routeros_interface_print_detail.textfsm, .*, mikrotik_routeros, [[/]]in[[terface]] p[[rint]] d[[etail]] mikrotik_routeros_interface_print_brief.textfsm, .*, mikrotik_routeros, [[/]]in[[terface]] p[[rint]] b[[rief]] mikrotik_routeros_ip_route_print_detail.textfsm, .*, mikrotik_routeros, [[/]]ip r[[oute]] p[[rint]] d[[etail]] +mikrotik_routeros_system_resource_print.textfsm, .*, mikrotik_routeros, [[/]]sy[[stem]] re[[source]] p[[rint]] mikrotik_routeros_ip_route_print_terse.textfsm, .*, mikrotik_routeros, [[/]]ip(v6)? route print terse mikrotik_routeros_system_clock_print.textfsm, .*, mikrotik_routeros, [[/]]sy[[stem]] cl[[ock]] p[[rint]] mikrotik_routeros_user_active_print.textfsm, .*, mikrotik_routeros, [[/]]us[[er]] ac[[tive]] p[[rint]] diff --git a/ntc_templates/templates/mikrotik_routeros_system_resource_print.textfsm b/ntc_templates/templates/mikrotik_routeros_system_resource_print.textfsm new file mode 100644 index 0000000000..55dfd76baa --- /dev/null +++ b/ntc_templates/templates/mikrotik_routeros_system_resource_print.textfsm @@ -0,0 +1,46 @@ +Value UPTIME (\w+) +Value UPTIME_WEEKS (\d+) +Value UPTIME_DAYS (\d+) +Value UPTIME_HOURS (\d+) +Value UPTIME_MINUTES (\d+) +Value UPTIME_SECONDS (\d+) +Value VERSION (.+) +Value BUILD_TIME ([A-Za-z]{3}\/\d{1,2}\/\d{4} \d{2}:\d{2}:\d{2}) +Value FACTORY_SOFTWARE (\S+) +Value FREE_MEMORY (\d+\.\d{1}(K|M|G)iB) +Value TOTAL_MEMORY (\d+\.\d{1}(K|M|G)iB) +Value CPU (.+) +Value CPU_COUNT (\d+) +Value CPU_FREQUENCY (\d+(M|G)Hz) +Value CPU_LOAD (\d{1,3}%) +Value FREE_HDD_SPACE (\d+\.\d{1}(K|M|G)iB) +Value TOTAL_HDD_SPACE (\d+\.\d{1}(K|M|G)iB) +Value WRITE_SECT_SINCE_REBOOT (\d+) +Value WRITE_SECT_TOTAL (\d+) +Value BAD_BLOCKS (\d{1,3}(\.\d+)?%) +Value ARCHITECTURE_NAME (powerpc|x86|mipsbe|mipsle) +Value BOARD_NAME (.+) +Value PLATFORM (.+) + +Start + ^\s*uptime\:\s+${UPTIME}\s*$$ -> Continue + ^\s*uptime\:\s+(?:${UPTIME_WEEKS}w)?(?:${UPTIME_DAYS}d)?(?:${UPTIME_HOURS}h)?(?:${UPTIME_MINUTES}m)?(?:${UPTIME_SECONDS}s)?\s*$$ + ^\s*version\:\s+${VERSION}\s*$$ + ^\s*build\-time\:\s+${BUILD_TIME}\s*$$ + ^\s*factory\-software\:\s+${FACTORY_SOFTWARE}\s*$$ + ^\s*free\-memory\:\s+${FREE_MEMORY}\s*$$ + ^\s*total\-memory\:\s+${TOTAL_MEMORY}\s*$$ + ^\s*cpu\:\s+${CPU}\s*$$ + ^\s*cpu\-count\:\s+${CPU_COUNT}\s*$$ + ^\s*cpu\-frequency\:\s+${CPU_FREQUENCY}\s*$$ + ^\s*cpu\-load\:\s+${CPU_LOAD}\s*$$ + ^\s*free\-hdd\-space\:\s+${FREE_HDD_SPACE}\s*$$ + ^\s*total\-hdd\-space\:\s+${TOTAL_HDD_SPACE}\s*$$ + ^\s*write\-sect\-since\-reboot\:\s+${WRITE_SECT_SINCE_REBOOT}\s*$$ + ^\s*write\-sect\-total\:\s+${WRITE_SECT_TOTAL}\s*$$ + ^\s*bad\-blocks\:\s+${BAD_BLOCKS}\s*$$ + ^\s*architecture\-name\:\s+${ARCHITECTURE_NAME}\s*$$ + ^\s*board\-name\:\s+${BOARD_NAME}\s*$$ + ^\s*platform\:\s+${PLATFORM}\s*$$ -> Record + ^\s*$$ + ^. -> Error diff --git a/tests/mikrotik_routeros/system_resource_print/mikrotik_routeros_system_resource_print_1.raw b/tests/mikrotik_routeros/system_resource_print/mikrotik_routeros_system_resource_print_1.raw new file mode 100644 index 0000000000..52c215dacd --- /dev/null +++ b/tests/mikrotik_routeros/system_resource_print/mikrotik_routeros_system_resource_print_1.raw @@ -0,0 +1,17 @@ + uptime: 6w5d11h55m45s + version: 6.48.6 (long-term) + build-time: Dec/03/2021 12:15:05 + free-memory: 40.2MiB + total-memory: 64.0MiB + cpu: MIPS 24Kc V7.4 + cpu-count: 1 + cpu-frequency: 650MHz + cpu-load: 1% + free-hdd-space: 1196.0KiB + total-hdd-space: 16.0MiB + write-sect-since-reboot: 44663 + write-sect-total: 572180 + bad-blocks: 0% + architecture-name: mipsbe + board-name: hEX PoE lite + platform: MikroTik diff --git a/tests/mikrotik_routeros/system_resource_print/mikrotik_routeros_system_resource_print_1.yml b/tests/mikrotik_routeros/system_resource_print/mikrotik_routeros_system_resource_print_1.yml new file mode 100644 index 0000000000..3e2ea7b663 --- /dev/null +++ b/tests/mikrotik_routeros/system_resource_print/mikrotik_routeros_system_resource_print_1.yml @@ -0,0 +1,25 @@ +--- +parsed_sample: + - uptime: "6w5d11h55m45s" + uptime_weeks: "6" + uptime_days: "5" + uptime_hours: "11" + uptime_minutes: "55" + uptime_seconds: "45" + version: "6.48.6 (long-term)" + build_time: "Dec/03/2021 12:15:05" + factory_software: "" + free_memory: "40.2MiB" + total_memory: "64.0MiB" + cpu: "MIPS 24Kc V7.4" + cpu_count: "1" + cpu_frequency: "650MHz" + cpu_load: "1%" + free_hdd_space: "1196.0KiB" + total_hdd_space: "16.0MiB" + write_sect_since_reboot: "44663" + write_sect_total: "572180" + bad_blocks: "0%" + architecture_name: "mipsbe" + board_name: "hEX PoE lite" + platform: "MikroTik" diff --git a/tests/mikrotik_routeros/system_resource_print/mikrotik_routeros_system_resource_print_2.raw b/tests/mikrotik_routeros/system_resource_print/mikrotik_routeros_system_resource_print_2.raw new file mode 100644 index 0000000000..8f7f15b98d --- /dev/null +++ b/tests/mikrotik_routeros/system_resource_print/mikrotik_routeros_system_resource_print_2.raw @@ -0,0 +1,18 @@ + uptime: 1d6h22m + version: 6.48.7 (long-term) + build-time: May/23/2023 05:27:08 + factory-software: 6.44.6 + free-memory: 45.5MiB + total-memory: 64.0MiB + cpu: MIPS 24Kc V7.4 + cpu-count: 1 + cpu-frequency: 650MHz + cpu-load: 1% + free-hdd-space: 3428.0KiB + total-hdd-space: 16.0MiB + write-sect-since-reboot: 1970 + write-sect-total: 77652 + bad-blocks: 0% + architecture-name: mipsbe + board-name: hEX PoE lite + platform: MikroTik diff --git a/tests/mikrotik_routeros/system_resource_print/mikrotik_routeros_system_resource_print_2.yml b/tests/mikrotik_routeros/system_resource_print/mikrotik_routeros_system_resource_print_2.yml new file mode 100644 index 0000000000..c7b59dee57 --- /dev/null +++ b/tests/mikrotik_routeros/system_resource_print/mikrotik_routeros_system_resource_print_2.yml @@ -0,0 +1,25 @@ +--- +parsed_sample: + - architecture_name: "mipsbe" + bad_blocks: "0%" + board_name: "hEX PoE lite" + build_time: "May/23/2023 05:27:08" + cpu: "MIPS 24Kc V7.4" + cpu_count: "1" + cpu_frequency: "650MHz" + cpu_load: "1%" + factory_software: "6.44.6" + free_hdd_space: "3428.0KiB" + free_memory: "45.5MiB" + platform: "MikroTik" + total_hdd_space: "16.0MiB" + total_memory: "64.0MiB" + uptime: "1d6h22m" + uptime_days: "1" + uptime_hours: "6" + uptime_minutes: "22" + uptime_seconds: "" + uptime_weeks: "" + version: "6.48.7 (long-term)" + write_sect_since_reboot: "1970" + write_sect_total: "77652" From 2b9950f8031494a499d9e43bb69fd8a871d7d4f5 Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Tue, 23 Jul 2024 00:46:38 +0400 Subject: [PATCH 33/60] Add Mikrotik system identity print template (#1509) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”> --- ntc_templates/templates/index | 1 + .../mikrotik_routeros_system_identity_print.textfsm | 6 ++++++ .../mikrotik_routeros_system_identity_print.raw | 1 + .../mikrotik_routeros_system_identity_print.yml | 3 +++ 4 files changed, 11 insertions(+) create mode 100644 ntc_templates/templates/mikrotik_routeros_system_identity_print.textfsm create mode 100644 tests/mikrotik_routeros/system_identity_print/mikrotik_routeros_system_identity_print.raw create mode 100644 tests/mikrotik_routeros/system_identity_print/mikrotik_routeros_system_identity_print.yml diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index c9be2be5e6..1d151415fe 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -715,6 +715,7 @@ mikrotik_routeros_system_routerboard_print.textfsm, .*, mikrotik_routeros, [[/]] mikrotik_routeros_interface_print_detail.textfsm, .*, mikrotik_routeros, [[/]]in[[terface]] p[[rint]] d[[etail]] mikrotik_routeros_interface_print_brief.textfsm, .*, mikrotik_routeros, [[/]]in[[terface]] p[[rint]] b[[rief]] mikrotik_routeros_ip_route_print_detail.textfsm, .*, mikrotik_routeros, [[/]]ip r[[oute]] p[[rint]] d[[etail]] +mikrotik_routeros_system_identity_print.textfsm, .*, mikrotik_routeros, [[/]]sy[[stem]] i[[dentity]] p[[rint]] mikrotik_routeros_system_resource_print.textfsm, .*, mikrotik_routeros, [[/]]sy[[stem]] re[[source]] p[[rint]] mikrotik_routeros_ip_route_print_terse.textfsm, .*, mikrotik_routeros, [[/]]ip(v6)? route print terse mikrotik_routeros_system_clock_print.textfsm, .*, mikrotik_routeros, [[/]]sy[[stem]] cl[[ock]] p[[rint]] diff --git a/ntc_templates/templates/mikrotik_routeros_system_identity_print.textfsm b/ntc_templates/templates/mikrotik_routeros_system_identity_print.textfsm new file mode 100644 index 0000000000..d07ad470e1 --- /dev/null +++ b/ntc_templates/templates/mikrotik_routeros_system_identity_print.textfsm @@ -0,0 +1,6 @@ +Value NAME (\S+) + +Start + ^\s*name:\s+${NAME}\s*$$ -> Record + ^\s*$$ + ^. -> Error diff --git a/tests/mikrotik_routeros/system_identity_print/mikrotik_routeros_system_identity_print.raw b/tests/mikrotik_routeros/system_identity_print/mikrotik_routeros_system_identity_print.raw new file mode 100644 index 0000000000..f931dae59c --- /dev/null +++ b/tests/mikrotik_routeros/system_identity_print/mikrotik_routeros_system_identity_print.raw @@ -0,0 +1 @@ + name: Mikrotik-Device_Name diff --git a/tests/mikrotik_routeros/system_identity_print/mikrotik_routeros_system_identity_print.yml b/tests/mikrotik_routeros/system_identity_print/mikrotik_routeros_system_identity_print.yml new file mode 100644 index 0000000000..4138af312b --- /dev/null +++ b/tests/mikrotik_routeros/system_identity_print/mikrotik_routeros_system_identity_print.yml @@ -0,0 +1,3 @@ +--- +parsed_sample: + - name: "Mikrotik-Device_Name" From fbb9b2532db6aca5e0bc265e00d765afad9e02a0 Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Tue, 23 Jul 2024 00:54:28 +0400 Subject: [PATCH 34/60] Add Mikrotik tool profile template (#1504) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”> --- ntc_templates/templates/index | 1 + .../mikrotik_routeros_tool_profile.textfsm | 15 +++++++++++ .../mikrotik_routeros_tool_profile.raw | 9 +++++++ .../mikrotik_routeros_tool_profile.yml | 26 +++++++++++++++++++ 4 files changed, 51 insertions(+) create mode 100644 ntc_templates/templates/mikrotik_routeros_tool_profile.textfsm create mode 100644 tests/mikrotik_routeros/tool_profile/mikrotik_routeros_tool_profile.raw create mode 100644 tests/mikrotik_routeros/tool_profile/mikrotik_routeros_tool_profile.yml diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 1d151415fe..15ffb44fed 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -722,6 +722,7 @@ mikrotik_routeros_system_clock_print.textfsm, .*, mikrotik_routeros, [[/]]sy[[st mikrotik_routeros_user_active_print.textfsm, .*, mikrotik_routeros, [[/]]us[[er]] ac[[tive]] p[[rint]] mikrotik_routeros_ip_address_print.textfsm, .*, mikrotik_routeros, [[/]]ip ad[[dress]] p[[rint]] mikrotik_routeros_ip_arp_print.textfsm, .*, mikrotik_routeros, [[/]]ip a[[rp]] p[[rint]] +mikrotik_routeros_tool_profile.textfsm, .*, mikrotik_routeros, [[/]]too[[l]] pr[[ofile]] mikrotik_routeros_ping.textfsm, .*, mikrotik_routeros, [[/]]pin[[g]] oneaccess_oneos_show_voice_voip-call_active_all.textfsm, .*, oneaccess_oneos, sh[[ow]] voice voip-call active diff --git a/ntc_templates/templates/mikrotik_routeros_tool_profile.textfsm b/ntc_templates/templates/mikrotik_routeros_tool_profile.textfsm new file mode 100644 index 0000000000..9ac1c7b7f8 --- /dev/null +++ b/ntc_templates/templates/mikrotik_routeros_tool_profile.textfsm @@ -0,0 +1,15 @@ +Value NAME (\S+) +Value CPU (\S+) +Value USAGE (\d+|\d+.\d+) + +Start + ^\s*NAME\s+CPU\s+USAGE\s*$$ -> ProfilingTable + ^\s*$$ + ^. -> Error + +ProfilingTable + ^\s*${NAME}\s*(\s+${CPU})?\s+${USAGE}%\s*$$ -> Record + ^\s*--\s+\[Q\s+quit\|D\s+dump\|C-z\s+pause\]\s*$$ + ^\s*--\s+\[Q\s+quit\|C-z\s+pause\]\s*$$ + ^\s*$$ + ^. -> Error diff --git a/tests/mikrotik_routeros/tool_profile/mikrotik_routeros_tool_profile.raw b/tests/mikrotik_routeros/tool_profile/mikrotik_routeros_tool_profile.raw new file mode 100644 index 0000000000..04d7c9b79e --- /dev/null +++ b/tests/mikrotik_routeros/tool_profile/mikrotik_routeros_tool_profile.raw @@ -0,0 +1,9 @@ +NAME CPU USAGE +spi 1% +console 0% +firewall 0.5% +networking 0% +management 0.5% +profiling 0% +unclassified 0.5% +total 2.5% diff --git a/tests/mikrotik_routeros/tool_profile/mikrotik_routeros_tool_profile.yml b/tests/mikrotik_routeros/tool_profile/mikrotik_routeros_tool_profile.yml new file mode 100644 index 0000000000..5fa5a3d3c9 --- /dev/null +++ b/tests/mikrotik_routeros/tool_profile/mikrotik_routeros_tool_profile.yml @@ -0,0 +1,26 @@ +--- +parsed_sample: + - name: "spi" + cpu: "" + usage: "1" + - name: "console" + cpu: "" + usage: "0" + - name: "firewall" + cpu: "" + usage: "0.5" + - name: "networking" + cpu: "" + usage: "0" + - name: "management" + cpu: "" + usage: "0.5" + - name: "profiling" + cpu: "" + usage: "0" + - name: "unclassified" + cpu: "" + usage: "0.5" + - name: "total" + cpu: "" + usage: "2.5" From e7c708dcf6a90e63e5e2b16ab5e56f02ead98205 Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Tue, 23 Jul 2024 01:15:12 +0400 Subject: [PATCH 35/60] Add MikroTik tool speed-test address template (#1505) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”> Co-authored-by: Jacob McGill <9847006+jmcgill298@users.noreply.github.com> --- ntc_templates/templates/index | 1 + ...k_routeros_tool_speed-test_address.textfsm | 38 +++++++++++++++++++ ...rotik_routeros_tool_speed-test_address.raw | 10 +++++ ...rotik_routeros_tool_speed-test_address.yml | 24 ++++++++++++ 4 files changed, 73 insertions(+) create mode 100644 ntc_templates/templates/mikrotik_routeros_tool_speed-test_address.textfsm create mode 100644 tests/mikrotik_routeros/tool_speed-test_address/mikrotik_routeros_tool_speed-test_address.raw create mode 100644 tests/mikrotik_routeros/tool_speed-test_address/mikrotik_routeros_tool_speed-test_address.yml diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 15ffb44fed..962e89e33c 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -712,6 +712,7 @@ mikrotik_routeros_ip_address_export_verbose.textfsm, .*, mikrotik_routeros, [[/] mikrotik_routeros_interface_ethernet_print.textfsm, .*, mikrotik_routeros, [[/]]in[[terface]] et[[hernet]] pr[[int]] mikrotik_routeros_ip_neighbor_print_detail.textfsm, .*, mikrotik_routeros, [[/]]ip n[[eighbor]] p[[rint]] d[[etail]] mikrotik_routeros_system_routerboard_print.textfsm, .*, mikrotik_routeros, [[/]]system routerboard print +mikrotik_routeros_tool_speed-test_address.textfsm, .*, mikrotik_routeros, [[/]]too[[l]] s[[peed-test]] mikrotik_routeros_interface_print_detail.textfsm, .*, mikrotik_routeros, [[/]]in[[terface]] p[[rint]] d[[etail]] mikrotik_routeros_interface_print_brief.textfsm, .*, mikrotik_routeros, [[/]]in[[terface]] p[[rint]] b[[rief]] mikrotik_routeros_ip_route_print_detail.textfsm, .*, mikrotik_routeros, [[/]]ip r[[oute]] p[[rint]] d[[etail]] diff --git a/ntc_templates/templates/mikrotik_routeros_tool_speed-test_address.textfsm b/ntc_templates/templates/mikrotik_routeros_tool_speed-test_address.textfsm new file mode 100644 index 0000000000..67c189146a --- /dev/null +++ b/ntc_templates/templates/mikrotik_routeros_tool_speed-test_address.textfsm @@ -0,0 +1,38 @@ +Value ADDRESS (\S+) +Value STATUS (.*) +Value TIME_REMAINING (\d+\w+) +Value PING_MIN (\S+) +Value PING_AVG (\S+) +Value PING_MAX (\S+) +Value JITTER_MIN (\S+) +Value JITTER_AVG (\S+) +Value JITTER_MAX (\S+) +Value LOSS (\d+%\s*\(\d+/\d+\)) +Value TCP_DOWNLOAD_BW (\S+) +Value TCP_DOWNLOAD_LOCAL_CPU (\d+) +Value TCP_DOWNLOAD_REMOTE_CPU (\d+) +Value TCP_UPLOAD_BW (\S+) +Value TCP_UPLOAD_LOCAL_CPU (\d+) +Value TCP_UPLOAD_REMOTE_CPU (\d+) +Value UDP_DOWNLOAD_BW (\S+) +Value UDP_DOWNLOAD_LOCAL_CPU (\d+) +Value UDP_DOWNLOAD_REMOTE_CPU (\d+) +Value UDP_UPLOAD_BW (\S+) +Value UDP_UPLOAD_LOCAL_CPU (\d+) +Value UDP_UPLOAD_REMOTE_CPU (\d+) + +Start + ^\s*address:\s*${ADDRESS}\s*$$ + ^\s*status:\s*${STATUS}\s*$$ + ^\s*time-remaining:\s*${TIME_REMAINING}\s*$$ + ^\s*ping-min-avg-max:\s*${PING_MIN}\s+/\s+${PING_AVG}\s+/\s+${PING_MAX}\s*$$ + ^\s*jitter-min-avg-max:\s*${JITTER_MIN}\s+/\s+${JITTER_AVG}\s+/\s+${JITTER_MAX}\s*$$ + ^\s*loss:\s*${LOSS}\s*$$ + ^\s*tcp-download:\s*${TCP_DOWNLOAD_BW}(\s+local-cpu-load:\s*${TCP_DOWNLOAD_LOCAL_CPU}%)?(\s+remote-cpu-load:\s*${TCP_DOWNLOAD_REMOTE_CPU}%)?\s*$$ + ^\s*tcp-upload:\s*${TCP_UPLOAD_BW}(\s+local-cpu-load:\s*${TCP_UPLOAD_LOCAL_CPU}%)?(\s+remote-cpu-load:\s*${TCP_UPLOAD_REMOTE_CPU}%)?\s*$$ + ^\s*udp-download:\s*${UDP_DOWNLOAD_BW}(\s+local-cpu-load:\s*${UDP_DOWNLOAD_LOCAL_CPU}%)?(\s+remote-cpu-load:\s*${UDP_DOWNLOAD_REMOTE_CPU}%)?\s*$$ + ^\s*udp-upload:\s*${UDP_UPLOAD_BW}(\s+local-cpu-load:\s*${UDP_UPLOAD_LOCAL_CPU}%)?(\s+remote-cpu-load:\s*${UDP_UPLOAD_REMOTE_CPU}%)?\s*$$ + ^\s*--\s+\[Q\s+quit\|D\s+dump\|C-z\s+pause\]\s*$$ + ^\s*--\s+\[Q\s+quit\|C-z\s+pause\]\s*$$ + ^\s*$$ + ^. -> Error diff --git a/tests/mikrotik_routeros/tool_speed-test_address/mikrotik_routeros_tool_speed-test_address.raw b/tests/mikrotik_routeros/tool_speed-test_address/mikrotik_routeros_tool_speed-test_address.raw new file mode 100644 index 0000000000..9b47f26082 --- /dev/null +++ b/tests/mikrotik_routeros/tool_speed-test_address/mikrotik_routeros_tool_speed-test_address.raw @@ -0,0 +1,10 @@ +address: 192.168.88.1 + status: tcp upload + time-remaining: 23s + ping-min-avg-max: 52.4ms / 86.1ms / 246ms + jitter-min-avg-max: 12us / 21.3ms / 158ms + loss: 0% (0/200) + tcp-download: 921Mbps local-cpu-load:30% + tcp-upload: 920Mbps local-cpu-load:30% remote-cpu-load:25% + udp-download: 917Mbps local-cpu-load:6% remote-cpu-load:21% + udp-upload: 916Mbps local-cpu-load:20% remote-cpu-load:6% diff --git a/tests/mikrotik_routeros/tool_speed-test_address/mikrotik_routeros_tool_speed-test_address.yml b/tests/mikrotik_routeros/tool_speed-test_address/mikrotik_routeros_tool_speed-test_address.yml new file mode 100644 index 0000000000..b70bddb600 --- /dev/null +++ b/tests/mikrotik_routeros/tool_speed-test_address/mikrotik_routeros_tool_speed-test_address.yml @@ -0,0 +1,24 @@ +--- +parsed_sample: + - address: "192.168.88.1" + status: "tcp upload" + time_remaining: "23s" + ping_min: "52.4ms" + ping_avg: "86.1ms" + ping_max: "246ms" + jitter_min: "12us" + jitter_avg: "21.3ms" + jitter_max: "158ms" + loss: "0% (0/200)" + tcp_download_bw: "921Mbps" + tcp_download_local_cpu: "30" + tcp_download_remote_cpu: "" + tcp_upload_bw: "920Mbps" + tcp_upload_local_cpu: "30" + tcp_upload_remote_cpu: "25" + udp_download_bw: "917Mbps" + udp_download_local_cpu: "6" + udp_download_remote_cpu: "21" + udp_upload_bw: "916Mbps" + udp_upload_local_cpu: "20" + udp_upload_remote_cpu: "6" From 59f39f72e26f53f065a69a09d5ed3c41a33fac2c Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Tue, 23 Jul 2024 01:25:43 +0400 Subject: [PATCH 36/60] Add Mikrotik user print template (#1503) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”> --- ntc_templates/templates/index | 1 + .../mikrotik_routeros_user_print.textfsm | 19 +++++++++++++++++++ .../mikrotik_routeros_user_print.raw | 5 +++++ .../mikrotik_routeros_user_print.yml | 14 ++++++++++++++ 4 files changed, 39 insertions(+) create mode 100644 ntc_templates/templates/mikrotik_routeros_user_print.textfsm create mode 100644 tests/mikrotik_routeros/user_print/mikrotik_routeros_user_print.raw create mode 100644 tests/mikrotik_routeros/user_print/mikrotik_routeros_user_print.yml diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 962e89e33c..e353dec0e1 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -724,6 +724,7 @@ mikrotik_routeros_user_active_print.textfsm, .*, mikrotik_routeros, [[/]]us[[er] mikrotik_routeros_ip_address_print.textfsm, .*, mikrotik_routeros, [[/]]ip ad[[dress]] p[[rint]] mikrotik_routeros_ip_arp_print.textfsm, .*, mikrotik_routeros, [[/]]ip a[[rp]] p[[rint]] mikrotik_routeros_tool_profile.textfsm, .*, mikrotik_routeros, [[/]]too[[l]] pr[[ofile]] +mikrotik_routeros_user_print.textfsm, .*, mikrotik_routeros, [[/]]us[[er]] p[[rint]] mikrotik_routeros_ping.textfsm, .*, mikrotik_routeros, [[/]]pin[[g]] oneaccess_oneos_show_voice_voip-call_active_all.textfsm, .*, oneaccess_oneos, sh[[ow]] voice voip-call active diff --git a/ntc_templates/templates/mikrotik_routeros_user_print.textfsm b/ntc_templates/templates/mikrotik_routeros_user_print.textfsm new file mode 100644 index 0000000000..2bd3ff84f7 --- /dev/null +++ b/ntc_templates/templates/mikrotik_routeros_user_print.textfsm @@ -0,0 +1,19 @@ +Value ID (\d+) +Value COMMENT (.*) +Value NAME ([a-zA-Z0-9*_.@]+) +Value GROUP (\S+) +Value ADDRESS (\S+) +Value LAST_LOGGED_IN ([a-z]{3}/\d{1,2}/\d{4} \d{1,2}:\d{1,2}:\d{1,2}) + +Start + ^\s*Flags:\s+X\s+-\s+disabled\s*$$ + ^\s*#\s+NAME\s+GROUP\s+ADDRESS\s+LAST-LOGGED-IN\s*$$ -> UsersTable + ^\s*$$ + ^. -> Error + +UsersTable + ^\s*${ID}\s+${NAME}\s+${GROUP}\s+(?:${ADDRESS})?\s+${LAST_LOGGED_IN}\s*$$ -> Record + ^\s*${ID}\s+;;;\s+${COMMENT}\s*$$ + ^\s*${NAME}\s+${GROUP}\s+(?:${ADDRESS})?\s+${LAST_LOGGED_IN}\s*$$ -> Record + ^\s*$$ + ^. -> Error diff --git a/tests/mikrotik_routeros/user_print/mikrotik_routeros_user_print.raw b/tests/mikrotik_routeros/user_print/mikrotik_routeros_user_print.raw new file mode 100644 index 0000000000..137b13c8e8 --- /dev/null +++ b/tests/mikrotik_routeros/user_print/mikrotik_routeros_user_print.raw @@ -0,0 +1,5 @@ +Flags: X - disabled + # NAME GROUP ADDRESS LAST-LOGGED-IN + 0 ;;; system default user + admin full jun/30/2023 01:08:59 + 1 user1 full jul/18/2023 05:12:46 diff --git a/tests/mikrotik_routeros/user_print/mikrotik_routeros_user_print.yml b/tests/mikrotik_routeros/user_print/mikrotik_routeros_user_print.yml new file mode 100644 index 0000000000..bd724f39cc --- /dev/null +++ b/tests/mikrotik_routeros/user_print/mikrotik_routeros_user_print.yml @@ -0,0 +1,14 @@ +--- +parsed_sample: + - id: "0" + comment: "system default user" + name: "admin" + group: "full" + address: "" + last_logged_in: "jun/30/2023 01:08:59" + - id: "1" + comment: "" + name: "user1" + group: "full" + address: "" + last_logged_in: "jul/18/2023 05:12:46" From 605fa019bc79e3aa3f90c34326970e912e3dfba1 Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Tue, 23 Jul 2024 01:33:58 +0400 Subject: [PATCH 37/60] Add MikroTik ip dhcp-server lease print terse without-paging template (#1500) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”> --- ntc_templates/templates/index | 1 + ...r_lease_print_terse_without-paging.textfsm | 24 ++++++++ ...erver_lease_print_terse_without-paging.raw | 2 + ...erver_lease_print_terse_without-paging.yml | 40 +++++++++++++ ...ver_lease_print_terse_without-paging_2.raw | 3 + ...ver_lease_print_terse_without-paging_2.yml | 59 +++++++++++++++++++ 6 files changed, 129 insertions(+) create mode 100644 ntc_templates/templates/mikrotik_routeros_ip_dhcp-server_lease_print_terse_without-paging.textfsm create mode 100644 tests/mikrotik_routeros/ip_dhcp-server_lease_print_terse_without-paging/mikrotik_routeros_ip_dhcp-server_lease_print_terse_without-paging.raw create mode 100644 tests/mikrotik_routeros/ip_dhcp-server_lease_print_terse_without-paging/mikrotik_routeros_ip_dhcp-server_lease_print_terse_without-paging.yml create mode 100644 tests/mikrotik_routeros/ip_dhcp-server_lease_print_terse_without-paging/mikrotik_routeros_ip_dhcp-server_lease_print_terse_without-paging_2.raw create mode 100644 tests/mikrotik_routeros/ip_dhcp-server_lease_print_terse_without-paging/mikrotik_routeros_ip_dhcp-server_lease_print_terse_without-paging_2.yml diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index e353dec0e1..5cf3412a05 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -695,6 +695,7 @@ linux_ip_vrf_show.textfsm, .*, linux, ip v[[rf]] [[show]] linux_arp_-a.textfsm, .*, linux, arp -a mikrotik_routeros_routing_ospf_neighbor_print_terse_without-paging.textfsm, .*, mikrotik_routeros, [[/]]r[[outing]] o[[spf]] nei[[ghbor]] p[[rint]] t[[erse]] wi[[thout-paging]] +mikrotik_routeros_ip_dhcp-server_lease_print_terse_without-paging.textfsm, .*, mikrotik_routeros, [[/]]ip dh[[cp-server]] l[[ease]] pr[[int]] t[[erse]] wi[[thout-paging]] mikrotik_routeros_routing_bgp_peer_print_status_without-paging.textfsm, .*, mikrotik_routeros, [[/]]r[[outing]] bg[[p]] p[[eer]] p[[rint]] s[[tatus]] wi[[thout-paging]] mikrotik_routeros_interface_ethernet_poe_print_without-paging.textfsm, .*, mikrotik_routeros, [[/]]in[[terface]] et[[hernet]] po[[e]] pr[[int]] wi[[thout-paging]] mikrotik_routeros_ip_firewall_filter_print_all_without-paging.textfsm, .*, mikrotik_routeros, [[/]]ip(v6)? firewall filter print( all)? without-paging diff --git a/ntc_templates/templates/mikrotik_routeros_ip_dhcp-server_lease_print_terse_without-paging.textfsm b/ntc_templates/templates/mikrotik_routeros_ip_dhcp-server_lease_print_terse_without-paging.textfsm new file mode 100644 index 0000000000..9a50ca4a0f --- /dev/null +++ b/ntc_templates/templates/mikrotik_routeros_ip_dhcp-server_lease_print_terse_without-paging.textfsm @@ -0,0 +1,24 @@ +Value INDEX (\d+) +Value FLAG ([XRDB]+) +Value COMMENT (.*) +Value ADDRESS (\S+) +Value MAC_ADDRESS ((?:[0-9a-fA-F]{2}:){5}[0-9a-fA-F]{2}) +Value CLIENT_ID (\S+) +Value ADDRESS_LISTS (\S+) +Value SERVER (\S+) +Value ALWAYS_BROADCAST (yes|no) +Value DHCP_OPTION (\S+) +Value STATUS (\S+) +Value EXPIRES_AFTER (\S+) +Value LAST_SEEN (\S+) +Value ACTIVE_ADDRESS (\S+) +Value ACTIVE_MAC_ADDRESS ((?:[0-9a-fA-F]{2}:){5}[0-9a-fA-F]{2}) +Value ACTIVE_CLIENT_ID (\S+) +Value ACTIVE_SERVER (\S+) +Value HOST_NAME (\S+) +Value SRC_MAC_ADDRESS ((?:[0-9a-fA-F]{2}:){5}[0-9a-fA-F]{2}) + +Start + ^\s*${INDEX}(?:\s+${FLAG})?(?:\s+comment=${COMMENT})?\s+address=${ADDRESS}(?:\s+mac-address=${MAC_ADDRESS})?(?:\s+client-id=(?:\"?(\b${CLIENT_ID}\b)?\"?))?(?:\s+address-lists=(?:\"?(\b${ADDRESS_LISTS}\b)?\"?))?(?:\s+server=${SERVER})?(?:\s+dhcp-option=(?:\"?(\b${DHCP_OPTION}\b)?\"?))?(?:\s+status=${STATUS})?(?:\s+expires-after=${EXPIRES_AFTER})?(?:\s+last-seen=${LAST_SEEN})?(?:\s+active-address=${ACTIVE_ADDRESS})?(?:\s+active-mac-address=${ACTIVE_MAC_ADDRESS})?(?:\s+active-client-id=(?:\"?(\b${ACTIVE_CLIENT_ID}\b)?\"?))?(?:\s+active-server=${ACTIVE_SERVER})?(?:\s+host-name=(?:\"?(\b${HOST_NAME}\b)?\"?))?(?:\s+src-mac-address=${SRC_MAC_ADDRESS})?\s*$$ -> Record + ^\s*$$ + ^. -> Error diff --git a/tests/mikrotik_routeros/ip_dhcp-server_lease_print_terse_without-paging/mikrotik_routeros_ip_dhcp-server_lease_print_terse_without-paging.raw b/tests/mikrotik_routeros/ip_dhcp-server_lease_print_terse_without-paging/mikrotik_routeros_ip_dhcp-server_lease_print_terse_without-paging.raw new file mode 100644 index 0000000000..c06da360bf --- /dev/null +++ b/tests/mikrotik_routeros/ip_dhcp-server_lease_print_terse_without-paging/mikrotik_routeros_ip_dhcp-server_lease_print_terse_without-paging.raw @@ -0,0 +1,2 @@ + 0 D address=192.168.69.254 address-lists="" server=*1 dhcp-option="" status=conflict expires-after=6m59s last-seen=35w12h24m42s active-address=192.168.69.254 active-server=*1 src-mac-address=12:34:56:78:90:AB + 1 address=172.16.16.120 mac-address=30:07:4D:F5:07:49 client-id="1:30:7:4d:f5:7:49" address-lists="" server=defconf dhcp-option="" status=bound expires-after=8m55s last-seen=1m5s active-address=172.16.16.120 active-mac-address=30:07:4D:F5:07:49 active-client-id="1:30:7:4d:f5:7:49" active-server=defconf host-name="Galaxy-S8" diff --git a/tests/mikrotik_routeros/ip_dhcp-server_lease_print_terse_without-paging/mikrotik_routeros_ip_dhcp-server_lease_print_terse_without-paging.yml b/tests/mikrotik_routeros/ip_dhcp-server_lease_print_terse_without-paging/mikrotik_routeros_ip_dhcp-server_lease_print_terse_without-paging.yml new file mode 100644 index 0000000000..fd80a5d3b6 --- /dev/null +++ b/tests/mikrotik_routeros/ip_dhcp-server_lease_print_terse_without-paging/mikrotik_routeros_ip_dhcp-server_lease_print_terse_without-paging.yml @@ -0,0 +1,40 @@ +--- +parsed_sample: + - active_address: "192.168.69.254" + active_client_id: "" + active_mac_address: "" + active_server: "*1" + address: "192.168.69.254" + address_lists: "" + always_broadcast: "" + client_id: "" + comment: "" + dhcp_option: "" + expires_after: "6m59s" + flag: "D" + host_name: "" + index: "0" + last_seen: "35w12h24m42s" + mac_address: "" + server: "*1" + src_mac_address: "12:34:56:78:90:AB" + status: "conflict" + - active_address: "172.16.16.120" + active_client_id: "1:30:7:4d:f5:7:49" + active_mac_address: "30:07:4D:F5:07:49" + active_server: "defconf" + address: "172.16.16.120" + address_lists: "" + always_broadcast: "" + client_id: "1:30:7:4d:f5:7:49" + comment: "" + dhcp_option: "" + expires_after: "8m55s" + flag: "" + host_name: "Galaxy-S8" + index: "1" + last_seen: "1m5s" + mac_address: "30:07:4D:F5:07:49" + server: "defconf" + src_mac_address: "" + status: "bound" diff --git a/tests/mikrotik_routeros/ip_dhcp-server_lease_print_terse_without-paging/mikrotik_routeros_ip_dhcp-server_lease_print_terse_without-paging_2.raw b/tests/mikrotik_routeros/ip_dhcp-server_lease_print_terse_without-paging/mikrotik_routeros_ip_dhcp-server_lease_print_terse_without-paging_2.raw new file mode 100644 index 0000000000..043dbd9973 --- /dev/null +++ b/tests/mikrotik_routeros/ip_dhcp-server_lease_print_terse_without-paging/mikrotik_routeros_ip_dhcp-server_lease_print_terse_without-paging_2.raw @@ -0,0 +1,3 @@ + 0 comment=UniFi1 address=10.124.3.199 mac-address=74:83:C2:36:5A:6E client-id=1:74:83:c2:36:5a:6e address-lists="" server=dhcp1 dhcp-option=unifi status=bound expires-after=6m51s last-seen=3m9s active-address=10.164.1.199 active-mac-address=74:83:C2:36:5A:6E active-client-id=1:74:83:c2:36:5a:6e active-server=dhcp1 host-name=Unifi3B + 1 comment=PC address=10.124.3.252 mac-address=00:50:56:88:80:EE client-id=1:0:50:56:88:80:ee address-lists="" server=dhcp1 dhcp-option="" status=bound expires-after=6m18s last-seen=3m42s active-address=10.164.1.252 active-mac-address=00:50:56:88:80:EE active-client-id=1:0:50:56:88:80:ee active-server=dhcp1 host-name=RSNC-CLIENT1-VM + 2 comment=SPA address=10.124.3.222 mac-address=C4:0A:CB:BC:65:C8 address-lists="" server=dhcp1 dhcp-option="" status=bound expires-after=5m56s last-seen=4m4s active-address=10.164.1.222 active-mac-address=C4:0A:CB:BC:65:C8 active-client-id=1:c4:a:cb:bc:65:c8 active-server=dhcp1 host-name=SPA122 diff --git a/tests/mikrotik_routeros/ip_dhcp-server_lease_print_terse_without-paging/mikrotik_routeros_ip_dhcp-server_lease_print_terse_without-paging_2.yml b/tests/mikrotik_routeros/ip_dhcp-server_lease_print_terse_without-paging/mikrotik_routeros_ip_dhcp-server_lease_print_terse_without-paging_2.yml new file mode 100644 index 0000000000..6f1255ad70 --- /dev/null +++ b/tests/mikrotik_routeros/ip_dhcp-server_lease_print_terse_without-paging/mikrotik_routeros_ip_dhcp-server_lease_print_terse_without-paging_2.yml @@ -0,0 +1,59 @@ +--- +parsed_sample: + - index: "0" + flag: "" + comment: "UniFi1" + address: "10.124.3.199" + mac_address: "74:83:C2:36:5A:6E" + client_id: "1:74:83:c2:36:5a:6e" + address_lists: "" + server: "dhcp1" + always_broadcast: "" + dhcp_option: "unifi" + status: "bound" + expires_after: "6m51s" + last_seen: "3m9s" + active_address: "10.164.1.199" + active_mac_address: "74:83:C2:36:5A:6E" + active_client_id: "1:74:83:c2:36:5a:6e" + active_server: "dhcp1" + host_name: "Unifi3B" + src_mac_address: "" + - index: "1" + flag: "" + comment: "PC" + address: "10.124.3.252" + mac_address: "00:50:56:88:80:EE" + client_id: "1:0:50:56:88:80:ee" + address_lists: "" + server: "dhcp1" + always_broadcast: "" + dhcp_option: "" + status: "bound" + expires_after: "6m18s" + last_seen: "3m42s" + active_address: "10.164.1.252" + active_mac_address: "00:50:56:88:80:EE" + active_client_id: "1:0:50:56:88:80:ee" + active_server: "dhcp1" + host_name: "RSNC-CLIENT1-VM" + src_mac_address: "" + - index: "2" + flag: "" + comment: "SPA" + address: "10.124.3.222" + mac_address: "C4:0A:CB:BC:65:C8" + client_id: "" + address_lists: "" + server: "dhcp1" + always_broadcast: "" + dhcp_option: "" + status: "bound" + expires_after: "5m56s" + last_seen: "4m4s" + active_address: "10.164.1.222" + active_mac_address: "C4:0A:CB:BC:65:C8" + active_client_id: "1:c4:a:cb:bc:65:c8" + active_server: "dhcp1" + host_name: "SPA122" + src_mac_address: "" From 5888b126987df960ec21efc4079e03e84e024985 Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Tue, 23 Jul 2024 01:34:51 +0400 Subject: [PATCH 38/60] Ad MikroTik ip route print terse without-paging template (#1499) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”> --- ntc_templates/templates/index | 1 + ...p_route_print_terse_without-paging.textfsm | 24 +++++ ...os_ip_route_print_terse_without-paging.raw | 5 + ...os_ip_route_print_terse_without-paging.yml | 97 +++++++++++++++++++ 4 files changed, 127 insertions(+) create mode 100644 ntc_templates/templates/mikrotik_routeros_ip_route_print_terse_without-paging.textfsm create mode 100644 tests/mikrotik_routeros/ip_route_print_terse_without-paging/mikrotik_routeros_ip_route_print_terse_without-paging.raw create mode 100644 tests/mikrotik_routeros/ip_route_print_terse_without-paging/mikrotik_routeros_ip_route_print_terse_without-paging.yml diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 5cf3412a05..2e8d125860 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -704,6 +704,7 @@ mikrotik_routeros_ip_firewall_nat_print_all_without-paging.textfsm, .*, mikrotik mikrotik_routeros_interface_ethernet_monitor_name_once.textfsm, .*, mikrotik_routeros, [[/]]interface ethernet monitor (\S+) once mikrotik_routeros_interface_print_terse_without-paging.textfsm, .*, mikrotik_routeros, [[/]]in[[terface]] p[[rint]] t[[erse]] wi[[thout-paging]] mikrotik_routeros_ip_firewall_address-list_print_terse.textfsm, .*, mikrotik_routeros, [[/]]ip(v6)? firewall address-list print terse +mikrotik_routeros_ip_route_print_terse_without-paging.textfsm, .*, mikrotik_routeros, [[/]]ip r[[oute]] p[[rint]] t[[erse]] wi[[thout-paging]] mikrotik_routeros_snmp_community_print_without-paging.textfsm, .*, mikrotik_routeros, [[/]]snmp community print without-paging mikrotik_routeros_ipv6_neighbor_print_without-paging.textfsm, .*, mikrotik_routeros, [[/]]ipv6 neighbor print without-paging mikrotik_routeros_log_print_detail_without-paging.textfsm, .*, mikrotik_routeros, [[/]]log p[[rint]] d[[etail]] wi[[thout-paging]] diff --git a/ntc_templates/templates/mikrotik_routeros_ip_route_print_terse_without-paging.textfsm b/ntc_templates/templates/mikrotik_routeros_ip_route_print_terse_without-paging.textfsm new file mode 100644 index 0000000000..751a2043ce --- /dev/null +++ b/ntc_templates/templates/mikrotik_routeros_ip_route_print_terse_without-paging.textfsm @@ -0,0 +1,24 @@ +Value INDEX (\d+) +Value FLAGS ([XADCSrbomBUP ]{4}) +Value COMMENT (.*?(?=(?:[^=]\S+=)|\s*$)) +Value DESTINATION_ADDRESS (\S+) +Value DESTINATION_ADDRESS_SUBNET (\d+) +Value TYPE (.+?(?=(?:[^=]\S+=)|\s*$)) +Value ROUTING_TABLE (.+?(?=(?:[^=]\S+=)|\s*$)) +Value PREF_SRC (\S+?) +Value GATEWAY (.+?(?=(?:[^=]\S+=)|\s*$)) +Value GATEWAY_STATUS (.+?(?=(?:[^=]\S+=)|\s*$)) +Value IMMEDIATE_GW (.+?(?=(?:[^=]\S+=)|\s*$)) +Value CHECK_GATEWAY (.+?(?=(?:[^=]\S+=)|\s*$)) +Value DISTANCE (\d+) +Value SCOPE (\d+) +Value TARGET_SCOPE (\d+) +Value VRF_INTERFACE (.+?(?=(?:[^=]\S+=)|\s*$)) +Value SUPPRESS_HW_OFFLOAD (yes|no) +Value LOCAL_ADDRESS (.+?(?=(?:[^=]\S+=)|\s*$)) +Value ROUTING_MARK (.*?(?=(?:[^=]\S+=)|\s*$)) + +Start + ^\s*${INDEX}\s+${FLAGS}(?:\s+comment=${COMMENT})?\s+dst-address=${DESTINATION_ADDRESS}/${DESTINATION_ADDRESS_SUBNET}(?:\s+type=${TYPE})?(?:\s+routing-table=${ROUTING_TABLE})?(?:\s+pref-src=${PREF_SRC})?(?:\s+gateway=${GATEWAY})?(?:\s+gateway-status=${GATEWAY_STATUS})?(?:\s+immediate-gw=${IMMEDIATE_GW})?(?:\s+check-gateway=${CHECK_GATEWAY})?(?:\s+distance=${DISTANCE})?(?:\s+scope=${SCOPE})?(?:\s+target-scope=${TARGET_SCOPE})?(?:\s+vrf-interface=${VRF_INTERFACE})?(?:\s+suppress-hw-offload=${SUPPRESS_HW_OFFLOAD})?(?:\s+local-address=${LOCAL_ADDRESS})?(?:\s+routing-mark=${ROUTING_MARK})?\s*$$ -> Record + ^\s*$$ + ^. -> Error diff --git a/tests/mikrotik_routeros/ip_route_print_terse_without-paging/mikrotik_routeros_ip_route_print_terse_without-paging.raw b/tests/mikrotik_routeros/ip_route_print_terse_without-paging/mikrotik_routeros_ip_route_print_terse_without-paging.raw new file mode 100644 index 0000000000..ac32857fb3 --- /dev/null +++ b/tests/mikrotik_routeros/ip_route_print_terse_without-paging/mikrotik_routeros_ip_route_print_terse_without-paging.raw @@ -0,0 +1,5 @@ + 0 A S dst-address=0.0.0.0/0 gateway=192.168.8.1 gateway-status=192.168.8.1 reachable via lte1 distance=2 scope=30 target-scope=10 vrf-interface=lte1 + 1 ADC dst-address=10.160.1.228/30 pref-src=10.160.1.230 gateway=ether1 gateway-status=ether1 reachable distance=0 scope=10 + 2 A S comment=to Internet dst-address=134.0.0.0/8 gateway=10.160.1.230 gateway-status=10.160.1.230 reachable via ether2 distance=1 scope=30 target-scope=10 routing-mark=reserve + 3 A S dst-address=172.0.0.0/8 gateway=1.2.3.4 gateway-status=1.2.3.4 recursive via 10.152.1.230 ether5 distance=1 scope=30 target-scope=10 routing-mark=Free_Wi-Fi + 4 A SB dst-address=10.0.0.0/8 type=blackhole distance=100 routing-mark=Free_Wi-Fi diff --git a/tests/mikrotik_routeros/ip_route_print_terse_without-paging/mikrotik_routeros_ip_route_print_terse_without-paging.yml b/tests/mikrotik_routeros/ip_route_print_terse_without-paging/mikrotik_routeros_ip_route_print_terse_without-paging.yml new file mode 100644 index 0000000000..b6b5e669a1 --- /dev/null +++ b/tests/mikrotik_routeros/ip_route_print_terse_without-paging/mikrotik_routeros_ip_route_print_terse_without-paging.yml @@ -0,0 +1,97 @@ +--- +parsed_sample: + - check_gateway: "" + comment: "" + distance: "2" + destination_address: "0.0.0.0" + destination_address_subnet: "0" + flags: "A S " + gateway: "192.168.8.1" + gateway_status: "192.168.8.1 reachable via lte1" + immediate_gw: "" + index: "0" + local_address: "" + pref_src: "" + routing_mark: "" + routing_table: "" + scope: "30" + suppress_hw_offload: "" + target_scope: "10" + type: "" + vrf_interface: "lte1" + - check_gateway: "" + comment: "" + distance: "0" + destination_address: "10.160.1.228" + destination_address_subnet: "30" + flags: "ADC " + gateway: "ether1" + gateway_status: "ether1 reachable" + immediate_gw: "" + index: "1" + local_address: "" + pref_src: "10.160.1.230" + routing_mark: "" + routing_table: "" + scope: "10" + suppress_hw_offload: "" + target_scope: "" + type: "" + vrf_interface: "" + - check_gateway: "" + comment: "to Internet" + distance: "1" + destination_address: "134.0.0.0" + destination_address_subnet: "8" + flags: "A S " + gateway: "10.160.1.230" + gateway_status: "10.160.1.230 reachable via ether2" + immediate_gw: "" + index: "2" + local_address: "" + pref_src: "" + routing_mark: "reserve" + routing_table: "" + scope: "30" + suppress_hw_offload: "" + target_scope: "10" + type: "" + vrf_interface: "" + - check_gateway: "" + comment: "" + distance: "1" + destination_address: "172.0.0.0" + destination_address_subnet: "8" + flags: "A S " + gateway: "1.2.3.4" + gateway_status: "1.2.3.4 recursive via 10.152.1.230 ether5" + immediate_gw: "" + index: "3" + local_address: "" + pref_src: "" + routing_mark: "Free_Wi-Fi" + routing_table: "" + scope: "30" + suppress_hw_offload: "" + target_scope: "10" + type: "" + vrf_interface: "" + - check_gateway: "" + comment: "" + distance: "100" + destination_address: "10.0.0.0" + destination_address_subnet: "8" + flags: "A SB" + gateway: "" + gateway_status: "" + immediate_gw: "" + index: "4" + local_address: "" + pref_src: "" + routing_mark: "Free_Wi-Fi" + routing_table: "" + scope: "" + suppress_hw_offload: "" + target_scope: "" + type: "blackhole" + vrf_interface: "" From c8729ec1c1073f4bedc12d762ed4717a82f2e962 Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Tue, 23 Jul 2024 01:35:31 +0400 Subject: [PATCH 39/60] Add Mikrotik ip arp print terse wo-paging template (#1498) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”> Co-authored-by: Josh VanDeraa --- ntc_templates/templates/index | 1 + ...teros_ip_arp_print_terse_without-paging.textfsm | 11 +++++++++++ ..._routeros_ip_arp_print_terse_without-paging.raw | 2 ++ ..._routeros_ip_arp_print_terse_without-paging.yml | 14 ++++++++++++++ 4 files changed, 28 insertions(+) create mode 100644 ntc_templates/templates/mikrotik_routeros_ip_arp_print_terse_without-paging.textfsm create mode 100644 tests/mikrotik_routeros/ip_arp_print_terse_without-paging/mikrotik_routeros_ip_arp_print_terse_without-paging.raw create mode 100644 tests/mikrotik_routeros/ip_arp_print_terse_without-paging/mikrotik_routeros_ip_arp_print_terse_without-paging.yml diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 2e8d125860..67896d56f3 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -707,6 +707,7 @@ mikrotik_routeros_ip_firewall_address-list_print_terse.textfsm, .*, mikrotik_rou mikrotik_routeros_ip_route_print_terse_without-paging.textfsm, .*, mikrotik_routeros, [[/]]ip r[[oute]] p[[rint]] t[[erse]] wi[[thout-paging]] mikrotik_routeros_snmp_community_print_without-paging.textfsm, .*, mikrotik_routeros, [[/]]snmp community print without-paging mikrotik_routeros_ipv6_neighbor_print_without-paging.textfsm, .*, mikrotik_routeros, [[/]]ipv6 neighbor print without-paging +mikrotik_routeros_ip_arp_print_terse_without-paging.textfsm, .*, mikrotik_routeros, [[/]]ip a[[rp]] p[[rint]] t[[erse]] wi[[thout-paging]] mikrotik_routeros_log_print_detail_without-paging.textfsm, .*, mikrotik_routeros, [[/]]log p[[rint]] d[[etail]] wi[[thout-paging]] mikrotik_routeros_routing_bgp_peer_print_status.textfsm, .*, mikrotik_routeros, [[/]]r[[outing]] bg[[p]] p[[eer]] p[[rint]] s[[tatus]] mikrotik_routeros_ip_arp_print_without-paging.textfsm, .*, mikrotik_routeros, [[/]]ip arp print without-paging diff --git a/ntc_templates/templates/mikrotik_routeros_ip_arp_print_terse_without-paging.textfsm b/ntc_templates/templates/mikrotik_routeros_ip_arp_print_terse_without-paging.textfsm new file mode 100644 index 0000000000..771bed2308 --- /dev/null +++ b/ntc_templates/templates/mikrotik_routeros_ip_arp_print_terse_without-paging.textfsm @@ -0,0 +1,11 @@ +Value INDEX (\d+) +Value FLAGS ([XIHDPC]+) +Value ADDRESS (\S+) +Value MAC_ADDRESS (\S+) +Value INTERFACE (\S+) +Value PUBLISHED (yes|no) + +Start + ^\s*${INDEX}(?:\s+${FLAGS})?\s+address=${ADDRESS}\s+mac-address=${MAC_ADDRESS}\s+interface=${INTERFACE}\s+published=${PUBLISHED}\s*$$ -> Record + ^\s*$$ + ^. -> Error diff --git a/tests/mikrotik_routeros/ip_arp_print_terse_without-paging/mikrotik_routeros_ip_arp_print_terse_without-paging.raw b/tests/mikrotik_routeros/ip_arp_print_terse_without-paging/mikrotik_routeros_ip_arp_print_terse_without-paging.raw new file mode 100644 index 0000000000..cc33eadfb7 --- /dev/null +++ b/tests/mikrotik_routeros/ip_arp_print_terse_without-paging/mikrotik_routeros_ip_arp_print_terse_without-paging.raw @@ -0,0 +1,2 @@ + 0 DC address=10.160.1.230 mac-address=12:34:56:78:90:AA interface=ether2_BOX published=no + 1 address=10.152.1.230 mac-address=12:34:56:78:90:AB interface=ether5_KFCcisco published=no diff --git a/tests/mikrotik_routeros/ip_arp_print_terse_without-paging/mikrotik_routeros_ip_arp_print_terse_without-paging.yml b/tests/mikrotik_routeros/ip_arp_print_terse_without-paging/mikrotik_routeros_ip_arp_print_terse_without-paging.yml new file mode 100644 index 0000000000..ce23220426 --- /dev/null +++ b/tests/mikrotik_routeros/ip_arp_print_terse_without-paging/mikrotik_routeros_ip_arp_print_terse_without-paging.yml @@ -0,0 +1,14 @@ +--- +parsed_sample: + - address: "10.160.1.230" + flags: "DC" + index: "0" + interface: "ether2_BOX" + mac_address: "12:34:56:78:90:AA" + published: "no" + - address: "10.152.1.230" + flags: "" + index: "1" + interface: "ether5_KFCcisco" + mac_address: "12:34:56:78:90:AB" + published: "no" From 44abe0459961c4911dfaa51af3f98f0974147316 Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Tue, 23 Jul 2024 01:44:10 +0400 Subject: [PATCH 40/60] Add Mikrotik routing ospf neighbor print template (#1496) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”> --- ntc_templates/templates/index | 1 + ...ik_routeros_routing_ospf_neighbor_print.textfsm | 11 +++++++++++ ...krotik_routeros_routing_ospf_neighbor_print.raw | 3 +++ ...krotik_routeros_routing_ospf_neighbor_print.yml | 14 ++++++++++++++ 4 files changed, 29 insertions(+) create mode 100644 ntc_templates/templates/mikrotik_routeros_routing_ospf_neighbor_print.textfsm create mode 100644 tests/mikrotik_routeros/routing_ospf_neighbor_print/mikrotik_routeros_routing_ospf_neighbor_print.raw create mode 100644 tests/mikrotik_routeros/routing_ospf_neighbor_print/mikrotik_routeros_routing_ospf_neighbor_print.yml diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 67896d56f3..48ee825df6 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -711,6 +711,7 @@ mikrotik_routeros_ip_arp_print_terse_without-paging.textfsm, .*, mikrotik_router mikrotik_routeros_log_print_detail_without-paging.textfsm, .*, mikrotik_routeros, [[/]]log p[[rint]] d[[etail]] wi[[thout-paging]] mikrotik_routeros_routing_bgp_peer_print_status.textfsm, .*, mikrotik_routeros, [[/]]r[[outing]] bg[[p]] p[[eer]] p[[rint]] s[[tatus]] mikrotik_routeros_ip_arp_print_without-paging.textfsm, .*, mikrotik_routeros, [[/]]ip arp print without-paging +mikrotik_routeros_routing_ospf_neighbor_print.textfsm, .*, mikrotik_routeros, [[/]]r[[outing]] o[[spf]] nei[[ghbor]] p[[rint]] mikrotik_routeros_ip_address_export_verbose.textfsm, .*, mikrotik_routeros, [[/]]ip a[[ddress]] e[[xport]] [[verbose]] mikrotik_routeros_interface_ethernet_print.textfsm, .*, mikrotik_routeros, [[/]]in[[terface]] et[[hernet]] pr[[int]] mikrotik_routeros_ip_neighbor_print_detail.textfsm, .*, mikrotik_routeros, [[/]]ip n[[eighbor]] p[[rint]] d[[etail]] diff --git a/ntc_templates/templates/mikrotik_routeros_routing_ospf_neighbor_print.textfsm b/ntc_templates/templates/mikrotik_routeros_routing_ospf_neighbor_print.textfsm new file mode 100644 index 0000000000..266bdda109 --- /dev/null +++ b/ntc_templates/templates/mikrotik_routeros_routing_ospf_neighbor_print.textfsm @@ -0,0 +1,11 @@ +Value NEIGHBOR_ID (\S+) +Value PRIORITY (\d+) +Value STATE (\S+) +Value UP_TIME (\S+) +Value ADDRESS (\S+) +Value INTERFACE (\S+) + +Start + ^.*router-id=${NEIGHBOR_ID}.*address=${ADDRESS}.*interface=${INTERFACE}.*priority=${PRIORITY}.*state=\"${STATE}\".*adjacency=${UP_TIME}.*$$ -> Record + ^\s*$$ + ^. -> Error diff --git a/tests/mikrotik_routeros/routing_ospf_neighbor_print/mikrotik_routeros_routing_ospf_neighbor_print.raw b/tests/mikrotik_routeros/routing_ospf_neighbor_print/mikrotik_routeros_routing_ospf_neighbor_print.raw new file mode 100644 index 0000000000..488bf2952e --- /dev/null +++ b/tests/mikrotik_routeros/routing_ospf_neighbor_print/mikrotik_routeros_routing_ospf_neighbor_print.raw @@ -0,0 +1,3 @@ + 0 instance=default router-id=89.188.172.2 address=89.188.172.81 interface=vlan68 priority=128 dr-address=0.0.0.0 backup-dr-address=0.0.0.0 state="Full" state-changes=5 ls-retransmits=0 ls-requests=0 db-summaries=0 adjacency=7w5d8h40m21s + + 1 instance=default router-id=89.188.172.3 address=89.188.172.93 interface=vlan71 priority=128 dr-address=0.0.0.0 backup-dr-address=0.0.0.0 state="Full" state-changes=5 ls-retransmits=0 ls-requests=0 db-summaries=0 adjacency=7w5d8h40m21s diff --git a/tests/mikrotik_routeros/routing_ospf_neighbor_print/mikrotik_routeros_routing_ospf_neighbor_print.yml b/tests/mikrotik_routeros/routing_ospf_neighbor_print/mikrotik_routeros_routing_ospf_neighbor_print.yml new file mode 100644 index 0000000000..f6c54f5ba4 --- /dev/null +++ b/tests/mikrotik_routeros/routing_ospf_neighbor_print/mikrotik_routeros_routing_ospf_neighbor_print.yml @@ -0,0 +1,14 @@ +--- +parsed_sample: + - address: "89.188.172.81" + interface: "vlan68" + neighbor_id: "89.188.172.2" + priority: "128" + state: "Full" + up_time: "7w5d8h40m21s" + - address: "89.188.172.93" + interface: "vlan71" + neighbor_id: "89.188.172.3" + priority: "128" + state: "Full" + up_time: "7w5d8h40m21s" From 9c58c948bf8e7667714a0beef06aa0c1ce668baa Mon Sep 17 00:00:00 2001 From: Jose Orlando Date: Mon, 22 Jul 2024 18:50:53 -0300 Subject: [PATCH 41/60] Update template: cisco_xr_show_ipv4_interface.textfsm (#1776) --- .../cisco_xr_show_ipv4_interface.textfsm | 19 +- ntc_templates/templates/index | 2 +- .../cisco_xr_show_ipv4_interface.yml | 12 ++ .../cisco_xr_show_ipv4_interface1.yml | 12 ++ .../cisco_xr_show_ipv4_interface2.yml | 18 ++ .../cisco_xr_show_ipv4_interface3.yml | 204 ++++++++++++++++++ .../cisco_xr_show_ipv4_interface4.raw | 78 +++++++ .../cisco_xr_show_ipv4_interface4.yml | 104 +++++++++ 8 files changed, 443 insertions(+), 6 deletions(-) create mode 100644 tests/cisco_xr/show_ipv4_interface/cisco_xr_show_ipv4_interface4.raw create mode 100644 tests/cisco_xr/show_ipv4_interface/cisco_xr_show_ipv4_interface4.yml diff --git a/ntc_templates/templates/cisco_xr_show_ipv4_interface.textfsm b/ntc_templates/templates/cisco_xr_show_ipv4_interface.textfsm index 3884512ad2..f5404b15c3 100644 --- a/ntc_templates/templates/cisco_xr_show_ipv4_interface.textfsm +++ b/ntc_templates/templates/cisco_xr_show_ipv4_interface.textfsm @@ -3,18 +3,27 @@ Value LINK_STATUS (\S+) Value PROTOCOL (\S+) Value PROTOCOL_STATUS (\S+) Value VRF (\S+) +Value VRF_ID (\S+) Value IP_ADDRESS (\S+?) +Value List SEC_IP_ADDRESS (\S+?) Value PREFIX_LENGTH (\d*) +Value List SEC_PREFIX_LENGTH (\d*) Value MTU (\d+) Value IP_MTU (\d+) Value List MULTICAST_GROUPS (\d+\.\d+\.\d+\.\d+) +Value OUT_ACL (.*) +Value IN_ACL (.*) +Value RPF_CHECK (\S+) + Start ^(Mon?)|(Tue?)|(Wed?)|(Thu?)|(Fri?)|(Sat?)|(Sun?)\s.*$$ ^\S+\s+is -> Continue.Record ^${INTERFACE}\sis\s${LINK_STATUS},\s+${PROTOCOL}\sprotocol\sis\s${PROTOCOL_STATUS}.*$$ - ^\s+Vrf\sis\s${VRF}\s.*$$ + ^\s+Vrf\s+is\s+${VRF}\s+\(vrfid\s+${VRF_ID}\) ^\s+Internet\s+address\s+is\s+${IP_ADDRESS}/?${PREFIX_LENGTH}\s*$$ + ^\s+Secondary\s+address\s+${SEC_IP_ADDRESS}/?${SEC_PREFIX_LENGTH}\s*$$ + ^\s+Interface\s+is\s+unnumbered\S* ^\s+MTU\s+is\s+${MTU}\s+\(${IP_MTU}\s+is\s+available\s+to\s+IP\) ^\s+Helper.*$$ ^\s+Multicast\s+reserved\s+groups\s+joined\:\s+${MULTICAST_GROUPS} -> Continue @@ -23,15 +32,15 @@ Start ^\s+Multicast\s+reserved\s+groups\s+joined\:\s+ -> MULTICAST ^\s+Internet\s+protocol.*$$ ^\s+Directed.*$$ - ^\s+Outgoing.*$$ - ^\s+Inbound.*$$ + ^\s+Outgoing\s+access\s+list\s+is\s+${OUT_ACL} + ^\s+Inbound\s+(?:common)?\s+access\s+list\s+is\s+${IN_ACL} ^\s+Proxy.*$$ ^\s+ICMP redirects.*$$ ^\s+ICMP unreachables.*$$ ^\s+ICMP mask.*$$ ^\s+Table.*$$ ^\s+mLACP.*$$ - ^IP\s+unicast\s+RPF.*$$ + ^IP\s+unicast\s+RPF\s+check\s+is\s+${RPF_CHECK} ^RPF\s+mode.*$$ ^\s*$$ ^. -> Error @@ -50,4 +59,4 @@ MULTICAST ^\s+(?:\S+\s+){9}${MULTICAST_GROUPS} -> Continue ^\s+(?:\S+\s+){10}${MULTICAST_GROUPS} -> Continue ^.* -> Start - ^. -> Error MULTICAST \ No newline at end of file + ^. -> Error MULTICAST diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 48ee825df6..792874ff7c 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -510,7 +510,7 @@ cisco_xr_show_interface_brief.textfsm, .*, cisco_xr, sh[[ow]] int[[erface]] br[[ cisco_xr_admin_show_platform.textfsm, .*, cisco_xr, adm[[in]] sh[[ow]] pla[[tform]] cisco_xr_show_install_active.textfsm, .*, cisco_xr, sh[[ow]] install active cisco_xr_show_ip_bgp_summary.textfsm, .*, cisco_xr, sh[[ow]] ip b[[gp]] s[[ummary]] -cisco_xr_show_ipv4_interface.textfsm, .*, cisco_xr, sh[[ow]] ip[[v4]] int[[erface]] +cisco_xr_show_ipv4_interface.textfsm, .*, cisco_xr, sh[[ow]] ip[[v4]](?: vrf \S+)? int[[erface]] cisco_xr_show_ipv6_neighbors.textfsm, .*, cisco_xr, sh[[ow]] ipv6 ne[[ighbors]] cisco_xr_show_isis_neighbors.textfsm, .*, cisco_xr, sh[[ow]] isis ne[[ighbors]] cisco_xr_show_lldp_neighbors.textfsm, .*, cisco_xr, sh[[ow]] lld[[p]] neig[[hbors]] diff --git a/tests/cisco_xr/show_ipv4_interface/cisco_xr_show_ipv4_interface.yml b/tests/cisco_xr/show_ipv4_interface/cisco_xr_show_ipv4_interface.yml index 98aa0ba7ac..fde72aa52f 100644 --- a/tests/cisco_xr/show_ipv4_interface/cisco_xr_show_ipv4_interface.yml +++ b/tests/cisco_xr/show_ipv4_interface/cisco_xr_show_ipv4_interface.yml @@ -1,6 +1,7 @@ --- parsed_sample: - interface: "GigabitEthernet0/0/0/0" + in_acl: "not set, access list is not set" ip_address: "10.2.0.2" ip_mtu: "1500" link_status: "Up" @@ -10,11 +11,17 @@ parsed_sample: - "224.0.0.1" - "224.0.0.9" - "224.0.0.10" + out_acl: "not set" prefix_length: "30" protocol: "ipv4" protocol_status: "Up" + rpf_check: "" + sec_ip_address: [] + sec_prefix_length: [] vrf: "default" + vrf_id: "0x60000000" - interface: "GigabitEthernet0/0/0/1" + in_acl: "not set, access list is not set" ip_address: "10.0.7.1" ip_mtu: "1500" link_status: "Up" @@ -24,7 +31,12 @@ parsed_sample: - "224.0.0.1" - "224.0.0.5" - "224.0.0.6" + out_acl: "not set" prefix_length: "30" protocol: "ipv4" protocol_status: "Up" + rpf_check: "" + sec_ip_address: [] + sec_prefix_length: [] vrf: "default" + vrf_id: "0x60000000" diff --git a/tests/cisco_xr/show_ipv4_interface/cisco_xr_show_ipv4_interface1.yml b/tests/cisco_xr/show_ipv4_interface/cisco_xr_show_ipv4_interface1.yml index 5aace0f6b6..ba9340ef93 100644 --- a/tests/cisco_xr/show_ipv4_interface/cisco_xr_show_ipv4_interface1.yml +++ b/tests/cisco_xr/show_ipv4_interface/cisco_xr_show_ipv4_interface1.yml @@ -1,6 +1,7 @@ --- parsed_sample: - interface: "MgmtEth0/0/CPU0/0" + in_acl: "not set, access list is not set" ip_address: "172.25.82.44" ip_mtu: "1500" link_status: "Up" @@ -8,17 +9,28 @@ parsed_sample: multicast_groups: - "224.0.0.2" - "224.0.0.1" + out_acl: "not set" prefix_length: "24" protocol: "ipv4" protocol_status: "Up" + rpf_check: "" + sec_ip_address: [] + sec_prefix_length: [] vrf: "default" + vrf_id: "0x60000000" - interface: "GigabitEthernet0/0/0/0" + in_acl: "" ip_address: "" ip_mtu: "" link_status: "Shutdown" mtu: "" multicast_groups: [] + out_acl: "" prefix_length: "" protocol: "ipv4" protocol_status: "Down" + rpf_check: "" + sec_ip_address: [] + sec_prefix_length: [] vrf: "default" + vrf_id: "0x60000000" diff --git a/tests/cisco_xr/show_ipv4_interface/cisco_xr_show_ipv4_interface2.yml b/tests/cisco_xr/show_ipv4_interface/cisco_xr_show_ipv4_interface2.yml index 9a2a9a0f64..817d386a61 100644 --- a/tests/cisco_xr/show_ipv4_interface/cisco_xr_show_ipv4_interface2.yml +++ b/tests/cisco_xr/show_ipv4_interface/cisco_xr_show_ipv4_interface2.yml @@ -1,6 +1,7 @@ --- parsed_sample: - interface: "TenGigE0/0/0/6" + in_acl: "not set" ip_address: "10.1.1.1" ip_mtu: "9202" link_status: "Up" @@ -12,11 +13,17 @@ parsed_sample: - "224.0.0.6" - "224.0.0.13" - "224.0.0.22" + out_acl: "not set" prefix_length: "31" protocol: "ipv4" protocol_status: "Up" + rpf_check: "" + sec_ip_address: [] + sec_prefix_length: [] vrf: "default" + vrf_id: "0x60000000" - interface: "Bundle-Ether10.23" + in_acl: "not set" ip_address: "10.1.1.7" ip_mtu: "9100" link_status: "Up" @@ -24,11 +31,17 @@ parsed_sample: multicast_groups: - "224.0.0.1" - "224.0.0.6" + out_acl: "not set" prefix_length: "31" protocol: "ipv4" protocol_status: "Down" + rpf_check: "" + sec_ip_address: [] + sec_prefix_length: [] vrf: "default" + vrf_id: "0x60000000" - interface: "TenGigE0/5/0/2.3" + in_acl: "BLOCK" ip_address: "10.2.2.1" ip_mtu: "1500" link_status: "Up" @@ -38,7 +51,12 @@ parsed_sample: - "224.0.0.1" - "224.0.0.13" - "224.0.0.22" + out_acl: "not set" prefix_length: "30" protocol: "ipv4" protocol_status: "Up" + rpf_check: "enabled" + sec_ip_address: [] + sec_prefix_length: [] vrf: "default" + vrf_id: "0x60000000" diff --git a/tests/cisco_xr/show_ipv4_interface/cisco_xr_show_ipv4_interface3.yml b/tests/cisco_xr/show_ipv4_interface/cisco_xr_show_ipv4_interface3.yml index 08be1b56d2..be5215ce7c 100644 --- a/tests/cisco_xr/show_ipv4_interface/cisco_xr_show_ipv4_interface3.yml +++ b/tests/cisco_xr/show_ipv4_interface/cisco_xr_show_ipv4_interface3.yml @@ -1,6 +1,7 @@ --- parsed_sample: - interface: "Loopback0" + in_acl: "not set, access list is not set" ip_address: "172.12.12.72" ip_mtu: "1500" link_status: "Up" @@ -11,11 +12,17 @@ parsed_sample: - "224.0.0.13" - "224.0.0.22" - "224.0.1.40" + out_acl: "not set" prefix_length: "32" protocol: "ipv4" protocol_status: "Up" + rpf_check: "" + sec_ip_address: [] + sec_prefix_length: [] vrf: "default" + vrf_id: "0x60000000" - interface: "FourHundredGigE0/0/0/0" + in_acl: "not set, access list is not set" ip_address: "172.1.1.78" ip_mtu: "9100" link_status: "Up" @@ -27,281 +34,449 @@ parsed_sample: - "224.0.0.6" - "224.0.0.13" - "224.0.0.22" + out_acl: "not set" prefix_length: "31" protocol: "ipv4" protocol_status: "Up" + rpf_check: "" + sec_ip_address: [] + sec_prefix_length: [] vrf: "default" + vrf_id: "0x60000000" - interface: "FourHundredGigE0/0/0/1" + in_acl: "" ip_address: "" ip_mtu: "" link_status: "Shutdown" mtu: "" multicast_groups: [] + out_acl: "" prefix_length: "" protocol: "ipv4" protocol_status: "Down" + rpf_check: "" + sec_ip_address: [] + sec_prefix_length: [] vrf: "default" + vrf_id: "0x60000000" - interface: "FourHundredGigE0/0/0/2" + in_acl: "" ip_address: "" ip_mtu: "" link_status: "Shutdown" mtu: "" multicast_groups: [] + out_acl: "" prefix_length: "" protocol: "ipv4" protocol_status: "Down" + rpf_check: "" + sec_ip_address: [] + sec_prefix_length: [] vrf: "default" + vrf_id: "0x60000000" - interface: "FourHundredGigE0/0/0/3" + in_acl: "" ip_address: "" ip_mtu: "" link_status: "Shutdown" mtu: "" multicast_groups: [] + out_acl: "" prefix_length: "" protocol: "ipv4" protocol_status: "Down" + rpf_check: "" + sec_ip_address: [] + sec_prefix_length: [] vrf: "default" + vrf_id: "0x60000000" - interface: "FourHundredGigE0/0/0/4" + in_acl: "" ip_address: "" ip_mtu: "" link_status: "Shutdown" mtu: "" multicast_groups: [] + out_acl: "" prefix_length: "" protocol: "ipv4" protocol_status: "Down" + rpf_check: "" + sec_ip_address: [] + sec_prefix_length: [] vrf: "default" + vrf_id: "0x60000000" - interface: "FourHundredGigE0/0/0/5" + in_acl: "" ip_address: "" ip_mtu: "" link_status: "Shutdown" mtu: "" multicast_groups: [] + out_acl: "" prefix_length: "" protocol: "ipv4" protocol_status: "Down" + rpf_check: "" + sec_ip_address: [] + sec_prefix_length: [] vrf: "default" + vrf_id: "0x60000000" - interface: "FourHundredGigE0/0/0/6" + in_acl: "" ip_address: "" ip_mtu: "" link_status: "Shutdown" mtu: "" multicast_groups: [] + out_acl: "" prefix_length: "" protocol: "ipv4" protocol_status: "Down" + rpf_check: "" + sec_ip_address: [] + sec_prefix_length: [] vrf: "default" + vrf_id: "0x60000000" - interface: "FourHundredGigE0/0/0/7" + in_acl: "" ip_address: "" ip_mtu: "" link_status: "Shutdown" mtu: "" multicast_groups: [] + out_acl: "" prefix_length: "" protocol: "ipv4" protocol_status: "Down" + rpf_check: "" + sec_ip_address: [] + sec_prefix_length: [] vrf: "default" + vrf_id: "0x60000000" - interface: "FourHundredGigE0/0/0/8" + in_acl: "" ip_address: "" ip_mtu: "" link_status: "Shutdown" mtu: "" multicast_groups: [] + out_acl: "" prefix_length: "" protocol: "ipv4" protocol_status: "Down" + rpf_check: "" + sec_ip_address: [] + sec_prefix_length: [] vrf: "default" + vrf_id: "0x60000000" - interface: "FourHundredGigE0/0/0/9" + in_acl: "" ip_address: "" ip_mtu: "" link_status: "Shutdown" mtu: "" multicast_groups: [] + out_acl: "" prefix_length: "" protocol: "ipv4" protocol_status: "Down" + rpf_check: "" + sec_ip_address: [] + sec_prefix_length: [] vrf: "default" + vrf_id: "0x60000000" - interface: "FourHundredGigE0/0/0/10" + in_acl: "" ip_address: "" ip_mtu: "" link_status: "Shutdown" mtu: "" multicast_groups: [] + out_acl: "" prefix_length: "" protocol: "ipv4" protocol_status: "Down" + rpf_check: "" + sec_ip_address: [] + sec_prefix_length: [] vrf: "default" + vrf_id: "0x60000000" - interface: "FourHundredGigE0/0/0/11" + in_acl: "" ip_address: "" ip_mtu: "" link_status: "Shutdown" mtu: "" multicast_groups: [] + out_acl: "" prefix_length: "" protocol: "ipv4" protocol_status: "Down" + rpf_check: "" + sec_ip_address: [] + sec_prefix_length: [] vrf: "default" + vrf_id: "0x60000000" - interface: "FourHundredGigE0/0/0/12" + in_acl: "" ip_address: "" ip_mtu: "" link_status: "Shutdown" mtu: "" multicast_groups: [] + out_acl: "" prefix_length: "" protocol: "ipv4" protocol_status: "Down" + rpf_check: "" + sec_ip_address: [] + sec_prefix_length: [] vrf: "default" + vrf_id: "0x60000000" - interface: "FourHundredGigE0/0/0/13" + in_acl: "" ip_address: "" ip_mtu: "" link_status: "Shutdown" mtu: "" multicast_groups: [] + out_acl: "" prefix_length: "" protocol: "ipv4" protocol_status: "Down" + rpf_check: "" + sec_ip_address: [] + sec_prefix_length: [] vrf: "default" + vrf_id: "0x60000000" - interface: "FourHundredGigE0/0/0/14" + in_acl: "" ip_address: "" ip_mtu: "" link_status: "Shutdown" mtu: "" multicast_groups: [] + out_acl: "" prefix_length: "" protocol: "ipv4" protocol_status: "Down" + rpf_check: "" + sec_ip_address: [] + sec_prefix_length: [] vrf: "default" + vrf_id: "0x60000000" - interface: "FourHundredGigE0/0/0/15" + in_acl: "" ip_address: "" ip_mtu: "" link_status: "Shutdown" mtu: "" multicast_groups: [] + out_acl: "" prefix_length: "" protocol: "ipv4" protocol_status: "Down" + rpf_check: "" + sec_ip_address: [] + sec_prefix_length: [] vrf: "default" + vrf_id: "0x60000000" - interface: "FourHundredGigE0/0/0/16" + in_acl: "" ip_address: "" ip_mtu: "" link_status: "Shutdown" mtu: "" multicast_groups: [] + out_acl: "" prefix_length: "" protocol: "ipv4" protocol_status: "Down" + rpf_check: "" + sec_ip_address: [] + sec_prefix_length: [] vrf: "default" + vrf_id: "0x60000000" - interface: "FourHundredGigE0/0/0/17" + in_acl: "" ip_address: "" ip_mtu: "" link_status: "Shutdown" mtu: "" multicast_groups: [] + out_acl: "" prefix_length: "" protocol: "ipv4" protocol_status: "Down" + rpf_check: "" + sec_ip_address: [] + sec_prefix_length: [] vrf: "default" + vrf_id: "0x60000000" - interface: "FourHundredGigE0/0/0/18" + in_acl: "" ip_address: "" ip_mtu: "" link_status: "Shutdown" mtu: "" multicast_groups: [] + out_acl: "" prefix_length: "" protocol: "ipv4" protocol_status: "Down" + rpf_check: "" + sec_ip_address: [] + sec_prefix_length: [] vrf: "default" + vrf_id: "0x60000000" - interface: "FourHundredGigE0/0/0/19" + in_acl: "" ip_address: "" ip_mtu: "" link_status: "Shutdown" mtu: "" multicast_groups: [] + out_acl: "" prefix_length: "" protocol: "ipv4" protocol_status: "Down" + rpf_check: "" + sec_ip_address: [] + sec_prefix_length: [] vrf: "default" + vrf_id: "0x60000000" - interface: "FourHundredGigE0/0/0/20" + in_acl: "" ip_address: "" ip_mtu: "" link_status: "Shutdown" mtu: "" multicast_groups: [] + out_acl: "" prefix_length: "" protocol: "ipv4" protocol_status: "Down" + rpf_check: "" + sec_ip_address: [] + sec_prefix_length: [] vrf: "default" + vrf_id: "0x60000000" - interface: "FourHundredGigE0/0/0/21" + in_acl: "" ip_address: "" ip_mtu: "" link_status: "Shutdown" mtu: "" multicast_groups: [] + out_acl: "" prefix_length: "" protocol: "ipv4" protocol_status: "Down" + rpf_check: "" + sec_ip_address: [] + sec_prefix_length: [] vrf: "default" + vrf_id: "0x60000000" - interface: "FourHundredGigE0/0/0/22" + in_acl: "" ip_address: "" ip_mtu: "" link_status: "Shutdown" mtu: "" multicast_groups: [] + out_acl: "" prefix_length: "" protocol: "ipv4" protocol_status: "Down" + rpf_check: "" + sec_ip_address: [] + sec_prefix_length: [] vrf: "default" + vrf_id: "0x60000000" - interface: "FourHundredGigE0/0/0/23" + in_acl: "" ip_address: "" ip_mtu: "" link_status: "Shutdown" mtu: "" multicast_groups: [] + out_acl: "" prefix_length: "" protocol: "ipv4" protocol_status: "Down" + rpf_check: "" + sec_ip_address: [] + sec_prefix_length: [] vrf: "default" + vrf_id: "0x60000000" - interface: "FourHundredGigE0/0/0/24" + in_acl: "" ip_address: "" ip_mtu: "" link_status: "Shutdown" mtu: "" multicast_groups: [] + out_acl: "" prefix_length: "" protocol: "ipv4" protocol_status: "Down" + rpf_check: "" + sec_ip_address: [] + sec_prefix_length: [] vrf: "default" + vrf_id: "0x60000000" - interface: "FourHundredGigE0/0/0/25" + in_acl: "" ip_address: "" ip_mtu: "" link_status: "Shutdown" mtu: "" multicast_groups: [] + out_acl: "" prefix_length: "" protocol: "ipv4" protocol_status: "Down" + rpf_check: "" + sec_ip_address: [] + sec_prefix_length: [] vrf: "default" + vrf_id: "0x60000000" - interface: "FourHundredGigE0/0/0/26" + in_acl: "" ip_address: "" ip_mtu: "" link_status: "Shutdown" mtu: "" multicast_groups: [] + out_acl: "" prefix_length: "" protocol: "ipv4" protocol_status: "Down" + rpf_check: "" + sec_ip_address: [] + sec_prefix_length: [] vrf: "default" + vrf_id: "0x60000000" - interface: "FourHundredGigE0/0/0/27" + in_acl: "" ip_address: "" ip_mtu: "" link_status: "Shutdown" mtu: "" multicast_groups: [] + out_acl: "" prefix_length: "" protocol: "ipv4" protocol_status: "Down" + rpf_check: "" + sec_ip_address: [] + sec_prefix_length: [] vrf: "default" + vrf_id: "0x60000000" - interface: "FourHundredGigE0/0/0/28" + in_acl: "not set, access list is not set" ip_address: "172.1.1.65" ip_mtu: "9100" link_status: "Up" @@ -313,11 +488,17 @@ parsed_sample: - "224.0.0.6" - "224.0.0.13" - "224.0.0.22" + out_acl: "not set" prefix_length: "31" protocol: "ipv4" protocol_status: "Up" + rpf_check: "" + sec_ip_address: [] + sec_prefix_length: [] vrf: "default" + vrf_id: "0x60000000" - interface: "FourHundredGigE0/0/0/29" + in_acl: "not set, access list is not set" ip_address: "172.1.1.67" ip_mtu: "9100" link_status: "Up" @@ -329,11 +510,17 @@ parsed_sample: - "224.0.0.6" - "224.0.0.13" - "224.0.0.22" + out_acl: "not set" prefix_length: "31" protocol: "ipv4" protocol_status: "Up" + rpf_check: "" + sec_ip_address: [] + sec_prefix_length: [] vrf: "default" + vrf_id: "0x60000000" - interface: "HundredGigE0/0/0/30" + in_acl: "not set, access list is not set" ip_address: "172.1.1.72" ip_mtu: "9100" link_status: "Up" @@ -345,11 +532,17 @@ parsed_sample: - "224.0.0.6" - "224.0.0.13" - "224.0.0.22" + out_acl: "not set" prefix_length: "31" protocol: "ipv4" protocol_status: "Up" + rpf_check: "" + sec_ip_address: [] + sec_prefix_length: [] vrf: "default" + vrf_id: "0x60000000" - interface: "HundredGigE0/0/0/31" + in_acl: "not set, access list is not set" ip_address: "172.1.1.74" ip_mtu: "9100" link_status: "Up" @@ -361,17 +554,28 @@ parsed_sample: - "224.0.0.6" - "224.0.0.13" - "224.0.0.22" + out_acl: "not set" prefix_length: "31" protocol: "ipv4" protocol_status: "Up" + rpf_check: "" + sec_ip_address: [] + sec_prefix_length: [] vrf: "default" + vrf_id: "0x60000000" - interface: "MgmtEth0/RP0/CPU0/0" + in_acl: "not set, access list is not set" ip_address: "172.1.55.93" ip_mtu: "1500" link_status: "Up" mtu: "1514" multicast_groups: [] + out_acl: "not set" prefix_length: "24" protocol: "ipv4" protocol_status: "Up" + rpf_check: "" + sec_ip_address: [] + sec_prefix_length: [] vrf: "management" + vrf_id: "0x60000001" diff --git a/tests/cisco_xr/show_ipv4_interface/cisco_xr_show_ipv4_interface4.raw b/tests/cisco_xr/show_ipv4_interface/cisco_xr_show_ipv4_interface4.raw new file mode 100644 index 0000000000..204ad3d084 --- /dev/null +++ b/tests/cisco_xr/show_ipv4_interface/cisco_xr_show_ipv4_interface4.raw @@ -0,0 +1,78 @@ +Mon Jul 22 13:06:06.159 BRA +TenGigE0/4/0/2.16089 is Up, ipv4 protocol is Up + Vrf is default (vrfid 0x60000000) + Internet address is 10.23.115.17/30 + Secondary address 10.90.15.3/30 + MTU is 1522 (1500 is available to IP) + Helper address is not set + Multicast reserved groups joined: 224.0.0.2 224.0.0.1 224.0.0.1 + Directed broadcast forwarding is disabled + Outgoing access list is not set + Inbound access list is iACL + Proxy ARP is disabled + ICMP redirects are never sent + ICMP unreachables are always sent + ICMP mask replies are never sent + Table Id is 0xe0000000 +TenGigE0/4/0/4.18846 is Up, ipv4 protocol is Up + Vrf is default (vrfid 0x60000000) + Internet address is 10.21.19.29/30 + Secondary address 10.55.55.1/30 + MTU is 1522 (1500 is available to IP) + Helper address is not set + Multicast reserved groups joined: 224.0.0.2 224.0.0.1 224.0.0.1 + Directed broadcast forwarding is disabled + Outgoing access list is oACL + Inbound access list is iACL + Proxy ARP is disabled + ICMP redirects are never sent + ICMP unreachables are always sent + ICMP mask replies are never sent + Table Id is 0xe0000000 +IP unicast RPF check is enabled +TenGigE0/4/0/4.22006 is Up, ipv4 protocol is Up + Vrf is RED_CLIENT:5581 (vrfid 0x6000002c) + Internet address is 10.11.124.29/30 + Secondary address 10.31.1.1/30 + MTU is 1522 (1500 is available to IP) + Helper address is not set + Multicast reserved groups joined: 224.0.0.2 224.0.0.1 224.0.0.1 + Directed broadcast forwarding is disabled + Outgoing access list is not set + Inbound access list is not set + Proxy ARP is disabled + ICMP redirects are never sent + ICMP unreachables are always sent + ICMP mask replies are never sent + Table Id is 0xe0000000 +GigabitEthernet0/4/0/10.17 is Up, ipv4 protocol is Up + Vrf is default (vrfid 0x60000000) + Internet address is 10.250.25.33/30 + Secondary address 10.21.21.11/30 + MTU is 1518 (1500 is available to IP) + Helper address is not set + Multicast reserved groups joined: 224.0.0.2 224.0.0.1 224.0.0.1 + Directed broadcast forwarding is disabled + Outgoing access list is oACL + Inbound access list is iACL + Proxy ARP is disabled + ICMP redirects are never sent + ICMP unreachables are always sent + ICMP mask replies are never sent + Table Id is 0xe0000000 +IP unicast RPF check is enabled +TenGigE0/4/0/4.15025 is Up, ipv4 protocol is Up + Vrf is RED_CLIENT:5581 (vrfid 0x6000002c) + Internet address is 10.186.149.1/30 + MTU is 1522 (1500 is available to IP) + Helper address is not set + Multicast reserved groups joined: 224.0.0.2 224.0.0.1 + Directed broadcast forwarding is disabled + Outgoing access list is not set + Inbound access list is not set + Proxy ARP is disabled + ICMP redirects are never sent + ICMP unreachables are always sent + ICMP mask replies are never sent + Table Id is 0xe000003b +IP unicast RPF check is enabled diff --git a/tests/cisco_xr/show_ipv4_interface/cisco_xr_show_ipv4_interface4.yml b/tests/cisco_xr/show_ipv4_interface/cisco_xr_show_ipv4_interface4.yml new file mode 100644 index 0000000000..7f15024f79 --- /dev/null +++ b/tests/cisco_xr/show_ipv4_interface/cisco_xr_show_ipv4_interface4.yml @@ -0,0 +1,104 @@ +--- +parsed_sample: + - interface: "TenGigE0/4/0/2.16089" + in_acl: "iACL" + ip_address: "10.23.115.17" + ip_mtu: "1500" + link_status: "Up" + mtu: "1522" + multicast_groups: + - "224.0.0.2" + - "224.0.0.1" + - "224.0.0.1" + out_acl: "not set" + prefix_length: "30" + protocol: "ipv4" + protocol_status: "Up" + rpf_check: "" + sec_ip_address: + - "10.90.15.3" + sec_prefix_length: + - "30" + vrf: "default" + vrf_id: "0x60000000" + - interface: "TenGigE0/4/0/4.18846" + in_acl: "iACL" + ip_address: "10.21.19.29" + ip_mtu: "1500" + link_status: "Up" + mtu: "1522" + multicast_groups: + - "224.0.0.2" + - "224.0.0.1" + - "224.0.0.1" + out_acl: "oACL" + prefix_length: "30" + protocol: "ipv4" + protocol_status: "Up" + rpf_check: "enabled" + sec_ip_address: + - "10.55.55.1" + sec_prefix_length: + - "30" + vrf: "default" + vrf_id: "0x60000000" + - interface: "TenGigE0/4/0/4.22006" + in_acl: "not set" + ip_address: "10.11.124.29" + ip_mtu: "1500" + link_status: "Up" + mtu: "1522" + multicast_groups: + - "224.0.0.2" + - "224.0.0.1" + - "224.0.0.1" + out_acl: "not set" + prefix_length: "30" + protocol: "ipv4" + protocol_status: "Up" + rpf_check: "" + sec_ip_address: + - "10.31.1.1" + sec_prefix_length: + - "30" + vrf: "RED_CLIENT:5581" + vrf_id: "0x6000002c" + - interface: "GigabitEthernet0/4/0/10.17" + in_acl: "iACL" + ip_address: "10.250.25.33" + ip_mtu: "1500" + link_status: "Up" + mtu: "1518" + multicast_groups: + - "224.0.0.2" + - "224.0.0.1" + - "224.0.0.1" + out_acl: "oACL" + prefix_length: "30" + protocol: "ipv4" + protocol_status: "Up" + rpf_check: "enabled" + sec_ip_address: + - "10.21.21.11" + sec_prefix_length: + - "30" + vrf: "default" + vrf_id: "0x60000000" + - interface: "TenGigE0/4/0/4.15025" + in_acl: "not set" + ip_address: "10.186.149.1" + ip_mtu: "1500" + link_status: "Up" + mtu: "1522" + multicast_groups: + - "224.0.0.2" + - "224.0.0.1" + out_acl: "not set" + prefix_length: "30" + protocol: "ipv4" + protocol_status: "Up" + rpf_check: "enabled" + sec_ip_address: [] + sec_prefix_length: [] + vrf: "RED_CLIENT:5581" + vrf_id: "0x6000002c" From 8765b630b870000d887c78659f3571b17ad75e74 Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Tue, 23 Jul 2024 01:51:51 +0400 Subject: [PATCH 42/60] Add Mikrotik ip dhcp-server lease print template (#1495) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”> --- ntc_templates/templates/index | 1 + ...outeros_ip_dhcp-server_lease_print.textfsm | 19 ++++++++++ ...ik_routeros_ip_dhcp-server_lease_print.raw | 6 +++ ...ik_routeros_ip_dhcp-server_lease_print.yml | 38 +++++++++++++++++++ 4 files changed, 64 insertions(+) create mode 100644 ntc_templates/templates/mikrotik_routeros_ip_dhcp-server_lease_print.textfsm create mode 100644 tests/mikrotik_routeros/ip_dhcp-server_lease_print/mikrotik_routeros_ip_dhcp-server_lease_print.raw create mode 100644 tests/mikrotik_routeros/ip_dhcp-server_lease_print/mikrotik_routeros_ip_dhcp-server_lease_print.yml diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 792874ff7c..579d5e66d3 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -712,6 +712,7 @@ mikrotik_routeros_log_print_detail_without-paging.textfsm, .*, mikrotik_routeros mikrotik_routeros_routing_bgp_peer_print_status.textfsm, .*, mikrotik_routeros, [[/]]r[[outing]] bg[[p]] p[[eer]] p[[rint]] s[[tatus]] mikrotik_routeros_ip_arp_print_without-paging.textfsm, .*, mikrotik_routeros, [[/]]ip arp print without-paging mikrotik_routeros_routing_ospf_neighbor_print.textfsm, .*, mikrotik_routeros, [[/]]r[[outing]] o[[spf]] nei[[ghbor]] p[[rint]] +mikrotik_routeros_ip_dhcp-server_lease_print.textfsm, .*, mikrotik_routeros, [[/]]ip dh[[cp-server]] l[[ease]] p[[rint]] mikrotik_routeros_ip_address_export_verbose.textfsm, .*, mikrotik_routeros, [[/]]ip a[[ddress]] e[[xport]] [[verbose]] mikrotik_routeros_interface_ethernet_print.textfsm, .*, mikrotik_routeros, [[/]]in[[terface]] et[[hernet]] pr[[int]] mikrotik_routeros_ip_neighbor_print_detail.textfsm, .*, mikrotik_routeros, [[/]]ip n[[eighbor]] p[[rint]] d[[etail]] diff --git a/ntc_templates/templates/mikrotik_routeros_ip_dhcp-server_lease_print.textfsm b/ntc_templates/templates/mikrotik_routeros_ip_dhcp-server_lease_print.textfsm new file mode 100644 index 0000000000..0800daed67 --- /dev/null +++ b/ntc_templates/templates/mikrotik_routeros_ip_dhcp-server_lease_print.textfsm @@ -0,0 +1,19 @@ +Value NUMBER (\d+) +Value FLAGS ([XRDB]+) +Value ADDRESS (\S+) +Value MAC_ADDRESS ((?:[0-9a-fA-F]{2}:){5}[0-9a-fA-F]{2}) +Value HOST_NAME (\S+) +Value SERVER (\S+) +Value RATE_LIMIT (\S+) +Value STATUS (\S+) +Value LAST_SEEN (\S+) + +Start + ^\s*#\s+ADDRESS\s+MAC-ADDRESS\s+HOST-NAME\s+SERVER\s+RATE-LIMIT\s+STATUS\s+LAST-SEEN\s*$$ -> EntriesTable + +EntriesTable + # Impossible to separate HOST-NAME and SERVER? Have the same regex, can be empty, + # are next to each other -> use '...print terse...' version of the command + ^\s*${NUMBER}(?:\s+${FLAGS})?\s+${ADDRESS}(?:\s+${MAC_ADDRESS})?(?:\s+${HOST_NAME})?\s+${SERVER}(?:\s+${RATE_LIMIT})?\s+${STATUS}\s+${LAST_SEEN}\s*$$ -> Record + ^\s*$$ + ^. -> Error diff --git a/tests/mikrotik_routeros/ip_dhcp-server_lease_print/mikrotik_routeros_ip_dhcp-server_lease_print.raw b/tests/mikrotik_routeros/ip_dhcp-server_lease_print/mikrotik_routeros_ip_dhcp-server_lease_print.raw new file mode 100644 index 0000000000..9661af4e7a --- /dev/null +++ b/tests/mikrotik_routeros/ip_dhcp-server_lease_print/mikrotik_routeros_ip_dhcp-server_lease_print.raw @@ -0,0 +1,6 @@ +Flags: X - disabled, R - radius, D - dynamic, B - blocked + # ADDRESS MAC-ADDRESS HOST-NAME SERVER RATE-LIMIT STATUS LAST-SEEN + 0 192.168.60.254 *1 bound 35w13h13m15s + 1 X 192.168.61.254 MikroTik DHCPv4_Server waiting never + 1 192.168.62.254 12:34:56:78:90:AA DHCPv4_Server waiting never + 2 D 192.168.88.254 12:34:56:78:90:AB MikroTik DHCPv4_Server waiting never diff --git a/tests/mikrotik_routeros/ip_dhcp-server_lease_print/mikrotik_routeros_ip_dhcp-server_lease_print.yml b/tests/mikrotik_routeros/ip_dhcp-server_lease_print/mikrotik_routeros_ip_dhcp-server_lease_print.yml new file mode 100644 index 0000000000..6ec9da96cd --- /dev/null +++ b/tests/mikrotik_routeros/ip_dhcp-server_lease_print/mikrotik_routeros_ip_dhcp-server_lease_print.yml @@ -0,0 +1,38 @@ +--- +parsed_sample: + - address: "192.168.60.254" + flags: "" + host_name: "" + last_seen: "35w13h13m15s" + mac_address: "" + number: "0" + rate_limit: "" + server: "*1" + status: "bound" + - address: "192.168.61.254" + flags: "X" + host_name: "MikroTik" + last_seen: "never" + mac_address: "" + number: "1" + rate_limit: "" + server: "DHCPv4_Server" + status: "waiting" + - address: "192.168.62.254" + flags: "" + host_name: "" + last_seen: "never" + mac_address: "12:34:56:78:90:AA" + number: "1" + rate_limit: "" + server: "DHCPv4_Server" + status: "waiting" + - address: "192.168.88.254" + flags: "D" + host_name: "MikroTik" + last_seen: "never" + mac_address: "12:34:56:78:90:AB" + number: "2" + rate_limit: "" + server: "DHCPv4_Server" + status: "waiting" From c34904a33f78f62668f33dae5c8b8466488886dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enric=20Perpiny=C3=A0=20Pitarch?= Date: Tue, 23 Jul 2024 02:12:41 +0200 Subject: [PATCH 43/60] Add trailing whitespace (#1713) --- ntc_templates/templates/huawei_smartax_port_vlan.textfsm | 2 +- tests/huawei_smartax/port_vlan/huawei_smartax_port_vlan.raw | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ntc_templates/templates/huawei_smartax_port_vlan.textfsm b/ntc_templates/templates/huawei_smartax_port_vlan.textfsm index 0e406896b2..3144f17ce9 100644 --- a/ntc_templates/templates/huawei_smartax_port_vlan.textfsm +++ b/ntc_templates/templates/huawei_smartax_port_vlan.textfsm @@ -4,4 +4,4 @@ Value FAILED (\d+) Start ^Set\sONT\sport\(s\)\sVLAN\sconfiguration,\ssuccess:\s*${SUCCESS},\s*failed:\s*${FAILED} -> Record ^\s*$$ - ^. -> Error \ No newline at end of file + ^. -> Error diff --git a/tests/huawei_smartax/port_vlan/huawei_smartax_port_vlan.raw b/tests/huawei_smartax/port_vlan/huawei_smartax_port_vlan.raw index 0d7641adc3..1f01034c66 100644 --- a/tests/huawei_smartax/port_vlan/huawei_smartax_port_vlan.raw +++ b/tests/huawei_smartax/port_vlan/huawei_smartax_port_vlan.raw @@ -1 +1 @@ -Set ONT port(s) VLAN configuration, success: 1, failed: 0 \ No newline at end of file +Set ONT port(s) VLAN configuration, success: 1, failed: 0 From 0b95f64e3f50d05dc761b5c591331de23063416c Mon Sep 17 00:00:00 2001 From: Michael Bear <38406045+mjbear@users.noreply.github.com> Date: Mon, 22 Jul 2024 20:39:06 -0400 Subject: [PATCH 44/60] cisco_nxos show version - add support to capture BIOS version (#1778) --- ntc_templates/templates/cisco_nxos_show_version.textfsm | 2 ++ tests/cisco_nxos/show_version/cisco_nxos_show_version.yml | 7 ++++--- tests/cisco_nxos/show_version/cisco_nxos_show_version1.yml | 7 ++++--- tests/cisco_nxos/show_version/cisco_nxos_show_version2.yml | 7 ++++--- tests/cisco_nxos/show_version/cisco_nxos_show_version3.yml | 7 ++++--- tests/cisco_nxos/show_version/cisco_nxos_show_version4.yml | 7 ++++--- 6 files changed, 22 insertions(+), 15 deletions(-) diff --git a/ntc_templates/templates/cisco_nxos_show_version.textfsm b/ntc_templates/templates/cisco_nxos_show_version.textfsm index 890e785091..e7817f71cb 100755 --- a/ntc_templates/templates/cisco_nxos_show_version.textfsm +++ b/ntc_templates/templates/cisco_nxos_show_version.textfsm @@ -1,5 +1,6 @@ Value UPTIME ((\d+\s\w+.s.,?\s?){4}) Value LAST_REBOOT_REASON (.+) +Value BIOS (\d+.\d+(.+)?) Value OS (\d+.\d+(.+)?) Value BOOT_IMAGE (.*) Value PLATFORM (\w+) @@ -7,6 +8,7 @@ Value HOSTNAME (.*) Value SERIAL (\w+) Start + ^\s+(BIOS:\s+version)\s+${BIOS}\s*$$ ^\s+(NXOS: version|system:\s+version)\s+${OS}\s*$$ ^\s+(NXOS|kickstart)\s+image\s+file\s+is:\s+${BOOT_IMAGE}\s*$$ ^\s+cisco\s+${PLATFORM}\s+[cC]hassis diff --git a/tests/cisco_nxos/show_version/cisco_nxos_show_version.yml b/tests/cisco_nxos/show_version/cisco_nxos_show_version.yml index aa0db339df..e264a5d5ef 100644 --- a/tests/cisco_nxos/show_version/cisco_nxos_show_version.yml +++ b/tests/cisco_nxos/show_version/cisco_nxos_show_version.yml @@ -1,9 +1,10 @@ --- parsed_sample: - - uptime: "123 day(s), 5 hour(s), 15 minute(s), 19 second(s)" + - bios: "07.15" + boot_image: "bootflash:///n9000-dk9.6.1.2.I3.1.bin" + hostname: "N9K1" last_reboot_reason: "Unknown" os: "6.1(2)I3(1)" - boot_image: "bootflash:///n9000-dk9.6.1.2.I3.1.bin" platform: "C9396PX" - hostname: "N9K1" serial: "SAL1819S6LU" + uptime: "123 day(s), 5 hour(s), 15 minute(s), 19 second(s)" diff --git a/tests/cisco_nxos/show_version/cisco_nxos_show_version1.yml b/tests/cisco_nxos/show_version/cisco_nxos_show_version1.yml index 1f26b1137d..18884ab86a 100644 --- a/tests/cisco_nxos/show_version/cisco_nxos_show_version1.yml +++ b/tests/cisco_nxos/show_version/cisco_nxos_show_version1.yml @@ -1,9 +1,10 @@ --- parsed_sample: - - uptime: "11 day(s), 01 hour(s), 57 minute(s), 02 second(s)" + - bios: "07.64" + boot_image: "/bootflash/aci-n9000-dk9.14.0.1h.bin" + hostname: "Leaf-101" last_reboot_reason: "unknown" os: "14.0(1h) [build 14.0(1h)]" - boot_image: "/bootflash/aci-n9000-dk9.14.0.1h.bin" platform: "C9396PX" - hostname: "Leaf-101" serial: "SAL1909A8CT" + uptime: "11 day(s), 01 hour(s), 57 minute(s), 02 second(s)" diff --git a/tests/cisco_nxos/show_version/cisco_nxos_show_version2.yml b/tests/cisco_nxos/show_version/cisco_nxos_show_version2.yml index 41cdf083c5..043accf0d7 100644 --- a/tests/cisco_nxos/show_version/cisco_nxos_show_version2.yml +++ b/tests/cisco_nxos/show_version/cisco_nxos_show_version2.yml @@ -1,9 +1,10 @@ --- parsed_sample: - - uptime: "749 day(s), 15 hour(s), 17 minute(s), 48 second(s)" + - bios: "3.6.0" + boot_image: "bootflash:///n5000-uk9-kickstart.7.1.4.N1.1.bin" + hostname: "IEDP02-N5K-SW01" last_reboot_reason: "Disruptive upgrade" os: "7.1(4)N1(1)" - boot_image: "bootflash:///n5000-uk9-kickstart.7.1.4.N1.1.bin" platform: "5596" - hostname: "IEDP02-N5K-SW01" serial: "FOC17153X08" + uptime: "749 day(s), 15 hour(s), 17 minute(s), 48 second(s)" diff --git a/tests/cisco_nxos/show_version/cisco_nxos_show_version3.yml b/tests/cisco_nxos/show_version/cisco_nxos_show_version3.yml index 904e5047a9..39790ccde6 100644 --- a/tests/cisco_nxos/show_version/cisco_nxos_show_version3.yml +++ b/tests/cisco_nxos/show_version/cisco_nxos_show_version3.yml @@ -1,9 +1,10 @@ --- parsed_sample: - - uptime: "311 day(s), 0 hour(s), 27 minute(s), 35 second(s)" + - bios: "3.6.0" + boot_image: "bootflash:///n5000-uk9-kickstart.5.2.1.N1.4.bin" + hostname: "DC2TESTSW01-55" last_reboot_reason: "Reset triggered due to HA policy of Reset" os: "5.2(1)N1(4)" - boot_image: "bootflash:///n5000-uk9-kickstart.5.2.1.N1.4.bin" platform: "Nexus5548" - hostname: "DC2TESTSW01-55" serial: "FOC171737PL" + uptime: "311 day(s), 0 hour(s), 27 minute(s), 35 second(s)" diff --git a/tests/cisco_nxos/show_version/cisco_nxos_show_version4.yml b/tests/cisco_nxos/show_version/cisco_nxos_show_version4.yml index eabf815c96..e629c2abeb 100644 --- a/tests/cisco_nxos/show_version/cisco_nxos_show_version4.yml +++ b/tests/cisco_nxos/show_version/cisco_nxos_show_version4.yml @@ -1,9 +1,10 @@ --- parsed_sample: - - uptime: "670 day(s), 6 hour(s), 34 minute(s), 1 second(s)" + - bios: "07.51" + boot_image: "bootflash:///nxos.7.0.3.I4.3.bin" + hostname: "obttestw02" last_reboot_reason: "Unknown" os: "7.0(3)I4(3)" - boot_image: "bootflash:///nxos.7.0.3.I4.3.bin" platform: "C9372PX" - hostname: "obttestw02" serial: "SAL2211QQWS" + uptime: "670 day(s), 6 hour(s), 34 minute(s), 1 second(s)" From c8c1711cc1319a65c9b68b3d8a5b813d7d9bbeed Mon Sep 17 00:00:00 2001 From: Jacob McGill <9847006+jmcgill298@users.noreply.github.com> Date: Mon, 22 Jul 2024 23:00:27 -0400 Subject: [PATCH 45/60] Update template: cisco_viptela_show_arp.textfsm (#1779) * fixed for old viptela os * Add test case * Update ntc_templates/templates/cisco_viptela_show_arp.textfsm * Apply suggestions from code review --------- Co-authored-by: yone2ks --- ntc_templates/templates/cisco_viptela_show_arp.textfsm | 4 ++-- .../show_arp/cisco_viptela_show_arp-old.raw | 3 +++ .../show_arp/cisco_viptela_show_arp-old.yml | 9 +++++++++ tests/cisco_viptela/show_arp/cisco_viptela_show_arp.raw | 2 +- 4 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 tests/cisco_viptela/show_arp/cisco_viptela_show_arp-old.raw create mode 100644 tests/cisco_viptela/show_arp/cisco_viptela_show_arp-old.yml diff --git a/ntc_templates/templates/cisco_viptela_show_arp.textfsm b/ntc_templates/templates/cisco_viptela_show_arp.textfsm index 5194a16fa0..e243a33004 100644 --- a/ntc_templates/templates/cisco_viptela_show_arp.textfsm +++ b/ntc_templates/templates/cisco_viptela_show_arp.textfsm @@ -8,7 +8,7 @@ Value UPTIME (\S+) Start ^\s*IF - ^\s*VPN\s+NAME\s+IP\s+MAC\s+STATE\s+IDLE\s+TIMER\s+UPTIME + ^\s*VPN\s+(IF\s+)?NAME\s+IP\s+MAC\s+STATE\s+IDLE\s+TIMER\s+UPTIME ^-+ ^\s*${VPN}\s+${NAME}\s+${IP_ADDRESS}\s+${MAC_ADDRESS}\s+${STATE}\s+${IDLE_TIMER}\s+${UPTIME} -> Record - ^. -> Error \ No newline at end of file + ^. -> Error diff --git a/tests/cisco_viptela/show_arp/cisco_viptela_show_arp-old.raw b/tests/cisco_viptela/show_arp/cisco_viptela_show_arp-old.raw new file mode 100644 index 0000000000..90e15745ae --- /dev/null +++ b/tests/cisco_viptela/show_arp/cisco_viptela_show_arp-old.raw @@ -0,0 +1,3 @@ +VPN IF NAME IP MAC STATE IDLE TIMER UPTIME +----------------------------------------------------------------------------- +0 eth0 10.10.20.70 00:50:56:bf:a0:d3 dynamic 0:00:11:33 0:00:08:28 diff --git a/tests/cisco_viptela/show_arp/cisco_viptela_show_arp-old.yml b/tests/cisco_viptela/show_arp/cisco_viptela_show_arp-old.yml new file mode 100644 index 0000000000..46a13c7219 --- /dev/null +++ b/tests/cisco_viptela/show_arp/cisco_viptela_show_arp-old.yml @@ -0,0 +1,9 @@ +--- +parsed_sample: + - vpn: "0" + name: "eth0" + ip_address: "10.10.20.70" + mac_address: "00:50:56:bf:a0:d3" + state: "dynamic" + uptime: "0:00:08:28" + idle_timer: "0:00:11:33" diff --git a/tests/cisco_viptela/show_arp/cisco_viptela_show_arp.raw b/tests/cisco_viptela/show_arp/cisco_viptela_show_arp.raw index f6757995cc..969919adc6 100644 --- a/tests/cisco_viptela/show_arp/cisco_viptela_show_arp.raw +++ b/tests/cisco_viptela/show_arp/cisco_viptela_show_arp.raw @@ -8,4 +8,4 @@ VPN NAME IP MAC STATE IDLE TIMER UPTIME 0 eth0 10.10.20.173 00:00:00:00:00:00 dynamic 0:00:01:11 0:00:18:49 0 eth0 10.10.20.178 52:54:00:17:8e:2a dynamic 0:00:19:59 0:00:39:46 0 eth0 10.10.20.181 52:54:00:03:cb:4c dynamic 0:00:13:39 0:00:06:22 -0 eth0 10.10.20.254 00:50:56:bf:6e:98 dynamic 0:00:11:44 0:00:08:17 \ No newline at end of file +0 eth0 10.10.20.254 00:50:56:bf:6e:98 dynamic 0:00:11:44 0:00:08:17 From 7d269d57bef6201977418aa1bc029f979bca79cb Mon Sep 17 00:00:00 2001 From: Jacob McGill <9847006+jmcgill298@users.noreply.github.com> Date: Mon, 22 Jul 2024 23:01:09 -0400 Subject: [PATCH 46/60] bugfix Aruba os show ap bss table details (#1777) * Adding support for output from versions prior to 8.9.0.0 * Adding tests for updates to show ap bss-table details * Fix tests --------- Co-authored-by: Victor --- ...aruba_os_show_ap_bss-table_details.textfsm | 31 ++++- .../aruba_os_show_ap_bss-table_details.yml | 5 + .../aruba_os_show_ap_bss-table_details2.raw | 14 +++ .../aruba_os_show_ap_bss-table_details2.yml | 107 ++++++++++++++++++ 4 files changed, 152 insertions(+), 5 deletions(-) create mode 100644 tests/aruba_os/show_ap_bss-table_details/aruba_os_show_ap_bss-table_details2.raw create mode 100644 tests/aruba_os/show_ap_bss-table_details/aruba_os_show_ap_bss-table_details2.yml diff --git a/ntc_templates/templates/aruba_os_show_ap_bss-table_details.textfsm b/ntc_templates/templates/aruba_os_show_ap_bss-table_details.textfsm index 2b152f5588..7a8e0d6325 100644 --- a/ntc_templates/templates/aruba_os_show_ap_bss-table_details.textfsm +++ b/ntc_templates/templates/aruba_os_show_ap_bss-table_details.textfsm @@ -2,25 +2,28 @@ Value BSS ([a-fA-F0-9]{2}(:[a-fA-F0-9]{2}){5}) Value ESS (\S+(\s\S+){0,}) Value PORT (\S+) Value IP_ADDRESS ((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])) -Value BAND (\S+) +Value BAND (((2.4|5|6).*z)|N/A) Value CHANNEL (\S+) Value TYPE (\S+) Value CUR_CL (\S+) Value AP_NAME (\S+) Value IN_T (\S+) Value TOT_T (\S+) -Value MTU (\S+) +Value MTU ((\d+|N/A|.*?)) +Value PHY (\S+) Value ACL_STATE (\S+) Value ACL (\S+) Value FM (\S+) -Value FLAGS (\S+) -Value CLUSTER (\S+) +Value FLAGS ((\S+|.*?)) +Value CLUSTER ((A|sA|sU|U|N/A).*?) Value ACTIVE_CLIENTS (\S+) Value STANDBY_CLIENTS (\S+) Value DATAZONE (\S+) + Start - ^${BSS}\s+${ESS}\s+${PORT}\s+${IP_ADDRESS}\s+${BAND}\s+${CHANNEL}\s+${TYPE}\s+${CUR_CL}\s+${AP_NAME}\s+${IN_T}\s+${TOT_T}\s+${MTU}\s+${ACL_STATE}\s+${ACL}\s+${FM}\s+${FLAGS}\s+${CLUSTER}\s+${ACTIVE_CLIENTS}\s+${STANDBY_CLIENTS}\s+${DATAZONE}\s*$$ -> Record + ^bss\s+ess\s+port\s+ip\s+phy\s* -> Before_ArubaOS_8_9 + ^bss\s+ess\s+port\s+ip\s+band\s* -> After_ArubaOS_8_9 ^Aruba AP ^.+\.+ ^bss @@ -34,3 +37,21 @@ Start ^Flags ^-+ ^. -> Error + + +Before_ArubaOS_8_9 + ^-+\s+-+ + ^${BSS}\s+${ESS}\s+${PORT}\s+${IP_ADDRESS}\s+${PHY}\s+${TYPE}\s+${CHANNEL}\s+${CUR_CL}\s+${AP_NAME}\s+${IN_T}\s+${TOT_T}\s+${MTU}\s+${ACL_STATE}\s+${ACL}\s+${FM}\s+${FLAGS}\s+${CLUSTER}\s+ -> Record + ^Aruba AP + ^-\s* + ^bss + ^Channel -> Start + ^Num -> End + ^. -> Error + +After_ArubaOS_8_9 + ^-+\s+-+ + ^${BSS}\s+${ESS}\s+${PORT}\s+${IP_ADDRESS}\s+${BAND}\s+${CHANNEL}\s+${TYPE}\s+${CUR_CL}\s+${AP_NAME}\s+${IN_T}\s+${TOT_T}\s+${MTU}\s+${ACL_STATE}\s+${ACL}\s+${FM}\s+${FLAGS}\s+${CLUSTER}\s+${ACTIVE_CLIENTS}\s+${STANDBY_CLIENTS}\s+${DATAZONE}\s*$$ -> Record + ^Channel -> Start + ^Num -> End + ^. -> Error diff --git a/tests/aruba_os/show_ap_bss-table_details/aruba_os_show_ap_bss-table_details.yml b/tests/aruba_os/show_ap_bss-table_details/aruba_os_show_ap_bss-table_details.yml index fd56bc77ca..088a229f83 100644 --- a/tests/aruba_os/show_ap_bss-table_details/aruba_os_show_ap_bss-table_details.yml +++ b/tests/aruba_os/show_ap_bss-table_details/aruba_os_show_ap_bss-table_details.yml @@ -20,6 +20,7 @@ parsed_sample: active_clients: "0" standby_clients: "0" datazone: "no" + phy: "" - bss: "aa:bb:cc:dd:ee:fa" ess: "test1" port: "N/A" @@ -40,6 +41,7 @@ parsed_sample: active_clients: "0" standby_clients: "0" datazone: "no" + phy: "" - bss: "aa:bb:cc:dd:ee:fb" ess: "test1" port: "N/A" @@ -60,6 +62,7 @@ parsed_sample: active_clients: "0" standby_clients: "0" datazone: "no" + phy: "" - bss: "aa:bb:cc:dd:ee:fc" ess: "multi word ssid" port: "N/A" @@ -80,6 +83,7 @@ parsed_sample: active_clients: "0" standby_clients: "0" datazone: "no" + phy: "" - bss: "aa:bb:cc:dd:ee:fd" ess: "test 2" port: "N/A" @@ -100,3 +104,4 @@ parsed_sample: active_clients: "0" standby_clients: "0" datazone: "no" + phy: "" diff --git a/tests/aruba_os/show_ap_bss-table_details/aruba_os_show_ap_bss-table_details2.raw b/tests/aruba_os/show_ap_bss-table_details/aruba_os_show_ap_bss-table_details2.raw new file mode 100644 index 0000000000..e106fe79eb --- /dev/null +++ b/tests/aruba_os/show_ap_bss-table_details/aruba_os_show_ap_bss-table_details2.raw @@ -0,0 +1,14 @@ +fm (forward mode): T-Tunnel, S-Split, D-Decrypt Tunnel, B-Bridge (s-standard, p-persistent, b-backup, a-always), n-anyspot + +cluster (cluster role): U-UAC, A-AAC, sU-Standby UAC, sA-Standby AAC + +Aruba AP BSS Table +------------------ +bss ess port ip phy type ch/EIRP/max-EIRP cur-cl ap name in-t(s) tot-t mtu acl-state acl fm flags cluster active-clients standby-clients datazone +--- --- ---- -- --- ---- ---------------- ------ ------- ------- ----- --- --------- --- -- ----- ------- -------------- --------------- -------- +aa:bb:cc:dd:ee:ff test1 N/A 192.168.0.1 g-HE ap 1/14.0/24.7 2 test1-ap 9d:11h:29m:4s 1500 - 2 T T U (AAC=192.168.0.21) 1 0 no +aa:bb:cc:dd:ee:fa test1 N/A 192.168.0.1 g-HT ap 1/12.0/21.1 0 test1-ap 0 204d:0h:47m:6s 1500 - 2 T A 0 0 no +aa:bb:cc:dd:ee:fb multi word ssid N/A 192.168.0.2 a-VHT ap 100/17.0/30.0 29 test2-ap 0 3h:43m:36s 1500 - 2 T T U sU (AAC=192.168.0.30) 7 7 no +aa:bb:cc:dd:ee:fc test3 N/A 192.168.0.3 g-HE ap 1/14.0/24.7 0 test1-ap3 0 16d:1h:14m:48s 1500 - 2 T T A 0 0 no +aa:bb:cc:dd:ee:fd test3 N/A 192.168.0.3 g-HE ap 11/14.0/24.7 0 test1-ap3 0 26d:2h:7m:52s 1500 - 2 T T A 0 0 no + diff --git a/tests/aruba_os/show_ap_bss-table_details/aruba_os_show_ap_bss-table_details2.yml b/tests/aruba_os/show_ap_bss-table_details/aruba_os_show_ap_bss-table_details2.yml new file mode 100644 index 0000000000..ca32d8dc3b --- /dev/null +++ b/tests/aruba_os/show_ap_bss-table_details/aruba_os_show_ap_bss-table_details2.yml @@ -0,0 +1,107 @@ +--- +parsed_sample: + - acl: "T" + acl_state: "2" + active_clients: "" + ap_name: "test1-ap" + band: "" + bss: "aa:bb:cc:dd:ee:ff" + channel: "1/14.0/24.7" + cluster: "U" + cur_cl: "2" + datazone: "" + ess: "test1" + flags: "" + fm: "T" + in_t: "9d:11h:29m:4s" + ip_address: "192.168.0.1" + mtu: "-" + phy: "g-HE" + port: "N/A" + standby_clients: "" + tot_t: "1500" + type: "ap" + - acl: "2" + acl_state: "-" + active_clients: "" + ap_name: "test1-ap" + band: "" + bss: "aa:bb:cc:dd:ee:fa" + channel: "1/12.0/21.1" + cluster: "A" + cur_cl: "0" + datazone: "" + ess: "test1" + flags: "" + fm: "T" + in_t: "0" + ip_address: "192.168.0.1" + mtu: "1500" + phy: "g-HT" + port: "N/A" + standby_clients: "" + tot_t: "204d:0h:47m:6s" + type: "ap" + - acl: "2" + acl_state: "-" + active_clients: "" + ap_name: "test2-ap" + band: "" + bss: "aa:bb:cc:dd:ee:fb" + channel: "100/17.0/30.0" + cluster: "U" + cur_cl: "29" + datazone: "" + ess: "multi word ssid" + flags: "T" + fm: "T" + in_t: "0" + ip_address: "192.168.0.2" + mtu: "1500" + phy: "a-VHT" + port: "N/A" + standby_clients: "" + tot_t: "3h:43m:36s" + type: "ap" + - acl: "2" + acl_state: "-" + active_clients: "" + ap_name: "test1-ap3" + band: "" + bss: "aa:bb:cc:dd:ee:fc" + channel: "1/14.0/24.7" + cluster: "A" + cur_cl: "0" + datazone: "" + ess: "test3" + flags: "T" + fm: "T" + in_t: "0" + ip_address: "192.168.0.3" + mtu: "1500" + phy: "g-HE" + port: "N/A" + standby_clients: "" + tot_t: "16d:1h:14m:48s" + type: "ap" + - acl: "2" + acl_state: "-" + active_clients: "" + ap_name: "test1-ap3" + band: "" + bss: "aa:bb:cc:dd:ee:fd" + channel: "11/14.0/24.7" + cluster: "A" + cur_cl: "0" + datazone: "" + ess: "test3" + flags: "T" + fm: "T" + in_t: "0" + ip_address: "192.168.0.3" + mtu: "1500" + phy: "g-HE" + port: "N/A" + standby_clients: "" + tot_t: "26d:2h:7m:52s" + type: "ap" From 4228bff2ce138f4e8ff4388008e69ac6c104c50f Mon Sep 17 00:00:00 2001 From: Jacob McGill <9847006+jmcgill298@users.noreply.github.com> Date: Mon, 22 Jul 2024 23:01:30 -0400 Subject: [PATCH 47/60] Fix cisco ios show crypto ipsec sa (#1768) * Including letters in SA_SIBLING_FLAGS. * Add trailing newline --------- Co-authored-by: Nicholas Nelson --- ...co_ios_show_crypto_ipsec_sa_detail.textfsm | 2 +- ...isco_ios_show_crypto_ipsec_sa_detail_3.raw | 111 +++++++ ...isco_ios_show_crypto_ipsec_sa_detail_3.yml | 286 ++++++++++++++++++ 3 files changed, 398 insertions(+), 1 deletion(-) create mode 100644 tests/cisco_ios/show_crypto_ipsec_sa_detail/cisco_ios_show_crypto_ipsec_sa_detail_3.raw create mode 100644 tests/cisco_ios/show_crypto_ipsec_sa_detail/cisco_ios_show_crypto_ipsec_sa_detail_3.yml diff --git a/ntc_templates/templates/cisco_ios_show_crypto_ipsec_sa_detail.textfsm b/ntc_templates/templates/cisco_ios_show_crypto_ipsec_sa_detail.textfsm index d8d5e53fa3..cd588f1e8b 100644 --- a/ntc_templates/templates/cisco_ios_show_crypto_ipsec_sa_detail.textfsm +++ b/ntc_templates/templates/cisco_ios_show_crypto_ipsec_sa_detail.textfsm @@ -61,7 +61,7 @@ Value SA_TRANSFORM ([\S\s]+) Value SA_IN_USE_SETTINGS ([\S\s]+?) Value SA_CONN_ID (\d+) Value SA_FLOW_ID ([\S\s]+) -Value SA_SIBLING_FLAGS (\d+) +Value SA_SIBLING_FLAGS ([\d\w]+) Value SA_CRYPTO_MAP (\S+) Value SA_LIFETIME_KBYTES (\d+) Value SA_LIFETIME_SEC (\d+) diff --git a/tests/cisco_ios/show_crypto_ipsec_sa_detail/cisco_ios_show_crypto_ipsec_sa_detail_3.raw b/tests/cisco_ios/show_crypto_ipsec_sa_detail/cisco_ios_show_crypto_ipsec_sa_detail_3.raw new file mode 100644 index 0000000000..90e95aa623 --- /dev/null +++ b/tests/cisco_ios/show_crypto_ipsec_sa_detail/cisco_ios_show_crypto_ipsec_sa_detail_3.raw @@ -0,0 +1,111 @@ +interface: Tunnel1 + Crypto map tag: Tunnel1-head-0, local addr 1.2.3.4 + + protected vrf: (none) + local ident (addr/mask/prot/port): (1.2.3.4/255.255.255.255/47/0) + remote ident (addr/mask/prot/port): (2.2.2.2/255.255.255.255/47/0) + current_peer 2.2.2.2 port 4500 + PERMIT, flags={origin_is_acl,} + #pkts encaps: 4981028, #pkts encrypt: 4981028, #pkts digest: 4981028 + #pkts decaps: 4112421, #pkts decrypt: 4112421, #pkts verify: 4112421 + #pkts compressed: 0, #pkts decompressed: 0 + #pkts not compressed: 0, #pkts compr. failed: 0 + #pkts not decompressed: 0, #pkts decompress failed: 0 + #pkts no sa (send) 0, #pkts invalid sa (rcv) 0 + #pkts encaps failed (send) 0, #pkts decaps failed (rcv) 0 + #pkts invalid prot (recv) 0, #pkts verify failed: 0 + #pkts invalid identity (recv) 0, #pkts invalid len (rcv) 0 + #pkts replay rollover (send): 0, #pkts replay rollover (rcv) 0 + ##pkts replay failed (rcv): 0 + #pkts tagged (send): 0, #pkts untagged (rcv): 0 + #pkts not tagged (send): 0, #pkts not untagged (rcv): 0 + #pkts internal err (send): 0, #pkts internal err (recv) 0 + + local crypto endpt.: 1.2.3.4, remote crypto endpt.: 2.2.2.2 + plaintext mtu 1442, path mtu 1500, ip mtu 1500, ip mtu idb GigabitEthernet8 + current outbound spi: 0x1234ABCD(305441741) + PFS (Y/N): N, DH group: none + + inbound esp sas: + spi: 0xABCD1234(2882343476) + transform: esp-256-aes esp-sha-hmac , + in use settings ={Transport UDP-Encaps, } + conn id: 124, flow_id: Onboard VPN:124, sibling_flags AAAAAAAA80000000, crypto map: Tunnel1-head-0 + sa timing: remaining key lifetime (k/sec): (4332650/3205) + IV size: 16 bytes + replay detection support: Y replay window size: 1024 + Status: ACTIVE(ACTIVE) + + inbound ah sas: + + inbound pcp sas: + + outbound esp sas: + spi: 0x1234ABCD(305441741) + transform: esp-256-aes esp-sha-hmac , + in use settings ={Transport UDP-Encaps, } + conn id: 123, flow_id: Onboard VPN:123, sibling_flags AAAAAAAA80000000, crypto map: Tunnel1-head-0 + sa timing: remaining key lifetime (k/sec): (4332649/3205) + IV size: 16 bytes + replay detection support: Y replay window size: 1024 + Status: ACTIVE(ACTIVE) + + outbound ah sas: + + outbound pcp sas: + +interface: Tunnel2 + Crypto map tag: Tunnel2-head-0, local addr 1.2.3.4 + + protected vrf: (none) + local ident (addr/mask/prot/port): (1.2.3.4/255.255.255.255/47/0) + remote ident (addr/mask/prot/port): (3.3.3.3/255.255.255.255/47/0) + current_peer 3.3.3.3 port 4500 + PERMIT, flags={origin_is_acl,} + #pkts encaps: 13133657, #pkts encrypt: 13133657, #pkts digest: 13133657 + #pkts decaps: 12013064, #pkts decrypt: 12013064, #pkts verify: 12013064 + #pkts compressed: 0, #pkts decompressed: 0 + #pkts not compressed: 0, #pkts compr. failed: 0 + #pkts not decompressed: 0, #pkts decompress failed: 0 + #pkts no sa (send) 0, #pkts invalid sa (rcv) 0 + #pkts encaps failed (send) 0, #pkts decaps failed (rcv) 0 + #pkts invalid prot (recv) 0, #pkts verify failed: 0 + #pkts invalid identity (recv) 0, #pkts invalid len (rcv) 0 + #pkts replay rollover (send): 0, #pkts replay rollover (rcv) 0 + ##pkts replay failed (rcv): 1 + #pkts tagged (send): 0, #pkts untagged (rcv): 0 + #pkts not tagged (send): 0, #pkts not untagged (rcv): 0 + #pkts internal err (send): 0, #pkts internal err (recv) 0 + + local crypto endpt.: 1.2.3.4, remote crypto endpt.: 3.3.3.3 + plaintext mtu 1442, path mtu 1500, ip mtu 1500, ip mtu idb GigabitEthernet8 + current outbound spi: 0x4321DCBA(0987612345) + PFS (Y/N): N, DH group: none + + inbound esp sas: + spi: 0x1234DCBA(4321567890) + transform: esp-256-aes esp-sha-hmac , + in use settings ={Transport UDP-Encaps, } + conn id: 457, flow_id: Onboard VPN:457, sibling_flags AAAAAAAA80000000, crypto map: Tunnel2-head-0 + sa timing: remaining key lifetime (k/sec): (4272028/2813) + IV size: 16 bytes + replay detection support: Y replay window size: 1024 + Status: ACTIVE(ACTIVE) + + inbound ah sas: + + inbound pcp sas: + + outbound esp sas: + spi: 0x4321DCBA(0987612345) + transform: esp-256-aes esp-sha-hmac , + in use settings ={Transport UDP-Encaps, } + conn id: 456, flow_id: Onboard VPN:456, sibling_flags AAAAAAAA80000000, crypto map: Tunnel2-head-0 + sa timing: remaining key lifetime (k/sec): (4272026/2813) + IV size: 16 bytes + replay detection support: Y replay window size: 1024 + Status: ACTIVE(ACTIVE) + + outbound ah sas: + + outbound pcp sas: diff --git a/tests/cisco_ios/show_crypto_ipsec_sa_detail/cisco_ios_show_crypto_ipsec_sa_detail_3.yml b/tests/cisco_ios/show_crypto_ipsec_sa_detail/cisco_ios_show_crypto_ipsec_sa_detail_3.yml new file mode 100644 index 0000000000..8f10ccc00d --- /dev/null +++ b/tests/cisco_ios/show_crypto_ipsec_sa_detail/cisco_ios_show_crypto_ipsec_sa_detail_3.yml @@ -0,0 +1,286 @@ +--- +parsed_sample: + - interface: "Tunnel1" + crypto_map_tag: "Tunnel1-head-0" + local_addr: "1.2.3.4" + protected_vrf: "(none)" + local_ident_addr: "1.2.3.4" + local_ident_mask: "255.255.255.255" + local_ident_prot: "47" + local_ident_port: "0" + remote_ident_addr: "2.2.2.2" + remote_ident_mask: "255.255.255.255" + remote_ident_prot: "47" + remote_ident_port: "0" + current_peer: "2.2.2.2" + port: "4500" + action: "PERMIT" + flags: "origin_is_acl," + pkts_encaps: "4981028" + pkts_encrypt: "4981028" + pkts_digest: "4981028" + pkts_decaps: "4112421" + pkts_decrypt: "4112421" + pkts_verify: "4112421" + pkts_compressed: "0" + pkts_decompressed: "0" + pkts_not_compressed: "0" + pkts_compress_failed: "0" + pkts_not_decompressed: "0" + pkts_decompress_failed: "0" + pkts_no_sa: "0" + pkts_invalid_sa: "0" + pkts_encaps_failed: "0" + pkts_decaps_failed: "0" + pkts_invalid_prot: "0" + pkts_verify_failed: "0" + pkts_invalid_identity: "0" + pkts_invalid_len: "0" + pkts_replay_rollover_send: "0" + pkts_replay_rollover_recv: "0" + pkts_replay_failed: "0" + pkts_tagged: "0" + pkts_untagged: "0" + pkts_not_tagged: "0" + pkts_not_untagged: "0" + pkts_internal_err_send: "0" + pkts_internal_err_recv: "0" + local_crypto_endpt: "1.2.3.4" + remote_crypto_endpt: "2.2.2.2" + plaintext_mtu: "1442" + path_mtu: "1500" + ip_mtu: "1500" + ip_mtu_idb: "GigabitEthernet8" + current_outbound_spi_hex: "0x1234ABCD" + current_outbound_spi_dec: "305441741" + pfs: "N" + dh_group: "none" + sa_orientation: "inbound" + sa_type: "esp" + sa_spi_hex: "0xABCD1234" + sa_spi_dec: "2882343476" + sa_transform: "esp-256-aes esp-sha-hmac" + sa_in_use_settings: "Transport UDP-Encaps" + sa_conn_id: "124" + sa_flow_id: "Onboard VPN:124" + sa_sibling_flags: "AAAAAAAA80000000" + sa_crypto_map: "Tunnel1-head-0" + sa_lifetime_kbytes: "4332650" + sa_lifetime_sec: "3205" + sa_iv_size: "16" + sa_replay_detection_support: "Y" + sa_replay_window_size: "1024" + sa_status: "ACTIVE(ACTIVE)" + - interface: "Tunnel1" + crypto_map_tag: "Tunnel1-head-0" + local_addr: "1.2.3.4" + protected_vrf: "(none)" + local_ident_addr: "1.2.3.4" + local_ident_mask: "255.255.255.255" + local_ident_prot: "47" + local_ident_port: "0" + remote_ident_addr: "2.2.2.2" + remote_ident_mask: "255.255.255.255" + remote_ident_prot: "47" + remote_ident_port: "0" + current_peer: "2.2.2.2" + port: "4500" + action: "PERMIT" + flags: "origin_is_acl," + pkts_encaps: "4981028" + pkts_encrypt: "4981028" + pkts_digest: "4981028" + pkts_decaps: "4112421" + pkts_decrypt: "4112421" + pkts_verify: "4112421" + pkts_compressed: "0" + pkts_decompressed: "0" + pkts_not_compressed: "0" + pkts_compress_failed: "0" + pkts_not_decompressed: "0" + pkts_decompress_failed: "0" + pkts_no_sa: "0" + pkts_invalid_sa: "0" + pkts_encaps_failed: "0" + pkts_decaps_failed: "0" + pkts_invalid_prot: "0" + pkts_verify_failed: "0" + pkts_invalid_identity: "0" + pkts_invalid_len: "0" + pkts_replay_rollover_send: "0" + pkts_replay_rollover_recv: "0" + pkts_replay_failed: "0" + pkts_tagged: "0" + pkts_untagged: "0" + pkts_not_tagged: "0" + pkts_not_untagged: "0" + pkts_internal_err_send: "0" + pkts_internal_err_recv: "0" + local_crypto_endpt: "1.2.3.4" + remote_crypto_endpt: "2.2.2.2" + plaintext_mtu: "1442" + path_mtu: "1500" + ip_mtu: "1500" + ip_mtu_idb: "GigabitEthernet8" + current_outbound_spi_hex: "0x1234ABCD" + current_outbound_spi_dec: "305441741" + pfs: "N" + dh_group: "none" + sa_orientation: "outbound" + sa_type: "esp" + sa_spi_hex: "0x1234ABCD" + sa_spi_dec: "305441741" + sa_transform: "esp-256-aes esp-sha-hmac" + sa_in_use_settings: "Transport UDP-Encaps" + sa_conn_id: "123" + sa_flow_id: "Onboard VPN:123" + sa_sibling_flags: "AAAAAAAA80000000" + sa_crypto_map: "Tunnel1-head-0" + sa_lifetime_kbytes: "4332649" + sa_lifetime_sec: "3205" + sa_iv_size: "16" + sa_replay_detection_support: "Y" + sa_replay_window_size: "1024" + sa_status: "ACTIVE(ACTIVE)" + - interface: "Tunnel2" + crypto_map_tag: "Tunnel2-head-0" + local_addr: "1.2.3.4" + protected_vrf: "(none)" + local_ident_addr: "1.2.3.4" + local_ident_mask: "255.255.255.255" + local_ident_prot: "47" + local_ident_port: "0" + remote_ident_addr: "3.3.3.3" + remote_ident_mask: "255.255.255.255" + remote_ident_prot: "47" + remote_ident_port: "0" + current_peer: "3.3.3.3" + port: "4500" + action: "PERMIT" + flags: "origin_is_acl," + pkts_encaps: "13133657" + pkts_encrypt: "13133657" + pkts_digest: "13133657" + pkts_decaps: "12013064" + pkts_decrypt: "12013064" + pkts_verify: "12013064" + pkts_compressed: "0" + pkts_decompressed: "0" + pkts_not_compressed: "0" + pkts_compress_failed: "0" + pkts_not_decompressed: "0" + pkts_decompress_failed: "0" + pkts_no_sa: "0" + pkts_invalid_sa: "0" + pkts_encaps_failed: "0" + pkts_decaps_failed: "0" + pkts_invalid_prot: "0" + pkts_verify_failed: "0" + pkts_invalid_identity: "0" + pkts_invalid_len: "0" + pkts_replay_rollover_send: "0" + pkts_replay_rollover_recv: "0" + pkts_replay_failed: "1" + pkts_tagged: "0" + pkts_untagged: "0" + pkts_not_tagged: "0" + pkts_not_untagged: "0" + pkts_internal_err_send: "0" + pkts_internal_err_recv: "0" + local_crypto_endpt: "1.2.3.4" + remote_crypto_endpt: "3.3.3.3" + plaintext_mtu: "1442" + path_mtu: "1500" + ip_mtu: "1500" + ip_mtu_idb: "GigabitEthernet8" + current_outbound_spi_hex: "0x4321DCBA" + current_outbound_spi_dec: "0987612345" + pfs: "N" + dh_group: "none" + sa_orientation: "inbound" + sa_type: "esp" + sa_spi_hex: "0x1234DCBA" + sa_spi_dec: "4321567890" + sa_transform: "esp-256-aes esp-sha-hmac" + sa_in_use_settings: "Transport UDP-Encaps" + sa_conn_id: "457" + sa_flow_id: "Onboard VPN:457" + sa_sibling_flags: "AAAAAAAA80000000" + sa_crypto_map: "Tunnel2-head-0" + sa_lifetime_kbytes: "4272028" + sa_lifetime_sec: "2813" + sa_iv_size: "16" + sa_replay_detection_support: "Y" + sa_replay_window_size: "1024" + sa_status: "ACTIVE(ACTIVE)" + - interface: "Tunnel2" + crypto_map_tag: "Tunnel2-head-0" + local_addr: "1.2.3.4" + protected_vrf: "(none)" + local_ident_addr: "1.2.3.4" + local_ident_mask: "255.255.255.255" + local_ident_prot: "47" + local_ident_port: "0" + remote_ident_addr: "3.3.3.3" + remote_ident_mask: "255.255.255.255" + remote_ident_prot: "47" + remote_ident_port: "0" + current_peer: "3.3.3.3" + port: "4500" + action: "PERMIT" + flags: "origin_is_acl," + pkts_encaps: "13133657" + pkts_encrypt: "13133657" + pkts_digest: "13133657" + pkts_decaps: "12013064" + pkts_decrypt: "12013064" + pkts_verify: "12013064" + pkts_compressed: "0" + pkts_decompressed: "0" + pkts_not_compressed: "0" + pkts_compress_failed: "0" + pkts_not_decompressed: "0" + pkts_decompress_failed: "0" + pkts_no_sa: "0" + pkts_invalid_sa: "0" + pkts_encaps_failed: "0" + pkts_decaps_failed: "0" + pkts_invalid_prot: "0" + pkts_verify_failed: "0" + pkts_invalid_identity: "0" + pkts_invalid_len: "0" + pkts_replay_rollover_send: "0" + pkts_replay_rollover_recv: "0" + pkts_replay_failed: "1" + pkts_tagged: "0" + pkts_untagged: "0" + pkts_not_tagged: "0" + pkts_not_untagged: "0" + pkts_internal_err_send: "0" + pkts_internal_err_recv: "0" + local_crypto_endpt: "1.2.3.4" + remote_crypto_endpt: "3.3.3.3" + plaintext_mtu: "1442" + path_mtu: "1500" + ip_mtu: "1500" + ip_mtu_idb: "GigabitEthernet8" + current_outbound_spi_hex: "0x4321DCBA" + current_outbound_spi_dec: "0987612345" + pfs: "N" + dh_group: "none" + sa_orientation: "outbound" + sa_type: "esp" + sa_spi_hex: "0x4321DCBA" + sa_spi_dec: "0987612345" + sa_transform: "esp-256-aes esp-sha-hmac" + sa_in_use_settings: "Transport UDP-Encaps" + sa_conn_id: "456" + sa_flow_id: "Onboard VPN:456" + sa_sibling_flags: "AAAAAAAA80000000" + sa_crypto_map: "Tunnel2-head-0" + sa_lifetime_kbytes: "4272026" + sa_lifetime_sec: "2813" + sa_iv_size: "16" + sa_replay_detection_support: "Y" + sa_replay_window_size: "1024" + sa_status: "ACTIVE(ACTIVE)" From 3942a92a868de562df58e989225d61e7cde3c7e4 Mon Sep 17 00:00:00 2001 From: Jacob McGill <9847006+jmcgill298@users.noreply.github.com> Date: Mon, 22 Jul 2024 23:02:15 -0400 Subject: [PATCH 48/60] Add Oneaccess templates (#1754) * add oneaccess oneos templates * oneaccess_oneos templates and tests * add oneaccess_oneos templates * addtional oneos commands * extra oneos commands * add oneaccess command * add oneaccess_oneos show system hardware * oneaccess_oneos voice related commands * HP Comware fix spacing allowances Fix templates if output contain tabs. * extra oneos templates * updates for passing tests * oneos updates to voice templates * add extra oneaccess_oneos and ciena_saos templates * add oneaccess_oneos show_transceiver_equipment and show_policy-interface_output * Update oneaccess_oneos_show_software-image.textfsm * Update oneaccess_oneos_show_software-image.textfsm * oneaccess_oneos add secure crashlog command * add oneaccess commands * update command alias * Update index - ip dhcp * Update oneaccess_oneos_show_running-config_ip_route.textfsm * Create oneaccess_oneos_show_ip_helper-address_statistics.textfsm * Update index * Update oneaccess_oneos_show_interfaces.textfsm * Update index * Update oneaccess_oneos_show_ip_bgp_summary.textfsm * devices with + sign were not detected * Fix black test * Remove Ciena Templates * Remove templates covered by separate branch * Fix per current standards --------- Co-authored-by: mwallraf Co-authored-by: Andrea Dainese Co-authored-by: mwallraf --- ntc_templates/templates/index | 5 ++ ...neaccess_oneos_cat_bsa_bsaboot.inf.textfsm | 12 +++ .../oneaccess_oneos_hostname.textfsm | 5 ++ .../templates/oneaccess_oneos_ls.textfsm | 19 +++++ ..._oneos_show_cellular-radio_context.textfsm | 73 +++++++++++++++++++ ...neos_show_cellular-radio_equipment.textfsm | 42 +++++++++++ .../cat_bsa_bsaboot.inf.raw | 2 + .../cat_bsa_bsaboot.inf.yml | 6 ++ tests/oneaccess_oneos/hostname/hostname.raw | 1 + tests/oneaccess_oneos/hostname/hostname.yml | 3 + .../ls/ls.bsabinaries.oneos5.raw | 5 ++ .../ls/ls.bsabinaries.oneos5.yml | 6 ++ .../ls/ls.bsabinaries.oneos6.raw | 1 + .../ls/ls.bsabinaries.oneos6.yml | 4 + .../show_cellular-radio_context.oneos6.raw | 41 +++++++++++ .../show_cellular-radio_context.oneos6.yml | 22 ++++++ .../show_cellular-radio_equipment.oneos5.raw | 14 ++++ .../show_cellular-radio_equipment.oneos5.yml | 11 +++ .../show_cellular-radio_equipment.oneos6.raw | 14 ++++ .../show_cellular-radio_equipment.oneos6.yml | 11 +++ 20 files changed, 297 insertions(+) create mode 100644 ntc_templates/templates/oneaccess_oneos_cat_bsa_bsaboot.inf.textfsm create mode 100644 ntc_templates/templates/oneaccess_oneos_hostname.textfsm create mode 100644 ntc_templates/templates/oneaccess_oneos_ls.textfsm create mode 100644 ntc_templates/templates/oneaccess_oneos_show_cellular-radio_context.textfsm create mode 100644 ntc_templates/templates/oneaccess_oneos_show_cellular-radio_equipment.textfsm create mode 100644 tests/oneaccess_oneos/cat_bsa_bsaboot.inf/cat_bsa_bsaboot.inf.raw create mode 100644 tests/oneaccess_oneos/cat_bsa_bsaboot.inf/cat_bsa_bsaboot.inf.yml create mode 100644 tests/oneaccess_oneos/hostname/hostname.raw create mode 100644 tests/oneaccess_oneos/hostname/hostname.yml create mode 100644 tests/oneaccess_oneos/ls/ls.bsabinaries.oneos5.raw create mode 100644 tests/oneaccess_oneos/ls/ls.bsabinaries.oneos5.yml create mode 100644 tests/oneaccess_oneos/ls/ls.bsabinaries.oneos6.raw create mode 100644 tests/oneaccess_oneos/ls/ls.bsabinaries.oneos6.yml create mode 100644 tests/oneaccess_oneos/show_cellular-radio_context/show_cellular-radio_context.oneos6.raw create mode 100644 tests/oneaccess_oneos/show_cellular-radio_context/show_cellular-radio_context.oneos6.yml create mode 100644 tests/oneaccess_oneos/show_cellular-radio_equipment/show_cellular-radio_equipment.oneos5.raw create mode 100644 tests/oneaccess_oneos/show_cellular-radio_equipment/show_cellular-radio_equipment.oneos5.yml create mode 100644 tests/oneaccess_oneos/show_cellular-radio_equipment/show_cellular-radio_equipment.oneos6.raw create mode 100644 tests/oneaccess_oneos/show_cellular-radio_equipment/show_cellular-radio_equipment.oneos6.yml diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 579d5e66d3..aae6abe7bc 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -733,8 +733,13 @@ mikrotik_routeros_user_print.textfsm, .*, mikrotik_routeros, [[/]]us[[er]] p[[ri mikrotik_routeros_ping.textfsm, .*, mikrotik_routeros, [[/]]pin[[g]] oneaccess_oneos_show_voice_voip-call_active_all.textfsm, .*, oneaccess_oneos, sh[[ow]] voice voip-call active +oneaccess_oneos_show_cellular-radio_equipment.textfsm, .*, oneaccess_oneos, sh[[ow]] cell[[ular-radio]] equipment oneaccess_oneos_show_voice_voip-call_any_all.textfsm, .*, oneaccess_oneos, sh[[ow]] voice voip-call any all +oneaccess_oneos_show_cellular-radio_context.textfsm, .*, oneaccess_oneos, sh[[ow]] cell[[ular-radio]] context +oneaccess_oneos_cat_bsa_bsaboot.inf.textfsm, .*, oneaccess_oneos, cat (\/|)(BSA|bsa)(\/| )bsa(B|b)oot.inf oneaccess_oneos_show_vrrp_interface.textfsm, .*, oneaccess_oneos, sh[[ow]] vrrp int[[erface]] +oneaccess_oneos_hostname.textfsm, .*, oneaccess_oneos, hostname +oneaccess_oneos_ls.textfsm, .*, oneaccess_oneos, ls( -[lh][lh]? )?.* paloalto_panos_show_running_security-policy.textfsm, .*, paloalto_panos, sh[[ow]] runn[[ing]] security[[-policy]] paloalto_panos_show_high-availability_all.textfsm, .*, paloalto_panos, sh[[ow]] high[[-availability]] all diff --git a/ntc_templates/templates/oneaccess_oneos_cat_bsa_bsaboot.inf.textfsm b/ntc_templates/templates/oneaccess_oneos_cat_bsa_bsaboot.inf.textfsm new file mode 100644 index 0000000000..47dc95d3b2 --- /dev/null +++ b/ntc_templates/templates/oneaccess_oneos_cat_bsa_bsaboot.inf.textfsm @@ -0,0 +1,12 @@ +Value BOOTFILE (\S+) +Value BOOTFOLDER (/BSA/binaries) +Value CONFIGFILE (\S+) +Value CONFIGFOLDER (/BSA/config) + +Start + ^.*${BOOTFOLDER} -> Continue + ^.*/BSA/binaries/${BOOTFILE} + ^.*${CONFIGFOLDER} -> Continue + ^.*/BSA/config/${CONFIGFILE} + ^.*$$ + ^. -> Error diff --git a/ntc_templates/templates/oneaccess_oneos_hostname.textfsm b/ntc_templates/templates/oneaccess_oneos_hostname.textfsm new file mode 100644 index 0000000000..75a6250ffb --- /dev/null +++ b/ntc_templates/templates/oneaccess_oneos_hostname.textfsm @@ -0,0 +1,5 @@ +Value HOSTNAME (.*) + +Start + ^${HOSTNAME}$$ -> Record + ^. -> Error diff --git a/ntc_templates/templates/oneaccess_oneos_ls.textfsm b/ntc_templates/templates/oneaccess_oneos_ls.textfsm new file mode 100644 index 0000000000..6a4ecdef9f --- /dev/null +++ b/ntc_templates/templates/oneaccess_oneos_ls.textfsm @@ -0,0 +1,19 @@ +Value Required FILE (\S+) +Value BYTES (\d+) + +Start + ^Listing -> ONEOS5 + ^\S+\s+\d+\s+${BYTES}\s+.*\s+${FILE}$$ -> Record ONEOS6 + ^$$ + ^. -> Error + +ONEOS5 + ^\. + ^${FILE}\s+${BYTES} -> Record + ^\s*$$ + ^. -> Error + +ONEOS6 + ^\S+\s+\d+\s+${BYTES}\s+.*\s+${FILE}$$ -> Record + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/oneaccess_oneos_show_cellular-radio_context.textfsm b/ntc_templates/templates/oneaccess_oneos_show_cellular-radio_context.textfsm new file mode 100644 index 0000000000..687e23ff44 --- /dev/null +++ b/ntc_templates/templates/oneaccess_oneos_show_cellular-radio_context.textfsm @@ -0,0 +1,73 @@ +Value Required CONTEXT (\d+) +Value CONTROLLER (\d+) +Value INTERFACE (Virtual\-Ethernet\s\S+) +Value CELLULAR_PROFILE (\d+) +Value BEARER_TECHNOLOGY (\S+) +Value IPV4_ADDRESS (\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}) +Value IPV4_SUBNET (\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}) +Value IPV4_GATEWAY (\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}) +Value IPV4_DNS1 (\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}) +Value IPV4_DNS2 (\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}) +Value DATA_CONN (\S+) +Value LASTCALL_END_REASON (.*) +Value TX_PACKETS (\d+) +Value RX_PACKETS (\d+) +Value TX_PACKET_ERRORS (\d+) +Value RX_PACKET_ERRORS (\d+) +Value TX_PACKET_OVERFLOW (\d+) +Value RX_PACKET_OVERFLOW (\d+) +Value TX_BYTES (\d+) +Value RX_BYTES (\d+) + +Start + ^\s*Context -> Continue.Record + ^\s*Context\s${CONTEXT} -> CONTEXT + ^.*$$ + ^. -> Error + +CONTEXT + ^\s+Cellular\scontroller:\s${CONTROLLER} + ^\s+Interface\s*:\s*${INTERFACE}, + ^\s+Cellular\sprofile\s*:\s*${CELLULAR_PROFILE} + ^\s+Data\sbearer\stechnology\s*:\s*${BEARER_TECHNOLOGY} + ^\s+Ipv4\sconnection -> IPV4 + ^\s+Ipv6\sconnection -> IPV6 + ^\s*Internal\s+context\s+Id: + ^\s*[rt]xSpeed/max\s+: + ^\s*Call\s+manager\s+state\s+: + ^\s*Mtu\s+: + ^\s*Data\s+bearer\s+technology\s+: + ^\s*=+\s*$$ + ^\s*$$ + ^. -> Error + +IPV4 + ^\s+Address\s*:\s*${IPV4_ADDRESS} + ^\s+Subnet\s*:\s*${IPV4_SUBNET} + ^\s+Gateway\s*:\s*${IPV4_GATEWAY} + ^\s+Primary\sDns\s*:\s*${IPV4_DNS1} + ^\s+Secondary\sDns\s*:\s*${IPV4_DNS2} + ^\s+Packet\sdata\sconnection\s*:\s*${DATA_CONN} + ^\s+Last\scall\send\sreason\s*:\s*${LASTCALL_END_REASON} + ^\s+Tx\spackets\s*:\s*${TX_PACKETS} + ^\s+Rx\spackets\s*:\s*${RX_PACKETS} + ^\s+Tx\spacket\serrors\s*:\s*${TX_PACKET_ERRORS} + ^\s+Rx\spacket\serrors\s*:\s*${RX_PACKET_ERRORS} + ^\s+Tx\spacket\soverflows\s*:\s*${TX_PACKET_OVERFLOW} + ^\s+Rx\spacket\soverflows\s*:\s*${RX_PACKET_OVERFLOW} + ^\s+Tx\sbytes\s*:\s*${TX_BYTES} + ^\s+Rx\sbytes\s*:\s*${RX_BYTES} + ^\s*Data\s+statistics\s+: + ^\s*$$ -> CONTEXT + ^. -> Error + +IPV6 + ^\s*Address\s+\s+: + ^\s*Gateway\s+\s+: + ^\s*Primary\s+Dns\s+: + ^\s*Secondary\s+Dns\s+: + ^\s*Packet\s+data\s+connection\s+: + ^\s*Last\s+call\s+end\s+reason\s+: + ^\s*Data\s+statistics\s+: + ^\s*$$ -> CONTEXT + ^. -> Error diff --git a/ntc_templates/templates/oneaccess_oneos_show_cellular-radio_equipment.textfsm b/ntc_templates/templates/oneaccess_oneos_show_cellular-radio_equipment.textfsm new file mode 100644 index 0000000000..28f1ad4cab --- /dev/null +++ b/ntc_templates/templates/oneaccess_oneos_show_cellular-radio_equipment.textfsm @@ -0,0 +1,42 @@ +Value Required MANUFACTURER (.*) +Value EQUIPMENT (.*) +Value BOOT_REVISION (.*) +Value IMEI (\d+) +Value SIM1_STATUS (present|not present) +Value SIM2_STATUS (present|not present) +Value IMSI (\d+) +Value CARD_ID (\d+) +Value PIN_STATUS (.*[^\s]) + +Start + ^\s*Cellular\sRadio\sModem\sInformation -> Record + ^\s*Manufacturer\sidentification\s*:\s*${MANUFACTURER} + ^\s*Equipment\sinformation\s*:\s*${EQUIPMENT} + ^\s*Revision\sidentification\s*:\s*${BOOT_REVISION} + ^\s*Equipment\sinformation\s\(IMEI\)\s*:\s*${IMEI} + ^\s*SIM\scard\sstatus\s*:\s*SIM( card)?( is)?\s${SIM1_STATUS} -> Oneos5 + ^\s*SIM\scard\sslot\s1\s*:\s*SIM( card)?( is)?\s${SIM1_STATUS} -> Oneos6 + ^\s*Boot\s+revision\s+identification\s+: + ^\s*SIM\s+Card\s+Information + ^\s*$$ + ^. -> Error + +Oneos5 + ^.*IMSI\s*:\s+${IMSI} + ^\s*Integrated\sCircuit\sCard\sID\s*:\s+${CARD_ID} + ^\s*PIN\scode\sstatus\s*:\s+${PIN_STATUS} + ^\s*PIN\s+Information + ^\s*Active\s+SIM\s+slot\s+: + ^\s*SIM\s+card\s+status\s+: + ^\s*$$ + ^. -> Error + +Oneos6 + ^\s*SIM\scard\sslot\s2\s*:\s*SIM( card)?( is)?\s${SIM2_STATUS} + ^.*IMSI\s*:\s+${IMSI} + ^\s*Integrated\sCircuit\sCard\sID\s*:\s+${CARD_ID} + ^\s*PIN\s+Information + ^\s*Active\s+SIM\s+slot\s+: + ^\s*SIM\s+card\s+status\s+: + ^\s*$$ + ^. -> Error diff --git a/tests/oneaccess_oneos/cat_bsa_bsaboot.inf/cat_bsa_bsaboot.inf.raw b/tests/oneaccess_oneos/cat_bsa_bsaboot.inf/cat_bsa_bsaboot.inf.raw new file mode 100644 index 0000000000..0f6347dcda --- /dev/null +++ b/tests/oneaccess_oneos/cat_bsa_bsaboot.inf/cat_bsa_bsaboot.inf.raw @@ -0,0 +1,2 @@ +flash:/BSA/binaries/OneOs +flash:/BSA/config/bsaStart.cfg diff --git a/tests/oneaccess_oneos/cat_bsa_bsaboot.inf/cat_bsa_bsaboot.inf.yml b/tests/oneaccess_oneos/cat_bsa_bsaboot.inf/cat_bsa_bsaboot.inf.yml new file mode 100644 index 0000000000..5bd871861c --- /dev/null +++ b/tests/oneaccess_oneos/cat_bsa_bsaboot.inf/cat_bsa_bsaboot.inf.yml @@ -0,0 +1,6 @@ +--- +parsed_sample: + - bootfile: "OneOs" + bootfolder: "/BSA/binaries" + configfile: "bsaStart.cfg" + configfolder: "/BSA/config" diff --git a/tests/oneaccess_oneos/hostname/hostname.raw b/tests/oneaccess_oneos/hostname/hostname.raw new file mode 100644 index 0000000000..7fd67ce381 --- /dev/null +++ b/tests/oneaccess_oneos/hostname/hostname.raw @@ -0,0 +1 @@ +dops-lab-02 diff --git a/tests/oneaccess_oneos/hostname/hostname.yml b/tests/oneaccess_oneos/hostname/hostname.yml new file mode 100644 index 0000000000..37fc0c4258 --- /dev/null +++ b/tests/oneaccess_oneos/hostname/hostname.yml @@ -0,0 +1,3 @@ +--- +parsed_sample: + - hostname: "dops-lab-02" diff --git a/tests/oneaccess_oneos/ls/ls.bsabinaries.oneos5.raw b/tests/oneaccess_oneos/ls/ls.bsabinaries.oneos5.raw new file mode 100644 index 0000000000..0b0747df20 --- /dev/null +++ b/tests/oneaccess_oneos/ls/ls.bsabinaries.oneos5.raw @@ -0,0 +1,5 @@ +Listing the directory /BSA/binaries +. 0 +.. 0 +OneOs 15896363 +ONEOS16-MONO_FT-V5.2R2E7_HA1.ZZZ 15848593 diff --git a/tests/oneaccess_oneos/ls/ls.bsabinaries.oneos5.yml b/tests/oneaccess_oneos/ls/ls.bsabinaries.oneos5.yml new file mode 100644 index 0000000000..d49f276a36 --- /dev/null +++ b/tests/oneaccess_oneos/ls/ls.bsabinaries.oneos5.yml @@ -0,0 +1,6 @@ +--- +parsed_sample: + - file: "OneOs" + bytes: "15896363" + - file: "ONEOS16-MONO_FT-V5.2R2E7_HA1.ZZZ" + bytes: "15848593" diff --git a/tests/oneaccess_oneos/ls/ls.bsabinaries.oneos6.raw b/tests/oneaccess_oneos/ls/ls.bsabinaries.oneos6.raw new file mode 100644 index 0000000000..f5c986b6af --- /dev/null +++ b/tests/oneaccess_oneos/ls/ls.bsabinaries.oneos6.raw @@ -0,0 +1 @@ +-rw-r--r-- 1 105178216 Oct 6 16:10 OneOS-pCPE-ARM_pi1-6.8.4.ZZZ diff --git a/tests/oneaccess_oneos/ls/ls.bsabinaries.oneos6.yml b/tests/oneaccess_oneos/ls/ls.bsabinaries.oneos6.yml new file mode 100644 index 0000000000..c243116513 --- /dev/null +++ b/tests/oneaccess_oneos/ls/ls.bsabinaries.oneos6.yml @@ -0,0 +1,4 @@ +--- +parsed_sample: + - file: "OneOS-pCPE-ARM_pi1-6.8.4.ZZZ" + bytes: "105178216" diff --git a/tests/oneaccess_oneos/show_cellular-radio_context/show_cellular-radio_context.oneos6.raw b/tests/oneaccess_oneos/show_cellular-radio_context/show_cellular-radio_context.oneos6.raw new file mode 100644 index 0000000000..a8494edcc3 --- /dev/null +++ b/tests/oneaccess_oneos/show_cellular-radio_context/show_cellular-radio_context.oneos6.raw @@ -0,0 +1,41 @@ + Context 1 + ========= + + Cellular controller: 0 + Internal context Id: 1 + Interface : Virtual-Ethernet 1, USB-Path: /sys/class/net/wwan0 + Cellular profile : 1 + + rxSpeed/max : 0/0 + txSpeed/max : 0/0 + + Call manager state : _connected + Mtu : 1500 + Data bearer technology : LTE + + Ipv4 connection + Address : 101.194.59.47 + Subnet : 255.255.255.224 + Gateway : 101.194.59.48 + Primary Dns : 2.2.2.90 + Secondary Dns : 2.2.2.94 + Packet data connection : Connected + Last call end reason : + Data statistics : + Tx packets : 603031 + Rx packets : 572105 + Tx packet errors : 0 + Rx packet errors : 0 + Tx packet overflows : 0 + Rx packet overflows : 0 + Tx bytes : 83925324 + Rx bytes : 87179616 + + Ipv6 connection + Address : + Gateway : + Primary Dns : + Secondary Dns : + Packet data connection : + Last call end reason : + Data statistics : diff --git a/tests/oneaccess_oneos/show_cellular-radio_context/show_cellular-radio_context.oneos6.yml b/tests/oneaccess_oneos/show_cellular-radio_context/show_cellular-radio_context.oneos6.yml new file mode 100644 index 0000000000..0faf063fb5 --- /dev/null +++ b/tests/oneaccess_oneos/show_cellular-radio_context/show_cellular-radio_context.oneos6.yml @@ -0,0 +1,22 @@ +--- +parsed_sample: + - context: "1" + controller: "0" + interface: "Virtual-Ethernet 1" + cellular_profile: "1" + bearer_technology: "LTE" + ipv4_address: "101.194.59.47" + ipv4_subnet: "255.255.255.224" + ipv4_gateway: "101.194.59.48" + ipv4_dns1: "2.2.2.90" + ipv4_dns2: "2.2.2.94" + data_conn: "Connected" + lastcall_end_reason: "" + tx_packets: "603031" + rx_packets: "572105" + tx_packet_errors: "0" + rx_packet_errors: "0" + tx_packet_overflow: "0" + rx_packet_overflow: "0" + tx_bytes: "83925324" + rx_bytes: "87179616" diff --git a/tests/oneaccess_oneos/show_cellular-radio_equipment/show_cellular-radio_equipment.oneos5.raw b/tests/oneaccess_oneos/show_cellular-radio_equipment/show_cellular-radio_equipment.oneos5.raw new file mode 100644 index 0000000000..b0d3fca5c3 --- /dev/null +++ b/tests/oneaccess_oneos/show_cellular-radio_equipment/show_cellular-radio_equipment.oneos5.raw @@ -0,0 +1,14 @@ + Cellular Radio Modem Information + Manufacturer identification : Sierra Wireless, Incorporated + Equipment information : MC7455 + Boot revision identification : SWI9X30C_02.20.03.00 r6691 CARMD-EV-FRMWR2 2016/06/30 10:54:05 + Revision identification : SWI9X30C_02.20.03.00 r6691 CARMD-EV-FRMWR2 2016/06/30 10:54:05 + Equipment information (IMEI) : 359022065533630 + + SIM Card Information + SIM card status : SIM card is present + SIM International Mobile Subscriber Identity IMSI : 211104500225982 + Integrated Circuit Card ID : 89320269140114098260 + + PIN Information + PIN code status : entered OK diff --git a/tests/oneaccess_oneos/show_cellular-radio_equipment/show_cellular-radio_equipment.oneos5.yml b/tests/oneaccess_oneos/show_cellular-radio_equipment/show_cellular-radio_equipment.oneos5.yml new file mode 100644 index 0000000000..9d68e9148c --- /dev/null +++ b/tests/oneaccess_oneos/show_cellular-radio_equipment/show_cellular-radio_equipment.oneos5.yml @@ -0,0 +1,11 @@ +--- +parsed_sample: + - manufacturer: "Sierra Wireless, Incorporated" + equipment: "MC7455" + boot_revision: "SWI9X30C_02.20.03.00 r6691 CARMD-EV-FRMWR2 2016/06/30 10:54:05" + imei: "359022065533630" + sim1_status: "present" + sim2_status: "" + imsi: "211104500225982" + card_id: "89320269140114098260" + pin_status: "entered OK" diff --git a/tests/oneaccess_oneos/show_cellular-radio_equipment/show_cellular-radio_equipment.oneos6.raw b/tests/oneaccess_oneos/show_cellular-radio_equipment/show_cellular-radio_equipment.oneos6.raw new file mode 100644 index 0000000000..1026b5a02e --- /dev/null +++ b/tests/oneaccess_oneos/show_cellular-radio_equipment/show_cellular-radio_equipment.oneos6.raw @@ -0,0 +1,14 @@ + Cellular Radio Modem Information + Manufacturer identification : Quectel + Equipment information : EP06-E + Boot revision identification : + Revision identification : EP06ELAR03A07M4G + Equipment information (IMEI) : 862286066345736 + + SIM Card Information + SIM card slot 1 : SIM present + SIM card slot 2 : SIM not present + Active SIM slot : 1 + SIM card status : SIM card is present + SIM International Mobile Subscriber Identity IMSI : 202202404403339 + Integrated Circuit Card ID : 89320269640110137970 diff --git a/tests/oneaccess_oneos/show_cellular-radio_equipment/show_cellular-radio_equipment.oneos6.yml b/tests/oneaccess_oneos/show_cellular-radio_equipment/show_cellular-radio_equipment.oneos6.yml new file mode 100644 index 0000000000..ab1a6061f8 --- /dev/null +++ b/tests/oneaccess_oneos/show_cellular-radio_equipment/show_cellular-radio_equipment.oneos6.yml @@ -0,0 +1,11 @@ +--- +parsed_sample: + - manufacturer: "Quectel" + equipment: "EP06-E" + boot_revision: "EP06ELAR03A07M4G" + imei: "862286066345736" + sim1_status: "present" + sim2_status: "not present" + imsi: "202202404403339" + card_id: "89320269640110137970" + pin_status: "" From b7a82021e1ca45b308b353b6ea0068feee3c7075 Mon Sep 17 00:00:00 2001 From: Jacob McGill <9847006+jmcgill298@users.noreply.github.com> Date: Mon, 22 Jul 2024 23:03:45 -0400 Subject: [PATCH 49/60] Add Ciena SAOS templates (#1753) * add oneaccess oneos templates * oneaccess_oneos templates and tests * add oneaccess_oneos templates * addtional oneos commands * extra oneos commands * add oneaccess command * add oneaccess_oneos show system hardware * oneaccess_oneos voice related commands * HP Comware fix spacing allowances Fix templates if output contain tabs. * extra oneos templates * updates for passing tests * oneos updates to voice templates * add extra oneaccess_oneos and ciena_saos templates * add oneaccess_oneos show_transceiver_equipment and show_policy-interface_output * Update oneaccess_oneos_show_software-image.textfsm * Update oneaccess_oneos_show_software-image.textfsm * oneaccess_oneos add secure crashlog command * add oneaccess commands * update command alias * Update index - ip dhcp * Update oneaccess_oneos_show_running-config_ip_route.textfsm * Create oneaccess_oneos_show_ip_helper-address_statistics.textfsm * Update index * Update oneaccess_oneos_show_interfaces.textfsm * Update index * Update oneaccess_oneos_show_ip_bgp_summary.textfsm * devices with + sign were not detected * Remove oneaccess templates for separate PR * Fix to comply with current standards --------- Co-authored-by: mwallraf Co-authored-by: Andrea Dainese Co-authored-by: mwallraf --- .../ciena_saos_lldp_show_neighbors.textfsm | 45 +++++++++++ ...ena_saos_port_show_ethernet-config.textfsm | 22 ++++++ ...iena_saos_port_show_network-config.textfsm | 21 ++++++ .../ciena_saos_port_show_status.textfsm | 19 +++++ .../ciena_saos_port_xcvr_show.textfsm | 15 ++++ ntc_templates/templates/index | 5 ++ .../ciena_saos_lldp_show_neighbors.3916.raw | 34 +++++++++ .../ciena_saos_lldp_show_neighbors.3916.yml | 44 +++++++++++ ...na_saos_port_show_ethernet-config.3916.raw | 12 +++ ...na_saos_port_show_ethernet-config.3916.yml | 74 +++++++++++++++++++ ...ena_saos_port_show_network-config.3916.raw | 12 +++ ...ena_saos_port_show_network-config.3916.yml | 68 +++++++++++++++++ .../ciena_saos_port_show_status.3916.raw | 11 +++ .../ciena_saos_port_show_status.3916.yml | 56 ++++++++++++++ .../ciena_saos_port_xcvr_show.3916.raw | 11 +++ .../ciena_saos_port_xcvr_show.3916.yml | 44 +++++++++++ 16 files changed, 493 insertions(+) create mode 100644 ntc_templates/templates/ciena_saos_lldp_show_neighbors.textfsm create mode 100644 ntc_templates/templates/ciena_saos_port_show_ethernet-config.textfsm create mode 100644 ntc_templates/templates/ciena_saos_port_show_network-config.textfsm create mode 100644 ntc_templates/templates/ciena_saos_port_show_status.textfsm create mode 100644 ntc_templates/templates/ciena_saos_port_xcvr_show.textfsm create mode 100644 tests/ciena_saos/lldp_show_neighbors/ciena_saos_lldp_show_neighbors.3916.raw create mode 100644 tests/ciena_saos/lldp_show_neighbors/ciena_saos_lldp_show_neighbors.3916.yml create mode 100644 tests/ciena_saos/port_show_ethernet-config/ciena_saos_port_show_ethernet-config.3916.raw create mode 100644 tests/ciena_saos/port_show_ethernet-config/ciena_saos_port_show_ethernet-config.3916.yml create mode 100644 tests/ciena_saos/port_show_network-config/ciena_saos_port_show_network-config.3916.raw create mode 100644 tests/ciena_saos/port_show_network-config/ciena_saos_port_show_network-config.3916.yml create mode 100644 tests/ciena_saos/port_show_status/ciena_saos_port_show_status.3916.raw create mode 100644 tests/ciena_saos/port_show_status/ciena_saos_port_show_status.3916.yml create mode 100644 tests/ciena_saos/port_xcvr_show/ciena_saos_port_xcvr_show.3916.raw create mode 100644 tests/ciena_saos/port_xcvr_show/ciena_saos_port_xcvr_show.3916.yml diff --git a/ntc_templates/templates/ciena_saos_lldp_show_neighbors.textfsm b/ntc_templates/templates/ciena_saos_lldp_show_neighbors.textfsm new file mode 100644 index 0000000000..c5e86a8979 --- /dev/null +++ b/ntc_templates/templates/ciena_saos_lldp_show_neighbors.textfsm @@ -0,0 +1,45 @@ +Value List,Filldown REMOTE_IPV4_ADDRESS (\d+\.\d+\.\d+\.\d+) +Value List,Filldown REMOTE_IPV6_ADDRESS ([a-f0-9:]+) +Value Filldown SYSTEM_NAME (\S+) +Value Filldown SYSTEM_DESCRIPTION (.*\S) +Value Required LOCAL_PORT (\S+) +Value REMOTE_PORT (\S+) +Value REMOTE_CHASSIS_ID (\S+) +Value List REMOTE_MGMT_IPV4_ADDRESS (\d+\.\d+\.\d+\.\d+) +Value List REMOTE_MGMT_IPV6_ADDRESS ([a-f0-9:]+) +Value REMOTE_SYSTEM_NAME (\S+) +Value REMOTE_SYSTEM_DESCRIPTION (.*\S) +Value REMOTE_SYNCE_SUPPORT (.*\S) +Value REMOTE_SYNCE_CONFIG (.*\S) + +Start + ^\+\-+ + ^\|\s*LLDP\s+Neighbors\s+\|\s*$$ + ^\|\s*Local\s+\|\s+Remote\s+\|\s*$$ + ^\|\s*Port\s+\|\s*Port\s+\|\s*Info\s+\|\s*$$ + ^\|\sRemote\sAddr:\s${REMOTE_IPV4_ADDRESS} + ^\|\sRemote\sAddr:\s${REMOTE_IPV6_ADDRESS} + ^\|\sSystem\sName:\s${SYSTEM_NAME}\s+\| + ^\|\sSystem\sDesc:\s${SYSTEM_DESCRIPTION}\s+\| + # neighbor record + ^\|${LOCAL_PORT}\s*\|${REMOTE_PORT}\s*\|\s*Chassis\sId:\s*${REMOTE_CHASSIS_ID} -> Neighbor + ^\s*$$ + ^. -> Error + +Neighbor + ^\|\s*\|\s*\|\s*Mgmt\sAddr:\s${REMOTE_MGMT_IPV4_ADDRESS}\s+\| -> NeighborMgmt + ^\|\s*\|\s*\|\s*Mgmt\sAddr:\s${REMOTE_MGMT_IPV6_ADDRESS}\s+\| -> NeighborMgmt + ^\|\s*\|\s*\|\s*System\sName:\s${REMOTE_SYSTEM_NAME} -> Neighbor + ^\|\s*\|\s*\|\s*System\sDesc:\s${REMOTE_SYSTEM_DESCRIPTION}\s+\| + ^\|\s*\|\s*\|\s*SyncE\sSuppt:\s${REMOTE_SYNCE_SUPPORT}\s+\| + ^\|\s*\|\s*\|\s*SyncE\sConfg:\s${REMOTE_SYNCE_CONFIG}\s+\| + ^\+\-+ -> Record Start + ^\s*$$ + ^. -> Error + +NeighborMgmt + ^\|\s*\|\s*\|\s+${REMOTE_MGMT_IPV4_ADDRESS}\s+\|$$ + ^\|\s*\|\s*\|\s+${REMOTE_MGMT_IPV6_ADDRESS}\s+\|$$ + ^\|\s*\|\s*\|\s*System\sName:\s${REMOTE_SYSTEM_NAME} -> Neighbor + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/ciena_saos_port_show_ethernet-config.textfsm b/ntc_templates/templates/ciena_saos_port_show_ethernet-config.textfsm new file mode 100644 index 0000000000..56557053f6 --- /dev/null +++ b/ntc_templates/templates/ciena_saos_port_show_ethernet-config.textfsm @@ -0,0 +1,22 @@ +Value NAME (\S+) +Value TYPE (\S+) +Value ADMIN_STATUS (\S+) +Value SPEED (\S+) +Value DUPLEX (\S+) +Value FLOW_CONTROL (\S+) +Value FLOW_CONTROL_ADV (\S+) +Value AUTO_NEGOTIATION (\S+) +Value MTU (\d+) +Value MIRROR_STATE (\S+) +Value MIRROR_EG (\d+) +Value MIRROR_IG (\d+) + +Start + ^\+-+\s*PORT\s*ETHERNET\s*CONFIGURATION\s*-+\+ + ^(\|\s+){10}Mirror\s+\|\s*$$ + ^\|\s*Port\s*\|\s*Port\s*\|\s*Admin\s*\|(?:\s+\|){3}\s*FC\s*\|\s*Auto\s*\|\s*MTU\s*\|\s*Status\s*\|\s*$$ + ^\|\s*Name\s*\|\s*Type\s*\|\s*Status\|\s*Speed\s*\|\s*Dplx\s*\|\s*FC\s*\|\s*Adv\s*\|\s*Neg\s*\|\s*Size\s*\|\s*State\|\s*Eg\s*\|\s*Ig\s*\|\s*$$ + ^\+-+ + ^\|\s*${NAME}\s*\|\s*${TYPE}\s*\|\s*${ADMIN_STATUS}\s*\|\s*${SPEED}\s*\|\s*(${DUPLEX}|\s+)\s*\|\s*${FLOW_CONTROL}\s*\|\s*${FLOW_CONTROL_ADV}\s*\|\s*${AUTO_NEGOTIATION}\s*\|\s*${MTU}\s*\|\s*${MIRROR_STATE}\s*\|\s*${MIRROR_EG}\s*\|\s*${MIRROR_IG}\s*\| -> Record + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/ciena_saos_port_show_network-config.textfsm b/ntc_templates/templates/ciena_saos_port_show_network-config.textfsm new file mode 100644 index 0000000000..4d5cf18c8d --- /dev/null +++ b/ntc_templates/templates/ciena_saos_port_show_network-config.textfsm @@ -0,0 +1,21 @@ +Value NAME (\S+) +Value PRIVATE_VLAN_ID (\S+) +Value ACCEPT_FRAME_TYPE (\S+) +Value UNTAG_INGRESS_VLAN_ID (\S+) +Value VLAN_INGRESS_FILTER (\S+) +Value VS_INGRESS_FILTER (\S+) +Value EGRESS_UNTAG_VLAN (\S+) +Value VS_EGRESS_FILTER (\S+) +Value INGRESS_COS_POLICY (\S+) +Value VPLS_PORT_TYPE (\S+) +Value ETH_VC_ETHERTYPE (\d+) + +Start + ^\+-+\s*PORT\s*ETHERNET\s*CONFIGURATION\s*-+\+ + ^\+-+ + ^\|\s*\s*\|\s*\s*\|\s*Accpt\s*\|\s*Untag\s*\|\s*VLAN\s*\|\s*VS\s*\|\s*Egress\s*\|\s*VS\s*\|\s*Ingress\s*\|\s*VPLS\s*\|\s*Eth\s*VC\s*\|\s*$$ + ^\|\s*Port\s*\|\s*\s*\|\s*Frame\s*\|\s*Ingress\s*\|\s*Ingress\s*\|\s*Ingress\s*\|\s*Untag\s*\|\s*Egress\s*\|\s*CoS\s*\|\s*Port\s*\|\s*Ether-\s*\|\s*$$ + ^\|\s*Name\s*\|\s*PVID\s*\|\s*Type\s*\|\s*Vid\s*\|\s*Filter\s*\|\s*Filter\s*\|\s*VLAN\s*\|\s*Filter\s*\|\s*Policy\s*\|\s*Type\s*\|\s*Type\s*\|\s*$$ + ^\|\s*${NAME}\s*\|\s*${PRIVATE_VLAN_ID}\s*\|\s*${ACCEPT_FRAME_TYPE}\s*\|\s*${UNTAG_INGRESS_VLAN_ID}\s*\|\s*(${VLAN_INGRESS_FILTER}|\s+)\s*\|\s*${VS_INGRESS_FILTER}\s*\|\s*${EGRESS_UNTAG_VLAN}\s*\|\s*${VS_EGRESS_FILTER}\s*\|\s*${INGRESS_COS_POLICY}\s*\|\s*${VPLS_PORT_TYPE}\s*\|\s*${ETH_VC_ETHERTYPE}\s*\| -> Record + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/ciena_saos_port_show_status.textfsm b/ntc_templates/templates/ciena_saos_port_show_status.textfsm new file mode 100644 index 0000000000..975d52ddb0 --- /dev/null +++ b/ntc_templates/templates/ciena_saos_port_show_status.textfsm @@ -0,0 +1,19 @@ +Value NAME (\S+) +Value DESCRIPTION (\S*) +Value LINK (Up|Down) +Value DURATION ([^\|]+) +Value TRANSCEIVER (\S+) +Value STP (\w+) +Value SPEED_DUPLEX (\S+) +Value MTU (\d+) +Value FLOW_CONTROL (\S+) + + +Start + ^\+-+\s*PORT\s*OPERATIONAL\s*STATUS\s*-+\+ + ^\+-+ + ^\|(\s+\|){3}\s*Link\s*State\s*\|(\s+\|){2}\s*Speed/\s*\|\s*MTU \s*\|\s*Flow\s*\|\s*$$ + ^\|\s*##\s*\|\s*Description\s*\|\s*Link\s*\|\s*Duration\s*\|\s*XCVR\s*\|\s*STP\s*\|\s*Duplex\s*\|\s*Size\s*\|\s*Ctrl\s*\|\s*$$ + ^\|${NAME}\s*\|${DESCRIPTION}\s*\|\s*${LINK}\s*\|\s*${DURATION}\s*\|\s*(${TRANSCEIVER}|\s+)\s*\|\s*${STP}\s*\|\s*(${SPEED_DUPLEX}|\s+)\s*\|\s*${MTU}\s*\|\s*(${FLOW_CONTROL}|\s+)\s*\| -> Record + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/ciena_saos_port_xcvr_show.textfsm b/ntc_templates/templates/ciena_saos_port_xcvr_show.textfsm new file mode 100644 index 0000000000..bb132fb152 --- /dev/null +++ b/ntc_templates/templates/ciena_saos_port_xcvr_show.textfsm @@ -0,0 +1,15 @@ +Value PORT (\S+) +Value ADMIN_STATE (\S+) +Value OPERATIONAL_STATE (\S+) +Value VENDOR (\S.*\S) +Value CIENA_REV (\S+) +Value CONNECTOR_TYPE (\S+) +Value DIAGNOSTIC (\S+) + +Start + ^\+-+ + ^\|\s+\|\s*Admin\s*\|\s*Oper\s*\|\s+\|\s*Ciena\s*\|\s*Ether\s*Medium\s*&\s*\|\s*Diag\s*\|\s*$$ + ^\|\s*Port\s*\|(?:\s*State\s*\|){2}\s*Vendor\s*Name\s*&\s*Part\s*Number\s*\|\s*Rev\s*\|\s*Connector\s*Type\s*\|\s*Data\s*\|\s*$$ + ^\|\s*${PORT}\s*\|${ADMIN_STATE}\s*\|(${OPERATIONAL_STATE}|)\s*\|(${VENDOR}|)\s*\|(${CIENA_REV}|)\s*\|(${CONNECTOR_TYPE}|)\s*\|(${DIAGNOSTIC}|)\s*\| -> Record + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index aae6abe7bc..68606ab21a 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -170,8 +170,13 @@ checkpoint_gaia_show_lom.textfsm, .*, checkpoint_gaia, show lom checkpoint_gaia_fw_stat.textfsm, .*, checkpoint_gaia, fw stat ciena_saos_traffic-profiling_standard-profile_show.textfsm, .*, ciena_saos, traffic-p[[rofiling]] st[[andard-profile]] sh[[ow]] +ciena_saos_port_show_ethernet-config.textfsm, .*, ciena_saos, po[[rt]] sh[[ow]] ethernet-config ciena_saos_chassis_show_temperature.textfsm, .*, ciena_saos, ch[[assis]] sh[[ow]] te[[mperature]] +ciena_saos_port_show_network-config.textfsm, .*, ciena_saos, po[[rt]] sh[[ow]] network-config +ciena_saos_lldp_show_neighbors.textfsm, .*, ciena_saos, lldp sh[[ow]] nei[[ghbors]] ciena_saos_ssh_server_show_key.textfsm, .*, ciena_saos, ssh se[[rver]] sh[[ow]] k[[ey]] +ciena_saos_port_show_status.textfsm, .*, ciena_saos, po[[rt]] sh[[ow]] status +ciena_saos_port_xcvr_show.textfsm, .*, ciena_saos, po[[rt]] xcvr sh[[ow]] ciena_saos_software_show.textfsm, .*, ciena_saos, so[[ftware]] sh[[ow]] ciena_saos_port_show.textfsm, .*, ciena_saos, po[[rt]] sh[[ow]] ciena_saos_rstp_show.textfsm, .*, ciena_saos, rs[[tp]] sh[[ow]] diff --git a/tests/ciena_saos/lldp_show_neighbors/ciena_saos_lldp_show_neighbors.3916.raw b/tests/ciena_saos/lldp_show_neighbors/ciena_saos_lldp_show_neighbors.3916.raw new file mode 100644 index 0000000000..6f48de5f92 --- /dev/null +++ b/tests/ciena_saos/lldp_show_neighbors/ciena_saos_lldp_show_neighbors.3916.raw @@ -0,0 +1,34 @@ ++--------------------------------------------------------------------------------------------------------------+ +| LLDP Neighbors | ++--------------------------------------------------------------------------------------------------------------+ +| Remote Addr: 10.8.91.1 | +| Remote Addr: 10.8.128.39 | +| Remote Addr: fe80::9e7a:3ff:fed1:cd1 | +| Remote Addr: fe80::9e7a:3ff:fed1:cdf | +| System Name: LAB_00009-SDS39-100 | +| System Desc: Ciena 3916 Service Delivery Switch | ++-------------+------------------------------------------------------------------------------------------------+ +|Local | Remote | ++-------------+--------------------------------+---------------------------------------------------------------+ +|Port |Port |Info | ++-------------+--------------------------------+---------------------------------------------------------------+ +|5 |6 | Chassis Id: 9C7A03A10D60 | +| | | Mgmt Addr: 10.8.91.2 | +| | | 10.8.128.40 | +| | | fe80::9e7a:3ff:fed1:d61 | +| | | fe80::9e7a:3ff:fed1:d6f | +| | | System Name: LAB_SDS39-200 | +| | | System Desc: Ciena 3916 Service Delivery Switch | +| | | SyncE Suppt: Not Supported | +| | | SyncE Confg: Not Configured | ++-------------+--------------------------------+---------------------------------------------------------------+ +|6 |3 | Chassis Id: 9C7A03B86040 | +| | | Mgmt Addr: 10.8.90.250 | +| | | 10.8.130.1 | +| | | fe80::9e7a:3ff:fec8:6040 | +| | | fe80::9e7a:3ff:fec8:6041 | +| | | System Name: LAB_SAS51-100 | +| | | System Desc: Ciena 5142 Service Aggregation Switch | +| | | SyncE Suppt: Input and Output | +| | | SyncE Confg: Not Configured | ++-------------+--------------------------------+---------------------------------------------------------------+ diff --git a/tests/ciena_saos/lldp_show_neighbors/ciena_saos_lldp_show_neighbors.3916.yml b/tests/ciena_saos/lldp_show_neighbors/ciena_saos_lldp_show_neighbors.3916.yml new file mode 100644 index 0000000000..f0962dd6af --- /dev/null +++ b/tests/ciena_saos/lldp_show_neighbors/ciena_saos_lldp_show_neighbors.3916.yml @@ -0,0 +1,44 @@ +--- +parsed_sample: + - remote_ipv4_address: + - "10.8.91.1" + - "10.8.128.39" + remote_ipv6_address: + - "fe80::9e7a:3ff:fed1:cd1" + - "fe80::9e7a:3ff:fed1:cdf" + system_name: "LAB_00009-SDS39-100" + system_description: "Ciena 3916 Service Delivery Switch" + local_port: "5" + remote_port: "6" + remote_chassis_id: "9C7A03A10D60" + remote_mgmt_ipv4_address: + - "10.8.91.2" + - "10.8.128.40" + remote_mgmt_ipv6_address: + - "fe80::9e7a:3ff:fed1:d61" + - "fe80::9e7a:3ff:fed1:d6f" + remote_system_name: "LAB_SDS39-200" + remote_system_description: "Ciena 3916 Service Delivery Switch" + remote_synce_support: "Not Supported" + remote_synce_config: "Not Configured" + - remote_ipv4_address: + - "10.8.91.1" + - "10.8.128.39" + remote_ipv6_address: + - "fe80::9e7a:3ff:fed1:cd1" + - "fe80::9e7a:3ff:fed1:cdf" + system_name: "LAB_00009-SDS39-100" + system_description: "Ciena 3916 Service Delivery Switch" + local_port: "6" + remote_port: "3" + remote_chassis_id: "9C7A03B86040" + remote_mgmt_ipv4_address: + - "10.8.90.250" + - "10.8.130.1" + remote_mgmt_ipv6_address: + - "fe80::9e7a:3ff:fec8:6040" + - "fe80::9e7a:3ff:fec8:6041" + remote_system_name: "LAB_SAS51-100" + remote_system_description: "Ciena 5142 Service Aggregation Switch" + remote_synce_support: "Input and Output" + remote_synce_config: "Not Configured" diff --git a/tests/ciena_saos/port_show_ethernet-config/ciena_saos_port_show_ethernet-config.3916.raw b/tests/ciena_saos/port_show_ethernet-config/ciena_saos_port_show_ethernet-config.3916.raw new file mode 100644 index 0000000000..51c17d0368 --- /dev/null +++ b/tests/ciena_saos/port_show_ethernet-config/ciena_saos_port_show_ethernet-config.3916.raw @@ -0,0 +1,12 @@ ++------------------------ PORT ETHERNET CONFIGURATION -------------------------+ +| | | | | | | | | | Mirror | +| Port | Port | Admin | | | | FC | Auto| MTU | Status | +| Name | Type | Status| Speed| Dplx| FC | Adv| Neg | Size |State| Eg | Ig | ++--------+---------+-------+------+-----+----+----+-----+------+-----+----+----+ +| 1 | 10/100/G| Dis | Auto | ?? |off |off | On | 9100 | Off | 0 | 0 | +| 2 | 10/100/G| Ena | Auto | ?? |off |off | On | 9100 | Off | 0 | 0 | +| 3 | 100/G | Ena | 100 | ?? |off |off | Off | 9100 | Off | 0 | 0 | +| 4 | 100/G | Ena | 1000 | ?? |off |off | On | 9100 | Off | 0 | 0 | +| 5 | Gig | Ena | 1000 | Full|off |off | Off | 9216 | Off | 0 | 0 | +| 6 | Gig | Ena | 1000 | Full|off |off | Off | 9216 | Off | 0 | 0 | ++--------+---------+-------+------+-----+----+----+-----+------+-----+----+----+ diff --git a/tests/ciena_saos/port_show_ethernet-config/ciena_saos_port_show_ethernet-config.3916.yml b/tests/ciena_saos/port_show_ethernet-config/ciena_saos_port_show_ethernet-config.3916.yml new file mode 100644 index 0000000000..7c9e4b6be9 --- /dev/null +++ b/tests/ciena_saos/port_show_ethernet-config/ciena_saos_port_show_ethernet-config.3916.yml @@ -0,0 +1,74 @@ +--- +parsed_sample: + - name: "1" + type: "10/100/G" + admin_status: "Dis" + speed: "Auto" + duplex: "??" + flow_control: "off" + flow_control_adv: "off" + auto_negotiation: "On" + mtu: "9100" + mirror_state: "Off" + mirror_eg: "0" + mirror_ig: "0" + - name: "2" + type: "10/100/G" + admin_status: "Ena" + speed: "Auto" + duplex: "??" + flow_control: "off" + flow_control_adv: "off" + auto_negotiation: "On" + mtu: "9100" + mirror_state: "Off" + mirror_eg: "0" + mirror_ig: "0" + - name: "3" + type: "100/G" + admin_status: "Ena" + speed: "100" + duplex: "??" + flow_control: "off" + flow_control_adv: "off" + auto_negotiation: "Off" + mtu: "9100" + mirror_state: "Off" + mirror_eg: "0" + mirror_ig: "0" + - name: "4" + type: "100/G" + admin_status: "Ena" + speed: "1000" + duplex: "??" + flow_control: "off" + flow_control_adv: "off" + auto_negotiation: "On" + mtu: "9100" + mirror_state: "Off" + mirror_eg: "0" + mirror_ig: "0" + - name: "5" + type: "Gig" + admin_status: "Ena" + speed: "1000" + duplex: "Full" + flow_control: "off" + flow_control_adv: "off" + auto_negotiation: "Off" + mtu: "9216" + mirror_state: "Off" + mirror_eg: "0" + mirror_ig: "0" + - name: "6" + type: "Gig" + admin_status: "Ena" + speed: "1000" + duplex: "Full" + flow_control: "off" + flow_control_adv: "off" + auto_negotiation: "Off" + mtu: "9216" + mirror_state: "Off" + mirror_eg: "0" + mirror_ig: "0" diff --git a/tests/ciena_saos/port_show_network-config/ciena_saos_port_show_network-config.3916.raw b/tests/ciena_saos/port_show_network-config/ciena_saos_port_show_network-config.3916.raw new file mode 100644 index 0000000000..0cc5f6cc66 --- /dev/null +++ b/tests/ciena_saos/port_show_network-config/ciena_saos_port_show_network-config.3916.raw @@ -0,0 +1,12 @@ ++----------------------------- PORT NETWORK CONFIGURATION ------------------------------+ +| | | Accpt |Untag |VLAN |VS |Egress |VS |Ingress| VPLS |Eth VC| +| Port | | Frame |Ingress|Ingress|Ingress|Untag |Egress |CoS | Port |Ether-| +| Name |PVID | Type |Vid |Filter |Filter |VLAN |Filter |Policy | Type |Type | ++---------+-----+--------+-------+-------+-------+-------+-------+-------+-------+------+ +| 1 | 1 | All | 0 | Ena | Dis | 1 | Dis | leave | Subsc | 8100 | +| 2 | 1 | All | 0 | Ena | Dis | 1 | Dis | leave | Subsc | 8100 | +| 3 | 1 | All | 0 | Ena | Dis | 1 | Dis | leave | Subsc | 8100 | +| 4 | 1 | All | 0 | Ena | Ena | 1 | Dis | leave | Subsc | 8100 | +| 5 | 1 | All | 0 | Ena | Ena | 1 | Dis | leave | Ntwrk | 8100 | +| 6 | 1 | All | 0 | Ena | Dis | 1 | Dis | leave | Ntwrk | 8100 | ++---------+-----+--------+-------+-------+-------+-------+-------+-------+-------+------+ diff --git a/tests/ciena_saos/port_show_network-config/ciena_saos_port_show_network-config.3916.yml b/tests/ciena_saos/port_show_network-config/ciena_saos_port_show_network-config.3916.yml new file mode 100644 index 0000000000..709edc5658 --- /dev/null +++ b/tests/ciena_saos/port_show_network-config/ciena_saos_port_show_network-config.3916.yml @@ -0,0 +1,68 @@ +--- +parsed_sample: + - name: "1" + private_vlan_id: "1" + accept_frame_type: "All" + untag_ingress_vlan_id: "0" + vlan_ingress_filter: "Ena" + vs_ingress_filter: "Dis" + egress_untag_vlan: "1" + vs_egress_filter: "Dis" + ingress_cos_policy: "leave" + vpls_port_type: "Subsc" + eth_vc_ethertype: "8100" + - name: "2" + private_vlan_id: "1" + accept_frame_type: "All" + untag_ingress_vlan_id: "0" + vlan_ingress_filter: "Ena" + vs_ingress_filter: "Dis" + egress_untag_vlan: "1" + vs_egress_filter: "Dis" + ingress_cos_policy: "leave" + vpls_port_type: "Subsc" + eth_vc_ethertype: "8100" + - name: "3" + private_vlan_id: "1" + accept_frame_type: "All" + untag_ingress_vlan_id: "0" + vlan_ingress_filter: "Ena" + vs_ingress_filter: "Dis" + egress_untag_vlan: "1" + vs_egress_filter: "Dis" + ingress_cos_policy: "leave" + vpls_port_type: "Subsc" + eth_vc_ethertype: "8100" + - name: "4" + private_vlan_id: "1" + accept_frame_type: "All" + untag_ingress_vlan_id: "0" + vlan_ingress_filter: "Ena" + vs_ingress_filter: "Ena" + egress_untag_vlan: "1" + vs_egress_filter: "Dis" + ingress_cos_policy: "leave" + vpls_port_type: "Subsc" + eth_vc_ethertype: "8100" + - name: "5" + private_vlan_id: "1" + accept_frame_type: "All" + untag_ingress_vlan_id: "0" + vlan_ingress_filter: "Ena" + vs_ingress_filter: "Ena" + egress_untag_vlan: "1" + vs_egress_filter: "Dis" + ingress_cos_policy: "leave" + vpls_port_type: "Ntwrk" + eth_vc_ethertype: "8100" + - name: "6" + private_vlan_id: "1" + accept_frame_type: "All" + untag_ingress_vlan_id: "0" + vlan_ingress_filter: "Ena" + vs_ingress_filter: "Dis" + egress_untag_vlan: "1" + vs_egress_filter: "Dis" + ingress_cos_policy: "leave" + vpls_port_type: "Ntwrk" + eth_vc_ethertype: "8100" diff --git a/tests/ciena_saos/port_show_status/ciena_saos_port_show_status.3916.raw b/tests/ciena_saos/port_show_status/ciena_saos_port_show_status.3916.raw new file mode 100644 index 0000000000..437aa26631 --- /dev/null +++ b/tests/ciena_saos/port_show_status/ciena_saos_port_show_status.3916.raw @@ -0,0 +1,11 @@ ++---------------------------- PORT OPERATIONAL STATUS ----------------------------+ +| | | |Link State| | |Speed/ |MTU |Flow | +| ## | Description |Link|Duration |XCVR|STP|Duplex |Size |Ctrl | ++----+-------------------------------+----+----------+----+---+-------+-----+-----+ +|1 |ACL_3360610_71CHA |Down| 0h 0m 0s| |Dis| | 9100| | +|2 |UNI-Port2 |Down| 0h 0m 0s| |Dis| | 9100| | +|3 |UNI-Port3 |Down| 0h 0m 0s| |Dis| | 9100| | +|4 |NNI-Ringport |Down| 0h 0m 0s| |Dis| | 9100| | +|5 |NNI-Ringport | Up |268d 1h12m|Ena |FWD|1000/FD| 9216|off | +|6 |NNI-Ringport | Up |268d 1h14m|Ena |FWD|1000/FD| 9216|off | ++----+-------------------------------+----+----------+----+---+-------+-----+-----+ diff --git a/tests/ciena_saos/port_show_status/ciena_saos_port_show_status.3916.yml b/tests/ciena_saos/port_show_status/ciena_saos_port_show_status.3916.yml new file mode 100644 index 0000000000..41bd1be821 --- /dev/null +++ b/tests/ciena_saos/port_show_status/ciena_saos_port_show_status.3916.yml @@ -0,0 +1,56 @@ +--- +parsed_sample: + - name: "1" + description: "ACL_3360610_71CHA" + link: "Down" + duration: "0h 0m 0s" + transceiver: "" + stp: "Dis" + speed_duplex: "" + mtu: "9100" + flow_control: "" + - name: "2" + description: "UNI-Port2" + link: "Down" + duration: "0h 0m 0s" + transceiver: "" + stp: "Dis" + speed_duplex: "" + mtu: "9100" + flow_control: "" + - name: "3" + description: "UNI-Port3" + link: "Down" + duration: "0h 0m 0s" + transceiver: "" + stp: "Dis" + speed_duplex: "" + mtu: "9100" + flow_control: "" + - name: "4" + description: "NNI-Ringport" + link: "Down" + duration: "0h 0m 0s" + transceiver: "" + stp: "Dis" + speed_duplex: "" + mtu: "9100" + flow_control: "" + - name: "5" + description: "NNI-Ringport" + link: "Up" + duration: "268d 1h12m" + transceiver: "Ena" + stp: "FWD" + speed_duplex: "1000/FD" + mtu: "9216" + flow_control: "off" + - name: "6" + description: "NNI-Ringport" + link: "Up" + duration: "268d 1h14m" + transceiver: "Ena" + stp: "FWD" + speed_duplex: "1000/FD" + mtu: "9216" + flow_control: "off" diff --git a/tests/ciena_saos/port_xcvr_show/ciena_saos_port_xcvr_show.3916.raw b/tests/ciena_saos/port_xcvr_show/ciena_saos_port_xcvr_show.3916.raw new file mode 100644 index 0000000000..b3a8532b7d --- /dev/null +++ b/tests/ciena_saos/port_xcvr_show/ciena_saos_port_xcvr_show.3916.raw @@ -0,0 +1,11 @@ ++----+-----+-----+---------Transceiver-Status------------+-----+----------------+----+ +| |Admin| Oper| |Ciena|Ether Medium & |Diag| +|Port|State|State| Vendor Name & Part Number | Rev |Connector Type |Data| ++----+-----+-----+---------------------------------------+-----+----------------+----+ +|1 |Empty| | | | | | +|2 |Empty| | | | | | +|3 |Empty| | | | | | +|4 |Empty| | | | | | +|5 |Ena |Ena |CIENA-LMT XCVR-A40Y31 Rev0003 |A |1000BASE-LX/LC |Yes | +|6 |Ena |Ena |CIENA-LMT XCVR-A40Y31 Rev0003 |A |1000BASE-LX/LC |Yes | ++----+-----+-----+---------------------------------------+-----+----------------+----+ diff --git a/tests/ciena_saos/port_xcvr_show/ciena_saos_port_xcvr_show.3916.yml b/tests/ciena_saos/port_xcvr_show/ciena_saos_port_xcvr_show.3916.yml new file mode 100644 index 0000000000..a70f6bf281 --- /dev/null +++ b/tests/ciena_saos/port_xcvr_show/ciena_saos_port_xcvr_show.3916.yml @@ -0,0 +1,44 @@ +--- +parsed_sample: + - port: "1" + admin_state: "Empty" + operational_state: "" + vendor: "" + ciena_rev: "" + connector_type: "" + diagnostic: "" + - port: "2" + admin_state: "Empty" + operational_state: "" + vendor: "" + ciena_rev: "" + connector_type: "" + diagnostic: "" + - port: "3" + admin_state: "Empty" + operational_state: "" + vendor: "" + ciena_rev: "" + connector_type: "" + diagnostic: "" + - port: "4" + admin_state: "Empty" + operational_state: "" + vendor: "" + ciena_rev: "" + connector_type: "" + diagnostic: "" + - port: "5" + admin_state: "Ena" + operational_state: "Ena" + vendor: "CIENA-LMT XCVR-A40Y31 Rev0003" + ciena_rev: "A" + connector_type: "1000BASE-LX/LC" + diagnostic: "Yes" + - port: "6" + admin_state: "Ena" + operational_state: "Ena" + vendor: "CIENA-LMT XCVR-A40Y31 Rev0003" + ciena_rev: "A" + connector_type: "1000BASE-LX/LC" + diagnostic: "Yes" From 2fa7d8cd247af351fb46336ce8f7b1c730fd4d05 Mon Sep 17 00:00:00 2001 From: Jacob McGill <9847006+jmcgill298@users.noreply.github.com> Date: Mon, 22 Jul 2024 23:04:12 -0400 Subject: [PATCH 50/60] ASA show run object network add fqdn (#1752) * fixed asa_show_run_object_network_fqdn_issue * Fix test cases --------- Co-authored-by: sureshvina --- ...show_running-config_object_network.textfsm | 4 ++- ...asa_show_running-config_object_network.raw | 6 ++-- ...asa_show_running-config_object_network.yml | 31 +++++++++++++------ 3 files changed, 28 insertions(+), 13 deletions(-) diff --git a/ntc_templates/templates/cisco_asa_show_running-config_object_network.textfsm b/ntc_templates/templates/cisco_asa_show_running-config_object_network.textfsm index 696caf9c9d..1d7f771f63 100644 --- a/ntc_templates/templates/cisco_asa_show_running-config_object_network.textfsm +++ b/ntc_templates/templates/cisco_asa_show_running-config_object_network.textfsm @@ -1,12 +1,13 @@ Value Required NAME (\S+) Value DESCRIPTION (.+) -Value TYPE ([hostubnerag]+) +Value TYPE (host|subnet|range|fqdn) Value HOST (\S+) Value NETWORK (\S+) Value NETMASK (\S+) Value PREFIX_LENGTH (\d+) Value START_IP (\S+) Value END_IP (\S+) +Value FQDN (\S+) Start @@ -18,4 +19,5 @@ Start ^\s+subnet\s+${NETWORK}\/${PREFIX_LENGTH}\s* ^\s+range\s+${START_IP}\s+${END_IP}\s* ^\s+host\s+${HOST}\s* + ^\s+fqdn\s+${FQDN}\s* ^. -> Error diff --git a/tests/cisco_asa/show_running-config_object_network/cisco_asa_show_running-config_object_network.raw b/tests/cisco_asa/show_running-config_object_network/cisco_asa_show_running-config_object_network.raw index 3685195f39..5f386df3b2 100644 --- a/tests/cisco_asa/show_running-config_object_network/cisco_asa_show_running-config_object_network.raw +++ b/tests/cisco_asa/show_running-config_object_network/cisco_asa_show_running-config_object_network.raw @@ -2,15 +2,13 @@ object network corp subnet 10.0.0.0 255.0.0.0 object network internal subnet 192.168.0.0 255.255.255.0 -object network any - subnet 0.0.0.0 0.0.0.0 object network host-10.10.11.1 host 10.10.11.1 object network block host 10.75.51.11 object network dmz - description dmz GW ip host 11.1.2.2 + description dmz GW ip object network server-vip host 10.1.11.8 object network visitors @@ -25,3 +23,5 @@ object network internal-ipv6-range range fd00:: fd00::ffff object network internal-ipv6-subnet subnet fd00::/8 +object network fqdn_test + fqdn google.com diff --git a/tests/cisco_asa/show_running-config_object_network/cisco_asa_show_running-config_object_network.yml b/tests/cisco_asa/show_running-config_object_network/cisco_asa_show_running-config_object_network.yml index f96f3cdcb6..e6d371fba1 100644 --- a/tests/cisco_asa/show_running-config_object_network/cisco_asa_show_running-config_object_network.yml +++ b/tests/cisco_asa/show_running-config_object_network/cisco_asa_show_running-config_object_network.yml @@ -1,6 +1,7 @@ --- parsed_sample: - description: "" + fqdn: "" end_ip: "" host: "" name: "corp" @@ -10,6 +11,7 @@ parsed_sample: start_ip: "" type: "subnet" - description: "" + fqdn: "" end_ip: "" host: "" name: "internal" @@ -19,15 +21,7 @@ parsed_sample: start_ip: "" type: "subnet" - description: "" - end_ip: "" - host: "" - name: "any" - netmask: "0.0.0.0" - network: "0.0.0.0" - prefix_length: "" - start_ip: "" - type: "subnet" - - description: "" + fqdn: "" end_ip: "" host: "10.10.11.1" name: "host-10.10.11.1" @@ -37,6 +31,7 @@ parsed_sample: start_ip: "" type: "host" - description: "" + fqdn: "" end_ip: "" host: "10.75.51.11" name: "block" @@ -46,6 +41,7 @@ parsed_sample: start_ip: "" type: "host" - description: "dmz GW ip" + fqdn: "" end_ip: "" host: "11.1.2.2" name: "dmz" @@ -55,6 +51,7 @@ parsed_sample: start_ip: "" type: "host" - description: "" + fqdn: "" end_ip: "" host: "10.1.11.8" name: "server-vip" @@ -64,6 +61,7 @@ parsed_sample: start_ip: "" type: "host" - description: "" + fqdn: "" end_ip: "10.10.10.60" host: "" name: "visitors" @@ -73,6 +71,7 @@ parsed_sample: start_ip: "10.10.10.4" type: "range" - description: "" + fqdn: "" end_ip: "10.75.51.100" host: "" name: "contractor" @@ -82,6 +81,7 @@ parsed_sample: start_ip: "10.75.51.15" type: "range" - description: "" + fqdn: "" end_ip: "" host: "2606:4700:4700::1111" name: "cloudflare-ipv6-dns-primary" @@ -91,6 +91,7 @@ parsed_sample: start_ip: "" type: "host" - description: "" + fqdn: "" end_ip: "" host: "2001:4860:4860::8888" name: "google-ipv6-dns-primary" @@ -100,6 +101,7 @@ parsed_sample: start_ip: "" type: "host" - description: "" + fqdn: "" end_ip: "fd00::ffff" host: "" name: "internal-ipv6-range" @@ -109,6 +111,7 @@ parsed_sample: start_ip: "fd00::" type: "range" - description: "" + fqdn: "" end_ip: "" host: "" name: "internal-ipv6-subnet" @@ -117,3 +120,13 @@ parsed_sample: prefix_length: "8" start_ip: "" type: "subnet" + - description: "" + fqdn: "google.com" + end_ip: "" + host: "" + name: "fqdn_test" + netmask: "" + network: "" + prefix_length: "" + start_ip: "" + type: "fqdn" From 718d6b5692a1a09607c79309aaa19feb69b00b12 Mon Sep 17 00:00:00 2001 From: Michael Bear <38406045+mjbear@users.noreply.github.com> Date: Tue, 23 Jul 2024 13:19:08 -0400 Subject: [PATCH 51/60] add line to support Cisco CUST-SPECIAL builds in cisco_ios show version (#1781) --- .../templates/cisco_ios_show_version.textfsm | 2 + .../cisco_ios_show_version_01.yml | 28 +++--- .../cisco_ios_show_version_special_build.raw | 98 +++++++++++++++++++ .../cisco_ios_show_version_special_build.yml | 26 +++++ 4 files changed, 140 insertions(+), 14 deletions(-) create mode 100644 tests/cisco_ios/show_version/cisco_ios_show_version_special_build.raw create mode 100644 tests/cisco_ios/show_version/cisco_ios_show_version_special_build.yml diff --git a/ntc_templates/templates/cisco_ios_show_version.textfsm b/ntc_templates/templates/cisco_ios_show_version.textfsm index 56086855d3..9380fd0d71 100644 --- a/ntc_templates/templates/cisco_ios_show_version.textfsm +++ b/ntc_templates/templates/cisco_ios_show_version.textfsm @@ -19,6 +19,8 @@ Value RESTARTED (.+) Start ^.*Software,*\s+\(${SOFTWARE_IMAGE}\),\sVersion\s${VERSION},*\s+RELEASE.*\(${RELEASE}\) + # CUST-SPECIAL: + ^.*Software,*\s+\(${SOFTWARE_IMAGE}\),\sVersion\s${VERSION},*\s+\S+.*:${RELEASE} ^.*Software,*\s+\(${SOFTWARE_IMAGE}\),\sVersion\s${VERSION}, ^ROM:\s+${ROMMON} ^\s*${HOSTNAME}\s+uptime\s+is\s+${UPTIME} -> Continue diff --git a/tests/cisco_ios/show_version/cisco_ios_show_version_01.yml b/tests/cisco_ios/show_version/cisco_ios_show_version_01.yml index df63c9aba6..3732946f76 100644 --- a/tests/cisco_ios/show_version/cisco_ios_show_version_01.yml +++ b/tests/cisco_ios/show_version/cisco_ios_show_version_01.yml @@ -1,22 +1,22 @@ --- parsed_sample: - - software_image: "C180X-ADVIPSERVICESK9-M" - version: "12.4(6)T2" + - config_register: "0x2102" + hardware: + - "1801" + hostname: "stud-adsl" + mac_address: [] release: "fc1" + reload_reason: "Reload Command" + restarted: "16:39:55 AEST Wed Jul 20 2022" rommon: "System" - hostname: "stud-adsl" + running_image: "/c180x-advipservicesk9-mz.124-6.T2.bin" + serial: + - "FHK102KKKKK" + software_image: "C180X-ADVIPSERVICESK9-M" uptime: "20 weeks, 5 days, 12 hours, 15 minutes" - uptime_years: "" - uptime_weeks: "20" uptime_days: "5" uptime_hours: "12" uptime_minutes: "15" - reload_reason: "Reload Command" - running_image: "/c180x-advipservicesk9-mz.124-6.T2.bin" - hardware: - - "1801" - serial: - - "FHK102KKKKK" - config_register: "0x2102" - mac_address: [] - restarted: "16:39:55 AEST Wed Jul 20 2022" + uptime_weeks: "20" + uptime_years: "" + version: "12.4(6)T2" diff --git a/tests/cisco_ios/show_version/cisco_ios_show_version_special_build.raw b/tests/cisco_ios/show_version/cisco_ios_show_version_special_build.raw new file mode 100644 index 0000000000..526dce57f3 --- /dev/null +++ b/tests/cisco_ios/show_version/cisco_ios_show_version_special_build.raw @@ -0,0 +1,98 @@ +Cisco IOS XE Software, Version V169_5_SR689355441_2 +Cisco IOS Software [Fuji], ISR Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 16.9.5, CUST-SPECIAL:V169_5_SR689355441_2 +This software is supported for a limited time under special agreement with Cisco Systems, Inc. SR689355441_2 +Copyright (c) 1986-2020 by Cisco Systems, Inc. +Compiled Thu 17-Sep-20 16:00 by mcpre + +Cisco IOS-XE software, Copyright (c) 2005-2019 by cisco Systems, Inc. +All rights reserved. Certain components of Cisco IOS-XE software are +licensed under the GNU General Public License ("GPL") Version 2.0. The +software code licensed under GPL Version 2.0 is free software that comes +with ABSOLUTELY NO WARRANTY. You can redistribute and/or modify such +GPL code under the terms of GPL Version 2.0. For more details, see the +documentation or "License Notice" file accompanying the IOS-XE software, +or the applicable URL provided on the flyer accompanying the IOS-XE +software. + + +ROM: IOS-XE ROMMON +BOOTLDR: System Bootstrap, Version 16.9.1r [FC2], RELEASE SOFTWARE (P) + +AKBTESTW01 uptime is 1 year, 22 weeks, 6 days, 9 hours, 38 minutes +Uptime for this control processor is 1 year, 22 weeks, 6 days, 9 hours, 44 minutes +System returned to ROM by Reload Command at 22:09:11 NZST Wed May 1 2019 +System restarted at 22:16:13 NZST Wed May 1 2019 +System image file is "flash:packages.conf" +Last reload reason: Reload Command + + + +This product contains cryptographic features and is subject to United +States and local country laws governing import, export, transfer and +use. Delivery of Cisco cryptographic products does not imply +third-party authority to import, export, distribute or use encryption. +Importers, exporters, distributors and users are responsible for +compliance with U.S. and local country laws. By using this product you +agree to comply with applicable laws and regulations. If you are unable +to comply with U.S. and local laws, return this product immediately. + +A summary of U.S. laws governing Cisco cryptographic products may be found at: +http://www.cisco.com/wwl/export/crypto/tool/stqrg.html + +If you require further assistance please contact us by sending email to +export@cisco.com. + + +Technology Package License Information: + +------------------------------------------------------------------------------ +Technology-package Technology-package +Current Type Next reboot +------------------------------------------------------------------------------ +network-advantage Smart License network-advantage +dna-advantage Subscription Smart License dna-advantage + + +Smart Licensing Status: UNREGISTERED/EVAL EXPIRED + +cisco C9500-40X (X86) processor with 1419496K/6147K bytes of memory. +Processor board ID FCW2233FFG3 +16 Virtual Ethernet interfaces +96 Ten Gigabit Ethernet interfaces +4 Forty Gigabit Ethernet interfaces +2048K bytes of non-volatile configuration memory. +16777216K bytes of physical memory. +1638400K bytes of Crash Files at crashinfo:. +1638400K bytes of Crash Files at crashinfo-2:. +11264000K bytes of Flash at flash:. +11264000K bytes of Flash at flash-2:. +0K bytes of WebUI ODM Files at webui:. + +Base Ethernet MAC Address : 0c:d0:f8:cd:b5:80 +Motherboard Assembly Number : 73-18140-03 +Motherboard Serial Number : FOC223855F9 +Model Revision Number : D0 +Motherboard Revision Number : B0 +Model Number : C9500-40X +System Serial Number : FCW2233FFG3 + + +Switch Ports Model SW Version SW Image Mode +------ ----- ----- ---------- ---------- ---- +* 1 50 C9500-40X 16.9.5 CAT9K_IOSXE INSTALL + 2 50 C9500-40X 16.9.5 CAT9K_IOSXE INSTALL + + +Switch 02 +--------- +Switch uptime : 1 year, 22 weeks, 6 days, 9 hours, 47 minutes + +Base Ethernet MAC Address : 70:35:09:dd:20:00 +Motherboard Assembly Number : 73-11122-03 +Motherboard Serial Number : FOC234567Y9 +Model Revision Number : D0 +Motherboard Revision Number : B0 +Model Number : C9500-40X +System Serial Number : FCW1234F88V + +Configuration register is 0x102 diff --git a/tests/cisco_ios/show_version/cisco_ios_show_version_special_build.yml b/tests/cisco_ios/show_version/cisco_ios_show_version_special_build.yml new file mode 100644 index 0000000000..82fb6f7aad --- /dev/null +++ b/tests/cisco_ios/show_version/cisco_ios_show_version_special_build.yml @@ -0,0 +1,26 @@ +--- +parsed_sample: + - config_register: "0x102" + hardware: + - "C9500-40X" + - "C9500-40X" + hostname: "AKBTESTW01" + mac_address: + - "0c:d0:f8:cd:b5:80" + - "70:35:09:dd:20:00" + release: "V169_5_SR689355441_2" + reload_reason: "Reload Command" + restarted: "22:16:13 NZST Wed May 1 2019" + rommon: "IOS-XE" + running_image: "packages.conf" + serial: + - "FCW2233FFG3" + - "FCW1234F88V" + software_image: "X86_64_LINUX_IOSD-UNIVERSALK9-M" + uptime: "1 year, 22 weeks, 6 days, 9 hours, 38 minutes" + uptime_days: "6" + uptime_hours: "9" + uptime_minutes: "38" + uptime_weeks: "22" + uptime_years: "1" + version: "16.9.5" From 46ce5b40fa8190115b132b430b65a3df4c146c40 Mon Sep 17 00:00:00 2001 From: Michael Bear <38406045+mjbear@users.noreply.github.com> Date: Tue, 23 Jul 2024 20:07:30 -0400 Subject: [PATCH 52/60] arista eos enhancement - support parsing of more dir file system output (issue946) (#1780) * arista_eos dir - preliminary testing to support more than just flash * adjust index to support other arista_eos dir file systems * support '' in arista_eos dir output * support 'no space info' and 'no files' in output for file systems * add state transition for initial support of arista_eos 'dir /recursive' * add arista_eos dir test data for other file systems * support dir /recursive when file systems have 'no files' * rename, move files, update index (dir_flash becomes just dir) * Add capturing of lone directory line * add message to Error action --------- Co-authored-by: Jacob --- .../templates/arista_eos_dir.textfsm | 37 ++ .../templates/arista_eos_dir_flash.textfsm | 19 - ntc_templates/templates/index | 2 +- .../dir/arista_eos_dir_extension_no_files.raw | 5 + .../dir/arista_eos_dir_extension_no_files.yml | 9 + .../arista_eos_dir_flash.raw | 0 .../arista_eos_dir_flash.yml | 88 ++--- .../dir/arista_eos_dir_recur_all.raw | 89 +++++ .../dir/arista_eos_dir_recur_all.yml | 359 ++++++++++++++++++ .../dir/arista_eos_dir_system_nodate.raw | 5 + .../dir/arista_eos_dir_system_nodate.yml | 9 + 11 files changed, 558 insertions(+), 64 deletions(-) create mode 100644 ntc_templates/templates/arista_eos_dir.textfsm delete mode 100644 ntc_templates/templates/arista_eos_dir_flash.textfsm create mode 100644 tests/arista_eos/dir/arista_eos_dir_extension_no_files.raw create mode 100644 tests/arista_eos/dir/arista_eos_dir_extension_no_files.yml rename tests/arista_eos/{dir_flash => dir}/arista_eos_dir_flash.raw (100%) rename tests/arista_eos/{dir_flash => dir}/arista_eos_dir_flash.yml (68%) create mode 100644 tests/arista_eos/dir/arista_eos_dir_recur_all.raw create mode 100644 tests/arista_eos/dir/arista_eos_dir_recur_all.yml create mode 100644 tests/arista_eos/dir/arista_eos_dir_system_nodate.raw create mode 100644 tests/arista_eos/dir/arista_eos_dir_system_nodate.yml diff --git a/ntc_templates/templates/arista_eos_dir.textfsm b/ntc_templates/templates/arista_eos_dir.textfsm new file mode 100644 index 0000000000..972a33842f --- /dev/null +++ b/ntc_templates/templates/arista_eos_dir.textfsm @@ -0,0 +1,37 @@ +Value Filldown FILE_SYSTEM (\S+) +Value PERMISSIONS (\S+) +Value SIZE (\d+) +Value DATE_TIME (\S+\s+\d+\s+((\d+)|(\d+:\d+))|\) +Value NAME (\S+) +Value Fillup TOTAL_SIZE (\d+) +Value Fillup TOTAL_FREE (\d+) + +Start + ^Directory\s+of\s+${FILE_SYSTEM} -> Dispatcher + ^\s*$$ + ^. -> Error "LINE NOT FOUND" + +Dispatcher + ^\s+${PERMISSIONS}\s+${SIZE}\s+${DATE_TIME}\s+${NAME} -> Record Files + ^Directory\s+of -> Continue.Record + ^Directory\s+of\s+${FILE_SYSTEM} + ^No\s+files -> NoFiles + ^\s*$$ + ^\. -> Error "LINE NOT FOUND" + +Files + ^\s+${PERMISSIONS}\s+${SIZE}\s+${DATE_TIME}\s+${NAME} -> Record + ^${TOTAL_SIZE}\s+\S+\s+\S+\s+\(${TOTAL_FREE}\s+\S+\s+\S+\) -> Start + ^Directory\s+of\s+${FILE_SYSTEM} -> Dispatcher + ^No\s+space\s+information -> Start + ^\s*$$ + ^. -> Error "LINE NOT FOUND" + +NoFiles + ^${TOTAL_SIZE}\s+\S+\s+\S+\s+\(${TOTAL_FREE}\s+\S+\s+\S+\) -> Record Start + ^Directory\s+of -> Continue.Record + ^Directory\s+of\s+${FILE_SYSTEM} -> Dispatcher + ^\s*$$ + ^\. -> Error "LINE NOT FOUND" + +EOF diff --git a/ntc_templates/templates/arista_eos_dir_flash.textfsm b/ntc_templates/templates/arista_eos_dir_flash.textfsm deleted file mode 100644 index 2097c073e5..0000000000 --- a/ntc_templates/templates/arista_eos_dir_flash.textfsm +++ /dev/null @@ -1,19 +0,0 @@ -Value Filldown FILE_SYSTEM (\S+) -Value PERMISSIONS (\S+) -Value SIZE (\d+) -Value DATE_TIME (\S+\s+\d+\s+((\d+)|(\d+:\d+))) -Value NAME (\S+) -Value Fillup TOTAL_SIZE (\d+) -Value Fillup TOTAL_FREE (\d+) - -Start - ^Directory of\s+${FILE_SYSTEM} -> DIR - -DIR - ^\s+${PERMISSIONS}\s+${SIZE}\s+${DATE_TIME}\s+${NAME} -> Record - ^${TOTAL_SIZE}\s+\S+\s+\S+\s+\(${TOTAL_FREE}\s+\S+\s+\S+\) - ^\s+$$ - ^$$ - ^.* -> Error "LINE NOT FOUND" - -EOF diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 68606ab21a..c165bac552 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -87,10 +87,10 @@ arista_eos_show_ip_bgp.textfsm, .*, arista_eos, sh[[ow]] i[[p]] bg[[p]] arista_eos_show_module.textfsm, .*, arista_eos, sh[[ow]] modu[[le]] arista_eos_bash_df_-h.textfsm, .*, arista_eos, bas[[h]] d[[f]] [[-h]] arista_eos_show_clock.textfsm, .*, arista_eos, sh[[ow]] clo[[ck]] -arista_eos_dir_flash.textfsm, .*, arista_eos, dir fl[[ash:]] arista_eos_show_mlag.textfsm, .*, arista_eos, sh[[ow]] ml[[ag]] arista_eos_show_vlan.textfsm, .*, arista_eos, sh[[ow]] vl[[an]] arista_eos_show_vrf.textfsm, .*, arista_eos, sh[[ow]] vrf +arista_eos_dir.textfsm, .*, arista_eos, dir aruba_aoscx_show_aaa_authentication_port-access_interface_all_client-status.textfsm , .*, aruba_aoscx, sh[[ow]] aa[[a]] authe[[ntication]] port-access interface all client-status aruba_aoscx_show_lldp_neighbors-info_detail.textfsm, .*, aruba_aoscx, sh[[ow]] ll[[dp]] nei[[ghbor]]s?[[-info]] d[[etail]] diff --git a/tests/arista_eos/dir/arista_eos_dir_extension_no_files.raw b/tests/arista_eos/dir/arista_eos_dir_extension_no_files.raw new file mode 100644 index 0000000000..e270952e70 --- /dev/null +++ b/tests/arista_eos/dir/arista_eos_dir_extension_no_files.raw @@ -0,0 +1,5 @@ +Directory of extension:/ + +No files in directory + +4093313024 bytes total (3029774336 bytes free) diff --git a/tests/arista_eos/dir/arista_eos_dir_extension_no_files.yml b/tests/arista_eos/dir/arista_eos_dir_extension_no_files.yml new file mode 100644 index 0000000000..b1d5abf8bb --- /dev/null +++ b/tests/arista_eos/dir/arista_eos_dir_extension_no_files.yml @@ -0,0 +1,9 @@ +--- +parsed_sample: + - date_time: "" + file_system: "extension:/" + name: "" + permissions: "" + size: "" + total_free: "3029774336" + total_size: "4093313024" diff --git a/tests/arista_eos/dir_flash/arista_eos_dir_flash.raw b/tests/arista_eos/dir/arista_eos_dir_flash.raw similarity index 100% rename from tests/arista_eos/dir_flash/arista_eos_dir_flash.raw rename to tests/arista_eos/dir/arista_eos_dir_flash.raw diff --git a/tests/arista_eos/dir_flash/arista_eos_dir_flash.yml b/tests/arista_eos/dir/arista_eos_dir_flash.yml similarity index 68% rename from tests/arista_eos/dir_flash/arista_eos_dir_flash.yml rename to tests/arista_eos/dir/arista_eos_dir_flash.yml index ec41e651fc..7a3be2010c 100644 --- a/tests/arista_eos/dir_flash/arista_eos_dir_flash.yml +++ b/tests/arista_eos/dir/arista_eos_dir_flash.yml @@ -1,79 +1,79 @@ --- parsed_sample: - - file_system: "flash:/" + - date_time: "Aug 2 2017" + file_system: "flash:/" + name: "EOS-4.18.3.1F.swi" permissions: "-rwx" size: "591941836" - date_time: "Aug 2 2017" - name: "EOS-4.18.3.1F.swi" - total_size: "3519041536" total_free: "1725112320" - - file_system: "flash:/" + total_size: "3519041536" + - date_time: "Feb 14 02:03" + file_system: "flash:/" + name: "EOS-4.19.5M.swi" permissions: "-rwx" size: "609823300" - date_time: "Feb 14 02:03" - name: "EOS-4.19.5M.swi" - total_size: "3519041536" total_free: "1725112320" - - file_system: "flash:/" + total_size: "3519041536" + - date_time: "Aug 23 2017" + file_system: "flash:/" + name: "boot-config" permissions: "-rwx" size: "29" - date_time: "Aug 23 2017" - name: "boot-config" - total_size: "3519041536" total_free: "1725112320" - - file_system: "flash:/" + total_size: "3519041536" + - date_time: "Aug 23 2017" + file_system: "flash:/" + name: "debug" permissions: "drwx" size: "4096" - date_time: "Aug 23 2017" - name: "debug" - total_size: "3519041536" total_free: "1725112320" - - file_system: "flash:/" + total_size: "3519041536" + - date_time: "Apr 15 2017" + file_system: "flash:/" + name: "enable3px" permissions: "-rwx" size: "0" - date_time: "Apr 15 2017" - name: "enable3px" - total_size: "3519041536" total_free: "1725112320" - - file_system: "flash:/" + total_size: "3519041536" + - date_time: "Apr 15 2017" + file_system: "flash:/" + name: "enable3px.key" permissions: "-rwx" size: "19" - date_time: "Apr 15 2017" - name: "enable3px.key" - total_size: "3519041536" total_free: "1725112320" - - file_system: "flash:/" + total_size: "3519041536" + - date_time: "Apr 15 2017" + file_system: "flash:/" + name: "kickstart-config" permissions: "-rwx" size: "31" - date_time: "Apr 15 2017" - name: "kickstart-config" - total_size: "3519041536" total_free: "1725112320" - - file_system: "flash:/" + total_size: "3519041536" + - date_time: "Apr 3 10:29" + file_system: "flash:/" + name: "persist" permissions: "drwx" size: "4096" - date_time: "Apr 3 10:29" - name: "persist" - total_size: "3519041536" total_free: "1725112320" - - file_system: "flash:/" + total_size: "3519041536" + - date_time: "Apr 15 2017" + file_system: "flash:/" + name: "schedule" permissions: "drwx" size: "4096" - date_time: "Apr 15 2017" - name: "schedule" - total_size: "3519041536" total_free: "1725112320" - - file_system: "flash:/" + total_size: "3519041536" + - date_time: "Jan 18 22:46" + file_system: "flash:/" + name: "startup-config" permissions: "-rwx" size: "20530" - date_time: "Jan 18 22:46" - name: "startup-config" - total_size: "3519041536" total_free: "1725112320" - - file_system: "flash:/" + total_size: "3519041536" + - date_time: "Aug 23 2017" + file_system: "flash:/" + name: "zerotouch-config" permissions: "-rwx" size: "13" - date_time: "Aug 23 2017" - name: "zerotouch-config" - total_size: "3519041536" total_free: "1725112320" + total_size: "3519041536" diff --git a/tests/arista_eos/dir/arista_eos_dir_recur_all.raw b/tests/arista_eos/dir/arista_eos_dir_recur_all.raw new file mode 100644 index 0000000000..0839c7b349 --- /dev/null +++ b/tests/arista_eos/dir/arista_eos_dir_recur_all.raw @@ -0,0 +1,89 @@ +Directory of flash:/ + + -rw- 1465 Feb 28 07:12 .CloudInitLogs + -rw- 0 Sep 19 2022 .assetTags + -r-- 509379353 Sep 19 2022 .boot-image.swi + -rw- 250 Feb 28 07:13 .veos-config-internal + -rw- 250 Feb 28 06:56 .veos-config-internal.save + -rw- 1155 Feb 28 07:11 AsuFastPktTransmit.log + -rw- 710 Feb 28 07:11 SsuRestore.log + -rw- 710 Feb 28 07:11 SsuRestoreLegacy.log + -rw- 1186 Sep 19 2022 arista5-default.txt + -rw- 24 Apr 13 2022 boot-config + -rw- 1251 Jul 21 04:15 rollback-0 + -rw- 1418 Jul 21 04:15 startup-config + -rw- 509379353 Apr 13 2022 vEOS-lab.swi + -rw- 13 Sep 19 2022 zerotouch-config + +Directory of flash:/.checkpoints + + -rw- 1486 Jul 13 08:02 ckp-20240713-5 + -rw- 1416 Jul 15 10:17 ckp-20240715-0 + -rw- 1438 Jul 15 13:04 ckp-20240715-1 + -rw- 1508 Jul 15 13:05 ckp-20240715-2 + -rw- 1507 Jul 16 04:15 ckp-20240716-0 + -rw- 1416 Jul 17 08:52 ckp-20240717-0 + -rw- 1248 Jul 17 16:36 ckp-20240717-1 + -rw- 1275 Jul 17 16:36 ckp-20240717-2 + -rw- 1302 Jul 17 16:36 ckp-20240717-3 + -rw- 1329 Jul 17 16:36 ckp-20240717-4 + -rw- 1356 Jul 17 16:39 ckp-20240717-5 + -rw- 1248 Jul 17 17:33 ckp-20240717-6 + -rw- 1590 Jul 17 17:34 ckp-20240717-7 + -rw- 1248 Jul 17 21:34 ckp-20240717-8 + -rw- 1589 Jul 18 04:15 ckp-20240718-0 + -rw- 1416 Jul 20 06:32 ckp-20240720-0 + -rw- 1590 Jul 20 06:33 ckp-20240720-1 + -rw- 1248 Jul 20 06:36 ckp-20240720-2 + -rw- 1590 Jul 20 06:38 ckp-20240720-3 + -rw- 1247 Jul 21 04:15 ckp-20240721-0 + +Directory of flash:/.extensions + +No files in directory + +Directory of flash:/.managed-config + +No files in directory + +Directory of flash:/Fossil + +No files in directory + +Directory of flash:/debug + + -rw- 3600958 Jan 12 2023 pre_reload_logs.tgz + -rw- 89 Feb 28 07:13 reload_history + +Directory of flash:/debug/proc + + -r-- 1885 Feb 28 07:11 modules + +Directory of flash:/fastpkttx.backup + +No files in directory + +Directory of flash:/lost+found + +No files in directory + +Directory of flash:/persist + + -rw- 288 Feb 28 07:11 AsuEvent.log + -rw- 5120 Jul 23 02:15 local + -rw- 0 Jul 22 10:15 messages + -rw- 30720 Feb 28 07:13 secure + -rw- 5120 Jul 23 04:30 sys + +Directory of flash:/persist/persistentRestartLog + +No files in directory + +Directory of flash:/schedule + +Directory of flash:/schedule/tech-support + + -rw- 71734 Jul 19 00:47 arista5_tech-support_2024-07-19.0047.log.gz + -rw- 71774 Jul 19 01:47 arista5_tech-support_2024-07-19.0147.log.gz + +4093313024 bytes total (3029774336 bytes free) diff --git a/tests/arista_eos/dir/arista_eos_dir_recur_all.yml b/tests/arista_eos/dir/arista_eos_dir_recur_all.yml new file mode 100644 index 0000000000..a176593485 --- /dev/null +++ b/tests/arista_eos/dir/arista_eos_dir_recur_all.yml @@ -0,0 +1,359 @@ +--- +parsed_sample: + - date_time: "Feb 28 07:12" + file_system: "flash:/" + name: ".CloudInitLogs" + permissions: "-rw-" + size: "1465" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "Sep 19 2022" + file_system: "flash:/" + name: ".assetTags" + permissions: "-rw-" + size: "0" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "Sep 19 2022" + file_system: "flash:/" + name: ".boot-image.swi" + permissions: "-r--" + size: "509379353" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "Feb 28 07:13" + file_system: "flash:/" + name: ".veos-config-internal" + permissions: "-rw-" + size: "250" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "Feb 28 06:56" + file_system: "flash:/" + name: ".veos-config-internal.save" + permissions: "-rw-" + size: "250" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "Feb 28 07:11" + file_system: "flash:/" + name: "AsuFastPktTransmit.log" + permissions: "-rw-" + size: "1155" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "Feb 28 07:11" + file_system: "flash:/" + name: "SsuRestore.log" + permissions: "-rw-" + size: "710" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "Feb 28 07:11" + file_system: "flash:/" + name: "SsuRestoreLegacy.log" + permissions: "-rw-" + size: "710" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "Sep 19 2022" + file_system: "flash:/" + name: "arista5-default.txt" + permissions: "-rw-" + size: "1186" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "Apr 13 2022" + file_system: "flash:/" + name: "boot-config" + permissions: "-rw-" + size: "24" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "Jul 21 04:15" + file_system: "flash:/" + name: "rollback-0" + permissions: "-rw-" + size: "1251" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "Jul 21 04:15" + file_system: "flash:/" + name: "startup-config" + permissions: "-rw-" + size: "1418" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "Apr 13 2022" + file_system: "flash:/" + name: "vEOS-lab.swi" + permissions: "-rw-" + size: "509379353" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "Sep 19 2022" + file_system: "flash:/" + name: "zerotouch-config" + permissions: "-rw-" + size: "13" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "Jul 13 08:02" + file_system: "flash:/.checkpoints" + name: "ckp-20240713-5" + permissions: "-rw-" + size: "1486" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "Jul 15 10:17" + file_system: "flash:/.checkpoints" + name: "ckp-20240715-0" + permissions: "-rw-" + size: "1416" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "Jul 15 13:04" + file_system: "flash:/.checkpoints" + name: "ckp-20240715-1" + permissions: "-rw-" + size: "1438" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "Jul 15 13:05" + file_system: "flash:/.checkpoints" + name: "ckp-20240715-2" + permissions: "-rw-" + size: "1508" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "Jul 16 04:15" + file_system: "flash:/.checkpoints" + name: "ckp-20240716-0" + permissions: "-rw-" + size: "1507" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "Jul 17 08:52" + file_system: "flash:/.checkpoints" + name: "ckp-20240717-0" + permissions: "-rw-" + size: "1416" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "Jul 17 16:36" + file_system: "flash:/.checkpoints" + name: "ckp-20240717-1" + permissions: "-rw-" + size: "1248" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "Jul 17 16:36" + file_system: "flash:/.checkpoints" + name: "ckp-20240717-2" + permissions: "-rw-" + size: "1275" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "Jul 17 16:36" + file_system: "flash:/.checkpoints" + name: "ckp-20240717-3" + permissions: "-rw-" + size: "1302" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "Jul 17 16:36" + file_system: "flash:/.checkpoints" + name: "ckp-20240717-4" + permissions: "-rw-" + size: "1329" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "Jul 17 16:39" + file_system: "flash:/.checkpoints" + name: "ckp-20240717-5" + permissions: "-rw-" + size: "1356" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "Jul 17 17:33" + file_system: "flash:/.checkpoints" + name: "ckp-20240717-6" + permissions: "-rw-" + size: "1248" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "Jul 17 17:34" + file_system: "flash:/.checkpoints" + name: "ckp-20240717-7" + permissions: "-rw-" + size: "1590" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "Jul 17 21:34" + file_system: "flash:/.checkpoints" + name: "ckp-20240717-8" + permissions: "-rw-" + size: "1248" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "Jul 18 04:15" + file_system: "flash:/.checkpoints" + name: "ckp-20240718-0" + permissions: "-rw-" + size: "1589" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "Jul 20 06:32" + file_system: "flash:/.checkpoints" + name: "ckp-20240720-0" + permissions: "-rw-" + size: "1416" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "Jul 20 06:33" + file_system: "flash:/.checkpoints" + name: "ckp-20240720-1" + permissions: "-rw-" + size: "1590" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "Jul 20 06:36" + file_system: "flash:/.checkpoints" + name: "ckp-20240720-2" + permissions: "-rw-" + size: "1248" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "Jul 20 06:38" + file_system: "flash:/.checkpoints" + name: "ckp-20240720-3" + permissions: "-rw-" + size: "1590" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "Jul 21 04:15" + file_system: "flash:/.checkpoints" + name: "ckp-20240721-0" + permissions: "-rw-" + size: "1247" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "" + file_system: "flash:/.extensions" + name: "" + permissions: "" + size: "" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "" + file_system: "flash:/.managed-config" + name: "" + permissions: "" + size: "" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "" + file_system: "flash:/Fossil" + name: "" + permissions: "" + size: "" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "Jan 12 2023" + file_system: "flash:/debug" + name: "pre_reload_logs.tgz" + permissions: "-rw-" + size: "3600958" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "Feb 28 07:13" + file_system: "flash:/debug" + name: "reload_history" + permissions: "-rw-" + size: "89" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "Feb 28 07:11" + file_system: "flash:/debug/proc" + name: "modules" + permissions: "-r--" + size: "1885" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "" + file_system: "flash:/fastpkttx.backup" + name: "" + permissions: "" + size: "" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "" + file_system: "flash:/lost+found" + name: "" + permissions: "" + size: "" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "Feb 28 07:11" + file_system: "flash:/persist" + name: "AsuEvent.log" + permissions: "-rw-" + size: "288" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "Jul 23 02:15" + file_system: "flash:/persist" + name: "local" + permissions: "-rw-" + size: "5120" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "Jul 22 10:15" + file_system: "flash:/persist" + name: "messages" + permissions: "-rw-" + size: "0" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "Feb 28 07:13" + file_system: "flash:/persist" + name: "secure" + permissions: "-rw-" + size: "30720" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "Jul 23 04:30" + file_system: "flash:/persist" + name: "sys" + permissions: "-rw-" + size: "5120" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "" + file_system: "flash:/persist/persistentRestartLog" + name: "" + permissions: "" + size: "" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "" + file_system: "flash:/schedule" + name: "" + permissions: "" + size: "" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "Jul 19 00:47" + file_system: "flash:/schedule/tech-support" + name: "arista5_tech-support_2024-07-19.0047.log.gz" + permissions: "-rw-" + size: "71734" + total_free: "3029774336" + total_size: "4093313024" + - date_time: "Jul 19 01:47" + file_system: "flash:/schedule/tech-support" + name: "arista5_tech-support_2024-07-19.0147.log.gz" + permissions: "-rw-" + size: "71774" + total_free: "3029774336" + total_size: "4093313024" diff --git a/tests/arista_eos/dir/arista_eos_dir_system_nodate.raw b/tests/arista_eos/dir/arista_eos_dir_system_nodate.raw new file mode 100644 index 0000000000..e48591322f --- /dev/null +++ b/tests/arista_eos/dir/arista_eos_dir_system_nodate.raw @@ -0,0 +1,5 @@ +Directory of system:/ + + -rw- 1349 running-config + +No space information available diff --git a/tests/arista_eos/dir/arista_eos_dir_system_nodate.yml b/tests/arista_eos/dir/arista_eos_dir_system_nodate.yml new file mode 100644 index 0000000000..3f956b5084 --- /dev/null +++ b/tests/arista_eos/dir/arista_eos_dir_system_nodate.yml @@ -0,0 +1,9 @@ +--- +parsed_sample: + - date_time: "" + file_system: "system:/" + name: "running-config" + permissions: "-rw-" + size: "1349" + total_free: "" + total_size: "" From 56904eb2206a7dbad767e68e152a044e874b5849 Mon Sep 17 00:00:00 2001 From: Michael Bear <38406045+mjbear@users.noreply.github.com> Date: Tue, 23 Jul 2024 20:09:06 -0400 Subject: [PATCH 53/60] bugfix- hp_procurve show interface brief - issue1604 (#1782) * resolves 1604 - account for note line added to hp_procurve show interfaces brief * exclude asterisk from hp_procurve port name * remove asterisk from MODE capture group match --- .../hp_procurve_show_interfaces_brief.textfsm | 9 +- .../show_interfaces_brief.yml | 626 +++++++++--------- .../show_interfaces_brief_NA.yml | 290 ++++---- .../show_interfaces_brief_NA1.yml | 98 +-- .../show_interfaces_brief_bcast.yml | 290 ++++---- .../show_interfaces_brief_note.raw | 26 + .../show_interfaces_brief_note.yml | 155 +++++ 7 files changed, 838 insertions(+), 656 deletions(-) create mode 100644 tests/hp_procurve/show_interfaces_brief/show_interfaces_brief_note.raw create mode 100644 tests/hp_procurve/show_interfaces_brief/show_interfaces_brief_note.yml diff --git a/ntc_templates/templates/hp_procurve_show_interfaces_brief.textfsm b/ntc_templates/templates/hp_procurve_show_interfaces_brief.textfsm index 7ef9842acf..23ccc3f246 100644 --- a/ntc_templates/templates/hp_procurve_show_interfaces_brief.textfsm +++ b/ntc_templates/templates/hp_procurve_show_interfaces_brief.textfsm @@ -1,9 +1,9 @@ -Value PORT (\S+) +Value PORT ([a-zA-Z0-9\-]+) Value TYPE (\S*) Value INTRUSION_ALERT (Yes|No) Value ENABLED (Yes|No) Value STATUS (Up|Down) -Value MODE (\S*) +Value MODE ([a-zA-Z0-9\.]+) Value MDI_MODE (MDI\S*|Auto|NA) Value FLOW_CTRL (on|off) Value BCAST_LIMIT (\d+) @@ -11,20 +11,21 @@ Value BCAST_LIMIT (\d+) Start ^\s+Status.*Status\s* ^\s*$$ + ^\s*Note:\s*\*.*$$ ^\s+\|\s+Intrusion\s+MDI\s+Flow(?:\s+Bcast)?\s*$$ ^\s+Port\s+Type\s+\|\s+Alert\s+Enabled\s+Status\s+Mode\s+Mode\s+Ctrl\s*$$ -> showintbrief1 ^\s+Port\s+Type\s+\|\s+Alert\s+Enabled\s+Status\s+Mode\s+Mode\s+Ctrl\s+Limit\s*$$ -> showintbrief2 ^. -> Error showintbrief1 - ^\s+${PORT}\s+${TYPE}\s+\|\s+${INTRUSION_ALERT}\s+${ENABLED}\s+${STATUS}\s+${MODE}\s+(?:${MDI_MODE}\s+)?${FLOW_CTRL}\s*$$ -> Record + ^\s+${PORT}\*?\s+${TYPE}\s+\|\s+${INTRUSION_ALERT}\s+${ENABLED}\s+${STATUS}\s+${MODE}?\*?\s+(?:${MDI_MODE}\s+)?${FLOW_CTRL}\s*$$ -> Record ^\s*-+(?:\s|-|\+)+$$ ^\s*\*\s+third-party.*$$ ^\s*$$ ^. -> Error showintbrief2 - ^\s+${PORT}\s+${TYPE}\s+\|\s+${INTRUSION_ALERT}\s+${ENABLED}\s+${STATUS}\s+${MODE}\s+(?:${MDI_MODE}\s+)?${FLOW_CTRL}\s+${BCAST_LIMIT}\s*$$ -> Record + ^\s+${PORT}\*?\s+${TYPE}\s+\|\s+${INTRUSION_ALERT}\s+${ENABLED}\s+${STATUS}\s+${MODE}?\*?\s+(?:${MDI_MODE}\s+)?${FLOW_CTRL}\s+${BCAST_LIMIT}\s*$$ -> Record ^\s*-+(?:\s|-|\+)+$$ ^\s*\*\s+third-party.*$$ ^\s*$$ diff --git a/tests/hp_procurve/show_interfaces_brief/show_interfaces_brief.yml b/tests/hp_procurve/show_interfaces_brief/show_interfaces_brief.yml index d45a30e66a..ff82853f33 100644 --- a/tests/hp_procurve/show_interfaces_brief/show_interfaces_brief.yml +++ b/tests/hp_procurve/show_interfaces_brief/show_interfaces_brief.yml @@ -1,470 +1,470 @@ --- parsed_sample: - - port: "1" - type: "10/100TX" - intrusion_alert: "No" + - bcast_limit: "" enabled: "Yes" - status: "Up" - mode: "100FDx" - mdi_mode: "MDIX" flow_ctrl: "off" - bcast_limit: "" - - port: "2" - type: "10/100TX" intrusion_alert: "No" + mdi_mode: "MDIX" + mode: "100FDx" + port: "1" + status: "Up" + type: "10/100TX" + - bcast_limit: "" enabled: "Yes" - status: "Down" - mode: "10FDx" - mdi_mode: "MDI" flow_ctrl: "off" - bcast_limit: "" - - port: "3" + intrusion_alert: "No" + mdi_mode: "MDI" + mode: "10FDx" + port: "2" + status: "Down" type: "10/100TX" - intrusion_alert: "Yes" + - bcast_limit: "" enabled: "Yes" - status: "Down" - mode: "10FDx" - mdi_mode: "MDI" flow_ctrl: "off" - bcast_limit: "" - - port: "4" + intrusion_alert: "Yes" + mdi_mode: "MDI" + mode: "10FDx" + port: "3" + status: "Down" type: "10/100TX" - intrusion_alert: "No" + - bcast_limit: "" enabled: "Yes" - status: "Down" - mode: "10FDx" - mdi_mode: "MDIX" flow_ctrl: "off" - bcast_limit: "" - - port: "5" - type: "10/100TX" intrusion_alert: "No" - enabled: "No" - status: "Down" + mdi_mode: "MDIX" mode: "10FDx" - mdi_mode: "MDI" - flow_ctrl: "off" - bcast_limit: "" - - port: "6" + port: "4" + status: "Down" type: "10/100TX" + - bcast_limit: "" + enabled: "No" + flow_ctrl: "off" intrusion_alert: "No" - enabled: "Yes" - status: "Down" - mode: "10FDx" mdi_mode: "MDI" - flow_ctrl: "on" - bcast_limit: "" - - port: "7" + mode: "10FDx" + port: "5" + status: "Down" type: "10/100TX" - intrusion_alert: "No" + - bcast_limit: "" enabled: "Yes" - status: "Down" - mode: "10FDx" + flow_ctrl: "on" + intrusion_alert: "No" mdi_mode: "MDI" - flow_ctrl: "off" - bcast_limit: "" - - port: "8" + mode: "10FDx" + port: "6" + status: "Down" type: "10/100TX" - intrusion_alert: "No" + - bcast_limit: "" enabled: "Yes" - status: "Down" - mode: "10FDx" - mdi_mode: "MDI" flow_ctrl: "off" - bcast_limit: "" - - port: "9" - type: "10/100TX" intrusion_alert: "No" - enabled: "Yes" - status: "Down" + mdi_mode: "MDI" mode: "10FDx" - mdi_mode: "MDIX" - flow_ctrl: "off" - bcast_limit: "" - - port: "10" + port: "7" + status: "Down" type: "10/100TX" - intrusion_alert: "No" + - bcast_limit: "" enabled: "Yes" - status: "Down" - mode: "10FDx" - mdi_mode: "MDIX" flow_ctrl: "off" - bcast_limit: "" - - port: "11" - type: "10/100TX" intrusion_alert: "No" - enabled: "Yes" - status: "Down" - mode: "10FDx" mdi_mode: "MDI" - flow_ctrl: "off" - bcast_limit: "" - - port: "12" + mode: "10FDx" + port: "8" + status: "Down" type: "10/100TX" - intrusion_alert: "No" + - bcast_limit: "" enabled: "Yes" - status: "Down" - mode: "10FDx" - mdi_mode: "MDI" flow_ctrl: "off" - bcast_limit: "" - - port: "13" - type: "10/100TX" intrusion_alert: "No" - enabled: "Yes" - status: "Down" - mode: "10FDx" mdi_mode: "MDIX" - flow_ctrl: "off" - bcast_limit: "" - - port: "14" + mode: "10FDx" + port: "9" + status: "Down" type: "10/100TX" - intrusion_alert: "No" + - bcast_limit: "" enabled: "Yes" - status: "Down" - mode: "10FDx" - mdi_mode: "MDI" flow_ctrl: "off" - bcast_limit: "" - - port: "15" - type: "10/100TX" intrusion_alert: "No" - enabled: "Yes" - status: "Down" - mode: "10FDx" mdi_mode: "MDIX" - flow_ctrl: "off" - bcast_limit: "" - - port: "16" + mode: "10FDx" + port: "10" + status: "Down" type: "10/100TX" - intrusion_alert: "No" + - bcast_limit: "" enabled: "Yes" - status: "Down" - mode: "10FDx" - mdi_mode: "MDIX" flow_ctrl: "off" - bcast_limit: "" - - port: "17" - type: "10/100TX" intrusion_alert: "No" - enabled: "Yes" - status: "Down" - mode: "10FDx" mdi_mode: "MDI" - flow_ctrl: "off" - bcast_limit: "" - - port: "18" + mode: "10FDx" + port: "11" + status: "Down" type: "10/100TX" - intrusion_alert: "No" + - bcast_limit: "" enabled: "Yes" - status: "Down" - mode: "10FDx" - mdi_mode: "MDI" flow_ctrl: "off" - bcast_limit: "" - - port: "19" - type: "10/100TX" intrusion_alert: "No" - enabled: "Yes" - status: "Down" - mode: "10FDx" mdi_mode: "MDI" - flow_ctrl: "off" - bcast_limit: "" - - port: "20" + mode: "10FDx" + port: "12" + status: "Down" type: "10/100TX" - intrusion_alert: "No" + - bcast_limit: "" enabled: "Yes" - status: "Down" - mode: "10FDx" - mdi_mode: "MDI" flow_ctrl: "off" - bcast_limit: "" - - port: "21" - type: "10/100TX" intrusion_alert: "No" - enabled: "Yes" - status: "Down" - mode: "10FDx" mdi_mode: "MDIX" - flow_ctrl: "off" - bcast_limit: "" - - port: "22" + mode: "10FDx" + port: "13" + status: "Down" type: "10/100TX" - intrusion_alert: "No" + - bcast_limit: "" enabled: "Yes" - status: "Down" - mode: "10FDx" - mdi_mode: "MDIX" flow_ctrl: "off" - bcast_limit: "" - - port: "23" - type: "10/100TX" intrusion_alert: "No" - enabled: "Yes" - status: "Down" - mode: "10FDx" mdi_mode: "MDI" - flow_ctrl: "off" - bcast_limit: "" - - port: "24" + mode: "10FDx" + port: "14" + status: "Down" type: "10/100TX" - intrusion_alert: "No" + - bcast_limit: "" enabled: "Yes" - status: "Down" - mode: "10FDx" - mdi_mode: "MDIX" flow_ctrl: "off" - bcast_limit: "" - - port: "25" - type: "10/100TX" intrusion_alert: "No" - enabled: "Yes" - status: "Down" + mdi_mode: "MDIX" mode: "10FDx" - mdi_mode: "MDI" - flow_ctrl: "off" - bcast_limit: "" - - port: "26" + port: "15" + status: "Down" type: "10/100TX" - intrusion_alert: "No" + - bcast_limit: "" enabled: "Yes" - status: "Down" - mode: "10FDx" - mdi_mode: "MDI" flow_ctrl: "off" - bcast_limit: "" - - port: "27" - type: "10/100TX" intrusion_alert: "No" - enabled: "Yes" - status: "Down" + mdi_mode: "MDIX" mode: "10FDx" - mdi_mode: "MDI" - flow_ctrl: "off" - bcast_limit: "" - - port: "28" + port: "16" + status: "Down" type: "10/100TX" - intrusion_alert: "No" + - bcast_limit: "" enabled: "Yes" - status: "Down" - mode: "10FDx" - mdi_mode: "MDIX" flow_ctrl: "off" - bcast_limit: "" - - port: "29" - type: "10/100TX" intrusion_alert: "No" - enabled: "Yes" - status: "Down" + mdi_mode: "MDI" mode: "10FDx" - mdi_mode: "MDIX" - flow_ctrl: "off" - bcast_limit: "" - - port: "30" + port: "17" + status: "Down" type: "10/100TX" - intrusion_alert: "No" + - bcast_limit: "" enabled: "Yes" - status: "Down" - mode: "10FDx" - mdi_mode: "MDI" flow_ctrl: "off" - bcast_limit: "" - - port: "31" - type: "10/100TX" intrusion_alert: "No" - enabled: "Yes" - status: "Down" - mode: "10FDx" mdi_mode: "MDI" - flow_ctrl: "off" - bcast_limit: "" - - port: "32" + mode: "10FDx" + port: "18" + status: "Down" type: "10/100TX" - intrusion_alert: "No" + - bcast_limit: "" enabled: "Yes" - status: "Down" - mode: "10FDx" - mdi_mode: "MDI" flow_ctrl: "off" - bcast_limit: "" - - port: "33" - type: "10/100TX" intrusion_alert: "No" - enabled: "Yes" - status: "Down" - mode: "10FDx" mdi_mode: "MDI" - flow_ctrl: "off" - bcast_limit: "" - - port: "34" + mode: "10FDx" + port: "19" + status: "Down" type: "10/100TX" - intrusion_alert: "No" + - bcast_limit: "" enabled: "Yes" - status: "Down" - mode: "10FDx" - mdi_mode: "MDIX" flow_ctrl: "off" - bcast_limit: "" - - port: "35" - type: "10/100TX" intrusion_alert: "No" - enabled: "Yes" - status: "Down" + mdi_mode: "MDI" mode: "10FDx" - mdi_mode: "MDIX" - flow_ctrl: "off" - bcast_limit: "" - - port: "36" + port: "20" + status: "Down" type: "10/100TX" - intrusion_alert: "No" + - bcast_limit: "" enabled: "Yes" - status: "Down" - mode: "10FDx" - mdi_mode: "MDI" flow_ctrl: "off" - bcast_limit: "" - - port: "37" - type: "10/100TX" intrusion_alert: "No" - enabled: "Yes" - status: "Down" + mdi_mode: "MDIX" mode: "10FDx" - mdi_mode: "MDI" - flow_ctrl: "off" - bcast_limit: "" - - port: "38" + port: "21" + status: "Down" type: "10/100TX" - intrusion_alert: "No" + - bcast_limit: "" enabled: "Yes" - status: "Down" - mode: "10FDx" - mdi_mode: "MDI" flow_ctrl: "off" - bcast_limit: "" - - port: "39" - type: "10/100TX" intrusion_alert: "No" - enabled: "Yes" - status: "Down" + mdi_mode: "MDIX" mode: "10FDx" - mdi_mode: "MDI" - flow_ctrl: "off" - bcast_limit: "" - - port: "40" + port: "22" + status: "Down" type: "10/100TX" - intrusion_alert: "No" + - bcast_limit: "" enabled: "Yes" - status: "Down" - mode: "10FDx" - mdi_mode: "MDIX" flow_ctrl: "off" - bcast_limit: "" - - port: "41" - type: "10/100TX" intrusion_alert: "No" - enabled: "Yes" - status: "Down" + mdi_mode: "MDI" mode: "10FDx" - mdi_mode: "MDIX" - flow_ctrl: "off" - bcast_limit: "" - - port: "42" + port: "23" + status: "Down" type: "10/100TX" - intrusion_alert: "No" + - bcast_limit: "" enabled: "Yes" - status: "Down" - mode: "10FDx" - mdi_mode: "MDI" flow_ctrl: "off" - bcast_limit: "" - - port: "43" - type: "10/100TX" intrusion_alert: "No" - enabled: "Yes" - status: "Down" - mode: "10FDx" mdi_mode: "MDIX" - flow_ctrl: "off" - bcast_limit: "" - - port: "44" + mode: "10FDx" + port: "24" + status: "Down" type: "10/100TX" - intrusion_alert: "No" + - bcast_limit: "" enabled: "Yes" - status: "Down" - mode: "10FDx" - mdi_mode: "MDI" flow_ctrl: "off" - bcast_limit: "" - - port: "45" + intrusion_alert: "No" + mdi_mode: "MDI" + mode: "10FDx" + port: "25" + status: "Down" type: "10/100TX" + - bcast_limit: "" + enabled: "Yes" + flow_ctrl: "off" intrusion_alert: "No" + mdi_mode: "MDI" + mode: "10FDx" + port: "26" + status: "Down" + type: "10/100TX" + - bcast_limit: "" enabled: "Yes" + flow_ctrl: "off" + intrusion_alert: "No" + mdi_mode: "MDI" + mode: "10FDx" + port: "27" status: "Down" + type: "10/100TX" + - bcast_limit: "" + enabled: "Yes" + flow_ctrl: "off" + intrusion_alert: "No" + mdi_mode: "MDIX" mode: "10FDx" + port: "28" + status: "Down" + type: "10/100TX" + - bcast_limit: "" + enabled: "Yes" + flow_ctrl: "off" + intrusion_alert: "No" mdi_mode: "MDIX" + mode: "10FDx" + port: "29" + status: "Down" + type: "10/100TX" + - bcast_limit: "" + enabled: "Yes" flow_ctrl: "off" - bcast_limit: "" - - port: "46" + intrusion_alert: "No" + mdi_mode: "MDI" + mode: "10FDx" + port: "30" + status: "Down" type: "10/100TX" + - bcast_limit: "" + enabled: "Yes" + flow_ctrl: "off" intrusion_alert: "No" + mdi_mode: "MDI" + mode: "10FDx" + port: "31" + status: "Down" + type: "10/100TX" + - bcast_limit: "" enabled: "Yes" + flow_ctrl: "off" + intrusion_alert: "No" + mdi_mode: "MDI" + mode: "10FDx" + port: "32" status: "Down" + type: "10/100TX" + - bcast_limit: "" + enabled: "Yes" + flow_ctrl: "off" + intrusion_alert: "No" + mdi_mode: "MDI" mode: "10FDx" - mdi_mode: "MDIX" + port: "33" + status: "Down" + type: "10/100TX" + - bcast_limit: "" + enabled: "Yes" flow_ctrl: "off" - bcast_limit: "" - - port: "47" + intrusion_alert: "No" + mdi_mode: "MDIX" + mode: "10FDx" + port: "34" + status: "Down" type: "10/100TX" + - bcast_limit: "" + enabled: "Yes" + flow_ctrl: "off" intrusion_alert: "No" + mdi_mode: "MDIX" + mode: "10FDx" + port: "35" + status: "Down" + type: "10/100TX" + - bcast_limit: "" enabled: "Yes" + flow_ctrl: "off" + intrusion_alert: "No" + mdi_mode: "MDI" + mode: "10FDx" + port: "36" status: "Down" + type: "10/100TX" + - bcast_limit: "" + enabled: "Yes" + flow_ctrl: "off" + intrusion_alert: "No" + mdi_mode: "MDI" mode: "10FDx" + port: "37" + status: "Down" + type: "10/100TX" + - bcast_limit: "" + enabled: "Yes" + flow_ctrl: "off" + intrusion_alert: "No" mdi_mode: "MDI" + mode: "10FDx" + port: "38" + status: "Down" + type: "10/100TX" + - bcast_limit: "" + enabled: "Yes" flow_ctrl: "off" - bcast_limit: "" - - port: "48" + intrusion_alert: "No" + mdi_mode: "MDI" + mode: "10FDx" + port: "39" + status: "Down" type: "10/100TX" + - bcast_limit: "" + enabled: "Yes" + flow_ctrl: "off" intrusion_alert: "No" + mdi_mode: "MDIX" + mode: "10FDx" + port: "40" + status: "Down" + type: "10/100TX" + - bcast_limit: "" enabled: "Yes" + flow_ctrl: "off" + intrusion_alert: "No" + mdi_mode: "MDIX" + mode: "10FDx" + port: "41" status: "Down" + type: "10/100TX" + - bcast_limit: "" + enabled: "Yes" + flow_ctrl: "off" + intrusion_alert: "No" + mdi_mode: "MDI" mode: "10FDx" - mdi_mode: "MDIX" + port: "42" + status: "Down" + type: "10/100TX" + - bcast_limit: "" + enabled: "Yes" flow_ctrl: "off" - bcast_limit: "" - - port: "49" - type: "100/1000T" intrusion_alert: "No" + mdi_mode: "MDIX" + mode: "10FDx" + port: "43" + status: "Down" + type: "10/100TX" + - bcast_limit: "" enabled: "Yes" + flow_ctrl: "off" + intrusion_alert: "No" + mdi_mode: "MDI" + mode: "10FDx" + port: "44" status: "Down" - mode: "1000FDx" - mdi_mode: "MDIX" + type: "10/100TX" + - bcast_limit: "" + enabled: "Yes" flow_ctrl: "off" - bcast_limit: "" - - port: "50" - type: "100/1000T" intrusion_alert: "No" + mdi_mode: "MDIX" + mode: "10FDx" + port: "45" + status: "Down" + type: "10/100TX" + - bcast_limit: "" enabled: "Yes" + flow_ctrl: "off" + intrusion_alert: "No" + mdi_mode: "MDIX" + mode: "10FDx" + port: "46" status: "Down" - mode: "1000FDx" - mdi_mode: "MDI" + type: "10/100TX" + - bcast_limit: "" + enabled: "Yes" flow_ctrl: "off" - bcast_limit: "" - - port: "51" - type: "" intrusion_alert: "No" + mdi_mode: "MDI" + mode: "10FDx" + port: "47" + status: "Down" + type: "10/100TX" + - bcast_limit: "" enabled: "Yes" + flow_ctrl: "off" + intrusion_alert: "No" + mdi_mode: "MDIX" + mode: "10FDx" + port: "48" status: "Down" - mode: "." - mdi_mode: "" + type: "10/100TX" + - bcast_limit: "" + enabled: "Yes" flow_ctrl: "off" - bcast_limit: "" - - port: "52" - type: "" intrusion_alert: "No" + mdi_mode: "MDIX" + mode: "1000FDx" + port: "49" + status: "Down" + type: "100/1000T" + - bcast_limit: "" enabled: "Yes" + flow_ctrl: "off" + intrusion_alert: "No" + mdi_mode: "MDI" + mode: "1000FDx" + port: "50" status: "Down" - mode: "." + type: "100/1000T" + - bcast_limit: "" + enabled: "Yes" + flow_ctrl: "off" + intrusion_alert: "No" mdi_mode: "" + mode: "." + port: "51" + status: "Down" + type: "" + - bcast_limit: "" + enabled: "Yes" flow_ctrl: "off" - bcast_limit: "" + intrusion_alert: "No" + mdi_mode: "" + mode: "." + port: "52" + status: "Down" + type: "" diff --git a/tests/hp_procurve/show_interfaces_brief/show_interfaces_brief_NA.yml b/tests/hp_procurve/show_interfaces_brief/show_interfaces_brief_NA.yml index f3e65097ed..692f08ce3c 100644 --- a/tests/hp_procurve/show_interfaces_brief/show_interfaces_brief_NA.yml +++ b/tests/hp_procurve/show_interfaces_brief/show_interfaces_brief_NA.yml @@ -1,218 +1,218 @@ --- parsed_sample: - - port: "1" - type: "100/1000T" - intrusion_alert: "No" + - bcast_limit: "0" enabled: "Yes" - status: "Up" - mode: "100FDx" - mdi_mode: "MDI" flow_ctrl: "off" - bcast_limit: "0" - - port: "2" - type: "100/1000T" intrusion_alert: "No" + mdi_mode: "MDI" + mode: "100FDx" + port: "1" + status: "Up" + type: "100/1000T" + - bcast_limit: "0" enabled: "Yes" - status: "Down" - mode: "1000FDx" - mdi_mode: "Auto" flow_ctrl: "off" - bcast_limit: "0" - - port: "3" - type: "100/1000T" intrusion_alert: "No" - enabled: "Yes" - status: "Down" - mode: "1000FDx" mdi_mode: "Auto" - flow_ctrl: "off" - bcast_limit: "0" - - port: "4" + mode: "1000FDx" + port: "2" + status: "Down" type: "100/1000T" - intrusion_alert: "No" + - bcast_limit: "0" enabled: "Yes" - status: "Down" - mode: "1000FDx" - mdi_mode: "Auto" flow_ctrl: "off" - bcast_limit: "0" - - port: "5" - type: "100/1000T" intrusion_alert: "No" - enabled: "Yes" - status: "Down" - mode: "1000FDx" mdi_mode: "Auto" - flow_ctrl: "off" - bcast_limit: "0" - - port: "6" + mode: "1000FDx" + port: "3" + status: "Down" type: "100/1000T" - intrusion_alert: "No" + - bcast_limit: "0" enabled: "Yes" - status: "Down" - mode: "1000FDx" - mdi_mode: "Auto" flow_ctrl: "off" - bcast_limit: "0" - - port: "7" - type: "100/1000T" intrusion_alert: "No" - enabled: "Yes" - status: "Down" - mode: "1000FDx" mdi_mode: "Auto" - flow_ctrl: "off" - bcast_limit: "0" - - port: "8" + mode: "1000FDx" + port: "4" + status: "Down" type: "100/1000T" - intrusion_alert: "No" + - bcast_limit: "0" enabled: "Yes" - status: "Down" - mode: "1000FDx" - mdi_mode: "Auto" flow_ctrl: "off" - bcast_limit: "0" - - port: "9" - type: "100/1000T" intrusion_alert: "No" - enabled: "Yes" - status: "Down" - mode: "1000FDx" mdi_mode: "Auto" - flow_ctrl: "off" - bcast_limit: "0" - - port: "10" + mode: "1000FDx" + port: "5" + status: "Down" type: "100/1000T" - intrusion_alert: "Yes" + - bcast_limit: "0" enabled: "Yes" - status: "Down" + flow_ctrl: "off" + intrusion_alert: "No" + mdi_mode: "Auto" mode: "1000FDx" - mdi_mode: "NA" - flow_ctrl: "on" - bcast_limit: "50" - - port: "11" + port: "6" + status: "Down" type: "100/1000T" - intrusion_alert: "No" + - bcast_limit: "0" enabled: "Yes" - status: "Down" - mode: "1000FDx" - mdi_mode: "Auto" flow_ctrl: "off" - bcast_limit: "0" - - port: "12" - type: "100/1000T" intrusion_alert: "No" - enabled: "Yes" - status: "Down" - mode: "1000FDx" mdi_mode: "Auto" - flow_ctrl: "off" - bcast_limit: "0" - - port: "13" + mode: "1000FDx" + port: "7" + status: "Down" type: "100/1000T" - intrusion_alert: "No" + - bcast_limit: "0" enabled: "Yes" - status: "Down" - mode: "1000FDx" - mdi_mode: "Auto" flow_ctrl: "off" - bcast_limit: "0" - - port: "14" - type: "100/1000T" intrusion_alert: "No" - enabled: "Yes" - status: "Down" - mode: "1000FDx" mdi_mode: "Auto" - flow_ctrl: "off" - bcast_limit: "0" - - port: "15" + mode: "1000FDx" + port: "8" + status: "Down" type: "100/1000T" - intrusion_alert: "No" + - bcast_limit: "0" enabled: "Yes" - status: "Down" - mode: "1000FDx" - mdi_mode: "Auto" flow_ctrl: "off" - bcast_limit: "0" - - port: "16" - type: "100/1000T" intrusion_alert: "No" - enabled: "Yes" - status: "Down" - mode: "1000FDx" mdi_mode: "Auto" - flow_ctrl: "off" - bcast_limit: "0" - - port: "17" + mode: "1000FDx" + port: "9" + status: "Down" type: "100/1000T" - intrusion_alert: "No" + - bcast_limit: "50" enabled: "Yes" - status: "Down" + flow_ctrl: "on" + intrusion_alert: "Yes" + mdi_mode: "NA" mode: "1000FDx" - mdi_mode: "Auto" - flow_ctrl: "off" - bcast_limit: "0" - - port: "18" + port: "10" + status: "Down" type: "100/1000T" - intrusion_alert: "No" + - bcast_limit: "0" enabled: "Yes" - status: "Down" - mode: "1000FDx" - mdi_mode: "Auto" flow_ctrl: "off" - bcast_limit: "0" - - port: "19" - type: "100/1000T" intrusion_alert: "No" - enabled: "Yes" - status: "Down" - mode: "1000FDx" mdi_mode: "Auto" - flow_ctrl: "off" - bcast_limit: "0" - - port: "20" + mode: "1000FDx" + port: "11" + status: "Down" type: "100/1000T" - intrusion_alert: "No" + - bcast_limit: "0" enabled: "Yes" - status: "Down" - mode: "1000FDx" - mdi_mode: "Auto" flow_ctrl: "off" - bcast_limit: "0" - - port: "21" - type: "100/1000T" intrusion_alert: "No" - enabled: "Yes" - status: "Down" - mode: "1000FDx" mdi_mode: "Auto" - flow_ctrl: "off" - bcast_limit: "0" - - port: "22" + mode: "1000FDx" + port: "12" + status: "Down" type: "100/1000T" - intrusion_alert: "No" + - bcast_limit: "0" enabled: "Yes" - status: "Down" + flow_ctrl: "off" + intrusion_alert: "No" + mdi_mode: "Auto" mode: "1000FDx" + port: "13" + status: "Down" + type: "100/1000T" + - bcast_limit: "0" + enabled: "Yes" + flow_ctrl: "off" + intrusion_alert: "No" mdi_mode: "Auto" + mode: "1000FDx" + port: "14" + status: "Down" + type: "100/1000T" + - bcast_limit: "0" + enabled: "Yes" flow_ctrl: "off" - bcast_limit: "0" - - port: "23" + intrusion_alert: "No" + mdi_mode: "Auto" + mode: "1000FDx" + port: "15" + status: "Down" type: "100/1000T" + - bcast_limit: "0" + enabled: "Yes" + flow_ctrl: "off" intrusion_alert: "No" + mdi_mode: "Auto" + mode: "1000FDx" + port: "16" + status: "Down" + type: "100/1000T" + - bcast_limit: "0" enabled: "Yes" + flow_ctrl: "off" + intrusion_alert: "No" + mdi_mode: "Auto" + mode: "1000FDx" + port: "17" status: "Down" + type: "100/1000T" + - bcast_limit: "0" + enabled: "Yes" + flow_ctrl: "off" + intrusion_alert: "No" + mdi_mode: "Auto" mode: "1000FDx" + port: "18" + status: "Down" + type: "100/1000T" + - bcast_limit: "0" + enabled: "Yes" + flow_ctrl: "off" + intrusion_alert: "No" mdi_mode: "Auto" + mode: "1000FDx" + port: "19" + status: "Down" + type: "100/1000T" + - bcast_limit: "0" + enabled: "Yes" flow_ctrl: "off" - bcast_limit: "0" - - port: "24" + intrusion_alert: "No" + mdi_mode: "Auto" + mode: "1000FDx" + port: "20" + status: "Down" type: "100/1000T" + - bcast_limit: "0" + enabled: "Yes" + flow_ctrl: "off" intrusion_alert: "No" + mdi_mode: "Auto" + mode: "1000FDx" + port: "21" + status: "Down" + type: "100/1000T" + - bcast_limit: "0" enabled: "Yes" + flow_ctrl: "off" + intrusion_alert: "No" + mdi_mode: "Auto" + mode: "1000FDx" + port: "22" status: "Down" + type: "100/1000T" + - bcast_limit: "0" + enabled: "Yes" + flow_ctrl: "off" + intrusion_alert: "No" + mdi_mode: "Auto" mode: "1000FDx" - mdi_mode: "NA" + port: "23" + status: "Down" + type: "100/1000T" + - bcast_limit: "0" + enabled: "Yes" flow_ctrl: "off" - bcast_limit: "0" + intrusion_alert: "No" + mdi_mode: "NA" + mode: "1000FDx" + port: "24" + status: "Down" + type: "100/1000T" diff --git a/tests/hp_procurve/show_interfaces_brief/show_interfaces_brief_NA1.yml b/tests/hp_procurve/show_interfaces_brief/show_interfaces_brief_NA1.yml index 8d1117dbdc..565ecb58bc 100644 --- a/tests/hp_procurve/show_interfaces_brief/show_interfaces_brief_NA1.yml +++ b/tests/hp_procurve/show_interfaces_brief/show_interfaces_brief_NA1.yml @@ -1,74 +1,74 @@ --- parsed_sample: - - port: "1" - type: "100/1000T" - intrusion_alert: "No" + - bcast_limit: "0" enabled: "Yes" - status: "Up" - mode: "100FDx" - mdi_mode: "MDI" flow_ctrl: "off" - bcast_limit: "0" - - port: "2" - type: "100/1000T" intrusion_alert: "No" + mdi_mode: "MDI" + mode: "100FDx" + port: "1" + status: "Up" + type: "100/1000T" + - bcast_limit: "0" enabled: "Yes" - status: "Down" - mode: "1000FDx" - mdi_mode: "Auto" flow_ctrl: "off" - bcast_limit: "0" - - port: "3" - type: "100/1000T" intrusion_alert: "No" - enabled: "Yes" - status: "Down" - mode: "1000FDx" mdi_mode: "Auto" - flow_ctrl: "off" - bcast_limit: "0" - - port: "4" + mode: "1000FDx" + port: "2" + status: "Down" type: "100/1000T" - intrusion_alert: "No" + - bcast_limit: "0" enabled: "Yes" - status: "Down" - mode: "1000FDx" - mdi_mode: "Auto" flow_ctrl: "off" - bcast_limit: "0" - - port: "5" - type: "100/1000T" intrusion_alert: "No" - enabled: "Yes" - status: "Down" - mode: "1000FDx" mdi_mode: "Auto" - flow_ctrl: "off" - bcast_limit: "0" - - port: "6" + mode: "1000FDx" + port: "3" + status: "Down" type: "100/1000T" - intrusion_alert: "No" + - bcast_limit: "0" enabled: "Yes" - status: "Down" - mode: "1000FDx" - mdi_mode: "Auto" flow_ctrl: "off" - bcast_limit: "0" - - port: "7" - type: "100/1000T" intrusion_alert: "No" - enabled: "Yes" - status: "Down" + mdi_mode: "Auto" mode: "1000FDx" + port: "4" + status: "Down" + type: "100/1000T" + - bcast_limit: "0" + enabled: "Yes" + flow_ctrl: "off" + intrusion_alert: "No" mdi_mode: "Auto" + mode: "1000FDx" + port: "5" + status: "Down" + type: "100/1000T" + - bcast_limit: "0" + enabled: "Yes" flow_ctrl: "off" - bcast_limit: "0" - - port: "8" - type: "" intrusion_alert: "No" + mdi_mode: "Auto" + mode: "1000FDx" + port: "6" + status: "Down" + type: "100/1000T" + - bcast_limit: "0" enabled: "Yes" + flow_ctrl: "off" + intrusion_alert: "No" + mdi_mode: "Auto" + mode: "1000FDx" + port: "7" status: "Down" - mode: "" - mdi_mode: "" + type: "100/1000T" + - bcast_limit: "0" + enabled: "Yes" flow_ctrl: "off" - bcast_limit: "0" + intrusion_alert: "No" + mdi_mode: "" + mode: "" + port: "8" + status: "Down" + type: "" diff --git a/tests/hp_procurve/show_interfaces_brief/show_interfaces_brief_bcast.yml b/tests/hp_procurve/show_interfaces_brief/show_interfaces_brief_bcast.yml index 471f51ac7d..1061892ae4 100644 --- a/tests/hp_procurve/show_interfaces_brief/show_interfaces_brief_bcast.yml +++ b/tests/hp_procurve/show_interfaces_brief/show_interfaces_brief_bcast.yml @@ -1,218 +1,218 @@ --- parsed_sample: - - port: "1" - type: "100/1000T" - intrusion_alert: "No" + - bcast_limit: "0" enabled: "Yes" - status: "Down" - mode: "1000FDx" - mdi_mode: "Auto" flow_ctrl: "off" - bcast_limit: "0" - - port: "2" - type: "100/1000T" intrusion_alert: "No" - enabled: "Yes" - status: "Down" - mode: "1000FDx" mdi_mode: "Auto" - flow_ctrl: "off" - bcast_limit: "0" - - port: "3" + mode: "1000FDx" + port: "1" + status: "Down" type: "100/1000T" - intrusion_alert: "Yes" + - bcast_limit: "0" enabled: "Yes" - status: "Down" - mode: "1000FDx" - mdi_mode: "Auto" flow_ctrl: "off" - bcast_limit: "0" - - port: "4" - type: "100/1000T" intrusion_alert: "No" - enabled: "Yes" - status: "Down" - mode: "1000FDx" mdi_mode: "Auto" + mode: "1000FDx" + port: "2" + status: "Down" + type: "100/1000T" + - bcast_limit: "0" + enabled: "Yes" flow_ctrl: "off" - bcast_limit: "0" - - port: "5" + intrusion_alert: "Yes" + mdi_mode: "Auto" + mode: "1000FDx" + port: "3" + status: "Down" type: "100/1000T" + - bcast_limit: "0" + enabled: "Yes" + flow_ctrl: "off" intrusion_alert: "No" - enabled: "No" - status: "Down" - mode: "1000FDx" mdi_mode: "Auto" - flow_ctrl: "off" - bcast_limit: "0" - - port: "6" + mode: "1000FDx" + port: "4" + status: "Down" type: "100/1000T" + - bcast_limit: "0" + enabled: "No" + flow_ctrl: "off" intrusion_alert: "No" - enabled: "Yes" - status: "Down" - mode: "1000FDx" mdi_mode: "Auto" - flow_ctrl: "on" - bcast_limit: "0" - - port: "7" + mode: "1000FDx" + port: "5" + status: "Down" type: "100/1000T" - intrusion_alert: "No" + - bcast_limit: "0" enabled: "Yes" - status: "Down" - mode: "1000FDx" + flow_ctrl: "on" + intrusion_alert: "No" mdi_mode: "Auto" - flow_ctrl: "off" - bcast_limit: "0" - - port: "8" + mode: "1000FDx" + port: "6" + status: "Down" type: "100/1000T" - intrusion_alert: "No" + - bcast_limit: "0" enabled: "Yes" - status: "Down" - mode: "1000FDx" - mdi_mode: "Auto" flow_ctrl: "off" - bcast_limit: "0" - - port: "9" - type: "100/1000T" intrusion_alert: "No" - enabled: "Yes" - status: "Down" - mode: "1000FDx" mdi_mode: "Auto" - flow_ctrl: "off" - bcast_limit: "0" - - port: "10" + mode: "1000FDx" + port: "7" + status: "Down" type: "100/1000T" - intrusion_alert: "No" + - bcast_limit: "0" enabled: "Yes" - status: "Down" - mode: "1000FDx" + flow_ctrl: "off" + intrusion_alert: "No" mdi_mode: "Auto" - flow_ctrl: "on" - bcast_limit: "50" - - port: "11" + mode: "1000FDx" + port: "8" + status: "Down" type: "100/1000T" - intrusion_alert: "No" + - bcast_limit: "0" enabled: "Yes" - status: "Down" - mode: "1000FDx" - mdi_mode: "Auto" flow_ctrl: "off" - bcast_limit: "0" - - port: "12" - type: "100/1000T" intrusion_alert: "No" - enabled: "Yes" - status: "Down" - mode: "1000FDx" mdi_mode: "Auto" - flow_ctrl: "off" - bcast_limit: "0" - - port: "13" + mode: "1000FDx" + port: "9" + status: "Down" type: "100/1000T" - intrusion_alert: "No" + - bcast_limit: "50" enabled: "Yes" - status: "Down" - mode: "1000FDx" + flow_ctrl: "on" + intrusion_alert: "No" mdi_mode: "Auto" - flow_ctrl: "off" - bcast_limit: "0" - - port: "14" + mode: "1000FDx" + port: "10" + status: "Down" type: "100/1000T" - intrusion_alert: "No" + - bcast_limit: "0" enabled: "Yes" - status: "Down" - mode: "1000FDx" - mdi_mode: "Auto" flow_ctrl: "off" - bcast_limit: "0" - - port: "15" - type: "100/1000T" intrusion_alert: "No" - enabled: "Yes" - status: "Down" - mode: "1000FDx" mdi_mode: "Auto" - flow_ctrl: "off" - bcast_limit: "0" - - port: "16" + mode: "1000FDx" + port: "11" + status: "Down" type: "100/1000T" - intrusion_alert: "No" + - bcast_limit: "0" enabled: "Yes" - status: "Down" - mode: "1000FDx" - mdi_mode: "Auto" flow_ctrl: "off" - bcast_limit: "0" - - port: "17" - type: "100/1000T" intrusion_alert: "No" - enabled: "Yes" - status: "Down" - mode: "1000FDx" mdi_mode: "Auto" - flow_ctrl: "off" - bcast_limit: "0" - - port: "18" + mode: "1000FDx" + port: "12" + status: "Down" type: "100/1000T" - intrusion_alert: "No" + - bcast_limit: "0" enabled: "Yes" - status: "Down" - mode: "1000FDx" - mdi_mode: "Auto" flow_ctrl: "off" - bcast_limit: "0" - - port: "19" - type: "100/1000T" intrusion_alert: "No" - enabled: "Yes" - status: "Down" - mode: "1000FDx" mdi_mode: "Auto" - flow_ctrl: "off" - bcast_limit: "0" - - port: "20" + mode: "1000FDx" + port: "13" + status: "Down" type: "100/1000T" - intrusion_alert: "No" + - bcast_limit: "0" enabled: "Yes" - status: "Down" - mode: "1000FDx" - mdi_mode: "Auto" flow_ctrl: "off" - bcast_limit: "0" - - port: "21" - type: "100/1000T" intrusion_alert: "No" - enabled: "Yes" - status: "Down" - mode: "1000FDx" mdi_mode: "Auto" - flow_ctrl: "off" - bcast_limit: "0" - - port: "22" + mode: "1000FDx" + port: "14" + status: "Down" type: "100/1000T" - intrusion_alert: "No" + - bcast_limit: "0" enabled: "Yes" - status: "Down" + flow_ctrl: "off" + intrusion_alert: "No" + mdi_mode: "Auto" mode: "1000FDx" + port: "15" + status: "Down" + type: "100/1000T" + - bcast_limit: "0" + enabled: "Yes" + flow_ctrl: "off" + intrusion_alert: "No" mdi_mode: "Auto" + mode: "1000FDx" + port: "16" + status: "Down" + type: "100/1000T" + - bcast_limit: "0" + enabled: "Yes" flow_ctrl: "off" - bcast_limit: "0" - - port: "23" + intrusion_alert: "No" + mdi_mode: "Auto" + mode: "1000FDx" + port: "17" + status: "Down" type: "100/1000T" + - bcast_limit: "0" + enabled: "Yes" + flow_ctrl: "off" intrusion_alert: "No" + mdi_mode: "Auto" + mode: "1000FDx" + port: "18" + status: "Down" + type: "100/1000T" + - bcast_limit: "0" enabled: "Yes" + flow_ctrl: "off" + intrusion_alert: "No" + mdi_mode: "Auto" + mode: "1000FDx" + port: "19" status: "Down" + type: "100/1000T" + - bcast_limit: "0" + enabled: "Yes" + flow_ctrl: "off" + intrusion_alert: "No" + mdi_mode: "Auto" mode: "1000FDx" + port: "20" + status: "Down" + type: "100/1000T" + - bcast_limit: "0" + enabled: "Yes" + flow_ctrl: "off" + intrusion_alert: "No" mdi_mode: "Auto" + mode: "1000FDx" + port: "21" + status: "Down" + type: "100/1000T" + - bcast_limit: "0" + enabled: "Yes" flow_ctrl: "off" - bcast_limit: "0" - - port: "24" + intrusion_alert: "No" + mdi_mode: "Auto" + mode: "1000FDx" + port: "22" + status: "Down" type: "100/1000T" + - bcast_limit: "0" + enabled: "Yes" + flow_ctrl: "off" intrusion_alert: "No" + mdi_mode: "Auto" + mode: "1000FDx" + port: "23" + status: "Down" + type: "100/1000T" + - bcast_limit: "0" enabled: "Yes" - status: "Up" - mode: "100FDx" - mdi_mode: "MDI" flow_ctrl: "off" - bcast_limit: "0" + intrusion_alert: "No" + mdi_mode: "MDI" + mode: "100FDx" + port: "24" + status: "Up" + type: "100/1000T" diff --git a/tests/hp_procurve/show_interfaces_brief/show_interfaces_brief_note.raw b/tests/hp_procurve/show_interfaces_brief/show_interfaces_brief_note.raw new file mode 100644 index 0000000000..c0e5ad7f0a --- /dev/null +++ b/tests/hp_procurve/show_interfaces_brief/show_interfaces_brief_note.raw @@ -0,0 +1,26 @@ + + Status and Counters - Port Status + + Note: * indicates values dynamically overridden by RADIUS. + + | Intrusion MDI Flow Bcast + Port Type | Alert Enabled Status Mode Mode Ctrl Limit + ------------ ---------- + --------- ------- ------ ---------- ---- ---- ----- + A1 1000SX | No Yes Up 1000FDx NA off 0 + A8* SFP+SR | No Yes Up 10GigFD NA off 0 + B1 1000SX | No Yes Up 1000FDx NA off 0 + B7* 1000SX | No Yes Up 1000FDx NA off 0 + B8 SFP+SR | No Yes Up 10GigFD NA off 0 + C1 100/1000T | No Yes Up 1000FDx MDIX off 0 + C2 100/1000T | No Yes Up 1000FDx MDI off 0 + C4 100/1000T | No Yes Up 100FDx MDIX off 0 + D1-Trk1 100/1000T | No Yes Up 1000FDx MDIX off 0 + D5 100/1000T | No No Down 1000FDx NA off 0 + D7 100/1000T | No Yes Down 1000FDx Auto off 0 + E1 SFP+DA3 | No No Down 10GigFD NA off 0 + E3 | No Yes Down . off 0 + F1 10GbE-T | No Yes Up 2500FDx* MDIX off 0 + F2 10GbE-T | No Yes Up 2500FDx* MDI off 0 + G17 100/1000T | No Yes Up 1000FDx* MDIX off 0 + G18 100/1000T | No Yes Down 1000FDx NA off 0 + * third-party transceiver diff --git a/tests/hp_procurve/show_interfaces_brief/show_interfaces_brief_note.yml b/tests/hp_procurve/show_interfaces_brief/show_interfaces_brief_note.yml new file mode 100644 index 0000000000..bc973b9316 --- /dev/null +++ b/tests/hp_procurve/show_interfaces_brief/show_interfaces_brief_note.yml @@ -0,0 +1,155 @@ +--- +parsed_sample: + - bcast_limit: "0" + enabled: "Yes" + flow_ctrl: "off" + intrusion_alert: "No" + mdi_mode: "NA" + mode: "1000FDx" + port: "A1" + status: "Up" + type: "1000SX" + - bcast_limit: "0" + enabled: "Yes" + flow_ctrl: "off" + intrusion_alert: "No" + mdi_mode: "NA" + mode: "10GigFD" + port: "A8" + status: "Up" + type: "SFP+SR" + - bcast_limit: "0" + enabled: "Yes" + flow_ctrl: "off" + intrusion_alert: "No" + mdi_mode: "NA" + mode: "1000FDx" + port: "B1" + status: "Up" + type: "1000SX" + - bcast_limit: "0" + enabled: "Yes" + flow_ctrl: "off" + intrusion_alert: "No" + mdi_mode: "NA" + mode: "1000FDx" + port: "B7" + status: "Up" + type: "1000SX" + - bcast_limit: "0" + enabled: "Yes" + flow_ctrl: "off" + intrusion_alert: "No" + mdi_mode: "NA" + mode: "10GigFD" + port: "B8" + status: "Up" + type: "SFP+SR" + - bcast_limit: "0" + enabled: "Yes" + flow_ctrl: "off" + intrusion_alert: "No" + mdi_mode: "MDIX" + mode: "1000FDx" + port: "C1" + status: "Up" + type: "100/1000T" + - bcast_limit: "0" + enabled: "Yes" + flow_ctrl: "off" + intrusion_alert: "No" + mdi_mode: "MDI" + mode: "1000FDx" + port: "C2" + status: "Up" + type: "100/1000T" + - bcast_limit: "0" + enabled: "Yes" + flow_ctrl: "off" + intrusion_alert: "No" + mdi_mode: "MDIX" + mode: "100FDx" + port: "C4" + status: "Up" + type: "100/1000T" + - bcast_limit: "0" + enabled: "Yes" + flow_ctrl: "off" + intrusion_alert: "No" + mdi_mode: "MDIX" + mode: "1000FDx" + port: "D1-Trk1" + status: "Up" + type: "100/1000T" + - bcast_limit: "0" + enabled: "No" + flow_ctrl: "off" + intrusion_alert: "No" + mdi_mode: "NA" + mode: "1000FDx" + port: "D5" + status: "Down" + type: "100/1000T" + - bcast_limit: "0" + enabled: "Yes" + flow_ctrl: "off" + intrusion_alert: "No" + mdi_mode: "Auto" + mode: "1000FDx" + port: "D7" + status: "Down" + type: "100/1000T" + - bcast_limit: "0" + enabled: "No" + flow_ctrl: "off" + intrusion_alert: "No" + mdi_mode: "NA" + mode: "10GigFD" + port: "E1" + status: "Down" + type: "SFP+DA3" + - bcast_limit: "0" + enabled: "Yes" + flow_ctrl: "off" + intrusion_alert: "No" + mdi_mode: "" + mode: "." + port: "E3" + status: "Down" + type: "" + - bcast_limit: "0" + enabled: "Yes" + flow_ctrl: "off" + intrusion_alert: "No" + mdi_mode: "MDIX" + mode: "2500FDx" + port: "F1" + status: "Up" + type: "10GbE-T" + - bcast_limit: "0" + enabled: "Yes" + flow_ctrl: "off" + intrusion_alert: "No" + mdi_mode: "MDI" + mode: "2500FDx" + port: "F2" + status: "Up" + type: "10GbE-T" + - bcast_limit: "0" + enabled: "Yes" + flow_ctrl: "off" + intrusion_alert: "No" + mdi_mode: "MDIX" + mode: "1000FDx" + port: "G17" + status: "Up" + type: "100/1000T" + - bcast_limit: "0" + enabled: "Yes" + flow_ctrl: "off" + intrusion_alert: "No" + mdi_mode: "NA" + mode: "1000FDx" + port: "G18" + status: "Down" + type: "100/1000T" From 0780cae2c78b7eb860a00a6b4b535d66969481f3 Mon Sep 17 00:00:00 2001 From: Michael Bear <38406045+mjbear@users.noreply.github.com> Date: Wed, 24 Jul 2024 10:37:24 -0400 Subject: [PATCH 54/60] bugfix - cisco_xr - support both show_platform and admin_show_platform (#1783) * move xr show_platform data into the correct directory * update index and cisco_xr admin_show_platform template to support admin nad non-admin output --- .../cisco_xr_admin_show_platform.textfsm | 5 +++- ntc_templates/templates/index | 2 +- .../cisco_xr_admin_show_platform.raw | 13 ++++----- .../cisco_xr_admin_show_platform.yml | 28 ++++++------------- .../show_platform/cisco_xr_show_platform.raw | 8 ++++++ .../show_platform/cisco_xr_show_platform.yml | 22 +++++++++++++++ .../show_platform/cisco_xr_show_platform2.raw | 5 ++++ .../show_platform/cisco_xr_show_platform2.yml | 10 +++++++ 8 files changed, 63 insertions(+), 30 deletions(-) create mode 100644 tests/cisco_xr/show_platform/cisco_xr_show_platform.raw create mode 100644 tests/cisco_xr/show_platform/cisco_xr_show_platform.yml create mode 100644 tests/cisco_xr/show_platform/cisco_xr_show_platform2.raw create mode 100644 tests/cisco_xr/show_platform/cisco_xr_show_platform2.yml diff --git a/ntc_templates/templates/cisco_xr_admin_show_platform.textfsm b/ntc_templates/templates/cisco_xr_admin_show_platform.textfsm index 459cd1df15..c30613423c 100644 --- a/ntc_templates/templates/cisco_xr_admin_show_platform.textfsm +++ b/ntc_templates/templates/cisco_xr_admin_show_platform.textfsm @@ -7,4 +7,7 @@ Start ^\-+ -> Parse Parse - ^${NODE}\s+${TYPE}\s+${STATE}\s+(${CONFIG_STATE})? -> Record \ No newline at end of file + # show platform + ^${NODE}\s+${TYPE}\s+${STATE}\s+(${CONFIG_STATE})? -> Record + # admin show platform + ^${NODE}\s+${TYPE}\s+\S+\s+${STATE}\s+(${CONFIG_STATE})? -> Record diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index c165bac552..80521ace45 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -512,7 +512,7 @@ cisco_xr_show_redundancy_summary.textfsm, .*, cisco_xr, sh[[ow]] redun[[dancy]] cisco_xr_show_pim_ipv4_neighbor.textfsm, .*, cisco_xr, sh[[ow]] pim ipv4 nei[[ghbor]] cisco_xr_admin_show_inventory.textfsm, .*, cisco_xr, adm[[in]] sh[[ow]] inven[[tory]] cisco_xr_show_interface_brief.textfsm, .*, cisco_xr, sh[[ow]] int[[erface]] br[[ief]] -cisco_xr_admin_show_platform.textfsm, .*, cisco_xr, adm[[in]] sh[[ow]] pla[[tform]] +cisco_xr_admin_show_platform.textfsm, .*, cisco_xr, (adm[[in]] )?sh[[ow]] pla[[tform]] cisco_xr_show_install_active.textfsm, .*, cisco_xr, sh[[ow]] install active cisco_xr_show_ip_bgp_summary.textfsm, .*, cisco_xr, sh[[ow]] ip b[[gp]] s[[ummary]] cisco_xr_show_ipv4_interface.textfsm, .*, cisco_xr, sh[[ow]] ip[[v4]](?: vrf \S+)? int[[erface]] diff --git a/tests/cisco_xr/admin_show_platform/cisco_xr_admin_show_platform.raw b/tests/cisco_xr/admin_show_platform/cisco_xr_admin_show_platform.raw index e7a2aa706a..27663062b9 100644 --- a/tests/cisco_xr/admin_show_platform/cisco_xr_admin_show_platform.raw +++ b/tests/cisco_xr/admin_show_platform/cisco_xr_admin_show_platform.raw @@ -1,8 +1,5 @@ -Tue Mar 7 14:29:29.338 EST -Node Type State Config State ------------------------------------------------------------------------------ -0/RSP0/CPU0 A9K-RSP440-TR(Active) IOS XR RUN PWR,NSHUT,MON -0/RSP1/CPU0 A9K-RSP440-TR(Standby) IOS XR RUN PWR,NSHUT,MON -0/FT0/SP ASR-9010-FAN-V2 READY -0/FT1/SP ASR-9010-FAN-V2 READY -0/0/0 A9K-MPA-2X40GE OK PWR,NSHUT,MON +Tue Nov 16 15:43:18.391 UTC +Location Card Type HW State SW State Config State +---------------------------------------------------------------------------- +0/0 R-IOSXRV9000-LC-C OPERATIONAL N/A NSHUT +0/RP0 R-IOSXRV9000-RP-C OPERATIONAL OPERATIONAL NSHUT diff --git a/tests/cisco_xr/admin_show_platform/cisco_xr_admin_show_platform.yml b/tests/cisco_xr/admin_show_platform/cisco_xr_admin_show_platform.yml index 5335753a47..e4e97c29d0 100644 --- a/tests/cisco_xr/admin_show_platform/cisco_xr_admin_show_platform.yml +++ b/tests/cisco_xr/admin_show_platform/cisco_xr_admin_show_platform.yml @@ -1,22 +1,10 @@ --- parsed_sample: - - node: "0/RSP0/CPU0" - type: "A9K-RSP440-TR(Active)" - state: "IOS XR RUN" - config_state: "PWR,NSHUT,MON" - - node: "0/RSP1/CPU0" - type: "A9K-RSP440-TR(Standby)" - state: "IOS XR RUN" - config_state: "PWR,NSHUT,MON" - - node: "0/FT0/SP" - type: "ASR-9010-FAN-V2" - state: "READY" - config_state: "" - - node: "0/FT1/SP" - type: "ASR-9010-FAN-V2" - state: "READY" - config_state: "" - - node: "0/0/0" - type: "A9K-MPA-2X40GE" - state: "OK" - config_state: "PWR,NSHUT,MON" + - config_state: "N/A" + node: "0/0" + state: "OPERATIONAL" + type: "R-IOSXRV9000-LC-C" + - config_state: "OPERATIONAL" + node: "0/RP0" + state: "OPERATIONAL" + type: "R-IOSXRV9000-RP-C" diff --git a/tests/cisco_xr/show_platform/cisco_xr_show_platform.raw b/tests/cisco_xr/show_platform/cisco_xr_show_platform.raw new file mode 100644 index 0000000000..e7a2aa706a --- /dev/null +++ b/tests/cisco_xr/show_platform/cisco_xr_show_platform.raw @@ -0,0 +1,8 @@ +Tue Mar 7 14:29:29.338 EST +Node Type State Config State +----------------------------------------------------------------------------- +0/RSP0/CPU0 A9K-RSP440-TR(Active) IOS XR RUN PWR,NSHUT,MON +0/RSP1/CPU0 A9K-RSP440-TR(Standby) IOS XR RUN PWR,NSHUT,MON +0/FT0/SP ASR-9010-FAN-V2 READY +0/FT1/SP ASR-9010-FAN-V2 READY +0/0/0 A9K-MPA-2X40GE OK PWR,NSHUT,MON diff --git a/tests/cisco_xr/show_platform/cisco_xr_show_platform.yml b/tests/cisco_xr/show_platform/cisco_xr_show_platform.yml new file mode 100644 index 0000000000..206f3151a4 --- /dev/null +++ b/tests/cisco_xr/show_platform/cisco_xr_show_platform.yml @@ -0,0 +1,22 @@ +--- +parsed_sample: + - config_state: "PWR,NSHUT,MON" + node: "0/RSP0/CPU0" + state: "IOS XR RUN" + type: "A9K-RSP440-TR(Active)" + - config_state: "PWR,NSHUT,MON" + node: "0/RSP1/CPU0" + state: "IOS XR RUN" + type: "A9K-RSP440-TR(Standby)" + - config_state: "" + node: "0/FT0/SP" + state: "READY" + type: "ASR-9010-FAN-V2" + - config_state: "" + node: "0/FT1/SP" + state: "READY" + type: "ASR-9010-FAN-V2" + - config_state: "PWR,NSHUT,MON" + node: "0/0/0" + state: "OK" + type: "A9K-MPA-2X40GE" diff --git a/tests/cisco_xr/show_platform/cisco_xr_show_platform2.raw b/tests/cisco_xr/show_platform/cisco_xr_show_platform2.raw new file mode 100644 index 0000000000..8d93244742 --- /dev/null +++ b/tests/cisco_xr/show_platform/cisco_xr_show_platform2.raw @@ -0,0 +1,5 @@ +Tue Nov 16 15:42:24.738 UTC +Node Type State Config state +-------------------------------------------------------------------------------- +0/0/CPU0 R-IOSXRV9000-LC-C IOS XR RUN NSHUT +0/RP0/CPU0 R-IOSXRV9000-RP-C(Active) IOS XR RUN NSHUT diff --git a/tests/cisco_xr/show_platform/cisco_xr_show_platform2.yml b/tests/cisco_xr/show_platform/cisco_xr_show_platform2.yml new file mode 100644 index 0000000000..50e7dc0ce3 --- /dev/null +++ b/tests/cisco_xr/show_platform/cisco_xr_show_platform2.yml @@ -0,0 +1,10 @@ +--- +parsed_sample: + - config_state: "NSHUT" + node: "0/0/CPU0" + state: "IOS XR RUN" + type: "R-IOSXRV9000-LC-C" + - config_state: "NSHUT" + node: "0/RP0/CPU0" + state: "IOS XR RUN" + type: "R-IOSXRV9000-RP-C(Active)" From e6a608469ba9709ed4dfad4acf2e038606590f72 Mon Sep 17 00:00:00 2001 From: Jacob McGill <9847006+jmcgill298@users.noreply.github.com> Date: Thu, 25 Jul 2024 10:05:08 -0400 Subject: [PATCH 55/60] Add Oneaccess templates (#1755) * add oneaccess oneos templates * oneaccess_oneos templates and tests * add oneaccess_oneos templates * addtional oneos commands * extra oneos commands * add oneaccess command * add oneaccess_oneos show system hardware * oneaccess_oneos voice related commands * HP Comware fix spacing allowances Fix templates if output contain tabs. * extra oneos templates * updates for passing tests * oneos updates to voice templates * add extra oneaccess_oneos and ciena_saos templates * add oneaccess_oneos show_transceiver_equipment and show_policy-interface_output * Update oneaccess_oneos_show_software-image.textfsm * Update oneaccess_oneos_show_software-image.textfsm * oneaccess_oneos add secure crashlog command * add oneaccess commands * update command alias * Update index - ip dhcp * Update oneaccess_oneos_show_running-config_ip_route.textfsm * Create oneaccess_oneos_show_ip_helper-address_statistics.textfsm * Update index * Update oneaccess_oneos_show_interfaces.textfsm * Update index * Update oneaccess_oneos_show_ip_bgp_summary.textfsm * devices with + sign were not detected * Fix black test * Remove Ciena Templates * Remove templates moving to separate branch * Remove templates moving to separate branch * Fix parsers/tests --------- Co-authored-by: mwallraf Co-authored-by: Andrea Dainese Co-authored-by: mwallraf Co-authored-by: Josh VanDeraa --- ntc_templates/templates/index | 7 +- ..._oneos_show_cellular-radio_network.textfsm | 42 + .../oneaccess_oneos_show_helpers.textfsm | 15 + .../oneaccess_oneos_show_interfaces.textfsm | 129 ++ ...eaccess_oneos_show_ip_access-lists.textfsm | 55 + ..._oneos_show_ip_as-path-access-list.textfsm | 13 + ...play_lldp_neighbor-information_verbose.raw | 2 +- .../show_cellular-radio_context.oneos5.raw | 23 + .../show_cellular-radio_context.oneos5.yml | 19 + .../show_cellular-radio_context.oneos6.raw | 22 + .../show_cellular-radio_context.oneos6.yml | 19 + .../show_helpers/show_helpers.oneos5.raw | 15 + .../show_helpers/show_helpers.oneos5.yml | 17 + .../show_helpers/show_helpers.oneos6.raw | 15 + .../show_helpers/show_helpers.oneos6.yml | 17 + .../show_interfaces.lbb140.raw | 211 ++ .../show_interfaces.lbb140.yml | 857 +++++++ .../show_interfaces.lbb150.raw | 154 ++ .../show_interfaces.lbb150.yml | 641 +++++ .../show_interfaces.lbb154.raw | 472 ++++ .../show_interfaces.lbb154.yml | 2064 +++++++++++++++++ .../show_interfaces/show_interfaces.lbb4g.raw | 209 ++ .../show_interfaces/show_interfaces.lbb4g.yml | 927 ++++++++ .../show_ip_access-lists.oneos5.raw | 32 + .../show_ip_access-lists.oneos5.yml | 578 +++++ .../show_ip_access-lists.oneos6.raw | 42 + .../show_ip_access-lists.oneos6.yml | 770 ++++++ .../show_ip_as-path-access-list.oneos5.raw | 2 + .../show_ip_as-path-access-list.oneos5.yml | 5 + .../show_ip_as-path-access-list.oneos6.raw | 2 + .../show_ip_as-path-access-list.oneos6.yml | 5 + 31 files changed, 7379 insertions(+), 2 deletions(-) create mode 100644 ntc_templates/templates/oneaccess_oneos_show_cellular-radio_network.textfsm create mode 100644 ntc_templates/templates/oneaccess_oneos_show_helpers.textfsm create mode 100644 ntc_templates/templates/oneaccess_oneos_show_interfaces.textfsm create mode 100644 ntc_templates/templates/oneaccess_oneos_show_ip_access-lists.textfsm create mode 100644 ntc_templates/templates/oneaccess_oneos_show_ip_as-path-access-list.textfsm create mode 100644 tests/oneaccess_oneos/show_cellular-radio_network/show_cellular-radio_context.oneos5.raw create mode 100644 tests/oneaccess_oneos/show_cellular-radio_network/show_cellular-radio_context.oneos5.yml create mode 100644 tests/oneaccess_oneos/show_cellular-radio_network/show_cellular-radio_context.oneos6.raw create mode 100644 tests/oneaccess_oneos/show_cellular-radio_network/show_cellular-radio_context.oneos6.yml create mode 100644 tests/oneaccess_oneos/show_helpers/show_helpers.oneos5.raw create mode 100644 tests/oneaccess_oneos/show_helpers/show_helpers.oneos5.yml create mode 100644 tests/oneaccess_oneos/show_helpers/show_helpers.oneos6.raw create mode 100644 tests/oneaccess_oneos/show_helpers/show_helpers.oneos6.yml create mode 100644 tests/oneaccess_oneos/show_interfaces/show_interfaces.lbb140.raw create mode 100644 tests/oneaccess_oneos/show_interfaces/show_interfaces.lbb140.yml create mode 100644 tests/oneaccess_oneos/show_interfaces/show_interfaces.lbb150.raw create mode 100644 tests/oneaccess_oneos/show_interfaces/show_interfaces.lbb150.yml create mode 100644 tests/oneaccess_oneos/show_interfaces/show_interfaces.lbb154.raw create mode 100644 tests/oneaccess_oneos/show_interfaces/show_interfaces.lbb154.yml create mode 100644 tests/oneaccess_oneos/show_interfaces/show_interfaces.lbb4g.raw create mode 100644 tests/oneaccess_oneos/show_interfaces/show_interfaces.lbb4g.yml create mode 100644 tests/oneaccess_oneos/show_ip_access-lists/show_ip_access-lists.oneos5.raw create mode 100644 tests/oneaccess_oneos/show_ip_access-lists/show_ip_access-lists.oneos5.yml create mode 100644 tests/oneaccess_oneos/show_ip_access-lists/show_ip_access-lists.oneos6.raw create mode 100644 tests/oneaccess_oneos/show_ip_access-lists/show_ip_access-lists.oneos6.yml create mode 100644 tests/oneaccess_oneos/show_ip_as-path-access-list/show_ip_as-path-access-list.oneos5.raw create mode 100644 tests/oneaccess_oneos/show_ip_as-path-access-list/show_ip_as-path-access-list.oneos5.yml create mode 100644 tests/oneaccess_oneos/show_ip_as-path-access-list/show_ip_as-path-access-list.oneos6.raw create mode 100644 tests/oneaccess_oneos/show_ip_as-path-access-list/show_ip_as-path-access-list.oneos6.yml diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 80521ace45..65ef99bcd5 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -740,9 +740,14 @@ mikrotik_routeros_ping.textfsm, .*, mikrotik_routeros, [[/]]pin[[g]] oneaccess_oneos_show_voice_voip-call_active_all.textfsm, .*, oneaccess_oneos, sh[[ow]] voice voip-call active oneaccess_oneos_show_cellular-radio_equipment.textfsm, .*, oneaccess_oneos, sh[[ow]] cell[[ular-radio]] equipment oneaccess_oneos_show_voice_voip-call_any_all.textfsm, .*, oneaccess_oneos, sh[[ow]] voice voip-call any all +oneaccess_oneos_show_cellular-radio_network.textfsm, .*, oneaccess_oneos, sh[[ow]] cell[[ular-radio]] network oneaccess_oneos_show_cellular-radio_context.textfsm, .*, oneaccess_oneos, sh[[ow]] cell[[ular-radio]] context -oneaccess_oneos_cat_bsa_bsaboot.inf.textfsm, .*, oneaccess_oneos, cat (\/|)(BSA|bsa)(\/| )bsa(B|b)oot.inf +oneaccess_oneos_show_ip_as-path-access-list.textfsm, .*, oneaccess_oneos, sh[[ow]] ip as-path-access-list +oneaccess_oneos_show_ip_access-lists.textfsm, .*, oneaccess_oneos, sh[[ow]] ip access-lists[[s]] oneaccess_oneos_show_vrrp_interface.textfsm, .*, oneaccess_oneos, sh[[ow]] vrrp int[[erface]] +oneaccess_oneos_cat_bsa_bsaboot.inf.textfsm, .*, oneaccess_oneos, cat (\/|)(BSA|bsa)(\/| )bsa(B|b)oot.inf +oneaccess_oneos_show_interfaces.textfsm, .*, oneaccess_oneos, sh[[ow]] interface[[s]] +oneaccess_oneos_show_helpers.textfsm, .*, oneaccess_oneos, sh[[ow]] helpers oneaccess_oneos_hostname.textfsm, .*, oneaccess_oneos, hostname oneaccess_oneos_ls.textfsm, .*, oneaccess_oneos, ls( -[lh][lh]? )?.* diff --git a/ntc_templates/templates/oneaccess_oneos_show_cellular-radio_network.textfsm b/ntc_templates/templates/oneaccess_oneos_show_cellular-radio_network.textfsm new file mode 100644 index 0000000000..73913d357f --- /dev/null +++ b/ntc_templates/templates/oneaccess_oneos_show_cellular-radio_network.textfsm @@ -0,0 +1,42 @@ +Value Required OPERATOR (.*) +Value SIGNAL_STRENGTH (.*) +Value RSSI (\S+) +Value RSRQ (\S+) +Value RSRP (\S+) +Value SNR (\S+) +Value RADIO_TECHNOLOGY (\S+) +Value REGISTER_STATE (\S+) +Value ATTACH_STATE (\S+) +Value RESETS_LOSS_REGISTRATIONS (\d+) +Value RESETS_FAILED_REGISTRATIONS (\d+) +Value RESETS_MODEM (\d+) +Value RESETS_UNKNOWN (\d+) +Value LAC (.*) +Value CELL_ID (\d+) +Value TAC (\d+) +Value PLMN (\d+) + +Start + ^\s*Current\sselected\soperator\s+:\s+${OPERATOR} + ^\s*Signal\sstrength\s+:\s+${SIGNAL_STRENGTH} + ^\s*RSSI\s+:\s+${RSSI} + ^\s*RSRQ\s+:\s+${RSRQ} + ^\s*RSRP\s+:\s+${RSRP} + ^\s*SNR\s+:\s+${SNR} + ^\s*Current\sradio\saccess\stechnology\s+:\s+${RADIO_TECHNOLOGY} + ^\s*Circuit-switched\sregister\sstate\s+:\s+${REGISTER_STATE} + ^\s*Packet-switched\sattach\sstate\s+:\s+${ATTACH_STATE} + ^\s*Reset\son\sloss\sof\s(?:GPRS\s)?registration\s+:\s+${RESETS_LOSS_REGISTRATIONS} + ^\s*Reset\son\sfailed\sinitial\sregistration\s+:\s+${RESETS_FAILED_REGISTRATIONS} + ^\s*Hardware\sreset\sof\smodem\s+:\s+${RESETS_MODEM} + ^\s*Unknown\sreset\sof\smodem\s+:\s+${RESETS_UNKNOWN} + ^\s*.*\(LAC\)\s+:\s+${LAC} + ^\s*Cell\sID\s+:\s+${CELL_ID} + ^\s*.*\(TAC\)\s+:\s+${TAC} + ^.*Public Land Mobile Network.*:\s+${PLMN} + ^\s*Total\s+Ec/Io\s+: + ^\s*Statistics: + ^\s*Details: + ^\s*Toggle\s+w_disable\s+of\s+modem\s+: + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/oneaccess_oneos_show_helpers.textfsm b/ntc_templates/templates/oneaccess_oneos_show_helpers.textfsm new file mode 100644 index 0000000000..300d53f2ff --- /dev/null +++ b/ntc_templates/templates/oneaccess_oneos_show_helpers.textfsm @@ -0,0 +1,15 @@ +Value Required INTERFACE (.*) +Value List HELPERS (\d+\.\d+\.\d+\.\d+) + +Start + ^ip\s+forward-protocol + ^${INTERFACE}:\s\d+\sbroadcasts\sforwarded + ^\s*${HELPERS}\s*$$ -> Record + ^\s*${HELPERS} -> Continue + ^(\s*\d+\.\d+\.\d+\.\d+\s+){1}${HELPERS}\s*$$ -> Record + ^(\s*\d+\.\d+\.\d+\.\d+\s+){1}${HELPERS} -> Continue + ^(\s*\d+\.\d+\.\d+\.\d+\s+){2}${HELPERS}\s*$$ -> Record + ^(\s*\d+\.\d+\.\d+\.\d+\s+){2}${HELPERS} -> Continue + ^(\s*\d+\.\d+\.\d+\.\d+\s+){3}${HELPERS}\s*$$ -> Record + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/oneaccess_oneos_show_interfaces.textfsm b/ntc_templates/templates/oneaccess_oneos_show_interfaces.textfsm new file mode 100644 index 0000000000..39da825001 --- /dev/null +++ b/ntc_templates/templates/oneaccess_oneos_show_interfaces.textfsm @@ -0,0 +1,129 @@ +Value Required INTERFACE (\S+(?:\s\S+)?) +Value FLAGS (.*) +Value IF_INDEX (\d+) +Value DESCRIPTION (.*) +Value LINK_STATUS (up|down) +Value PROTOCOL_STATUS (up|down) +Value PROMISCUOUS_MODE (\S+) +Value ENCAPSULATION (.+?) +Value VLAN_ID (\d+) +Value IPV4_MTU (\d+) +Value IPV6_MTU (\d+) +Value UPTIME (\S+) +Value DOWNTIME (\S+) +Value STATUS_CHANGES (\d+) +Value NEGOTIATION ([aA]uto|no|[Uu]nknown) +Value DUPLEX (full|half|[Uu]nknown) +Value IPV4 (\d+\.\d+\.\d+\.\d+\/\d+|unnumbered) +Value IPV4_UNNUMBERED_INTF (.*) +Value IPV4_UNNUMBERED_IP (\S+) +Value IPV4_GATEWAY (\d+\.\d+\.\d+\.\d+) +Value IPV4_BROADCAST (\d+\.\d+\.\d+\.\d+) +Value List IPV4_SECONDARY (\d+\.\d+\.\d+\.\d+\/\d+) +Value List IPV6 (\S+) +Value TUNNEL_SOURCE (\S+) +Value TUNNEL_DESTINATION (\S+) +Value TUNNEL_PROTOCOL (\S+) +Value TUNNEL_TRANSPORT (\S+) +Value TUNNEL_PROTECTION_MODE (\S+) +Value TUNNEL_PROTECTION_PROFILE (\S+) +Value TUNNEL_VRF (\S+) +Value FIREWALL_ZONE (.*) +Value MAC_ADDRESS ([a-fA-F0-9]{2}:[a-fA-F0-9]{2}:[a-fA-F0-9]{2}:[a-fA-F0-9]{2}:[a-fA-F0-9]{2}:[a-fA-F0-9]{2}) +Value ARP_TIMEOUT (\d+) +Value BANDWIDTH_KBPS (\d+|unknown) +Value BANDWIDTH_LIMIT_KBPS (\d+) +Value SFP_MEDIATYPE (\S+) +Value INPUT_RATE (\d+) +Value OUTPUT_RATE (\d+) +Value INPUT_PPS (\d+) +Value OUTPUT_PPS (\d+) +Value INPUT_LOAD_PCT (\d+(\.\d+)?) +Value OUTPUT_LOAD_PCT (\d+(\.\d+)?) +Value CONGESTION_DROPPED_RX (\d+) +Value CONGESTION_DROPPED_CPU (\d+) +Value CONGESTION_DROPPED_TOTAL (\d+) +Value BRIDGE_GROUP (\d+) +Value OUTPUT_QUEUE_STRATEGY (.+) +Value OUTPUT_QUEUE_LENGTH (\d+) +Value OUTPUT_QUEUE_DEPTH (\d+) +Value SHAPER_PACKETS_DEQUEUED (\-?\d+) +Value SHAPER_BURST_CURRENT (\d+) +Value SHAPER_BURST_MAX (\d+) +Value RELIABILITY_VALUE (\d+) +Value RELIABILITY_MAX (\d+) +Value INPUT_PACKETS (\d+) +Value INPUT_BYTES (\d+) +Value INPUT_QDROPS (\d+) +Value INPUT_BROADCASTS (\d+) +Value INPUT_MULTICASTS (\d+) +Value INPUT_ERRORS (\d+) +Value INPUT_DISCARDS (\d+) +Value INPUT_MAC_ACL_DISCARDS (\d+) +Value INPUT_UNKNOWN_PROTOCOLS (\d+) +Value OUTPUT_PACKETS (\d+) +Value OUTPUT_BYTES (\d+) +Value OUTPUT_QDROPS (\d+) +Value OUTPUT_BROADCASTS (\d+) +Value OUTPUT_MULTICASTS (\d+) +Value OUTPUT_ERRORS (\d+) +Value OUTPUT_DISCARDS (\d+) +Value VRF (\S+) + + +Start + ^\S+(?:\s\S+)?\s+is\s+(?:up|down),\s+line\s+protocol.*$$ -> Continue.Record + ^${INTERFACE}\s+is\s+${LINK_STATUS},\s+line\s+protocol\s+is\s+${PROTOCOL_STATUS}\s*$$ + ^\s+Flags:\s\(\S+\)\s${FLAGS},\sinterface\sindex\sis\s${IF_INDEX} + ^\s+Description:\s*${DESCRIPTION} + ^\s+Promiscuous\smode\s${PROMISCUOUS_MODE} + ^\s+Encapsulation:\s${ENCAPSULATION}\sVirtual\sLAN,\sVLAN\sID\s${VLAN_ID} -> Continue + ^\s+Encapsulation:\s${ENCAPSULATION},\s -> Continue + ^.*\sIPv4\sMTU\s${IPV4_MTU}\sbytes -> Continue + ^.*\sIPv6\sMTU\s${IPV6_MTU}\sbytes -> Continue + ^.*\s+MTU\s${IPV4_MTU}\sbytes + ^\s+Firewalls?\szone:\s${FIREWALL_ZONE} + ^\s+This\sinterface\sis\sassociated\sto\sVRF\s${VRF} + ^\s+Up-time\s${UPTIME},\sstatus\schange\scount\s${STATUS_CHANGES} + ^\s+Down-time\s${DOWNTIME},\sstatus\schange\scount\s${STATUS_CHANGES} + ^\s+${NEGOTIATION}[\-\s]negotiation,\s+${DUPLEX}[\-\s]duplex + ^\s+${NEGOTIATION}[\-\s]negotiation,\s+duplex[\-\s]${DUPLEX} + ^\s+negotiation\s+${NEGOTIATION},\s+duplex\s+${DUPLEX} + ^\s+Internet\saddress\sis\s${IPV4},\sdestination\saddress\sis\s${IPV4_GATEWAY} + ^\s+Internet\saddress\sis\s${IPV4},\sbroadcast\saddress\sis\s${IPV4_BROADCAST} + ^\s+Internet\saddress\sis\s${IPV4} + ^\s+Secondary\saddress\sis\s${IPV4_SECONDARY} + ^\s+Interface\sis\s${IPV4},\suse\saddress\sof\s${IPV4_UNNUMBERED_INTF}\(${IPV4_UNNUMBERED_IP}\) + ^\s+IPv6\saddress\sis\s${IPV6} + ^\s+Hardware\saddress\sis\s${MAC_ADDRESS},\sARP\stimeout\s${ARP_TIMEOUT}\ssec + ^\s+Line\sspeed\s${BANDWIDTH_KBPS}(\skbps,\sbandwidth\slimit\s${BANDWIDTH_LIMIT_KBPS}\skbps)? + ^\s+[Mm]edia\-type\s${SFP_MEDIATYPE} + ^\s+Mean\sinput/output\srate\s+${INPUT_RATE}/${OUTPUT_RATE}\sbits/s,\s${INPUT_PPS}/${OUTPUT_PPS}\s.* + ^\s+Mean\sinput/output\sload\spercentage\s+${INPUT_LOAD_PCT}/${OUTPUT_LOAD_PCT}\spercent.* + ^\s+Congestion\sManagement\sDropped\spackets:\s+RX:${CONGESTION_DROPPED_RX},\s*CPU:${CONGESTION_DROPPED_CPU},\s*Total:${CONGESTION_DROPPED_TOTAL} + ^\s+Bridged\sto\sgroup\s${BRIDGE_GROUP} + ^\s+Tunnel\ssource\s${TUNNEL_SOURCE},\sdestination\s${TUNNEL_DESTINATION} + ^\s+Tunnel\sprotocol/transport\s${TUNNEL_PROTOCOL}/${TUNNEL_TRANSPORT} + ^\s+Tunnel\sprotection\svia\s${TUNNEL_PROTECTION_MODE}\s\(profile\s\"${TUNNEL_PROTECTION_PROFILE}\"\) + ^\s+This\sinterface\sis\sassociated\sto\sTunnel\sVRF\s${TUNNEL_VRF} + ^\s+Output\squeuing\sstrategy:\s*${OUTPUT_QUEUE_STRATEGY},\s*output\squeue\slength/depth\s${OUTPUT_QUEUE_LENGTH}/${OUTPUT_QUEUE_DEPTH} + ^\s+Output\squeuing\sstrategy:\s*${OUTPUT_QUEUE_STRATEGY} + ^\s+Shaper:\spackets\sdequeued\s${SHAPER_PACKETS_DEQUEUED},\sburst\(current/max\)\s${SHAPER_BURST_CURRENT}/${SHAPER_BURST_MAX} + ^\s+Reliability:\s*${RELIABILITY_VALUE}/${RELIABILITY_MAX} + ^\s+IN:\s*${INPUT_PACKETS}\spackets,\s${INPUT_BYTES}\sbytes,\s${INPUT_QDROPS}\squeue\sdrops -> IN + ^\s+OUT:\s*${OUTPUT_PACKETS}\spackets,\s${OUTPUT_BYTES}\sbytes,\s${OUTPUT_QDROPS}\squeue\sdrops -> OUT + ^\s+Keepalive + ^\s+\d+\s+bad\s+checksum, + ^\s*$$ + ^. -> Error + +IN + ^\s+${INPUT_BROADCASTS}\sbroadcasts,\s*${INPUT_MULTICASTS}\smulticasts,\s*${INPUT_ERRORS}\serrors,\s*${INPUT_DISCARDS}\sdiscards(,\s*${INPUT_MAC_ACL_DISCARDS}\smac\sacl\sdiscards)? + ^\s+${INPUT_UNKNOWN_PROTOCOLS}\sunknown\sprotocols -> Start + ^\s*$$ + ^. -> Error + +OUT + ^\s+${OUTPUT_BROADCASTS}\sbroadcasts,\s*${OUTPUT_MULTICASTS}\smulticasts,\s*${OUTPUT_ERRORS}\serrors,\s*${OUTPUT_DISCARDS}\sdiscards -> Start + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/oneaccess_oneos_show_ip_access-lists.textfsm b/ntc_templates/templates/oneaccess_oneos_show_ip_access-lists.textfsm new file mode 100644 index 0000000000..3fdf5e3200 --- /dev/null +++ b/ntc_templates/templates/oneaccess_oneos_show_ip_access-lists.textfsm @@ -0,0 +1,55 @@ +Value Required,Filldown ACL_TYPE (standard|extended) +Value Required,Filldown ACL_NAME (\S+) +Value LINE_NUM (\d+) +Value ACTION (permit|deny) +Value PROTOCOL (\S+) +Value PROTOCOL_NR (\d+) +Value SRC_HOST (\d+\.\d+\.\d+\.\d+) +Value SRC_ANY (any) +Value SRC_NETWORK (\d+\.\d+\.\d+\.\d+) +Value SRC_WILDCARD (\d+\.\d+\.\d+\.\d+) +#Value SRC_NETWORK_OBJECT_GROUP_NAME (\S+) +Value SRC_PORT_MATCH (eq|neq|precedence|range|tos|lt|gt) +Value SRC_PORT (\d+|[a-z]+) +Value SRC_PORT_RANGE_START ((?<=range\s)\S+) +Value SRC_PORT_RANGE_END (\S+) +Value DST_HOST (\d+\.\d+\.\d+\.\d+) +Value DST_ANY (any) +Value DST_NETWORK (\d+\.\d+\.\d+\.\d+) +Value DST_WILDCARD (\d+\.\d+\.\d+\.\d+) +#Value DST_NETWORK_OBJECT_GROUP_NAME (\S+) +Value DST_PORT_MATCH (eq|neq|precedence|range|tos|lt|gt) +Value DST_PORT (\d+|[a-z]+) +Value DST_PORT_RANGE_START ((?<=range\s)\S+) +Value DST_PORT_RANGE_END (\S+) +#Value SERVICE_OBJECT_GROUP_NAME (\S+) +#Value FLAGS_MATCH (match-all|match-any) +#Value TCP_FLAG (((\+|-|)ack(\s*?)|(\+|-|)established(\s*?)|(\+|-|)fin(\s*?)|(\+|-|)fragments(\s*?)|(\+|-|)psh(\s*?)|(\+|-|)rst(\s*?)|(\+|-|)syn(\s*?)|urg(\s*?))+) +Value LOG (log) +#Value LOG_TAG (\S+) +#Value ICMP_TYPE (administratively-prohibited|echo|echo-reply|mask-request|packet-too-big|parameter-problem|port-unreachable|redirect|router-advertisement|router-solicitation|time-exceeded|ttl-exceeded|unreachable) +#Value TIME (\S+) +#Value STATE (inactive|active) +Value MATCHES (\d+) + +Start + ^ip\saccess-list\s(standard|extended) -> Continue.Clearall + ^ip\saccess-list\s${ACL_TYPE}\s${ACL_NAME}\s* -> Record ONEOS6 + ^IP\saccess\slist\s(standard|extended) -> Continue.Clearall + ^IP\saccess\slist\s${ACL_TYPE}\s${ACL_NAME}\s* -> Record ONEOS5 + ^interface.* + ^For info on.* + ^\s*$$ + ^.* -> Error "Could not parse line:" + +ONEOS6 + ^\s+${LINE_NUM}\s+${ACTION}(?:\s+${PROTOCOL})?\s+(?:${PROTOCOL_NR}\s)?${SRC_NETWORK}\s+${SRC_WILDCARD}(${SRC_PORT}|)(\s+${DST_NETWORK}\s+${DST_WILDCARD}|)(\s+${DST_PORT}|)(\s+${LOG}|)(?:\s+\(${MATCHES}\s+matches\)|)\s* -> Record + ^\s*$$ -> Start + ^.* -> Error "Could not parse line:" + +ONEOS5 + ^${ACTION}\s+(${PROTOCOL}\s+|)(host\s+${SRC_HOST}|${SRC_ANY}|${SRC_NETWORK}\s+${SRC_WILDCARD})(\s+${SRC_PORT_MATCH}\s+|)(${SRC_PORT_RANGE_START}\s+${SRC_PORT_RANGE_END}|${SRC_PORT}|)\s+(host\s+${DST_HOST}|${DST_ANY}|${DST_NETWORK}\s+${DST_WILDCARD})(\s+${DST_PORT_MATCH}\s+(${DST_PORT_RANGE_START}\s+${DST_PORT_RANGE_END}|${DST_PORT}|)|)(\s+${LOG}|)(?:\s+\(${MATCHES}\s+matches\)|) -> Record + ^\s*$$ -> Start + ^.* -> Error "Could not parse line:" + +EOF diff --git a/ntc_templates/templates/oneaccess_oneos_show_ip_as-path-access-list.textfsm b/ntc_templates/templates/oneaccess_oneos_show_ip_as-path-access-list.textfsm new file mode 100644 index 0000000000..a3476cbabd --- /dev/null +++ b/ntc_templates/templates/oneaccess_oneos_show_ip_as-path-access-list.textfsm @@ -0,0 +1,13 @@ +Value Required NAME (\S+) +Value Required,List ENTRIES (.*) + +Start + ^AS\spath\saccess\slist\s${NAME}$$ -> ASPATH + ^. -> Error + +ASPATH + ^[\s\t]+${ENTRIES}.* + ^\s+$$ -> Record Start + ^AS\spath -> Continue.Record + ^AS\spath\saccess\slist\s${NAME}$$ -> ASPATH + ^. -> Error diff --git a/tests/hp_comware/display_lldp_neighbor-information_verbose/hp_comware_display_lldp_neighbor-information_verbose.raw b/tests/hp_comware/display_lldp_neighbor-information_verbose/hp_comware_display_lldp_neighbor-information_verbose.raw index 57dbf0dbb2..8650b757ee 100644 --- a/tests/hp_comware/display_lldp_neighbor-information_verbose/hp_comware_display_lldp_neighbor-information_verbose.raw +++ b/tests/hp_comware/display_lldp_neighbor-information_verbose/hp_comware_display_lldp_neighbor-information_verbose.raw @@ -140,4 +140,4 @@ LLDP agent nearest-bridge: PSE pairs control ability : Yes Power pairs : Signal Port power classification : Class 0 - Maximum frame size : 9216 \ No newline at end of file + Maximum frame size : 9216 diff --git a/tests/oneaccess_oneos/show_cellular-radio_network/show_cellular-radio_context.oneos5.raw b/tests/oneaccess_oneos/show_cellular-radio_network/show_cellular-radio_context.oneos5.raw new file mode 100644 index 0000000000..43d0351654 --- /dev/null +++ b/tests/oneaccess_oneos/show_cellular-radio_network/show_cellular-radio_context.oneos5.raw @@ -0,0 +1,23 @@ + Current selected operator : Dummy Provider + Signal strength : Good + Total Ec/Io : + RSSI : -58 dBm + RSRQ : -9 dB + RSRP : -91 dBm + SNR : 23 dB + Current radio access technology : 4G + Circuit-switched register state : Registered + Packet-switched attach state : Attached + +Statistics: + Reset on loss of GPRS registration : 1 + Reset on failed initial registration : 0 + Hardware reset of modem : 0 + Unknown reset of modem : 505 + Toggle w_disable of modem : 0 + +Details: + Location Area Code (LAC) : + Cell ID : 18224898 + Tracking Area Code (TAC) : 18300 + Current Public Land Mobile Network (PLMN = MCC+MNC) : 20610 diff --git a/tests/oneaccess_oneos/show_cellular-radio_network/show_cellular-radio_context.oneos5.yml b/tests/oneaccess_oneos/show_cellular-radio_network/show_cellular-radio_context.oneos5.yml new file mode 100644 index 0000000000..10a47ebf6f --- /dev/null +++ b/tests/oneaccess_oneos/show_cellular-radio_network/show_cellular-radio_context.oneos5.yml @@ -0,0 +1,19 @@ +--- +parsed_sample: + - operator: "Dummy Provider" + signal_strength: "Good" + rssi: "-58" + rsrq: "-9" + rsrp: "-91" + snr: "23" + radio_technology: "4G" + register_state: "Registered" + attach_state: "Attached" + resets_loss_registrations: "1" + resets_failed_registrations: "0" + resets_modem: "0" + resets_unknown: "505" + lac: "" + cell_id: "18224898" + tac: "18300" + plmn: "20610" diff --git a/tests/oneaccess_oneos/show_cellular-radio_network/show_cellular-radio_context.oneos6.raw b/tests/oneaccess_oneos/show_cellular-radio_network/show_cellular-radio_context.oneos6.raw new file mode 100644 index 0000000000..55d819a964 --- /dev/null +++ b/tests/oneaccess_oneos/show_cellular-radio_network/show_cellular-radio_context.oneos6.raw @@ -0,0 +1,22 @@ + Current selected operator : Dummy Provider + Signal strength : Good + Total Ec/Io : + RSSI : -70 dBm + RSRQ : -9 dB + RSRP : -96 dBm + SNR : 6 dB + Current radio access technology : 4G + Circuit-switched register state : Registered + Packet-switched attach state : Attached + +Statistics: + Reset on loss of registration : 0 + Reset on failed initial registration : 0 + Hardware reset of modem : 0 + Unknown reset of modem : 0 + +Details: + Location Area Code (LAC) : + Cell ID : 18242055 + Tracking Area Code (TAC) : 20300 + Public Land Mobile Network (PLMN = MCC+MNC) : 20610 diff --git a/tests/oneaccess_oneos/show_cellular-radio_network/show_cellular-radio_context.oneos6.yml b/tests/oneaccess_oneos/show_cellular-radio_network/show_cellular-radio_context.oneos6.yml new file mode 100644 index 0000000000..79162de682 --- /dev/null +++ b/tests/oneaccess_oneos/show_cellular-radio_network/show_cellular-radio_context.oneos6.yml @@ -0,0 +1,19 @@ +--- +parsed_sample: + - operator: "Dummy Provider" + signal_strength: "Good" + rssi: "-70" + rsrq: "-9" + rsrp: "-96" + snr: "6" + radio_technology: "4G" + register_state: "Registered" + attach_state: "Attached" + resets_loss_registrations: "0" + resets_failed_registrations: "0" + resets_modem: "0" + resets_unknown: "0" + lac: "" + cell_id: "18242055" + tac: "20300" + plmn: "20610" diff --git a/tests/oneaccess_oneos/show_helpers/show_helpers.oneos5.raw b/tests/oneaccess_oneos/show_helpers/show_helpers.oneos5.raw new file mode 100644 index 0000000000..4285b70ab9 --- /dev/null +++ b/tests/oneaccess_oneos/show_helpers/show_helpers.oneos5.raw @@ -0,0 +1,15 @@ +ip forward-protocol udp 137 +ip forward-protocol udp 138 +ip forward-protocol udp 67 +ip forward-protocol udp 68 +ip forward-protocol udp 69 +ip forward-protocol udp 37 +ip forward-protocol udp 42 +ip forward-protocol udp 49 +ip forward-protocol udp 53 +Bvi 1: 0 broadcasts forwarded + 10.1.0.151 10.2.0.20 10.88.1.11 +Bvi 2: 0 broadcasts forwarded + 10.2.0.20 10.1.0.151 10.88.1.11 +Bvi 3: 0 broadcasts forwarded + 10.1.0.151 10.2.0.20 10.88.1.11 diff --git a/tests/oneaccess_oneos/show_helpers/show_helpers.oneos5.yml b/tests/oneaccess_oneos/show_helpers/show_helpers.oneos5.yml new file mode 100644 index 0000000000..a3ffbb14f8 --- /dev/null +++ b/tests/oneaccess_oneos/show_helpers/show_helpers.oneos5.yml @@ -0,0 +1,17 @@ +--- +parsed_sample: + - interface: "Bvi 1" + helpers: + - "10.1.0.151" + - "10.2.0.20" + - "10.88.1.11" + - interface: "Bvi 2" + helpers: + - "10.2.0.20" + - "10.1.0.151" + - "10.88.1.11" + - interface: "Bvi 3" + helpers: + - "10.1.0.151" + - "10.2.0.20" + - "10.88.1.11" diff --git a/tests/oneaccess_oneos/show_helpers/show_helpers.oneos6.raw b/tests/oneaccess_oneos/show_helpers/show_helpers.oneos6.raw new file mode 100644 index 0000000000..4285b70ab9 --- /dev/null +++ b/tests/oneaccess_oneos/show_helpers/show_helpers.oneos6.raw @@ -0,0 +1,15 @@ +ip forward-protocol udp 137 +ip forward-protocol udp 138 +ip forward-protocol udp 67 +ip forward-protocol udp 68 +ip forward-protocol udp 69 +ip forward-protocol udp 37 +ip forward-protocol udp 42 +ip forward-protocol udp 49 +ip forward-protocol udp 53 +Bvi 1: 0 broadcasts forwarded + 10.1.0.151 10.2.0.20 10.88.1.11 +Bvi 2: 0 broadcasts forwarded + 10.2.0.20 10.1.0.151 10.88.1.11 +Bvi 3: 0 broadcasts forwarded + 10.1.0.151 10.2.0.20 10.88.1.11 diff --git a/tests/oneaccess_oneos/show_helpers/show_helpers.oneos6.yml b/tests/oneaccess_oneos/show_helpers/show_helpers.oneos6.yml new file mode 100644 index 0000000000..a3ffbb14f8 --- /dev/null +++ b/tests/oneaccess_oneos/show_helpers/show_helpers.oneos6.yml @@ -0,0 +1,17 @@ +--- +parsed_sample: + - interface: "Bvi 1" + helpers: + - "10.1.0.151" + - "10.2.0.20" + - "10.88.1.11" + - interface: "Bvi 2" + helpers: + - "10.2.0.20" + - "10.1.0.151" + - "10.88.1.11" + - interface: "Bvi 3" + helpers: + - "10.1.0.151" + - "10.2.0.20" + - "10.88.1.11" diff --git a/tests/oneaccess_oneos/show_interfaces/show_interfaces.lbb140.raw b/tests/oneaccess_oneos/show_interfaces/show_interfaces.lbb140.raw new file mode 100644 index 0000000000..026914ba5d --- /dev/null +++ b/tests/oneaccess_oneos/show_interfaces/show_interfaces.lbb140.raw @@ -0,0 +1,211 @@ +GigabitEthernet 0/0 is up, line protocol is up + Flags: (0x8063) BROADCAST MULTICAST ARP, interface index is 111 + Promiscuous mode active + Encapsulation: Ethernet v2, MTU 1500 bytes + Up-time 396d21h16m, status change count 3 + Hardware address is 70:fc:8c:02:bb:4f, ARP timeout 7200 sec + Auto-negotiation, full-duplex, flowcontrol disabled + Line speed 1000000 kbps + Mean input/output rate 504776/397392 bits/s, 226/198 packets/s (over the last 4 seconds) + Mean input/output load percentage 0.050/0.039 percent (over the last 4 seconds) + Congestion Management Dropped packets: RX:0, CPU:0, Total:0 + Bridged to group 1 + Output queuing strategy: fifo, output queue length/depth 0/126 + Reliability: 255/255 + IN: 4578563266 packets, 2133875155484 bytes, 0 queue drops + 735617600 broadcasts, 136187244 multicasts, 0 errors, 164 discards, 0 mac acl discards + 0 unknown protocols + OUT: 3838465524 packets, 2752454327149 bytes, 3357 queue drops + 20941718 broadcasts, 0 multicasts, 0 errors, 1 discards, 0 collisions +GigabitEthernet 0/1 is up, line protocol is up + Flags: (0x8063) BROADCAST MULTICAST ARP, interface index is 112 + Promiscuous mode active + Encapsulation: Ethernet v2, MTU 1500 bytes + Up-time 11d21h45m, status change count 31 + Hardware address is 70:fc:8c:06:bb:4f, ARP timeout 7200 sec + Auto-negotiation, full-duplex, flowcontrol disabled + Line speed 1000000 kbps + Mean input/output rate 243736/256456 bits/s, 152/114 packets/s (over the last 4 seconds) + Mean input/output load percentage 0.024/0.025 percent (over the last 4 seconds) + Congestion Management Dropped packets: RX:0, CPU:0, Total:0 + Bridged to group 2 + Output queuing strategy: fifo, output queue length/depth 0/126 + Reliability: 255/255 + IN: 1125009328 packets, 189632230943 bytes, 0 queue drops + 745390714 broadcasts, 123018268 multicasts, 0 errors, 887632010 discards, 0 mac acl discards + 887631923 unknown protocols + OUT: 351229701 packets, 302436379177 bytes, 23658 queue drops + 2298782 broadcasts, 0 multicasts, 0 errors, 0 discards, 0 collisions +GigabitEthernet 0/2 is up, line protocol is down + Flags: (0x8023) BROADCAST MULTICAST ARP, interface index is 113 + Promiscuous mode active + Encapsulation: Ethernet v2, MTU 1500 bytes + Down-time 448d10h36m, status change count 0 + Hardware address is 70:fc:8c:0a:bb:4f, ARP timeout 7200 sec + Line speed unknown + Mean input/output rate 0/0 bits/s, 0/0 packets/s (over the last 4 seconds) + Mean input/output load percentage 0.000/0.000 percent (over the last 4 seconds) + Congestion Management Dropped packets: RX:0, CPU:0, Total:0 + Bridged to group 1 + Output queuing strategy: fifo, output queue length/depth 0/126 + Reliability: 255/255 + IN: 0 packets, 0 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards, 0 mac acl discards + 0 unknown protocols + OUT: 0 packets, 0 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards, 0 collisions +GigabitEthernet 0/3 is up, line protocol is down + Flags: (0x8023) BROADCAST MULTICAST ARP, interface index is 114 + Promiscuous mode active + Encapsulation: Ethernet v2, MTU 1500 bytes + Down-time 448d10h36m, status change count 0 + Hardware address is 70:fc:8c:0e:bb:4f, ARP timeout 7200 sec + Line speed unknown + Mean input/output rate 0/0 bits/s, 0/0 packets/s (over the last 4 seconds) + Mean input/output load percentage 0.000/0.000 percent (over the last 4 seconds) + Congestion Management Dropped packets: RX:0, CPU:0, Total:0 + Bridged to group 1 + Output queuing strategy: fifo, output queue length/depth 0/126 + Reliability: 255/255 + IN: 0 packets, 0 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards, 0 mac acl discards + 0 unknown protocols + OUT: 0 packets, 0 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards, 0 collisions +FastEthernet 1/0 is up, line protocol is up + Flags: (0x8063) BROADCAST MULTICAST ARP, interface index is 106 + Description: *** WAN INTERFACE *** + Encapsulation: Ethernet v2, MTU 1546 bytes + Up-time 448d10h36m, status change count 1 + Hardware address is 70:fc:8c:12:bb:4f, ARP timeout 7200 sec + Auto-negotiation, full-duplex, flowcontrol enabled + Line speed 100000 kbps + Media-type rj45 + Mean input/output rate 229312/237176 bits/s, 104/102 packets/s (over the last 4 seconds) + Mean input/output load percentage 0.229/0.237 percent (over the last 4 seconds) + Congestion Management Dropped packets: RX:0, CPU:0, Total:0 + Output queuing strategy: cbq + Reliability: 255/255 + IN: 3777818556 packets, 2813130486707 bytes, 0 queue drops + 608769 broadcasts, 0 multicasts, 0 errors, 608769 discards, 0 mac acl discards + 608769 unknown protocols + OUT: 3537518750 packets, 1904299986411 bytes, 1944226 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 114820 discards, 0 collisions +FastEthernet 1/0.10 is up, line protocol is up + Flags: (0x8063) BROADCAST MULTICAST ARP, interface index is 22017 + Description: *** VDSL2 SHARED VLAN *** + Encapsulation: 802.1Q Virtual LAN, VLAN ID 10, MTU 1500 bytes + Up-time 448d10h36m, status change count 1 + Hardware address is 70:fc:8c:12:bb:4f, ARP timeout 7200 sec + Line speed 100000 kbps + Mean input/output rate 229312/237176 bits/s, 104/102 packets/s (over the last 4 seconds) + Mean input/output load percentage 0.229/0.237 percent (over the last 4 seconds) + Congestion Management Dropped packets: RX:0, CPU:0, Total:0 + Output queuing strategy: fifo, output queue length/depth 0/126 + Reliability: 255/255 + IN: 3777209791 packets, 2812914388764 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards, 0 mac acl discards + 0 unknown protocols + OUT: 3539577808 packets, 1907203054251 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 3 errors, 0 discards, 0 collisions +Dialer 1 is up, line protocol is up + Flags: (0x90f1) POINT-TO-POINT MULTICAST, interface index is 11101 + Description: *** VT096413 - GS99999941512 - IP-VPN - ['VDSL2 SHARED VLAN'] - NOS-EMLP-01/ANT-EMLP-01 - LOOPBACK + Encapsulation: Point-to-Point Protocol, MTU 1492 bytes + Up-time 196d20h26m, status change count 7 + Internet address is 94.105.238.194/32, destination address is 94.105.238.193 + Line speed 100000 kbps, bandwidth limit 70000 kbps + Mean input/output rate 240208/217472 bits/s, 104/102 packets/s (over the last 4 seconds) + Mean input/output load percentage 0.240/0.310 percent (over the last 4 seconds) + Congestion Management Dropped packets: RX:0, CPU:0, Total:0 + Output queuing strategy: fifo+shaper, output queue length/depth 0/126 + Shaper: packets dequeued -763131925, burst(current/max) 874602/875000 + Reliability: 255/255 + IN: 3769467815 packets, 2899812744256 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards, 0 mac acl discards + 0 unknown protocols + OUT: 3531835372 packets, 1821912521847 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards +Loopback 0 is up, line protocol is up + Flags: (0x80e9) LOOPBACK MULTICAST, interface index is 9902 + MTU 32768 bytes + Up-time 448d10h36m, status change count 0 + Internet address is 127.0.0.1/32 + IPv6 address is ::1/128 + IPv6 address is fe80::1/64 + Line speed unknown + Mean input/output rate 0/0 bits/s, 0/0 packets/s (over the last 4 seconds) + Mean input/output load percentage 0.000/0.000 percent (over the last 4 seconds) + Congestion Management Dropped packets: RX:0, CPU:0, Total:0 + Output queuing strategy: fifo, output queue length/depth 0/126 + IN: 1749 packets, 164332 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards, 0 mac acl discards + 0 unknown protocols + OUT: 1749 packets, 164332 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards +Loopback 1 is up, line protocol is up + Flags: (0x80e9) LOOPBACK MULTICAST, interface index is 9903 + Firewall zone: management + Description: *** VT096413 - GS99999941512 *** + MTU 32768 bytes + Up-time 448d10h36m, status change count 0 + Internet address is 94.105.25.111/32 + Line speed unknown + Mean input/output rate 6280/6280 bits/s, 9/9 packets/s (over the last 4 seconds) + Mean input/output load percentage 0.000/0.000 percent (over the last 4 seconds) + Congestion Management Dropped packets: RX:0, CPU:0, Total:0 + Output queuing strategy: fifo, output queue length/depth 0/126 + IN: 6346421 packets, 472102678 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards, 0 mac acl discards + 0 unknown protocols + OUT: 6346427 packets, 472103054 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards +Bvi 1 is up, line protocol is up + Flags: (0x8063) BROADCAST MULTICAST ARP, interface index is 9501 + Description: Connection to Customer LAN + Encapsulation: Ethernet v2, MTU 1500 bytes + Up-time 396d21h16m, status change count 3 + Hardware address is 70:fc:8c:02:bb:4f, ARP timeout 7200 sec + Internet address is 192.168.5.1/24, broadcast address is 192.168.5.255 + Line speed 1000000 kbps + Mean input/output rate 504776/397352 bits/s, 226/198 packets/s (over the last 4 seconds) + Mean input/output load percentage 0.000/0.000 percent (over the last 4 seconds) + Congestion Management Dropped packets: RX:0, CPU:0, Total:0 + Bridged to group 1 + Output queuing strategy: fifo, output queue length/depth 0/126 + IN: 4578208775 packets, 2133846516522 bytes, 0 queue drops + 735617627 broadcasts, 136187246 multicasts, 0 errors, 0 discards, 0 mac acl discards + 683928098 unknown protocols + OUT: 3814474945 packets, 2750982891198 bytes, 0 queue drops + 20941724 broadcasts, 0 multicasts, 1 errors, 22341208 discards +Bvi 55 is up, line protocol is up + Flags: (0x8063) BROADCAST MULTICAST ARP, interface index is 9555 + Encapsulation: Ethernet v2, MTU 1500 bytes + Up-time 11d21h45m, status change count 31 + Hardware address is 70:fc:8c:06:bb:4f, ARP timeout 7200 sec + Internet address is 192.168.55.1/24, broadcast address is 192.168.55.255 + Line speed 1000000 kbps + Mean input/output rate 186144/256456 bits/s, 113/114 packets/s (over the last 4 seconds) + Mean input/output load percentage 0.000/0.000 percent (over the last 4 seconds) + Congestion Management Dropped packets: RX:0, CPU:0, Total:0 + Bridged to group 2 + Output queuing strategy: fifo, output queue length/depth 0/126 + IN: 237375069 packets, 58811387749 bytes, 0 queue drops + 182857 broadcasts, 19575274 multicasts, 0 errors, 0 discards, 0 mac acl discards + 18243239 unknown protocols + OUT: 351253527 packets, 302442538460 bytes, 0 queue drops + 2298786 broadcasts, 0 multicasts, 1 errors, 2496554 discards +Null 0 is up, line protocol is up + Flags: (0x80e1) MULTICAST, interface index is 9901 + MTU 32768 bytes + Up-time 448d10h36m, status change count 0 + Line speed unknown + Mean input/output rate 0/0 bits/s, 0/0 packets/s (over the last 4 seconds) + Mean input/output load percentage 0.000/0.000 percent (over the last 4 seconds) + Congestion Management Dropped packets: RX:0, CPU:0, Total:0 + Output queuing strategy: fifo, output queue length/depth 0/126 + IN: 0 packets, 0 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards, 0 mac acl discards + 0 unknown protocols + OUT: 0 packets, 0 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards diff --git a/tests/oneaccess_oneos/show_interfaces/show_interfaces.lbb140.yml b/tests/oneaccess_oneos/show_interfaces/show_interfaces.lbb140.yml new file mode 100644 index 0000000000..de662a1830 --- /dev/null +++ b/tests/oneaccess_oneos/show_interfaces/show_interfaces.lbb140.yml @@ -0,0 +1,857 @@ +--- +parsed_sample: + - interface: "GigabitEthernet 0/0" + duplex: "full" + negotiation: "Auto" + flags: "BROADCAST MULTICAST ARP" + if_index: "111" + description: "" + link_status: "up" + protocol_status: "up" + promiscuous_mode: "active" + encapsulation: "Ethernet v2" + vlan_id: "" + ipv4_mtu: "1500" + ipv6_mtu: "" + uptime: "396d21h16m" + downtime: "" + status_changes: "3" + ipv4: "" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "70:fc:8c:02:bb:4f" + arp_timeout: "7200" + bandwidth_kbps: "1000000" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "504776" + output_rate: "397392" + input_pps: "226" + output_pps: "198" + input_load_pct: "0.050" + output_load_pct: "0.039" + congestion_dropped_rx: "0" + congestion_dropped_cpu: "0" + congestion_dropped_total: "0" + bridge_group: "1" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "126" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "4578563266" + input_bytes: "2133875155484" + input_qdrops: "0" + input_broadcasts: "735617600" + input_multicasts: "136187244" + input_errors: "0" + input_discards: "164" + input_mac_acl_discards: "0" + input_unknown_protocols: "0" + output_packets: "3838465524" + output_bytes: "2752454327149" + output_qdrops: "3357" + output_broadcasts: "20941718" + output_multicasts: "0" + output_errors: "0" + output_discards: "1" + vrf: "" + - interface: "GigabitEthernet 0/1" + duplex: "full" + negotiation: "Auto" + flags: "BROADCAST MULTICAST ARP" + if_index: "112" + description: "" + link_status: "up" + protocol_status: "up" + promiscuous_mode: "active" + encapsulation: "Ethernet v2" + vlan_id: "" + ipv4_mtu: "1500" + ipv6_mtu: "" + uptime: "11d21h45m" + downtime: "" + status_changes: "31" + ipv4: "" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "70:fc:8c:06:bb:4f" + arp_timeout: "7200" + bandwidth_kbps: "1000000" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "243736" + output_rate: "256456" + input_pps: "152" + output_pps: "114" + input_load_pct: "0.024" + output_load_pct: "0.025" + congestion_dropped_rx: "0" + congestion_dropped_cpu: "0" + congestion_dropped_total: "0" + bridge_group: "2" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "126" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "1125009328" + input_bytes: "189632230943" + input_qdrops: "0" + input_broadcasts: "745390714" + input_multicasts: "123018268" + input_errors: "0" + input_discards: "887632010" + input_mac_acl_discards: "0" + input_unknown_protocols: "887631923" + output_packets: "351229701" + output_bytes: "302436379177" + output_qdrops: "23658" + output_broadcasts: "2298782" + output_multicasts: "0" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "GigabitEthernet 0/2" + duplex: "" + negotiation: "" + flags: "BROADCAST MULTICAST ARP" + if_index: "113" + description: "" + link_status: "up" + protocol_status: "down" + promiscuous_mode: "active" + encapsulation: "Ethernet v2" + vlan_id: "" + ipv4_mtu: "1500" + ipv6_mtu: "" + uptime: "" + downtime: "448d10h36m" + status_changes: "0" + ipv4: "" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "70:fc:8c:0a:bb:4f" + arp_timeout: "7200" + bandwidth_kbps: "unknown" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "0" + output_rate: "0" + input_pps: "0" + output_pps: "0" + input_load_pct: "0.000" + output_load_pct: "0.000" + congestion_dropped_rx: "0" + congestion_dropped_cpu: "0" + congestion_dropped_total: "0" + bridge_group: "1" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "126" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "0" + input_bytes: "0" + input_qdrops: "0" + input_broadcasts: "0" + input_multicasts: "0" + input_errors: "0" + input_discards: "0" + input_mac_acl_discards: "0" + input_unknown_protocols: "0" + output_packets: "0" + output_bytes: "0" + output_qdrops: "0" + output_broadcasts: "0" + output_multicasts: "0" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "GigabitEthernet 0/3" + duplex: "" + negotiation: "" + flags: "BROADCAST MULTICAST ARP" + if_index: "114" + description: "" + link_status: "up" + protocol_status: "down" + promiscuous_mode: "active" + encapsulation: "Ethernet v2" + vlan_id: "" + ipv4_mtu: "1500" + ipv6_mtu: "" + uptime: "" + downtime: "448d10h36m" + status_changes: "0" + ipv4: "" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "70:fc:8c:0e:bb:4f" + arp_timeout: "7200" + bandwidth_kbps: "unknown" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "0" + output_rate: "0" + input_pps: "0" + output_pps: "0" + input_load_pct: "0.000" + output_load_pct: "0.000" + congestion_dropped_rx: "0" + congestion_dropped_cpu: "0" + congestion_dropped_total: "0" + bridge_group: "1" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "126" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "0" + input_bytes: "0" + input_qdrops: "0" + input_broadcasts: "0" + input_multicasts: "0" + input_errors: "0" + input_discards: "0" + input_mac_acl_discards: "0" + input_unknown_protocols: "0" + output_packets: "0" + output_bytes: "0" + output_qdrops: "0" + output_broadcasts: "0" + output_multicasts: "0" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "FastEthernet 1/0" + duplex: "full" + negotiation: "Auto" + flags: "BROADCAST MULTICAST ARP" + if_index: "106" + description: "*** WAN INTERFACE ***" + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "Ethernet v2" + vlan_id: "" + ipv4_mtu: "1546" + ipv6_mtu: "" + uptime: "448d10h36m" + downtime: "" + status_changes: "1" + ipv4: "" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "70:fc:8c:12:bb:4f" + arp_timeout: "7200" + bandwidth_kbps: "100000" + bandwidth_limit_kbps: "" + sfp_mediatype: "rj45" + input_rate: "229312" + output_rate: "237176" + input_pps: "104" + output_pps: "102" + input_load_pct: "0.229" + output_load_pct: "0.237" + congestion_dropped_rx: "0" + congestion_dropped_cpu: "0" + congestion_dropped_total: "0" + bridge_group: "" + output_queue_strategy: "cbq" + output_queue_length: "" + output_queue_depth: "" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "3777818556" + input_bytes: "2813130486707" + input_qdrops: "0" + input_broadcasts: "608769" + input_multicasts: "0" + input_errors: "0" + input_discards: "608769" + input_mac_acl_discards: "0" + input_unknown_protocols: "608769" + output_packets: "3537518750" + output_bytes: "1904299986411" + output_qdrops: "1944226" + output_broadcasts: "0" + output_multicasts: "0" + output_errors: "0" + output_discards: "114820" + vrf: "" + - interface: "FastEthernet 1/0.10" + duplex: "" + negotiation: "" + flags: "BROADCAST MULTICAST ARP" + if_index: "22017" + description: "*** VDSL2 SHARED VLAN ***" + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "802.1Q Virtual LAN" + vlan_id: "10" + ipv4_mtu: "1500" + ipv6_mtu: "" + uptime: "448d10h36m" + downtime: "" + status_changes: "1" + ipv4: "" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "70:fc:8c:12:bb:4f" + arp_timeout: "7200" + bandwidth_kbps: "100000" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "229312" + output_rate: "237176" + input_pps: "104" + output_pps: "102" + input_load_pct: "0.229" + output_load_pct: "0.237" + congestion_dropped_rx: "0" + congestion_dropped_cpu: "0" + congestion_dropped_total: "0" + bridge_group: "" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "126" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "3777209791" + input_bytes: "2812914388764" + input_qdrops: "0" + input_broadcasts: "0" + input_multicasts: "0" + input_errors: "0" + input_discards: "0" + input_mac_acl_discards: "0" + input_unknown_protocols: "0" + output_packets: "3539577808" + output_bytes: "1907203054251" + output_qdrops: "0" + output_broadcasts: "0" + output_multicasts: "0" + output_errors: "3" + output_discards: "0" + vrf: "" + - interface: "Dialer 1" + duplex: "" + negotiation: "" + flags: "POINT-TO-POINT MULTICAST" + if_index: "11101" + description: "*** VT096413 - GS99999941512 - IP-VPN - ['VDSL2 SHARED VLAN'] -\ + \ NOS-EMLP-01/ANT-EMLP-01 - LOOPBACK" + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "Point-to-Point Protocol" + vlan_id: "" + ipv4_mtu: "1492" + ipv6_mtu: "" + uptime: "196d20h26m" + downtime: "" + status_changes: "7" + ipv4: "94.105.238.194/32" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "94.105.238.193" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "" + arp_timeout: "" + bandwidth_kbps: "100000" + bandwidth_limit_kbps: "70000" + sfp_mediatype: "" + input_rate: "240208" + output_rate: "217472" + input_pps: "104" + output_pps: "102" + input_load_pct: "0.240" + output_load_pct: "0.310" + congestion_dropped_rx: "0" + congestion_dropped_cpu: "0" + congestion_dropped_total: "0" + bridge_group: "" + output_queue_strategy: "fifo+shaper" + output_queue_length: "0" + output_queue_depth: "126" + shaper_packets_dequeued: "-763131925" + shaper_burst_current: "874602" + shaper_burst_max: "875000" + reliability_value: "255" + reliability_max: "255" + input_packets: "3769467815" + input_bytes: "2899812744256" + input_qdrops: "0" + input_broadcasts: "0" + input_multicasts: "0" + input_errors: "0" + input_discards: "0" + input_mac_acl_discards: "0" + input_unknown_protocols: "0" + output_packets: "3531835372" + output_bytes: "1821912521847" + output_qdrops: "0" + output_broadcasts: "0" + output_multicasts: "0" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "Loopback 0" + duplex: "" + negotiation: "" + flags: "LOOPBACK MULTICAST" + if_index: "9902" + description: "" + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "" + vlan_id: "" + ipv4_mtu: "32768" + ipv6_mtu: "" + uptime: "448d10h36m" + downtime: "" + status_changes: "0" + ipv4: "127.0.0.1/32" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: + - "::1/128" + - "fe80::1/64" + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "" + arp_timeout: "" + bandwidth_kbps: "unknown" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "0" + output_rate: "0" + input_pps: "0" + output_pps: "0" + input_load_pct: "0.000" + output_load_pct: "0.000" + congestion_dropped_rx: "0" + congestion_dropped_cpu: "0" + congestion_dropped_total: "0" + bridge_group: "" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "126" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "" + reliability_max: "" + input_packets: "1749" + input_bytes: "164332" + input_qdrops: "0" + input_broadcasts: "0" + input_multicasts: "0" + input_errors: "0" + input_discards: "0" + input_mac_acl_discards: "0" + input_unknown_protocols: "0" + output_packets: "1749" + output_bytes: "164332" + output_qdrops: "0" + output_broadcasts: "0" + output_multicasts: "0" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "Loopback 1" + duplex: "" + negotiation: "" + flags: "LOOPBACK MULTICAST" + if_index: "9903" + description: "*** VT096413 - GS99999941512 ***" + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "" + vlan_id: "" + ipv4_mtu: "32768" + ipv6_mtu: "" + uptime: "448d10h36m" + downtime: "" + status_changes: "0" + ipv4: "94.105.25.111/32" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "management" + mac_address: "" + arp_timeout: "" + bandwidth_kbps: "unknown" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "6280" + output_rate: "6280" + input_pps: "9" + output_pps: "9" + input_load_pct: "0.000" + output_load_pct: "0.000" + congestion_dropped_rx: "0" + congestion_dropped_cpu: "0" + congestion_dropped_total: "0" + bridge_group: "" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "126" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "" + reliability_max: "" + input_packets: "6346421" + input_bytes: "472102678" + input_qdrops: "0" + input_broadcasts: "0" + input_multicasts: "0" + input_errors: "0" + input_discards: "0" + input_mac_acl_discards: "0" + input_unknown_protocols: "0" + output_packets: "6346427" + output_bytes: "472103054" + output_qdrops: "0" + output_broadcasts: "0" + output_multicasts: "0" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "Bvi 1" + duplex: "" + negotiation: "" + flags: "BROADCAST MULTICAST ARP" + if_index: "9501" + description: "Connection to Customer LAN" + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "Ethernet v2" + vlan_id: "" + ipv4_mtu: "1500" + ipv6_mtu: "" + uptime: "396d21h16m" + downtime: "" + status_changes: "3" + ipv4: "192.168.5.1/24" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "192.168.5.255" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "70:fc:8c:02:bb:4f" + arp_timeout: "7200" + bandwidth_kbps: "1000000" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "504776" + output_rate: "397352" + input_pps: "226" + output_pps: "198" + input_load_pct: "0.000" + output_load_pct: "0.000" + congestion_dropped_rx: "0" + congestion_dropped_cpu: "0" + congestion_dropped_total: "0" + bridge_group: "1" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "126" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "" + reliability_max: "" + input_packets: "4578208775" + input_bytes: "2133846516522" + input_qdrops: "0" + input_broadcasts: "735617627" + input_multicasts: "136187246" + input_errors: "0" + input_discards: "0" + input_mac_acl_discards: "0" + input_unknown_protocols: "683928098" + output_packets: "3814474945" + output_bytes: "2750982891198" + output_qdrops: "0" + output_broadcasts: "20941724" + output_multicasts: "0" + output_errors: "1" + output_discards: "22341208" + vrf: "" + - interface: "Bvi 55" + duplex: "" + negotiation: "" + flags: "BROADCAST MULTICAST ARP" + if_index: "9555" + description: "" + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "Ethernet v2" + vlan_id: "" + ipv4_mtu: "1500" + ipv6_mtu: "" + uptime: "11d21h45m" + downtime: "" + status_changes: "31" + ipv4: "192.168.55.1/24" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "192.168.55.255" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "70:fc:8c:06:bb:4f" + arp_timeout: "7200" + bandwidth_kbps: "1000000" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "186144" + output_rate: "256456" + input_pps: "113" + output_pps: "114" + input_load_pct: "0.000" + output_load_pct: "0.000" + congestion_dropped_rx: "0" + congestion_dropped_cpu: "0" + congestion_dropped_total: "0" + bridge_group: "2" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "126" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "" + reliability_max: "" + input_packets: "237375069" + input_bytes: "58811387749" + input_qdrops: "0" + input_broadcasts: "182857" + input_multicasts: "19575274" + input_errors: "0" + input_discards: "0" + input_mac_acl_discards: "0" + input_unknown_protocols: "18243239" + output_packets: "351253527" + output_bytes: "302442538460" + output_qdrops: "0" + output_broadcasts: "2298786" + output_multicasts: "0" + output_errors: "1" + output_discards: "2496554" + vrf: "" + - interface: "Null 0" + duplex: "" + negotiation: "" + flags: "MULTICAST" + if_index: "9901" + description: "" + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "" + vlan_id: "" + ipv4_mtu: "32768" + ipv6_mtu: "" + uptime: "448d10h36m" + downtime: "" + status_changes: "0" + ipv4: "" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "" + arp_timeout: "" + bandwidth_kbps: "unknown" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "0" + output_rate: "0" + input_pps: "0" + output_pps: "0" + input_load_pct: "0.000" + output_load_pct: "0.000" + congestion_dropped_rx: "0" + congestion_dropped_cpu: "0" + congestion_dropped_total: "0" + bridge_group: "" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "126" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "" + reliability_max: "" + input_packets: "0" + input_bytes: "0" + input_qdrops: "0" + input_broadcasts: "0" + input_multicasts: "0" + input_errors: "0" + input_discards: "0" + input_mac_acl_discards: "0" + input_unknown_protocols: "0" + output_packets: "0" + output_bytes: "0" + output_qdrops: "0" + output_broadcasts: "0" + output_multicasts: "0" + output_errors: "0" + output_discards: "0" + vrf: "" diff --git a/tests/oneaccess_oneos/show_interfaces/show_interfaces.lbb150.raw b/tests/oneaccess_oneos/show_interfaces/show_interfaces.lbb150.raw new file mode 100644 index 0000000000..c4b6c4da65 --- /dev/null +++ b/tests/oneaccess_oneos/show_interfaces/show_interfaces.lbb150.raw @@ -0,0 +1,154 @@ +GigabitEthernet 0/0 is up, line protocol is up + Flags: (0x10c1) BROADCAST MULTICAST ARP, interface index is 524288 + Description: *** LAN INTERFACE *** + Promiscuous mode active + Encapsulation: Ethernet v2, IPv4 MTU 1500 bytes, IPv6 MTU 1500 bytes + Up-time 7d16h18m, status change count 3 + Hardware address is 70:fc:8c:0f:f4:56, ARP timeout 7200 sec + Auto-negotiation, full-duplex + Line speed 1000000 kbps + media-type rj45 + Bridged to group 1 + Mean input/output rate 175872/174288 bits/s, 104/103 packets/s (over the last 4 seconds) + Reliability: 255/255 + Output queuing strategy: fifo, output queue length/depth 0/0 + IN: 32071720 packets, 6390984357 bytes, 0 queue drops + 223105 broadcasts, 485683 multicasts, 0 errors, 25 discards + 0 unknown protocols + OUT: 29278879 packets, 5037622271 bytes, 0 queue drops + 19550 broadcasts, 2 multicasts, 0 errors, 0 discards +GigabitEthernet 0/1 is up, line protocol is down + Flags: (0x1081) BROADCAST MULTICAST ARP, interface index is 528384 + Description: *** LAN INTERFACE *** + Promiscuous mode active + Encapsulation: Ethernet v2, IPv4 MTU 1500 bytes, IPv6 MTU 1500 bytes + Down-time 46d22h7m, status change count 0 + Hardware address is 70:fc:8c:13:f4:56, ARP timeout 7200 sec + Unknown negotiation, duplex-unknown + Line speed unknown + media-type rj45 + Bridged to group 1 + Mean input/output rate 0/0 bits/s, 0/0 packets/s (over the last 4 seconds) + Reliability: 255/255 + Output queuing strategy: fifo, output queue length/depth 0/0 + IN: 0 packets, 0 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards + 0 unknown protocols + OUT: 0 packets, 0 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards +GigabitEthernet 0/2 is up, line protocol is down + Flags: (0x1081) BROADCAST MULTICAST ARP, interface index is 532480 + Description: *** LAN INTERFACE *** + Promiscuous mode active + Encapsulation: Ethernet v2, IPv4 MTU 1500 bytes, IPv6 MTU 1500 bytes + Down-time 46d22h7m, status change count 0 + Hardware address is 70:fc:8c:17:f4:56, ARP timeout 7200 sec + Unknown negotiation, duplex-unknown + Line speed unknown + media-type rj45 + Bridged to group 1 + Mean input/output rate 0/0 bits/s, 0/0 packets/s (over the last 4 seconds) + Reliability: 255/255 + Output queuing strategy: fifo, output queue length/depth 0/0 + IN: 0 packets, 0 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards + 0 unknown protocols + OUT: 0 packets, 0 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards +GigabitEthernet 0/3 is up, line protocol is down + Flags: (0x1081) BROADCAST MULTICAST ARP, interface index is 536576 + Description: *** LAN INTERFACE *** + Promiscuous mode active + Encapsulation: Ethernet v2, IPv4 MTU 1500 bytes, IPv6 MTU 1500 bytes + Down-time 46d22h7m, status change count 0 + Hardware address is 70:fc:8c:1b:f4:56, ARP timeout 7200 sec + Unknown negotiation, duplex-unknown + Line speed unknown + media-type rj45 + Bridged to group 1 + Mean input/output rate 0/0 bits/s, 0/0 packets/s (over the last 4 seconds) + Reliability: 255/255 + Output queuing strategy: fifo, output queue length/depth 0/0 + IN: 0 packets, 0 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards + 0 unknown protocols + OUT: 0 packets, 0 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards +GigabitEthernet 1/0 is up, line protocol is up + Flags: (0x10c1) BROADCAST MULTICAST ARP, interface index is 589824 + Description: *** WAN INTERFACE *** + Encapsulation: Ethernet v2, IPv4 MTU 1550 bytes, IPv6 MTU 1500 bytes + Up-time 46d22h7m, status change count 1 + Hardware address is 70:fc:8c:1f:f4:56, ARP timeout 7200 sec + Auto-negotiation, full-duplex + Line speed 1000000 kbps + media-type rj45 + Mean input/output rate 186728/186520 bits/s, 115/113 packets/s (over the last 4 seconds) + Reliability: 255/255 + Output queuing strategy: cbq, output queue length/depth 0/0 + IN: 35088705 packets, 5965567349 bytes, 0 queue drops + 1328658 broadcasts, 2036367 multicasts, 0 errors, 3366651 discards + 0 unknown protocols + OUT: 35167795 packets, 6548403039 bytes, 11 queue drops + 942 broadcasts, 0 multicasts, 0 errors, 0 discards +GigabitEthernet 1/0.300 is up, line protocol is up + Flags: (0x10c1) BROADCAST MULTICAST ARP, interface index is 590124 + Description: *** To NOS-ASR-01 Bundle-Ether1006.1041 VT111387 *** + Encapsulation: 802.1Q Virtual LAN, VLAN ID 300, IPv4 MTU 1500 bytes, IPv6 MTU 1500 bytes + Up-time 46d22h6m, status change count 1 + Hardware address is 70:fc:8c:1f:f4:56, ARP timeout 7200 sec + Internet address is 94.105.164.78/30, broadcast address is 94.105.164.79 + Line speed 1000000 kbps, bandwidth limit 2000 kbps + Mean input/output rate 185544/186520 bits/s, 114/113 packets/s (over the last 4 seconds) + Reliability: 255/255 + Output queuing strategy: fifo, output queue length/depth 0/0 + IN: 31722054 packets, 5352095889 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards + 0 unknown protocols + OUT: 35167806 packets, 6548407077 bytes, 0 queue drops + 942 broadcasts, 0 multicasts, 0 errors, 4 discards +Bvi 1 is up, line protocol is up + Flags: (0x10c1) BROADCAST MULTICAST, interface index is 268439552 + Description: ***LAN*** + Encapsulation: Ethernet v2, IPv4 MTU 1500 bytes, IPv6 MTU 1500 bytes + Up-time 7d16h18m, status change count 3 + Hardware address is 70:fc:8c:0f:f4:56, ARP timeout 7200 sec + Internet address is 172.16.2.1/24, broadcast address is 172.16.2.255 + Line speed 1000000 kbps + Bridged to group 1 + Mean input/output rate 175864/174288 bits/s, 104/103 packets/s (over the last 4 seconds) + Reliability: 255/255 + Output queuing strategy: fifo, output queue length/depth 0/0 + IN: 32071564 packets, 6387759974 bytes, 0 queue drops + 222958 broadcasts, 485677 multicasts, 0 errors, 202589 discards + 0 unknown protocols + OUT: 29278879 packets, 5037622271 bytes, 0 queue drops + 19550 broadcasts, 2 multicasts, 0 errors, 52 discards +Null 0 is up, line protocol is up + Flags: (0x1000) BROADCAST MULTICAST ARP, interface index is 1879048192 + Description: Null 0 + Up-time 46d22h7m, status change count 0 + Line speed unknown + Mean input/output rate 0/0 bits/s, 0/0 packets/s (over the last 4 seconds) + Reliability: 255/255 + Output queuing strategy: fifo, output queue length/depth 0/0 + IN: 0 packets, 0 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards + 0 unknown protocols + OUT: 0 packets, 0 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards +Loopback 1 is up, line protocol is up + Flags: (0x41) LOOPBACK ARP, interface index is 1912602625 + Description: * VT111387 - - GS20210143583 * + IPv4 MTU 32768 bytes, IPv6 MTU 32768 bytes + Up-time 46d22h6m, status change count 1 + Internet address is 94.105.13.199/32 + Line speed unknown + Mean input/output rate 0/0 bits/s, 0/0 packets/s (over the last 4 seconds) + Reliability: 255/255 + Output queuing strategy: fifo, output queue length/depth 0/0 + IN: 0 packets, 0 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards + 0 unknown protocols + OUT: 0 packets, 0 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards diff --git a/tests/oneaccess_oneos/show_interfaces/show_interfaces.lbb150.yml b/tests/oneaccess_oneos/show_interfaces/show_interfaces.lbb150.yml new file mode 100644 index 0000000000..285372cd2d --- /dev/null +++ b/tests/oneaccess_oneos/show_interfaces/show_interfaces.lbb150.yml @@ -0,0 +1,641 @@ +--- +parsed_sample: + - interface: "GigabitEthernet 0/0" + duplex: "full" + negotiation: "Auto" + flags: "BROADCAST MULTICAST ARP" + if_index: "524288" + description: "*** LAN INTERFACE *** " + link_status: "up" + protocol_status: "up" + promiscuous_mode: "active" + encapsulation: "Ethernet v2" + vlan_id: "" + ipv4_mtu: "1500" + ipv6_mtu: "1500" + uptime: "7d16h18m" + downtime: "" + status_changes: "3" + ipv4: "" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "70:fc:8c:0f:f4:56" + arp_timeout: "7200" + bandwidth_kbps: "1000000" + bandwidth_limit_kbps: "" + sfp_mediatype: "rj45" + input_rate: "175872" + output_rate: "174288" + input_pps: "104" + output_pps: "103" + input_load_pct: "" + output_load_pct: "" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "1" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "0" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "32071720" + input_bytes: "6390984357" + input_qdrops: "0" + input_broadcasts: "223105" + input_multicasts: "485683" + input_errors: "0" + input_discards: "25" + input_mac_acl_discards: "" + input_unknown_protocols: "0" + output_packets: "29278879" + output_bytes: "5037622271" + output_qdrops: "0" + output_broadcasts: "19550" + output_multicasts: "2" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "GigabitEthernet 0/1" + duplex: "unknown" + negotiation: "Unknown" + flags: "BROADCAST MULTICAST ARP" + if_index: "528384" + description: "*** LAN INTERFACE *** " + link_status: "up" + protocol_status: "down" + promiscuous_mode: "active" + encapsulation: "Ethernet v2" + vlan_id: "" + ipv4_mtu: "1500" + ipv6_mtu: "1500" + uptime: "" + downtime: "46d22h7m" + status_changes: "0" + ipv4: "" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "70:fc:8c:13:f4:56" + arp_timeout: "7200" + bandwidth_kbps: "unknown" + bandwidth_limit_kbps: "" + sfp_mediatype: "rj45" + input_rate: "0" + output_rate: "0" + input_pps: "0" + output_pps: "0" + input_load_pct: "" + output_load_pct: "" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "1" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "0" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "0" + input_bytes: "0" + input_qdrops: "0" + input_broadcasts: "0" + input_multicasts: "0" + input_errors: "0" + input_discards: "0" + input_mac_acl_discards: "" + input_unknown_protocols: "0" + output_packets: "0" + output_bytes: "0" + output_qdrops: "0" + output_broadcasts: "0" + output_multicasts: "0" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "GigabitEthernet 0/2" + duplex: "unknown" + negotiation: "Unknown" + flags: "BROADCAST MULTICAST ARP" + if_index: "532480" + description: "*** LAN INTERFACE *** " + link_status: "up" + protocol_status: "down" + promiscuous_mode: "active" + encapsulation: "Ethernet v2" + vlan_id: "" + ipv4_mtu: "1500" + ipv6_mtu: "1500" + uptime: "" + downtime: "46d22h7m" + status_changes: "0" + ipv4: "" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "70:fc:8c:17:f4:56" + arp_timeout: "7200" + bandwidth_kbps: "unknown" + bandwidth_limit_kbps: "" + sfp_mediatype: "rj45" + input_rate: "0" + output_rate: "0" + input_pps: "0" + output_pps: "0" + input_load_pct: "" + output_load_pct: "" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "1" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "0" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "0" + input_bytes: "0" + input_qdrops: "0" + input_broadcasts: "0" + input_multicasts: "0" + input_errors: "0" + input_discards: "0" + input_mac_acl_discards: "" + input_unknown_protocols: "0" + output_packets: "0" + output_bytes: "0" + output_qdrops: "0" + output_broadcasts: "0" + output_multicasts: "0" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "GigabitEthernet 0/3" + duplex: "unknown" + negotiation: "Unknown" + flags: "BROADCAST MULTICAST ARP" + if_index: "536576" + description: "*** LAN INTERFACE *** " + link_status: "up" + protocol_status: "down" + promiscuous_mode: "active" + encapsulation: "Ethernet v2" + vlan_id: "" + ipv4_mtu: "1500" + ipv6_mtu: "1500" + uptime: "" + downtime: "46d22h7m" + status_changes: "0" + ipv4: "" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "70:fc:8c:1b:f4:56" + arp_timeout: "7200" + bandwidth_kbps: "unknown" + bandwidth_limit_kbps: "" + sfp_mediatype: "rj45" + input_rate: "0" + output_rate: "0" + input_pps: "0" + output_pps: "0" + input_load_pct: "" + output_load_pct: "" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "1" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "0" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "0" + input_bytes: "0" + input_qdrops: "0" + input_broadcasts: "0" + input_multicasts: "0" + input_errors: "0" + input_discards: "0" + input_mac_acl_discards: "" + input_unknown_protocols: "0" + output_packets: "0" + output_bytes: "0" + output_qdrops: "0" + output_broadcasts: "0" + output_multicasts: "0" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "GigabitEthernet 1/0" + duplex: "full" + negotiation: "Auto" + flags: "BROADCAST MULTICAST ARP" + if_index: "589824" + description: "*** WAN INTERFACE *** " + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "Ethernet v2" + vlan_id: "" + ipv4_mtu: "1500" + ipv6_mtu: "1500" + uptime: "46d22h7m" + downtime: "" + status_changes: "1" + ipv4: "" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "70:fc:8c:1f:f4:56" + arp_timeout: "7200" + bandwidth_kbps: "1000000" + bandwidth_limit_kbps: "" + sfp_mediatype: "rj45" + input_rate: "186728" + output_rate: "186520" + input_pps: "115" + output_pps: "113" + input_load_pct: "" + output_load_pct: "" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "" + output_queue_strategy: "cbq" + output_queue_length: "0" + output_queue_depth: "0" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "35088705" + input_bytes: "5965567349" + input_qdrops: "0" + input_broadcasts: "1328658" + input_multicasts: "2036367" + input_errors: "0" + input_discards: "3366651" + input_mac_acl_discards: "" + input_unknown_protocols: "0" + output_packets: "35167795" + output_bytes: "6548403039" + output_qdrops: "11" + output_broadcasts: "942" + output_multicasts: "0" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "GigabitEthernet 1/0.300" + duplex: "" + negotiation: "" + flags: "BROADCAST MULTICAST ARP" + if_index: "590124" + description: "*** To NOS-ASR-01 Bundle-Ether1006.1041 VT111387 *** " + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "802.1Q Virtual LAN" + vlan_id: "300" + ipv4_mtu: "1500" + ipv6_mtu: "1500" + uptime: "46d22h6m" + downtime: "" + status_changes: "1" + ipv4: "94.105.164.78/30" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "94.105.164.79" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "70:fc:8c:1f:f4:56" + arp_timeout: "7200" + bandwidth_kbps: "1000000" + bandwidth_limit_kbps: "2000" + sfp_mediatype: "" + input_rate: "185544" + output_rate: "186520" + input_pps: "114" + output_pps: "113" + input_load_pct: "" + output_load_pct: "" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "0" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "31722054" + input_bytes: "5352095889" + input_qdrops: "0" + input_broadcasts: "0" + input_multicasts: "0" + input_errors: "0" + input_discards: "0" + input_mac_acl_discards: "" + input_unknown_protocols: "0" + output_packets: "35167806" + output_bytes: "6548407077" + output_qdrops: "0" + output_broadcasts: "942" + output_multicasts: "0" + output_errors: "0" + output_discards: "4" + vrf: "" + - interface: "Bvi 1" + duplex: "" + negotiation: "" + flags: "BROADCAST MULTICAST" + if_index: "268439552" + description: "***LAN*** " + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "Ethernet v2" + vlan_id: "" + ipv4_mtu: "1500" + ipv6_mtu: "1500" + uptime: "7d16h18m" + downtime: "" + status_changes: "3" + ipv4: "172.16.2.1/24" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "172.16.2.255" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "70:fc:8c:0f:f4:56" + arp_timeout: "7200" + bandwidth_kbps: "1000000" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "175864" + output_rate: "174288" + input_pps: "104" + output_pps: "103" + input_load_pct: "" + output_load_pct: "" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "1" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "0" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "32071564" + input_bytes: "6387759974" + input_qdrops: "0" + input_broadcasts: "222958" + input_multicasts: "485677" + input_errors: "0" + input_discards: "202589" + input_mac_acl_discards: "" + input_unknown_protocols: "0" + output_packets: "29278879" + output_bytes: "5037622271" + output_qdrops: "0" + output_broadcasts: "19550" + output_multicasts: "2" + output_errors: "0" + output_discards: "52" + vrf: "" + - interface: "Null 0" + duplex: "" + negotiation: "" + flags: "BROADCAST MULTICAST ARP" + if_index: "1879048192" + description: "Null 0 " + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "" + vlan_id: "" + ipv4_mtu: "" + ipv6_mtu: "" + uptime: "46d22h7m" + downtime: "" + status_changes: "0" + ipv4: "" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "" + arp_timeout: "" + bandwidth_kbps: "unknown" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "0" + output_rate: "0" + input_pps: "0" + output_pps: "0" + input_load_pct: "" + output_load_pct: "" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "0" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "0" + input_bytes: "0" + input_qdrops: "0" + input_broadcasts: "0" + input_multicasts: "0" + input_errors: "0" + input_discards: "0" + input_mac_acl_discards: "" + input_unknown_protocols: "0" + output_packets: "0" + output_bytes: "0" + output_qdrops: "0" + output_broadcasts: "0" + output_multicasts: "0" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "Loopback 1" + duplex: "" + negotiation: "" + flags: "LOOPBACK ARP" + if_index: "1912602625" + description: "* VT111387 - - GS20210143583 * " + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "" + vlan_id: "" + ipv4_mtu: "32768" + ipv6_mtu: "32768" + uptime: "46d22h6m" + downtime: "" + status_changes: "1" + ipv4: "94.105.13.199/32" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "" + arp_timeout: "" + bandwidth_kbps: "unknown" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "0" + output_rate: "0" + input_pps: "0" + output_pps: "0" + input_load_pct: "" + output_load_pct: "" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "0" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "0" + input_bytes: "0" + input_qdrops: "0" + input_broadcasts: "0" + input_multicasts: "0" + input_errors: "0" + input_discards: "0" + input_mac_acl_discards: "" + input_unknown_protocols: "0" + output_packets: "0" + output_bytes: "0" + output_qdrops: "0" + output_broadcasts: "0" + output_multicasts: "0" + output_errors: "0" + output_discards: "0" + vrf: "" diff --git a/tests/oneaccess_oneos/show_interfaces/show_interfaces.lbb154.raw b/tests/oneaccess_oneos/show_interfaces/show_interfaces.lbb154.raw new file mode 100644 index 0000000000..9a4b4f708d --- /dev/null +++ b/tests/oneaccess_oneos/show_interfaces/show_interfaces.lbb154.raw @@ -0,0 +1,472 @@ +GigabitEthernet 0/0 is up, line protocol is up + Flags: (0x10c1) BROADCAST MULTICAST ARP, interface index is 524288 + Encapsulation: Ethernet v2, IPv4 MTU 1500 bytes, IPv6 MTU 1500 bytes + Up-time 15d13h58m, status change count 1 + Hardware address is 70:fc:8c:14:74:86, ARP timeout 7200 sec + Auto-negotiation, full-duplex + Line speed 1000000 kbps + media-type rj45 + Mean input/output rate 10376/0 bits/s, 9/0 packets/s (over the last 4 seconds) + Reliability: 255/255 + Output queuing strategy: fifo, output queue length/depth 0/0 + IN: 12518391 packets, 1271686154 bytes, 0 queue drops + 3484256 broadcasts, 8964165 multicasts, 0 errors, 739144 discards + 0 unknown protocols + OUT: 18391 packets, 4319614 bytes, 0 queue drops + 6040 broadcasts, 10366 multicasts, 0 errors, 0 discards +GigabitEthernet 0/0.11 is up, line protocol is up + Flags: (0x10c1) BROADCAST MULTICAST ARP, interface index is 524299 + Description: ***New-VLAN*** + Encapsulation: 802.1Q Virtual LAN, VLAN ID 11, IPv4 MTU 1500 bytes, IPv6 MTU 1500 bytes + Up-time 15d13h57m, status change count 1 + Hardware address is 70:fc:8c:14:74:86, ARP timeout 7200 sec + Line speed 1000000 kbps + Bridged to group 11 + Mean input/output rate 912/0 bits/s, 1/0 packets/s (over the last 4 seconds) + Reliability: 255/255 + Output queuing strategy: fifo, output queue length/depth 0/0 + IN: 2006169 packets, 147626481 bytes, 0 queue drops + 697829 broadcasts, 1297736 multicasts, 0 errors, 90 discards + 0 unknown protocols + OUT: 10959 packets, 3637675 bytes, 0 queue drops + 452 broadcasts, 10075 multicasts, 0 errors, 0 discards +GigabitEthernet 0/0.16 is up, line protocol is up + Flags: (0x10c1) BROADCAST MULTICAST ARP, interface index is 524304 + Description: ***IoT-VLAN*** + Encapsulation: 802.1Q Virtual LAN, VLAN ID 16, IPv4 MTU 1500 bytes, IPv6 MTU 1500 bytes + Up-time 15d13h57m, status change count 1 + Hardware address is 70:fc:8c:14:74:86, ARP timeout 7200 sec + Line speed 1000000 kbps + Bridged to group 16 + Mean input/output rate 0/0 bits/s, 0/0 packets/s (over the last 4 seconds) + Reliability: 255/255 + Output queuing strategy: fifo, output queue length/depth 0/0 + IN: 951933 packets, 60291014 bytes, 0 queue drops + 2916 broadcasts, 948052 multicasts, 0 errors, 92 discards + 0 unknown protocols + OUT: 890 packets, 57830 bytes, 0 queue drops + 820 broadcasts, 28 multicasts, 0 errors, 0 discards +GigabitEthernet 0/0.30 is up, line protocol is up + Flags: (0x10c1) BROADCAST MULTICAST ARP, interface index is 524318 + Description: ***Wired-Data*** + Encapsulation: 802.1Q Virtual LAN, VLAN ID 30, IPv4 MTU 1500 bytes, IPv6 MTU 1500 bytes + Up-time 15d13h57m, status change count 1 + Hardware address is 70:fc:8c:14:74:86, ARP timeout 7200 sec + Line speed 1000000 kbps + Bridged to group 30 + Mean input/output rate 0/0 bits/s, 0/0 packets/s (over the last 4 seconds) + Reliability: 255/255 + Output queuing strategy: fifo, output queue length/depth 0/0 + IN: 1067723 packets, 83911652 bytes, 0 queue drops + 75977 broadcasts, 985997 multicasts, 0 errors, 3641 discards + 0 unknown protocols + OUT: 2150 packets, 137293 bytes, 0 queue drops + 2020 broadcasts, 56 multicasts, 0 errors, 0 discards +GigabitEthernet 0/0.32 is up, line protocol is up + Flags: (0x10c1) BROADCAST MULTICAST ARP, interface index is 524320 + Description: ***Wireless-Data*** + Encapsulation: 802.1Q Virtual LAN, VLAN ID 32, IPv4 MTU 1500 bytes, IPv6 MTU 1500 bytes + Up-time 15d13h57m, status change count 1 + Hardware address is 70:fc:8c:14:74:86, ARP timeout 7200 sec + Line speed 1000000 kbps + Bridged to group 32 + Mean input/output rate 0/0 bits/s, 0/0 packets/s (over the last 4 seconds) + Reliability: 255/255 + Output queuing strategy: fifo, output queue length/depth 0/0 + IN: 1224347 packets, 97452034 bytes, 0 queue drops + 183480 broadcasts, 1011526 multicasts, 0 errors, 28132 discards + 0 unknown protocols + OUT: 1498 packets, 352048 bytes, 0 queue drops + 401 broadcasts, 195 multicasts, 0 errors, 0 discards +GigabitEthernet 0/0.100 is up, line protocol is up + Flags: (0x10c1) BROADCAST MULTICAST ARP, interface index is 524388 + Description: ***Detron management*** + Encapsulation: 802.1Q Virtual LAN, VLAN ID 100, IPv4 MTU 1500 bytes, IPv6 MTU 1500 bytes + Up-time 15d13h57m, status change count 1 + Hardware address is 70:fc:8c:14:74:86, ARP timeout 7200 sec + Line speed 1000000 kbps + Bridged to group 100 + Mean input/output rate 6984/0 bits/s, 2/0 packets/s (over the last 4 seconds) + Reliability: 255/255 + Output queuing strategy: fifo, output queue length/depth 0/0 + IN: 3423184 packets, 584129862 bytes, 0 queue drops + 2482067 broadcasts, 940888 multicasts, 0 errors, 8 discards + 0 unknown protocols + OUT: 313 packets, 14422 bytes, 0 queue drops + 124 broadcasts, 2 multicasts, 0 errors, 0 discards +GigabitEthernet 0/0.111 is up, line protocol is up + Flags: (0x10c1) BROADCAST MULTICAST ARP, interface index is 524399 + Description: ***VLAN Voice*** + Encapsulation: 802.1Q Virtual LAN, VLAN ID 111, IPv4 MTU 1500 bytes, IPv6 MTU 1500 bytes + Up-time 15d13h57m, status change count 1 + Hardware address is 70:fc:8c:14:74:86, ARP timeout 7200 sec + Line speed 1000000 kbps + Bridged to group 111 + Mean input/output rate 0/0 bits/s, 0/0 packets/s (over the last 4 seconds) + Reliability: 255/255 + Output queuing strategy: fifo, output queue length/depth 0/0 + IN: 946934 packets, 58999003 bytes, 0 queue drops + 3578 broadcasts, 941005 multicasts, 0 errors, 1175 discards + 0 unknown protocols + OUT: 1210 packets, 57232 bytes, 0 queue drops + 1175 broadcasts, 6 multicasts, 0 errors, 0 discards +GigabitEthernet 0/0.255 is up, line protocol is up + Flags: (0x10c1) BROADCAST MULTICAST ARP, interface index is 524543 + Description: ***Renewi-internet-only*** + Encapsulation: 802.1Q Virtual LAN, VLAN ID 255, IPv4 MTU 1500 bytes, IPv6 MTU 1500 bytes + Up-time 15d13h57m, status change count 1 + Hardware address is 70:fc:8c:14:74:86, ARP timeout 7200 sec + Line speed 1000000 kbps + Bridged to group 255 + Mean input/output rate 0/0 bits/s, 0/0 packets/s (over the last 4 seconds) + Reliability: 255/255 + Output queuing strategy: fifo, output queue length/depth 0/0 + IN: 958692 packets, 63289510 bytes, 0 queue drops + 905 broadcasts, 957262 multicasts, 0 errors, 1 discards + 0 unknown protocols + OUT: 313 packets, 14422 bytes, 0 queue drops + 155 broadcasts, 2 multicasts, 0 errors, 0 discards +GigabitEthernet 0/0.256 is up, line protocol is up + Flags: (0x10c1) BROADCAST MULTICAST ARP, interface index is 524544 + Description: ***Guest-internet-only*** + Encapsulation: 802.1Q Virtual LAN, VLAN ID 256, IPv4 MTU 1500 bytes, IPv6 MTU 1500 bytes + Up-time 15d13h57m, status change count 1 + Hardware address is 70:fc:8c:14:74:86, ARP timeout 7200 sec + Line speed 1000000 kbps + Bridged to group 256 + Mean input/output rate 0/0 bits/s, 0/0 packets/s (over the last 4 seconds) + Reliability: 255/255 + Output queuing strategy: fifo, output queue length/depth 0/0 + IN: 1200265 packets, 104533834 bytes, 0 queue drops + 37427 broadcasts, 1142644 multicasts, 0 errors, 16925 discards + 0 unknown protocols + OUT: 1058 packets, 48692 bytes, 0 queue drops + 893 broadcasts, 2 multicasts, 0 errors, 0 discards +GigabitEthernet 0/1 is up, line protocol is down + Flags: (0x1081) BROADCAST MULTICAST ARP, interface index is 528384 + Encapsulation: Ethernet v2, IPv4 MTU 1500 bytes, IPv6 MTU 1500 bytes + Down-time 15d13h58m, status change count 0 + Hardware address is 70:fc:8c:18:74:86, ARP timeout 7200 sec + Unknown negotiation, duplex-unknown + Line speed unknown + media-type rj45 + Mean input/output rate 0/0 bits/s, 0/0 packets/s (over the last 4 seconds) + Reliability: 255/255 + Output queuing strategy: fifo, output queue length/depth 0/0 + IN: 0 packets, 0 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards + 0 unknown protocols + OUT: 0 packets, 0 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards +GigabitEthernet 0/2 is up, line protocol is down + Flags: (0x1081) BROADCAST MULTICAST ARP, interface index is 532480 + Encapsulation: Ethernet v2, IPv4 MTU 1500 bytes, IPv6 MTU 1500 bytes + Down-time 15d13h58m, status change count 0 + Hardware address is 70:fc:8c:1c:74:86, ARP timeout 7200 sec + Unknown negotiation, duplex-unknown + Line speed unknown + media-type rj45 + Mean input/output rate 0/0 bits/s, 0/0 packets/s (over the last 4 seconds) + Reliability: 255/255 + Output queuing strategy: fifo, output queue length/depth 0/0 + IN: 0 packets, 0 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards + 0 unknown protocols + OUT: 0 packets, 0 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards +GigabitEthernet 0/3 is up, line protocol is down + Flags: (0x1081) BROADCAST MULTICAST ARP, interface index is 536576 + Encapsulation: Ethernet v2, IPv4 MTU 1500 bytes, IPv6 MTU 1500 bytes + Down-time 15d13h58m, status change count 0 + Hardware address is 70:fc:8c:20:74:86, ARP timeout 7200 sec + Unknown negotiation, duplex-unknown + Line speed unknown + media-type rj45 + Mean input/output rate 0/0 bits/s, 0/0 packets/s (over the last 4 seconds) + Reliability: 255/255 + Output queuing strategy: fifo, output queue length/depth 0/0 + IN: 0 packets, 0 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards + 0 unknown protocols + OUT: 0 packets, 0 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards +GigabitEthernet 1/0 is up, line protocol is down + Flags: (0x1081) BROADCAST MULTICAST ARP, interface index is 589824 + Encapsulation: Ethernet v2, IPv4 MTU 1500 bytes, IPv6 MTU 1500 bytes + Down-time 15d13h58m, status change count 0 + Hardware address is 70:fc:8c:24:74:86, ARP timeout 7200 sec + Unknown negotiation, duplex-unknown + Line speed unknown + media-type rj45 + Mean input/output rate 0/0 bits/s, 0/0 packets/s (over the last 4 seconds) + Reliability: 255/255 + Output queuing strategy: fifo, output queue length/depth 0/0 + IN: 0 packets, 0 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards + 0 unknown protocols + OUT: 0 packets, 0 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards +Bvi 11 is up, line protocol is up + Flags: (0x10c1) BROADCAST MULTICAST, interface index is 268480512 + Description: ***New-VLAN*** + Encapsulation: 802.1Q Virtual LAN, VLAN ID 11, IPv4 MTU 1500 bytes, IPv6 MTU 1500 bytes + Up-time 15d13h58m, status change count 1 + Hardware address is 70:fc:8c:14:74:86, ARP timeout 7200 sec + Internet address is 192.168.113.8/24, broadcast address is 192.168.113.255 + Secondary address is 1.35.8.3/28 + Line speed 1000000 kbps + Bridged to group 11 + Mean input/output rate 912/0 bits/s, 1/0 packets/s (over the last 4 seconds) + Reliability: 255/255 + Output queuing strategy: fifo, output queue length/depth 0/0 + IN: 2006079 packets, 147611735 bytes, 0 queue drops + 697827 broadcasts, 1297732 multicasts, 0 errors, 746458 discards + 0 unknown protocols + OUT: 10959 packets, 3637675 bytes, 0 queue drops + 452 broadcasts, 10075 multicasts, 0 errors, 0 discards +Bvi 16 is up, line protocol is up + Flags: (0x10c1) BROADCAST MULTICAST, interface index is 268500992 + Description: ***IoT-VLAN*** + Encapsulation: 802.1Q Virtual LAN, VLAN ID 16, IPv4 MTU 1500 bytes, IPv6 MTU 1500 bytes + Up-time 15d13h58m, status change count 1 + Hardware address is 70:fc:8c:14:74:86, ARP timeout 7200 sec + Internet address is 10.133.16.7/24, broadcast address is 10.133.16.255 + Line speed 1000000 kbps + Bridged to group 16 + Mean input/output rate 0/0 bits/s, 0/0 packets/s (over the last 4 seconds) + Reliability: 255/255 + Output queuing strategy: fifo, output queue length/depth 0/0 + IN: 951841 packets, 60270731 bytes, 0 queue drops + 2916 broadcasts, 948051 multicasts, 0 errors, 675839 discards + 0 unknown protocols + OUT: 890 packets, 57830 bytes, 0 queue drops + 820 broadcasts, 28 multicasts, 0 errors, 0 discards +Bvi 30 is up, line protocol is up + Flags: (0x10c1) BROADCAST MULTICAST, interface index is 268558336 + Description: ***Wired-Data*** + Encapsulation: 802.1Q Virtual LAN, VLAN ID 30, IPv4 MTU 1500 bytes, IPv6 MTU 1500 bytes + Up-time 15d13h58m, status change count 1 + Hardware address is 70:fc:8c:14:74:86, ARP timeout 7200 sec + Internet address is 10.133.30.7/24, broadcast address is 10.133.30.255 + Line speed 1000000 kbps + Bridged to group 30 + Mean input/output rate 0/0 bits/s, 0/0 packets/s (over the last 4 seconds) + Reliability: 255/255 + Output queuing strategy: fifo, output queue length/depth 0/0 + IN: 1064082 packets, 83308854 bytes, 0 queue drops + 75977 broadcasts, 985996 multicasts, 0 errors, 705770 discards + 0 unknown protocols + OUT: 2150 packets, 137293 bytes, 0 queue drops + 2020 broadcasts, 56 multicasts, 0 errors, 0 discards +Bvi 32 is up, line protocol is up + Flags: (0x10c1) BROADCAST MULTICAST, interface index is 268566528 + Description: ***Wireless-Data*** + Encapsulation: 802.1Q Virtual LAN, VLAN ID 32, IPv4 MTU 1500 bytes, IPv6 MTU 1500 bytes + Up-time 15d13h58m, status change count 1 + Hardware address is 70:fc:8c:14:74:86, ARP timeout 7200 sec + Internet address is 10.133.32.7/24, broadcast address is 10.133.32.255 + Line speed 1000000 kbps + Bridged to group 32 + Mean input/output rate 0/0 bits/s, 0/0 packets/s (over the last 4 seconds) + Reliability: 255/255 + Output queuing strategy: fifo, output queue length/depth 0/0 + IN: 1196215 packets, 93448622 bytes, 0 queue drops + 183480 broadcasts, 1011526 multicasts, 0 errors, 711906 discards + 0 unknown protocols + OUT: 1498 packets, 352048 bytes, 0 queue drops + 401 broadcasts, 195 multicasts, 0 errors, 0 discards +Bvi 100 is up, line protocol is up + Flags: (0x10c1) BROADCAST MULTICAST, interface index is 268845056 + Description: ***Detron management*** + Encapsulation: 802.1Q Virtual LAN, VLAN ID 100, IPv4 MTU 1500 bytes, IPv6 MTU 1500 bytes + Up-time 15d13h58m, status change count 1 + Hardware address is 70:fc:8c:14:74:86, ARP timeout 7200 sec + Internet address is 10.133.100.7/24, broadcast address is 10.133.100.255 + Line speed 1000000 kbps + Bridged to group 100 + Mean input/output rate 6984/0 bits/s, 2/0 packets/s (over the last 4 seconds) + Reliability: 255/255 + Output queuing strategy: fifo, output queue length/depth 0/0 + IN: 3423176 packets, 584129223 bytes, 0 queue drops + 2482062 broadcasts, 940885 multicasts, 0 errors, 3122704 discards + 0 unknown protocols + OUT: 313 packets, 14422 bytes, 0 queue drops + 124 broadcasts, 2 multicasts, 0 errors, 0 discards +Bvi 111 is up, line protocol is up + Flags: (0x10c1) BROADCAST MULTICAST, interface index is 268890112 + Description: ***VLAN Voice*** + Encapsulation: 802.1Q Virtual LAN, VLAN ID 111, IPv4 MTU 1500 bytes, IPv6 MTU 1500 bytes + Up-time 15d13h58m, status change count 1 + Hardware address is 70:fc:8c:14:74:86, ARP timeout 7200 sec + Internet address is 10.133.111.7/24, broadcast address is 10.133.111.255 + Line speed 1000000 kbps + Bridged to group 111 + Mean input/output rate 0/0 bits/s, 0/0 packets/s (over the last 4 seconds) + Reliability: 255/255 + Output queuing strategy: fifo, output queue length/depth 0/0 + IN: 945759 packets, 58912718 bytes, 0 queue drops + 3578 broadcasts, 941004 multicasts, 0 errors, 671817 discards + 0 unknown protocols + OUT: 1210 packets, 57232 bytes, 0 queue drops + 1175 broadcasts, 6 multicasts, 0 errors, 0 discards +Bvi 255 is up, line protocol is up + Flags: (0x10c1) BROADCAST MULTICAST, interface index is 269479936 + Description: ***Renewi-internet-only*** + Encapsulation: 802.1Q Virtual LAN, VLAN ID 255, IPv4 MTU 1500 bytes, IPv6 MTU 1500 bytes + Up-time 15d13h58m, status change count 1 + Hardware address is 70:fc:8c:14:74:86, ARP timeout 7200 sec + Internet address is 10.133.255.7/24, broadcast address is 10.133.255.255 + Line speed 1000000 kbps + Bridged to group 255 + Mean input/output rate 0/0 bits/s, 0/0 packets/s (over the last 4 seconds) + Reliability: 255/255 + Output queuing strategy: fifo, output queue length/depth 0/0 + IN: 958691 packets, 63289446 bytes, 0 queue drops + 905 broadcasts, 957261 multicasts, 0 errors, 672044 discards + 0 unknown protocols + OUT: 313 packets, 14422 bytes, 0 queue drops + 155 broadcasts, 2 multicasts, 0 errors, 0 discards +Bvi 256 is up, line protocol is up + Flags: (0x10c1) BROADCAST MULTICAST, interface index is 269484032 + Description: ***Guest-internet-only *** + Encapsulation: 802.1Q Virtual LAN, VLAN ID 256, IPv4 MTU 1500 bytes, IPv6 MTU 1500 bytes + Up-time 15d13h57m, status change count 1 + Hardware address is 70:fc:8c:14:74:86, ARP timeout 7200 sec + Internet address is 172.31.133.7/24, broadcast address is 172.31.133.255 + Line speed 1000000 kbps + Bridged to group 256 + Mean input/output rate 0/0 bits/s, 0/0 packets/s (over the last 4 seconds) + Reliability: 255/255 + Output queuing strategy: fifo, output queue length/depth 0/0 + IN: 1183340 packets, 102663453 bytes, 0 queue drops + 37427 broadcasts, 1142643 multicasts, 0 errors, 790937 discards + 0 unknown protocols + OUT: 1058 packets, 48692 bytes, 0 queue drops + 893 broadcasts, 2 multicasts, 0 errors, 0 discards +Virtual-Ethernet 1 is up, line protocol is up + Flags: (0x10d3) BROADCAST MULTICAST ARP, interface index is 402657280 + Description: * - VT113486obile access 4G - UNTRUST - IP-VPN - 4G * + This interface is associated to VRF UNTRUST + Encapsulation: Ethernet v2, IPv4 MTU 1500 bytes, IPv6 MTU 1500 bytes + Up-time 7d18h14m, status change count 13 + Internet address is 10.94.60.60/29, broadcast address is 10.94.60.63 + Line speed 50000 kbps + Mean input/output rate 13104/13400 bits/s, 11/8 packets/s (over the last 4 seconds) + Reliability: 255/255 + Output queuing strategy: fifo, output queue length/depth 0/0 + IN: 503303 packets, 68017904 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 6 discards + 0 unknown protocols + OUT: 577910 packets, 95350536 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 2 discards +Null 0 is up, line protocol is up + Flags: (0x1000) BROADCAST MULTICAST ARP, interface index is 1879048192 + Description: Null 0 + Up-time 15d13h58m, status change count 0 + Line speed unknown + Mean input/output rate 0/0 bits/s, 0/0 packets/s (over the last 4 seconds) + Reliability: 255/255 + Output queuing strategy: fifo, output queue length/depth 0/0 + IN: 0 packets, 0 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards + 0 unknown protocols + OUT: 0 packets, 0 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards +Loopback 1 is up, line protocol is up + Flags: (0x41) LOOPBACK ARP, interface index is 1912602625 + Description: * VT113486 - GS20220145291 * + IPv4 MTU 32768 bytes, IPv6 MTU 32768 bytes + Up-time 15d13h57m, status change count 1 + Internet address is 94.105.15.186/32 + Line speed unknown + Mean input/output rate 0/0 bits/s, 0/0 packets/s (over the last 4 seconds) + Reliability: 255/255 + Output queuing strategy: fifo, output queue length/depth 0/0 + IN: 0 packets, 0 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards + 0 unknown protocols + OUT: 0 packets, 0 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards +Loopback 2 is up, line protocol is up + Flags: (0x41) LOOPBACK ARP, interface index is 1912602626 + Description: * Customer * + IPv4 MTU 32768 bytes, IPv6 MTU 32768 bytes + Up-time 15d13h57m, status change count 1 + Internet address is 172.18.2.133/32 + Line speed unknown + Mean input/output rate 0/0 bits/s, 0/0 packets/s (over the last 4 seconds) + Reliability: 255/255 + Output queuing strategy: fifo, output queue length/depth 0/0 + IN: 0 packets, 0 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards + 0 unknown protocols + OUT: 0 packets, 0 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards +Loopback 21 is up, line protocol is up + Flags: (0x41) LOOPBACK ARP, interface index is 1912602645 + Description: * - Mobile access 4G - ANT BGP peer ip * + IPv4 MTU 32768 bytes, IPv6 MTU 32768 bytes + Up-time 15d13h57m, status change count 1 + Internet address is 192.4.21.8/32 + Line speed unknown + Mean input/output rate 0/0 bits/s, 0/0 packets/s (over the last 4 seconds) + Reliability: 255/255 + Output queuing strategy: fifo, output queue length/depth 0/0 + IN: 0 packets, 0 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards + 0 unknown protocols + OUT: 0 packets, 0 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards +Loopback 91 is up, line protocol is up + Flags: (0x41) LOOPBACK ARP, interface index is 1912602715 + Description: * - Mobile access 4G - NOS BGP peer ip * + IPv4 MTU 32768 bytes, IPv6 MTU 32768 bytes + Up-time 15d13h57m, status change count 1 + Internet address is 192.4.91.8/32 + Line speed unknown + Mean input/output rate 0/0 bits/s, 0/0 packets/s (over the last 4 seconds) + Reliability: 255/255 + Output queuing strategy: fifo, output queue length/depth 0/0 + IN: 0 packets, 0 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards + 0 unknown protocols + OUT: 0 packets, 0 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards +Tunnel 21 is up, line protocol is up + Flags: (0x10d3) POINT-TO-POINT MULTICAST, interface index is 1912668181 + Description: * VT113486 - Mobile access 4G - Tunnel to ANT-IPSEC-02 - IP-VPN - 4G * + Encapsulation: TUNNEL, IPv4 MTU 1434 bytes, IPv6 MTU 1476 bytes + Tunnel source 10.94.60.60, destination 94.105.25.2 + Tunnel protocol/transport GRE/IP + Tunnel protection via IPsec (profile "CM-VPN-ANT1") + This interface is associated to Tunnel VRF UNTRUST + Up-time 7d18h14m, status change count 21 + Interface is unnumbered, use address of Loopback 1(94.105.15.186) + Line speed unknown + Mean input/output rate 0/0 bits/s, 0/0 packets/s (over the last 4 seconds) + Reliability: 255/255 + Output queuing strategy: fifo, output queue length/depth 0/0 + IN: 95951 packets, 11888424 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards + 0 unknown protocols + OUT: 97372 packets, 11696336 bytes, 0 queue drops + 99 broadcasts, 0 multicasts, 0 errors, 2 discards +Tunnel 91 is up, line protocol is up + Flags: (0x10d3) POINT-TO-POINT MULTICAST, interface index is 1912668251 + Description: * VT113486 - Mobile access 4G - Tunnel to NOS-IPSEC-02 - IP-VPN - 4G * + Encapsulation: TUNNEL, IPv4 MTU 1434 bytes, IPv6 MTU 1476 bytes + Tunnel source 10.94.60.60, destination 94.105.25.9 + Tunnel protocol/transport GRE/IP + Tunnel protection via IPsec (profile "CM-VPN-NOS1") + This interface is associated to Tunnel VRF UNTRUST + Up-time 1d15h45m, status change count 45 + Interface is unnumbered, use address of Loopback 1(94.105.15.186) + Line speed unknown + Mean input/output rate 13088/13392 bits/s, 11/8 packets/s (over the last 4 seconds) + Reliability: 255/255 + Output queuing strategy: fifo, output queue length/depth 0/0 + IN: 379133 packets, 51559304 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 1 discards + 0 unknown protocols + OUT: 444480 packets, 78321920 bytes, 0 queue drops + 40046 broadcasts, 15 multicasts, 0 errors, 52 discards diff --git a/tests/oneaccess_oneos/show_interfaces/show_interfaces.lbb154.yml b/tests/oneaccess_oneos/show_interfaces/show_interfaces.lbb154.yml new file mode 100644 index 0000000000..cc70867ce4 --- /dev/null +++ b/tests/oneaccess_oneos/show_interfaces/show_interfaces.lbb154.yml @@ -0,0 +1,2064 @@ +--- +parsed_sample: + - interface: "GigabitEthernet 0/0" + duplex: "full" + negotiation: "Auto" + flags: "BROADCAST MULTICAST ARP" + if_index: "524288" + description: "" + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "Ethernet v2" + vlan_id: "" + ipv4_mtu: "1500" + ipv6_mtu: "1500" + uptime: "15d13h58m" + downtime: "" + status_changes: "1" + ipv4: "" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "70:fc:8c:14:74:86" + arp_timeout: "7200" + bandwidth_kbps: "1000000" + bandwidth_limit_kbps: "" + sfp_mediatype: "rj45" + input_rate: "10376" + output_rate: "0" + input_pps: "9" + output_pps: "0" + input_load_pct: "" + output_load_pct: "" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "0" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "12518391" + input_bytes: "1271686154" + input_qdrops: "0" + input_broadcasts: "3484256" + input_multicasts: "8964165" + input_errors: "0" + input_discards: "739144" + input_mac_acl_discards: "" + input_unknown_protocols: "0" + output_packets: "18391" + output_bytes: "4319614" + output_qdrops: "0" + output_broadcasts: "6040" + output_multicasts: "10366" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "GigabitEthernet 0/0.11" + duplex: "" + negotiation: "" + flags: "BROADCAST MULTICAST ARP" + if_index: "524299" + description: "***New-VLAN*** " + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "802.1Q Virtual LAN" + vlan_id: "11" + ipv4_mtu: "1500" + ipv6_mtu: "1500" + uptime: "15d13h57m" + downtime: "" + status_changes: "1" + ipv4: "" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "70:fc:8c:14:74:86" + arp_timeout: "7200" + bandwidth_kbps: "1000000" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "912" + output_rate: "0" + input_pps: "1" + output_pps: "0" + input_load_pct: "" + output_load_pct: "" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "11" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "0" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "2006169" + input_bytes: "147626481" + input_qdrops: "0" + input_broadcasts: "697829" + input_multicasts: "1297736" + input_errors: "0" + input_discards: "90" + input_mac_acl_discards: "" + input_unknown_protocols: "0" + output_packets: "10959" + output_bytes: "3637675" + output_qdrops: "0" + output_broadcasts: "452" + output_multicasts: "10075" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "GigabitEthernet 0/0.16" + duplex: "" + negotiation: "" + flags: "BROADCAST MULTICAST ARP" + if_index: "524304" + description: "***IoT-VLAN*** " + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "802.1Q Virtual LAN" + vlan_id: "16" + ipv4_mtu: "1500" + ipv6_mtu: "1500" + uptime: "15d13h57m" + downtime: "" + status_changes: "1" + ipv4: "" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "70:fc:8c:14:74:86" + arp_timeout: "7200" + bandwidth_kbps: "1000000" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "0" + output_rate: "0" + input_pps: "0" + output_pps: "0" + input_load_pct: "" + output_load_pct: "" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "16" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "0" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "951933" + input_bytes: "60291014" + input_qdrops: "0" + input_broadcasts: "2916" + input_multicasts: "948052" + input_errors: "0" + input_discards: "92" + input_mac_acl_discards: "" + input_unknown_protocols: "0" + output_packets: "890" + output_bytes: "57830" + output_qdrops: "0" + output_broadcasts: "820" + output_multicasts: "28" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "GigabitEthernet 0/0.30" + duplex: "" + negotiation: "" + flags: "BROADCAST MULTICAST ARP" + if_index: "524318" + description: "***Wired-Data*** " + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "802.1Q Virtual LAN" + vlan_id: "30" + ipv4_mtu: "1500" + ipv6_mtu: "1500" + uptime: "15d13h57m" + downtime: "" + status_changes: "1" + ipv4: "" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "70:fc:8c:14:74:86" + arp_timeout: "7200" + bandwidth_kbps: "1000000" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "0" + output_rate: "0" + input_pps: "0" + output_pps: "0" + input_load_pct: "" + output_load_pct: "" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "30" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "0" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "1067723" + input_bytes: "83911652" + input_qdrops: "0" + input_broadcasts: "75977" + input_multicasts: "985997" + input_errors: "0" + input_discards: "3641" + input_mac_acl_discards: "" + input_unknown_protocols: "0" + output_packets: "2150" + output_bytes: "137293" + output_qdrops: "0" + output_broadcasts: "2020" + output_multicasts: "56" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "GigabitEthernet 0/0.32" + duplex: "" + negotiation: "" + flags: "BROADCAST MULTICAST ARP" + if_index: "524320" + description: "***Wireless-Data*** " + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "802.1Q Virtual LAN" + vlan_id: "32" + ipv4_mtu: "1500" + ipv6_mtu: "1500" + uptime: "15d13h57m" + downtime: "" + status_changes: "1" + ipv4: "" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "70:fc:8c:14:74:86" + arp_timeout: "7200" + bandwidth_kbps: "1000000" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "0" + output_rate: "0" + input_pps: "0" + output_pps: "0" + input_load_pct: "" + output_load_pct: "" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "32" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "0" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "1224347" + input_bytes: "97452034" + input_qdrops: "0" + input_broadcasts: "183480" + input_multicasts: "1011526" + input_errors: "0" + input_discards: "28132" + input_mac_acl_discards: "" + input_unknown_protocols: "0" + output_packets: "1498" + output_bytes: "352048" + output_qdrops: "0" + output_broadcasts: "401" + output_multicasts: "195" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "GigabitEthernet 0/0.100" + duplex: "" + negotiation: "" + flags: "BROADCAST MULTICAST ARP" + if_index: "524388" + description: "***Detron management*** " + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "802.1Q Virtual LAN" + vlan_id: "100" + ipv4_mtu: "1500" + ipv6_mtu: "1500" + uptime: "15d13h57m" + downtime: "" + status_changes: "1" + ipv4: "" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "70:fc:8c:14:74:86" + arp_timeout: "7200" + bandwidth_kbps: "1000000" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "6984" + output_rate: "0" + input_pps: "2" + output_pps: "0" + input_load_pct: "" + output_load_pct: "" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "100" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "0" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "3423184" + input_bytes: "584129862" + input_qdrops: "0" + input_broadcasts: "2482067" + input_multicasts: "940888" + input_errors: "0" + input_discards: "8" + input_mac_acl_discards: "" + input_unknown_protocols: "0" + output_packets: "313" + output_bytes: "14422" + output_qdrops: "0" + output_broadcasts: "124" + output_multicasts: "2" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "GigabitEthernet 0/0.111" + duplex: "" + negotiation: "" + flags: "BROADCAST MULTICAST ARP" + if_index: "524399" + description: "***VLAN Voice*** " + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "802.1Q Virtual LAN" + vlan_id: "111" + ipv4_mtu: "1500" + ipv6_mtu: "1500" + uptime: "15d13h57m" + downtime: "" + status_changes: "1" + ipv4: "" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "70:fc:8c:14:74:86" + arp_timeout: "7200" + bandwidth_kbps: "1000000" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "0" + output_rate: "0" + input_pps: "0" + output_pps: "0" + input_load_pct: "" + output_load_pct: "" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "111" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "0" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "946934" + input_bytes: "58999003" + input_qdrops: "0" + input_broadcasts: "3578" + input_multicasts: "941005" + input_errors: "0" + input_discards: "1175" + input_mac_acl_discards: "" + input_unknown_protocols: "0" + output_packets: "1210" + output_bytes: "57232" + output_qdrops: "0" + output_broadcasts: "1175" + output_multicasts: "6" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "GigabitEthernet 0/0.255" + duplex: "" + negotiation: "" + flags: "BROADCAST MULTICAST ARP" + if_index: "524543" + description: "***Renewi-internet-only*** " + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "802.1Q Virtual LAN" + vlan_id: "255" + ipv4_mtu: "1500" + ipv6_mtu: "1500" + uptime: "15d13h57m" + downtime: "" + status_changes: "1" + ipv4: "" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "70:fc:8c:14:74:86" + arp_timeout: "7200" + bandwidth_kbps: "1000000" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "0" + output_rate: "0" + input_pps: "0" + output_pps: "0" + input_load_pct: "" + output_load_pct: "" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "255" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "0" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "958692" + input_bytes: "63289510" + input_qdrops: "0" + input_broadcasts: "905" + input_multicasts: "957262" + input_errors: "0" + input_discards: "1" + input_mac_acl_discards: "" + input_unknown_protocols: "0" + output_packets: "313" + output_bytes: "14422" + output_qdrops: "0" + output_broadcasts: "155" + output_multicasts: "2" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "GigabitEthernet 0/0.256" + duplex: "" + negotiation: "" + flags: "BROADCAST MULTICAST ARP" + if_index: "524544" + description: "***Guest-internet-only*** " + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "802.1Q Virtual LAN" + vlan_id: "256" + ipv4_mtu: "1500" + ipv6_mtu: "1500" + uptime: "15d13h57m" + downtime: "" + status_changes: "1" + ipv4: "" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "70:fc:8c:14:74:86" + arp_timeout: "7200" + bandwidth_kbps: "1000000" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "0" + output_rate: "0" + input_pps: "0" + output_pps: "0" + input_load_pct: "" + output_load_pct: "" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "256" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "0" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "1200265" + input_bytes: "104533834" + input_qdrops: "0" + input_broadcasts: "37427" + input_multicasts: "1142644" + input_errors: "0" + input_discards: "16925" + input_mac_acl_discards: "" + input_unknown_protocols: "0" + output_packets: "1058" + output_bytes: "48692" + output_qdrops: "0" + output_broadcasts: "893" + output_multicasts: "2" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "GigabitEthernet 0/1" + duplex: "unknown" + negotiation: "Unknown" + flags: "BROADCAST MULTICAST ARP" + if_index: "528384" + description: "" + link_status: "up" + protocol_status: "down" + promiscuous_mode: "" + encapsulation: "Ethernet v2" + vlan_id: "" + ipv4_mtu: "1500" + ipv6_mtu: "1500" + uptime: "" + downtime: "15d13h58m" + status_changes: "0" + ipv4: "" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "70:fc:8c:18:74:86" + arp_timeout: "7200" + bandwidth_kbps: "unknown" + bandwidth_limit_kbps: "" + sfp_mediatype: "rj45" + input_rate: "0" + output_rate: "0" + input_pps: "0" + output_pps: "0" + input_load_pct: "" + output_load_pct: "" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "0" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "0" + input_bytes: "0" + input_qdrops: "0" + input_broadcasts: "0" + input_multicasts: "0" + input_errors: "0" + input_discards: "0" + input_mac_acl_discards: "" + input_unknown_protocols: "0" + output_packets: "0" + output_bytes: "0" + output_qdrops: "0" + output_broadcasts: "0" + output_multicasts: "0" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "GigabitEthernet 0/2" + duplex: "unknown" + negotiation: "Unknown" + flags: "BROADCAST MULTICAST ARP" + if_index: "532480" + description: "" + link_status: "up" + protocol_status: "down" + promiscuous_mode: "" + encapsulation: "Ethernet v2" + vlan_id: "" + ipv4_mtu: "1500" + ipv6_mtu: "1500" + uptime: "" + downtime: "15d13h58m" + status_changes: "0" + ipv4: "" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "70:fc:8c:1c:74:86" + arp_timeout: "7200" + bandwidth_kbps: "unknown" + bandwidth_limit_kbps: "" + sfp_mediatype: "rj45" + input_rate: "0" + output_rate: "0" + input_pps: "0" + output_pps: "0" + input_load_pct: "" + output_load_pct: "" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "0" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "0" + input_bytes: "0" + input_qdrops: "0" + input_broadcasts: "0" + input_multicasts: "0" + input_errors: "0" + input_discards: "0" + input_mac_acl_discards: "" + input_unknown_protocols: "0" + output_packets: "0" + output_bytes: "0" + output_qdrops: "0" + output_broadcasts: "0" + output_multicasts: "0" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "GigabitEthernet 0/3" + duplex: "unknown" + negotiation: "Unknown" + flags: "BROADCAST MULTICAST ARP" + if_index: "536576" + description: "" + link_status: "up" + protocol_status: "down" + promiscuous_mode: "" + encapsulation: "Ethernet v2" + vlan_id: "" + ipv4_mtu: "1500" + ipv6_mtu: "1500" + uptime: "" + downtime: "15d13h58m" + status_changes: "0" + ipv4: "" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "70:fc:8c:20:74:86" + arp_timeout: "7200" + bandwidth_kbps: "unknown" + bandwidth_limit_kbps: "" + sfp_mediatype: "rj45" + input_rate: "0" + output_rate: "0" + input_pps: "0" + output_pps: "0" + input_load_pct: "" + output_load_pct: "" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "0" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "0" + input_bytes: "0" + input_qdrops: "0" + input_broadcasts: "0" + input_multicasts: "0" + input_errors: "0" + input_discards: "0" + input_mac_acl_discards: "" + input_unknown_protocols: "0" + output_packets: "0" + output_bytes: "0" + output_qdrops: "0" + output_broadcasts: "0" + output_multicasts: "0" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "GigabitEthernet 1/0" + duplex: "unknown" + negotiation: "Unknown" + flags: "BROADCAST MULTICAST ARP" + if_index: "589824" + description: "" + link_status: "up" + protocol_status: "down" + promiscuous_mode: "" + encapsulation: "Ethernet v2" + vlan_id: "" + ipv4_mtu: "1500" + ipv6_mtu: "1500" + uptime: "" + downtime: "15d13h58m" + status_changes: "0" + ipv4: "" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "70:fc:8c:24:74:86" + arp_timeout: "7200" + bandwidth_kbps: "unknown" + bandwidth_limit_kbps: "" + sfp_mediatype: "rj45" + input_rate: "0" + output_rate: "0" + input_pps: "0" + output_pps: "0" + input_load_pct: "" + output_load_pct: "" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "0" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "0" + input_bytes: "0" + input_qdrops: "0" + input_broadcasts: "0" + input_multicasts: "0" + input_errors: "0" + input_discards: "0" + input_mac_acl_discards: "" + input_unknown_protocols: "0" + output_packets: "0" + output_bytes: "0" + output_qdrops: "0" + output_broadcasts: "0" + output_multicasts: "0" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "Bvi 11" + duplex: "" + negotiation: "" + flags: "BROADCAST MULTICAST" + if_index: "268480512" + description: "***New-VLAN*** " + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "802.1Q Virtual LAN" + vlan_id: "11" + ipv4_mtu: "1500" + ipv6_mtu: "1500" + uptime: "15d13h58m" + downtime: "" + status_changes: "1" + ipv4: "192.168.113.8/24" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "192.168.113.255" + ipv4_secondary: + - "1.35.8.3/28" + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "70:fc:8c:14:74:86" + arp_timeout: "7200" + bandwidth_kbps: "1000000" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "912" + output_rate: "0" + input_pps: "1" + output_pps: "0" + input_load_pct: "" + output_load_pct: "" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "11" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "0" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "2006079" + input_bytes: "147611735" + input_qdrops: "0" + input_broadcasts: "697827" + input_multicasts: "1297732" + input_errors: "0" + input_discards: "746458" + input_mac_acl_discards: "" + input_unknown_protocols: "0" + output_packets: "10959" + output_bytes: "3637675" + output_qdrops: "0" + output_broadcasts: "452" + output_multicasts: "10075" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "Bvi 16" + duplex: "" + negotiation: "" + flags: "BROADCAST MULTICAST" + if_index: "268500992" + description: "***IoT-VLAN*** " + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "802.1Q Virtual LAN" + vlan_id: "16" + ipv4_mtu: "1500" + ipv6_mtu: "1500" + uptime: "15d13h58m" + downtime: "" + status_changes: "1" + ipv4: "10.133.16.7/24" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "10.133.16.255" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "70:fc:8c:14:74:86" + arp_timeout: "7200" + bandwidth_kbps: "1000000" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "0" + output_rate: "0" + input_pps: "0" + output_pps: "0" + input_load_pct: "" + output_load_pct: "" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "16" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "0" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "951841" + input_bytes: "60270731" + input_qdrops: "0" + input_broadcasts: "2916" + input_multicasts: "948051" + input_errors: "0" + input_discards: "675839" + input_mac_acl_discards: "" + input_unknown_protocols: "0" + output_packets: "890" + output_bytes: "57830" + output_qdrops: "0" + output_broadcasts: "820" + output_multicasts: "28" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "Bvi 30" + duplex: "" + negotiation: "" + flags: "BROADCAST MULTICAST" + if_index: "268558336" + description: "***Wired-Data*** " + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "802.1Q Virtual LAN" + vlan_id: "30" + ipv4_mtu: "1500" + ipv6_mtu: "1500" + uptime: "15d13h58m" + downtime: "" + status_changes: "1" + ipv4: "10.133.30.7/24" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "10.133.30.255" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "70:fc:8c:14:74:86" + arp_timeout: "7200" + bandwidth_kbps: "1000000" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "0" + output_rate: "0" + input_pps: "0" + output_pps: "0" + input_load_pct: "" + output_load_pct: "" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "30" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "0" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "1064082" + input_bytes: "83308854" + input_qdrops: "0" + input_broadcasts: "75977" + input_multicasts: "985996" + input_errors: "0" + input_discards: "705770" + input_mac_acl_discards: "" + input_unknown_protocols: "0" + output_packets: "2150" + output_bytes: "137293" + output_qdrops: "0" + output_broadcasts: "2020" + output_multicasts: "56" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "Bvi 32" + duplex: "" + negotiation: "" + flags: "BROADCAST MULTICAST" + if_index: "268566528" + description: "***Wireless-Data*** " + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "802.1Q Virtual LAN" + vlan_id: "32" + ipv4_mtu: "1500" + ipv6_mtu: "1500" + uptime: "15d13h58m" + downtime: "" + status_changes: "1" + ipv4: "10.133.32.7/24" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "10.133.32.255" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "70:fc:8c:14:74:86" + arp_timeout: "7200" + bandwidth_kbps: "1000000" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "0" + output_rate: "0" + input_pps: "0" + output_pps: "0" + input_load_pct: "" + output_load_pct: "" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "32" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "0" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "1196215" + input_bytes: "93448622" + input_qdrops: "0" + input_broadcasts: "183480" + input_multicasts: "1011526" + input_errors: "0" + input_discards: "711906" + input_mac_acl_discards: "" + input_unknown_protocols: "0" + output_packets: "1498" + output_bytes: "352048" + output_qdrops: "0" + output_broadcasts: "401" + output_multicasts: "195" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "Bvi 100" + duplex: "" + negotiation: "" + flags: "BROADCAST MULTICAST" + if_index: "268845056" + description: "***Detron management*** " + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "802.1Q Virtual LAN" + vlan_id: "100" + ipv4_mtu: "1500" + ipv6_mtu: "1500" + uptime: "15d13h58m" + downtime: "" + status_changes: "1" + ipv4: "10.133.100.7/24" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "10.133.100.255" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "70:fc:8c:14:74:86" + arp_timeout: "7200" + bandwidth_kbps: "1000000" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "6984" + output_rate: "0" + input_pps: "2" + output_pps: "0" + input_load_pct: "" + output_load_pct: "" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "100" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "0" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "3423176" + input_bytes: "584129223" + input_qdrops: "0" + input_broadcasts: "2482062" + input_multicasts: "940885" + input_errors: "0" + input_discards: "3122704" + input_mac_acl_discards: "" + input_unknown_protocols: "0" + output_packets: "313" + output_bytes: "14422" + output_qdrops: "0" + output_broadcasts: "124" + output_multicasts: "2" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "Bvi 111" + duplex: "" + negotiation: "" + flags: "BROADCAST MULTICAST" + if_index: "268890112" + description: "***VLAN Voice*** " + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "802.1Q Virtual LAN" + vlan_id: "111" + ipv4_mtu: "1500" + ipv6_mtu: "1500" + uptime: "15d13h58m" + downtime: "" + status_changes: "1" + ipv4: "10.133.111.7/24" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "10.133.111.255" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "70:fc:8c:14:74:86" + arp_timeout: "7200" + bandwidth_kbps: "1000000" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "0" + output_rate: "0" + input_pps: "0" + output_pps: "0" + input_load_pct: "" + output_load_pct: "" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "111" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "0" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "945759" + input_bytes: "58912718" + input_qdrops: "0" + input_broadcasts: "3578" + input_multicasts: "941004" + input_errors: "0" + input_discards: "671817" + input_mac_acl_discards: "" + input_unknown_protocols: "0" + output_packets: "1210" + output_bytes: "57232" + output_qdrops: "0" + output_broadcasts: "1175" + output_multicasts: "6" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "Bvi 255" + duplex: "" + negotiation: "" + flags: "BROADCAST MULTICAST" + if_index: "269479936" + description: "***Renewi-internet-only*** " + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "802.1Q Virtual LAN" + vlan_id: "255" + ipv4_mtu: "1500" + ipv6_mtu: "1500" + uptime: "15d13h58m" + downtime: "" + status_changes: "1" + ipv4: "10.133.255.7/24" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "10.133.255.255" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "70:fc:8c:14:74:86" + arp_timeout: "7200" + bandwidth_kbps: "1000000" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "0" + output_rate: "0" + input_pps: "0" + output_pps: "0" + input_load_pct: "" + output_load_pct: "" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "255" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "0" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "958691" + input_bytes: "63289446" + input_qdrops: "0" + input_broadcasts: "905" + input_multicasts: "957261" + input_errors: "0" + input_discards: "672044" + input_mac_acl_discards: "" + input_unknown_protocols: "0" + output_packets: "313" + output_bytes: "14422" + output_qdrops: "0" + output_broadcasts: "155" + output_multicasts: "2" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "Bvi 256" + duplex: "" + negotiation: "" + flags: "BROADCAST MULTICAST" + if_index: "269484032" + description: "***Guest-internet-only *** " + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "802.1Q Virtual LAN" + vlan_id: "256" + ipv4_mtu: "1500" + ipv6_mtu: "1500" + uptime: "15d13h57m" + downtime: "" + status_changes: "1" + ipv4: "172.31.133.7/24" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "172.31.133.255" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "70:fc:8c:14:74:86" + arp_timeout: "7200" + bandwidth_kbps: "1000000" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "0" + output_rate: "0" + input_pps: "0" + output_pps: "0" + input_load_pct: "" + output_load_pct: "" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "256" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "0" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "1183340" + input_bytes: "102663453" + input_qdrops: "0" + input_broadcasts: "37427" + input_multicasts: "1142643" + input_errors: "0" + input_discards: "790937" + input_mac_acl_discards: "" + input_unknown_protocols: "0" + output_packets: "1058" + output_bytes: "48692" + output_qdrops: "0" + output_broadcasts: "893" + output_multicasts: "2" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "Virtual-Ethernet 1" + duplex: "" + negotiation: "" + flags: "BROADCAST MULTICAST ARP" + if_index: "402657280" + description: "* - VT113486obile access 4G - UNTRUST - IP-VPN - 4G * " + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "Ethernet v2" + vlan_id: "" + ipv4_mtu: "1500" + ipv6_mtu: "1500" + uptime: "7d18h14m" + downtime: "" + status_changes: "13" + ipv4: "10.94.60.60/29" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "10.94.60.63" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "" + arp_timeout: "" + bandwidth_kbps: "50000" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "13104" + output_rate: "13400" + input_pps: "11" + output_pps: "8" + input_load_pct: "" + output_load_pct: "" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "0" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "503303" + input_bytes: "68017904" + input_qdrops: "0" + input_broadcasts: "0" + input_multicasts: "0" + input_errors: "0" + input_discards: "6" + input_mac_acl_discards: "" + input_unknown_protocols: "0" + output_packets: "577910" + output_bytes: "95350536" + output_qdrops: "0" + output_broadcasts: "0" + output_multicasts: "0" + output_errors: "0" + output_discards: "2" + vrf: "UNTRUST" + - interface: "Null 0" + duplex: "" + negotiation: "" + flags: "BROADCAST MULTICAST ARP" + if_index: "1879048192" + description: "Null 0 " + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "" + vlan_id: "" + ipv4_mtu: "" + ipv6_mtu: "" + uptime: "15d13h58m" + downtime: "" + status_changes: "0" + ipv4: "" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "" + arp_timeout: "" + bandwidth_kbps: "unknown" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "0" + output_rate: "0" + input_pps: "0" + output_pps: "0" + input_load_pct: "" + output_load_pct: "" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "0" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "0" + input_bytes: "0" + input_qdrops: "0" + input_broadcasts: "0" + input_multicasts: "0" + input_errors: "0" + input_discards: "0" + input_mac_acl_discards: "" + input_unknown_protocols: "0" + output_packets: "0" + output_bytes: "0" + output_qdrops: "0" + output_broadcasts: "0" + output_multicasts: "0" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "Loopback 1" + duplex: "" + negotiation: "" + flags: "LOOPBACK ARP" + if_index: "1912602625" + description: "* VT113486 - GS20220145291 * " + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "" + vlan_id: "" + ipv4_mtu: "32768" + ipv6_mtu: "32768" + uptime: "15d13h57m" + downtime: "" + status_changes: "1" + ipv4: "94.105.15.186/32" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "" + arp_timeout: "" + bandwidth_kbps: "unknown" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "0" + output_rate: "0" + input_pps: "0" + output_pps: "0" + input_load_pct: "" + output_load_pct: "" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "0" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "0" + input_bytes: "0" + input_qdrops: "0" + input_broadcasts: "0" + input_multicasts: "0" + input_errors: "0" + input_discards: "0" + input_mac_acl_discards: "" + input_unknown_protocols: "0" + output_packets: "0" + output_bytes: "0" + output_qdrops: "0" + output_broadcasts: "0" + output_multicasts: "0" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "Loopback 2" + duplex: "" + negotiation: "" + flags: "LOOPBACK ARP" + if_index: "1912602626" + description: "* Customer * " + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "" + vlan_id: "" + ipv4_mtu: "32768" + ipv6_mtu: "32768" + uptime: "15d13h57m" + downtime: "" + status_changes: "1" + ipv4: "172.18.2.133/32" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "" + arp_timeout: "" + bandwidth_kbps: "unknown" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "0" + output_rate: "0" + input_pps: "0" + output_pps: "0" + input_load_pct: "" + output_load_pct: "" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "0" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "0" + input_bytes: "0" + input_qdrops: "0" + input_broadcasts: "0" + input_multicasts: "0" + input_errors: "0" + input_discards: "0" + input_mac_acl_discards: "" + input_unknown_protocols: "0" + output_packets: "0" + output_bytes: "0" + output_qdrops: "0" + output_broadcasts: "0" + output_multicasts: "0" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "Loopback 21" + duplex: "" + negotiation: "" + flags: "LOOPBACK ARP" + if_index: "1912602645" + description: "* - Mobile access 4G - ANT BGP peer ip * " + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "" + vlan_id: "" + ipv4_mtu: "32768" + ipv6_mtu: "32768" + uptime: "15d13h57m" + downtime: "" + status_changes: "1" + ipv4: "192.4.21.8/32" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "" + arp_timeout: "" + bandwidth_kbps: "unknown" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "0" + output_rate: "0" + input_pps: "0" + output_pps: "0" + input_load_pct: "" + output_load_pct: "" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "0" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "0" + input_bytes: "0" + input_qdrops: "0" + input_broadcasts: "0" + input_multicasts: "0" + input_errors: "0" + input_discards: "0" + input_mac_acl_discards: "" + input_unknown_protocols: "0" + output_packets: "0" + output_bytes: "0" + output_qdrops: "0" + output_broadcasts: "0" + output_multicasts: "0" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "Loopback 91" + duplex: "" + negotiation: "" + flags: "LOOPBACK ARP" + if_index: "1912602715" + description: "* - Mobile access 4G - NOS BGP peer ip * " + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "" + vlan_id: "" + ipv4_mtu: "32768" + ipv6_mtu: "32768" + uptime: "15d13h57m" + downtime: "" + status_changes: "1" + ipv4: "192.4.91.8/32" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "" + arp_timeout: "" + bandwidth_kbps: "unknown" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "0" + output_rate: "0" + input_pps: "0" + output_pps: "0" + input_load_pct: "" + output_load_pct: "" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "0" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "0" + input_bytes: "0" + input_qdrops: "0" + input_broadcasts: "0" + input_multicasts: "0" + input_errors: "0" + input_discards: "0" + input_mac_acl_discards: "" + input_unknown_protocols: "0" + output_packets: "0" + output_bytes: "0" + output_qdrops: "0" + output_broadcasts: "0" + output_multicasts: "0" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "Tunnel 21" + duplex: "" + negotiation: "" + flags: "POINT-TO-POINT MULTICAST" + if_index: "1912668181" + description: "* VT113486 - Mobile access 4G - Tunnel to ANT-IPSEC-02 - IP-VPN\ + \ - 4G * " + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "TUNNEL" + vlan_id: "" + ipv4_mtu: "1476" + ipv6_mtu: "1476" + uptime: "7d18h14m" + downtime: "" + status_changes: "21" + ipv4: "unnumbered" + ipv4_unnumbered_intf: "Loopback 1" + ipv4_unnumbered_ip: "94.105.15.186" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "10.94.60.60" + tunnel_destination: "94.105.25.2" + tunnel_protocol: "GRE" + tunnel_transport: "IP" + tunnel_protection_mode: "IPsec" + tunnel_protection_profile: "CM-VPN-ANT1" + tunnel_vrf: "UNTRUST" + firewall_zone: "" + mac_address: "" + arp_timeout: "" + bandwidth_kbps: "unknown" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "0" + output_rate: "0" + input_pps: "0" + output_pps: "0" + input_load_pct: "" + output_load_pct: "" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "0" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "95951" + input_bytes: "11888424" + input_qdrops: "0" + input_broadcasts: "0" + input_multicasts: "0" + input_errors: "0" + input_discards: "0" + input_mac_acl_discards: "" + input_unknown_protocols: "0" + output_packets: "97372" + output_bytes: "11696336" + output_qdrops: "0" + output_broadcasts: "99" + output_multicasts: "0" + output_errors: "0" + output_discards: "2" + vrf: "" + - interface: "Tunnel 91" + duplex: "" + negotiation: "" + flags: "POINT-TO-POINT MULTICAST" + if_index: "1912668251" + description: "* VT113486 - Mobile access 4G - Tunnel to NOS-IPSEC-02 - IP-VPN\ + \ - 4G * " + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "TUNNEL" + vlan_id: "" + ipv4_mtu: "1476" + ipv6_mtu: "1476" + uptime: "1d15h45m" + downtime: "" + status_changes: "45" + ipv4: "unnumbered" + ipv4_unnumbered_intf: "Loopback 1" + ipv4_unnumbered_ip: "94.105.15.186" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "10.94.60.60" + tunnel_destination: "94.105.25.9" + tunnel_protocol: "GRE" + tunnel_transport: "IP" + tunnel_protection_mode: "IPsec" + tunnel_protection_profile: "CM-VPN-NOS1" + tunnel_vrf: "UNTRUST" + firewall_zone: "" + mac_address: "" + arp_timeout: "" + bandwidth_kbps: "unknown" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "13088" + output_rate: "13392" + input_pps: "11" + output_pps: "8" + input_load_pct: "" + output_load_pct: "" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "0" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "379133" + input_bytes: "51559304" + input_qdrops: "0" + input_broadcasts: "0" + input_multicasts: "0" + input_errors: "0" + input_discards: "1" + input_mac_acl_discards: "" + input_unknown_protocols: "0" + output_packets: "444480" + output_bytes: "78321920" + output_qdrops: "0" + output_broadcasts: "40046" + output_multicasts: "15" + output_errors: "0" + output_discards: "52" + vrf: "" diff --git a/tests/oneaccess_oneos/show_interfaces/show_interfaces.lbb4g.raw b/tests/oneaccess_oneos/show_interfaces/show_interfaces.lbb4g.raw new file mode 100644 index 0000000000..b64f63776c --- /dev/null +++ b/tests/oneaccess_oneos/show_interfaces/show_interfaces.lbb4g.raw @@ -0,0 +1,209 @@ +GigabitEthernet 0/0 is up, line protocol is up + Flags: (0x8063) BROADCAST MULTICAST ARP, interface index is 111 + Description: Connection to Customer LAN + Encapsulation: Ethernet v2, MTU 1500 bytes + Up-time 90d17h48m, status change count 1 + Hardware address is 70:fc:8c:05:1d:9a, ARP timeout 7200 sec + Internet address is 192.168.140.3/24, broadcast address is 192.168.140.255 + Auto-negotiation, full-duplex, flowcontrol enabled + Line speed 1000000 kbps + Mean input/output rate 0/0 bits/s, 0/0 packets/s (over the last 4 seconds) + Mean input/output load percentage 0.000/0.000 percent (over the last 4 seconds) + Output queuing strategy: fifo, output queue length/depth 0/126 + Reliability: 255/255 + IN: 1595000 packets, 104199354 bytes, 0 queue drops + 26164 broadcasts, 1567985 multicasts, 0 errors, 12 discards, 0 mac acl discards + 16 unknown protocols + OUT: 975 packets, 184194 bytes, 0 queue drops + 98 broadcasts, 14 multicasts, 0 errors, 2 discards, 0 collisions +GigabitEthernet 0/1 is down, line protocol is down + Flags: (0x8022) BROADCAST MULTICAST ARP, interface index is 112 + Encapsulation: Ethernet v2, MTU 1500 bytes + Down-time 90d17h48m, status change count 0 + Hardware address is 70:fc:8c:09:1d:9a, ARP timeout 7200 sec + Line speed unknown + Mean input/output rate 0/0 bits/s, 0/0 packets/s (over the last 4 seconds) + Mean input/output load percentage 0.000/0.000 percent (over the last 4 seconds) + Output queuing strategy: fifo, output queue length/depth 0/126 + Reliability: 255/255 + IN: 0 packets, 0 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards, 0 mac acl discards + 0 unknown protocols + OUT: 0 packets, 0 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards, 0 collisions +GigabitEthernet 0/2 is down, line protocol is down + Flags: (0x8022) BROADCAST MULTICAST ARP, interface index is 113 + Encapsulation: Ethernet v2, MTU 1500 bytes + Down-time 90d17h48m, status change count 0 + Hardware address is 70:fc:8c:0d:1d:9a, ARP timeout 7200 sec + Line speed unknown + Mean input/output rate 0/0 bits/s, 0/0 packets/s (over the last 4 seconds) + Mean input/output load percentage 0.000/0.000 percent (over the last 4 seconds) + Output queuing strategy: fifo, output queue length/depth 0/126 + Reliability: 255/255 + IN: 0 packets, 0 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards, 0 mac acl discards + 0 unknown protocols + OUT: 0 packets, 0 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards, 0 collisions +GigabitEthernet 0/3 is down, line protocol is down + Flags: (0x8022) BROADCAST MULTICAST ARP, interface index is 114 + Encapsulation: Ethernet v2, MTU 1500 bytes + Down-time 90d17h48m, status change count 0 + Hardware address is 70:fc:8c:11:1d:9a, ARP timeout 7200 sec + Line speed unknown + Mean input/output rate 0/0 bits/s, 0/0 packets/s (over the last 4 seconds) + Mean input/output load percentage 0.000/0.000 percent (over the last 4 seconds) + Output queuing strategy: fifo, output queue length/depth 0/126 + Reliability: 255/255 + IN: 0 packets, 0 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards, 0 mac acl discards + 0 unknown protocols + OUT: 0 packets, 0 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards, 0 collisions +GigabitEthernet 1/0 is up, line protocol is down + Flags: (0x8023) BROADCAST MULTICAST ARP, interface index is 116 + Encapsulation: Ethernet v2, MTU 1500 bytes + Down-time 90d17h48m, status change count 0 + Hardware address is 70:fc:8c:15:1d:9a, ARP timeout 7200 sec + negotiation unknown, duplex unknown + Line speed unknown + Media-type rj45 + Mean input/output rate 0/0 bits/s, 0/0 packets/s (over the last 4 seconds) + Mean input/output load percentage 0.000/0.000 percent (over the last 4 seconds) + Output queuing strategy: fifo, output queue length/depth 0/126 + Reliability: 255/255 + IN: 0 packets, 0 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards, 0 mac acl discards + 0 unknown protocols + OUT: 0 packets, 0 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards, 0 collisions +Loopback 0 is up, line protocol is up + Flags: (0x80e9) LOOPBACK MULTICAST, interface index is 9902 + MTU 32768 bytes + Up-time 90d17h48m, status change count 0 + Internet address is 127.0.0.1/32 + IPv6 address is ::1/128 + IPv6 address is fe80::1/64 + Line speed unknown + Mean input/output rate 0/0 bits/s, 0/0 packets/s (over the last 4 seconds) + Mean input/output load percentage 0.000/0.000 percent (over the last 4 seconds) + Output queuing strategy: fifo, output queue length/depth 0/126 + IN: 792892 packets, 50304174 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards, 0 mac acl discards + 0 unknown protocols + OUT: 792892 packets, 50304174 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards +Loopback 1 is up, line protocol is up + Flags: (0x80e9) LOOPBACK MULTICAST, interface index is 9903 + Description: VT93757 + MTU 32768 bytes + Up-time 90d17h48m, status change count 0 + Internet address is 94.105.19.13/32 + Line speed unknown + Mean input/output rate 8064/8064 bits/s, 11/11 packets/s (over the last 4 seconds) + Mean input/output load percentage 0.000/0.000 percent (over the last 4 seconds) + Output queuing strategy: fifo, output queue length/depth 0/126 + IN: 1205685 packets, 94253106 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards, 0 mac acl discards + 0 unknown protocols + OUT: 1205685 packets, 94253106 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards +Loopback 21 is up, line protocol is up + Flags: (0x80e9) LOOPBACK MULTICAST, interface index is 9923 + Description: *** Mobile access 4G - BGP PEER LOOPBACK *** + MTU 32768 bytes + Up-time 90d17h48m, status change count 0 + Internet address is 192.4.21.3/32 + Line speed unknown + Mean input/output rate 0/0 bits/s, 0/0 packets/s (over the last 4 seconds) + Mean input/output load percentage 0.000/0.000 percent (over the last 4 seconds) + Output queuing strategy: fifo, output queue length/depth 0/126 + IN: 547665 packets, 27577399 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards, 0 mac acl discards + 0 unknown protocols + OUT: 547665 packets, 27577399 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards +Loopback 91 is up, line protocol is up + Flags: (0x80e9) LOOPBACK MULTICAST, interface index is 9993 + Description: *** Mobile access 4G - BGP PEER LOOPBACK *** + MTU 32768 bytes + Up-time 90d17h48m, status change count 0 + Internet address is 192.4.91.3/32 + Line speed unknown + Mean input/output rate 0/0 bits/s, 0/0 packets/s (over the last 4 seconds) + Mean input/output load percentage 0.000/0.000 percent (over the last 4 seconds) + Output queuing strategy: fifo, output queue length/depth 0/126 + IN: 547767 packets, 27648173 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards, 0 mac acl discards + 0 unknown protocols + OUT: 547767 packets, 27648173 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards +Tunnel 21 is up, line protocol is up + Flags: (0x80f1) POINT-TO-POINT MULTICAST, interface index is 9822 + This interface is associated to Tunnel VRF UNTRUST + Encapsulation: TUNNEL, MTU 1434 bytes + Keepalive not set + Tunnel source 10.94.48.156, destination 94.105.25.2 + Tunnel protocol/transport GRE/IP + Up-time 1d22h3m, status change count 87 + Interface is unnumbered, use address of Loopback 1 (94.105.19.13) + Line speed 50000 kbps + Mean input/output rate 0/0 bits/s, 0/0 packets/s (over the last 4 seconds) + Mean input/output load percentage 0.000/0.000 percent (over the last 4 seconds) + Output queuing strategy: fifo, output queue length/depth 0/126 + IN: 548361 packets, 53110629 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards, 0 mac acl discards + 0 unknown protocols + 0 bad checksum, 0 bad key id, 0 bad sequence + OUT: 553132 packets, 66072336 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards +Tunnel 91 is up, line protocol is up + Flags: (0x80f1) POINT-TO-POINT MULTICAST, interface index is 9892 + This interface is associated to Tunnel VRF UNTRUST + Encapsulation: TUNNEL, MTU 1434 bytes + Keepalive not set + Tunnel source 10.94.48.156, destination 94.105.25.9 + Tunnel protocol/transport GRE/IP + Up-time 04:03:43, status change count 267 + Interface is unnumbered, use address of Loopback 1 (94.105.19.13) + Line speed 50000 kbps + Mean input/output rate 13016/16640 bits/s, 11/12 packets/s (over the last 4 seconds) + Mean input/output load percentage 0.026/0.033 percent (over the last 4 seconds) + Output queuing strategy: fifo, output queue length/depth 0/126 + IN: 1752769 packets, 208283715 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards, 0 mac acl discards + 0 unknown protocols + 0 bad checksum, 0 bad key id, 0 bad sequence + OUT: 1896077 packets, 284630648 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards +Null 0 is up, line protocol is up + Flags: (0x80e1) MULTICAST, interface index is 9901 + MTU 32768 bytes + Up-time 90d17h48m, status change count 0 + Line speed unknown + Mean input/output rate 0/0 bits/s, 0/0 packets/s (over the last 4 seconds) + Mean input/output load percentage 0.000/0.000 percent (over the last 4 seconds) + Output queuing strategy: fifo, output queue length/depth 0/126 + IN: 0 packets, 0 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards, 0 mac acl discards + 0 unknown protocols + OUT: 0 packets, 0 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards +virtual-ethernet 1 is up, line protocol is up + Flags: (0x8063) BROADCAST MULTICAST ARP, interface index is 10701 + Description: *** Mobile access 4G testing - WAN INTF *** + This interface is associated to VRF UNTRUST + Encapsulation: Ethernet v2, MTU 1500 bytes + Up-time 47d12h55m, status change count 5 + Hardware address is 70:fc:8c:21:1d:9a, ARP timeout 7200 sec + Internet address is 10.94.48.156/29, broadcast address is 10.94.48.159 + Line speed 50000 kbps + Mean input/output rate 25040/39352 bits/s, 19/20 packets/s (over the last 4 seconds) + Mean input/output load percentage 0.050/0.078 percent (over the last 4 seconds) + Output queuing strategy: fifo, output queue length/depth 0/126 + IN: 2484298 packets, 371202556 bytes, 0 queue drops + 0 broadcasts, 0 multicasts, 0 errors, 0 discards, 0 mac acl discards + 0 unknown protocols + OUT: 2679534 packets, 421781451 bytes, 0 queue drops + 2220 broadcasts, 0 multicasts, 0 errors, 8 discards diff --git a/tests/oneaccess_oneos/show_interfaces/show_interfaces.lbb4g.yml b/tests/oneaccess_oneos/show_interfaces/show_interfaces.lbb4g.yml new file mode 100644 index 0000000000..fe5794d9c7 --- /dev/null +++ b/tests/oneaccess_oneos/show_interfaces/show_interfaces.lbb4g.yml @@ -0,0 +1,927 @@ +--- +parsed_sample: + - interface: "GigabitEthernet 0/0" + duplex: "full" + negotiation: "Auto" + flags: "BROADCAST MULTICAST ARP" + if_index: "111" + description: "Connection to Customer LAN" + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "Ethernet v2" + vlan_id: "" + ipv4_mtu: "1500" + ipv6_mtu: "" + uptime: "90d17h48m" + downtime: "" + status_changes: "1" + ipv4: "192.168.140.3/24" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "192.168.140.255" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "70:fc:8c:05:1d:9a" + arp_timeout: "7200" + bandwidth_kbps: "1000000" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "0" + output_rate: "0" + input_pps: "0" + output_pps: "0" + input_load_pct: "0.000" + output_load_pct: "0.000" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "126" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "1595000" + input_bytes: "104199354" + input_qdrops: "0" + input_broadcasts: "26164" + input_multicasts: "1567985" + input_errors: "0" + input_discards: "12" + input_mac_acl_discards: "0" + input_unknown_protocols: "16" + output_packets: "975" + output_bytes: "184194" + output_qdrops: "0" + output_broadcasts: "98" + output_multicasts: "14" + output_errors: "0" + output_discards: "2" + vrf: "" + - interface: "GigabitEthernet 0/1" + duplex: "" + negotiation: "" + flags: "BROADCAST MULTICAST ARP" + if_index: "112" + description: "" + link_status: "down" + protocol_status: "down" + promiscuous_mode: "" + encapsulation: "Ethernet v2" + vlan_id: "" + ipv4_mtu: "1500" + ipv6_mtu: "" + uptime: "" + downtime: "90d17h48m" + status_changes: "0" + ipv4: "" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "70:fc:8c:09:1d:9a" + arp_timeout: "7200" + bandwidth_kbps: "unknown" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "0" + output_rate: "0" + input_pps: "0" + output_pps: "0" + input_load_pct: "0.000" + output_load_pct: "0.000" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "126" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "0" + input_bytes: "0" + input_qdrops: "0" + input_broadcasts: "0" + input_multicasts: "0" + input_errors: "0" + input_discards: "0" + input_mac_acl_discards: "0" + input_unknown_protocols: "0" + output_packets: "0" + output_bytes: "0" + output_qdrops: "0" + output_broadcasts: "0" + output_multicasts: "0" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "GigabitEthernet 0/2" + duplex: "" + negotiation: "" + flags: "BROADCAST MULTICAST ARP" + if_index: "113" + description: "" + link_status: "down" + protocol_status: "down" + promiscuous_mode: "" + encapsulation: "Ethernet v2" + vlan_id: "" + ipv4_mtu: "1500" + ipv6_mtu: "" + uptime: "" + downtime: "90d17h48m" + status_changes: "0" + ipv4: "" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "70:fc:8c:0d:1d:9a" + arp_timeout: "7200" + bandwidth_kbps: "unknown" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "0" + output_rate: "0" + input_pps: "0" + output_pps: "0" + input_load_pct: "0.000" + output_load_pct: "0.000" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "126" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "0" + input_bytes: "0" + input_qdrops: "0" + input_broadcasts: "0" + input_multicasts: "0" + input_errors: "0" + input_discards: "0" + input_mac_acl_discards: "0" + input_unknown_protocols: "0" + output_packets: "0" + output_bytes: "0" + output_qdrops: "0" + output_broadcasts: "0" + output_multicasts: "0" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "GigabitEthernet 0/3" + duplex: "" + negotiation: "" + flags: "BROADCAST MULTICAST ARP" + if_index: "114" + description: "" + link_status: "down" + protocol_status: "down" + promiscuous_mode: "" + encapsulation: "Ethernet v2" + vlan_id: "" + ipv4_mtu: "1500" + ipv6_mtu: "" + uptime: "" + downtime: "90d17h48m" + status_changes: "0" + ipv4: "" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "70:fc:8c:11:1d:9a" + arp_timeout: "7200" + bandwidth_kbps: "unknown" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "0" + output_rate: "0" + input_pps: "0" + output_pps: "0" + input_load_pct: "0.000" + output_load_pct: "0.000" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "126" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "0" + input_bytes: "0" + input_qdrops: "0" + input_broadcasts: "0" + input_multicasts: "0" + input_errors: "0" + input_discards: "0" + input_mac_acl_discards: "0" + input_unknown_protocols: "0" + output_packets: "0" + output_bytes: "0" + output_qdrops: "0" + output_broadcasts: "0" + output_multicasts: "0" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "GigabitEthernet 1/0" + duplex: "unknown" + negotiation: "unknown" + flags: "BROADCAST MULTICAST ARP" + if_index: "116" + description: "" + link_status: "up" + protocol_status: "down" + promiscuous_mode: "" + encapsulation: "Ethernet v2" + vlan_id: "" + ipv4_mtu: "1500" + ipv6_mtu: "" + uptime: "" + downtime: "90d17h48m" + status_changes: "0" + ipv4: "" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "70:fc:8c:15:1d:9a" + arp_timeout: "7200" + bandwidth_kbps: "unknown" + bandwidth_limit_kbps: "" + sfp_mediatype: "rj45" + input_rate: "0" + output_rate: "0" + input_pps: "0" + output_pps: "0" + input_load_pct: "0.000" + output_load_pct: "0.000" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "126" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "255" + reliability_max: "255" + input_packets: "0" + input_bytes: "0" + input_qdrops: "0" + input_broadcasts: "0" + input_multicasts: "0" + input_errors: "0" + input_discards: "0" + input_mac_acl_discards: "0" + input_unknown_protocols: "0" + output_packets: "0" + output_bytes: "0" + output_qdrops: "0" + output_broadcasts: "0" + output_multicasts: "0" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "Loopback 0" + duplex: "" + negotiation: "" + flags: "LOOPBACK MULTICAST" + if_index: "9902" + description: "" + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "" + vlan_id: "" + ipv4_mtu: "32768" + ipv6_mtu: "" + uptime: "90d17h48m" + downtime: "" + status_changes: "0" + ipv4: "127.0.0.1/32" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: + - "::1/128" + - "fe80::1/64" + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "" + arp_timeout: "" + bandwidth_kbps: "unknown" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "0" + output_rate: "0" + input_pps: "0" + output_pps: "0" + input_load_pct: "0.000" + output_load_pct: "0.000" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "126" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "" + reliability_max: "" + input_packets: "792892" + input_bytes: "50304174" + input_qdrops: "0" + input_broadcasts: "0" + input_multicasts: "0" + input_errors: "0" + input_discards: "0" + input_mac_acl_discards: "0" + input_unknown_protocols: "0" + output_packets: "792892" + output_bytes: "50304174" + output_qdrops: "0" + output_broadcasts: "0" + output_multicasts: "0" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "Loopback 1" + duplex: "" + negotiation: "" + flags: "LOOPBACK MULTICAST" + if_index: "9903" + description: "VT93757" + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "" + vlan_id: "" + ipv4_mtu: "32768" + ipv6_mtu: "" + uptime: "90d17h48m" + downtime: "" + status_changes: "0" + ipv4: "94.105.19.13/32" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "" + arp_timeout: "" + bandwidth_kbps: "unknown" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "8064" + output_rate: "8064" + input_pps: "11" + output_pps: "11" + input_load_pct: "0.000" + output_load_pct: "0.000" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "126" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "" + reliability_max: "" + input_packets: "1205685" + input_bytes: "94253106" + input_qdrops: "0" + input_broadcasts: "0" + input_multicasts: "0" + input_errors: "0" + input_discards: "0" + input_mac_acl_discards: "0" + input_unknown_protocols: "0" + output_packets: "1205685" + output_bytes: "94253106" + output_qdrops: "0" + output_broadcasts: "0" + output_multicasts: "0" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "Loopback 21" + duplex: "" + negotiation: "" + flags: "LOOPBACK MULTICAST" + if_index: "9923" + description: "*** Mobile access 4G - BGP PEER LOOPBACK ***" + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "" + vlan_id: "" + ipv4_mtu: "32768" + ipv6_mtu: "" + uptime: "90d17h48m" + downtime: "" + status_changes: "0" + ipv4: "192.4.21.3/32" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "" + arp_timeout: "" + bandwidth_kbps: "unknown" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "0" + output_rate: "0" + input_pps: "0" + output_pps: "0" + input_load_pct: "0.000" + output_load_pct: "0.000" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "126" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "" + reliability_max: "" + input_packets: "547665" + input_bytes: "27577399" + input_qdrops: "0" + input_broadcasts: "0" + input_multicasts: "0" + input_errors: "0" + input_discards: "0" + input_mac_acl_discards: "0" + input_unknown_protocols: "0" + output_packets: "547665" + output_bytes: "27577399" + output_qdrops: "0" + output_broadcasts: "0" + output_multicasts: "0" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "Loopback 91" + duplex: "" + negotiation: "" + flags: "LOOPBACK MULTICAST" + if_index: "9993" + description: "*** Mobile access 4G - BGP PEER LOOPBACK ***" + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "" + vlan_id: "" + ipv4_mtu: "32768" + ipv6_mtu: "" + uptime: "90d17h48m" + downtime: "" + status_changes: "0" + ipv4: "192.4.91.3/32" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "" + arp_timeout: "" + bandwidth_kbps: "unknown" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "0" + output_rate: "0" + input_pps: "0" + output_pps: "0" + input_load_pct: "0.000" + output_load_pct: "0.000" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "126" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "" + reliability_max: "" + input_packets: "547767" + input_bytes: "27648173" + input_qdrops: "0" + input_broadcasts: "0" + input_multicasts: "0" + input_errors: "0" + input_discards: "0" + input_mac_acl_discards: "0" + input_unknown_protocols: "0" + output_packets: "547767" + output_bytes: "27648173" + output_qdrops: "0" + output_broadcasts: "0" + output_multicasts: "0" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "Tunnel 21" + duplex: "" + negotiation: "" + flags: "POINT-TO-POINT MULTICAST" + if_index: "9822" + description: "" + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "TUNNEL" + vlan_id: "" + ipv4_mtu: "1434" + ipv6_mtu: "" + uptime: "1d22h3m" + downtime: "" + status_changes: "87" + ipv4: "unnumbered" + ipv4_unnumbered_intf: "Loopback 1 " + ipv4_unnumbered_ip: "94.105.19.13" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "10.94.48.156" + tunnel_destination: "94.105.25.2" + tunnel_protocol: "GRE" + tunnel_transport: "IP" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "UNTRUST" + firewall_zone: "" + mac_address: "" + arp_timeout: "" + bandwidth_kbps: "50000" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "0" + output_rate: "0" + input_pps: "0" + output_pps: "0" + input_load_pct: "0.000" + output_load_pct: "0.000" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "126" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "" + reliability_max: "" + input_packets: "548361" + input_bytes: "53110629" + input_qdrops: "0" + input_broadcasts: "0" + input_multicasts: "0" + input_errors: "0" + input_discards: "0" + input_mac_acl_discards: "0" + input_unknown_protocols: "0" + output_packets: "553132" + output_bytes: "66072336" + output_qdrops: "0" + output_broadcasts: "0" + output_multicasts: "0" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "Tunnel 91" + duplex: "" + negotiation: "" + flags: "POINT-TO-POINT MULTICAST" + if_index: "9892" + description: "" + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "TUNNEL" + vlan_id: "" + ipv4_mtu: "1434" + ipv6_mtu: "" + uptime: "04:03:43" + downtime: "" + status_changes: "267" + ipv4: "unnumbered" + ipv4_unnumbered_intf: "Loopback 1 " + ipv4_unnumbered_ip: "94.105.19.13" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "10.94.48.156" + tunnel_destination: "94.105.25.9" + tunnel_protocol: "GRE" + tunnel_transport: "IP" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "UNTRUST" + firewall_zone: "" + mac_address: "" + arp_timeout: "" + bandwidth_kbps: "50000" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "13016" + output_rate: "16640" + input_pps: "11" + output_pps: "12" + input_load_pct: "0.026" + output_load_pct: "0.033" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "126" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "" + reliability_max: "" + input_packets: "1752769" + input_bytes: "208283715" + input_qdrops: "0" + input_broadcasts: "0" + input_multicasts: "0" + input_errors: "0" + input_discards: "0" + input_mac_acl_discards: "0" + input_unknown_protocols: "0" + output_packets: "1896077" + output_bytes: "284630648" + output_qdrops: "0" + output_broadcasts: "0" + output_multicasts: "0" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "Null 0" + duplex: "" + negotiation: "" + flags: "MULTICAST" + if_index: "9901" + description: "" + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "" + vlan_id: "" + ipv4_mtu: "32768" + ipv6_mtu: "" + uptime: "90d17h48m" + downtime: "" + status_changes: "0" + ipv4: "" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "" + arp_timeout: "" + bandwidth_kbps: "unknown" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "0" + output_rate: "0" + input_pps: "0" + output_pps: "0" + input_load_pct: "0.000" + output_load_pct: "0.000" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "126" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "" + reliability_max: "" + input_packets: "0" + input_bytes: "0" + input_qdrops: "0" + input_broadcasts: "0" + input_multicasts: "0" + input_errors: "0" + input_discards: "0" + input_mac_acl_discards: "0" + input_unknown_protocols: "0" + output_packets: "0" + output_bytes: "0" + output_qdrops: "0" + output_broadcasts: "0" + output_multicasts: "0" + output_errors: "0" + output_discards: "0" + vrf: "" + - interface: "virtual-ethernet 1" + duplex: "" + negotiation: "" + flags: "BROADCAST MULTICAST ARP" + if_index: "10701" + description: "*** Mobile access 4G testing - WAN INTF ***" + link_status: "up" + protocol_status: "up" + promiscuous_mode: "" + encapsulation: "Ethernet v2" + vlan_id: "" + ipv4_mtu: "1500" + ipv6_mtu: "" + uptime: "47d12h55m" + downtime: "" + status_changes: "5" + ipv4: "10.94.48.156/29" + ipv4_unnumbered_intf: "" + ipv4_unnumbered_ip: "" + ipv4_gateway: "" + ipv4_broadcast: "10.94.48.159" + ipv4_secondary: [] + ipv6: [] + tunnel_source: "" + tunnel_destination: "" + tunnel_protocol: "" + tunnel_transport: "" + tunnel_protection_mode: "" + tunnel_protection_profile: "" + tunnel_vrf: "" + firewall_zone: "" + mac_address: "70:fc:8c:21:1d:9a" + arp_timeout: "7200" + bandwidth_kbps: "50000" + bandwidth_limit_kbps: "" + sfp_mediatype: "" + input_rate: "25040" + output_rate: "39352" + input_pps: "19" + output_pps: "20" + input_load_pct: "0.050" + output_load_pct: "0.078" + congestion_dropped_rx: "" + congestion_dropped_cpu: "" + congestion_dropped_total: "" + bridge_group: "" + output_queue_strategy: "fifo" + output_queue_length: "0" + output_queue_depth: "126" + shaper_packets_dequeued: "" + shaper_burst_current: "" + shaper_burst_max: "" + reliability_value: "" + reliability_max: "" + input_packets: "2484298" + input_bytes: "371202556" + input_qdrops: "0" + input_broadcasts: "0" + input_multicasts: "0" + input_errors: "0" + input_discards: "0" + input_mac_acl_discards: "0" + input_unknown_protocols: "0" + output_packets: "2679534" + output_bytes: "421781451" + output_qdrops: "0" + output_broadcasts: "2220" + output_multicasts: "0" + output_errors: "0" + output_discards: "8" + vrf: "UNTRUST" diff --git a/tests/oneaccess_oneos/show_ip_access-lists/show_ip_access-lists.oneos5.raw b/tests/oneaccess_oneos/show_ip_access-lists/show_ip_access-lists.oneos5.raw new file mode 100644 index 0000000000..2f7e507c80 --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_access-lists/show_ip_access-lists.oneos5.raw @@ -0,0 +1,32 @@ +interface Bvi 20, inbound IP access list GUEST_WIFI_IN + +IP access list extended GRE-Tunnel21 +permit gre host 10.94.55.207 host 94.105.25.2 log (0 matches) + +IP access list extended GRE-Tunnel11 +permit gre host 10.94.55.207 host 94.105.25.9 log (0 matches) + +IP access list extended GUEST_WIFI_IN +deny any 10.0.0.0 0.255.255.255 (0 matches) +deny any 172.16.0.0 0.15.255.255 (0 matches) +deny any 192.168.0.0 0.0.255.255 (0 matches) +permit any any (5164438 matches) + +IP access list standard 52 +permit 91.208.220.0 0.0.0.255 any (4519825 matches) + +IP access list extended MANAGEMENT_IN +permit tcp 91.208.220.0 0.0.0.255 any eq ssh (2896 matches) +permit tcp 91.208.220.0 0.0.0.255 any eq telnet (0 matches) +permit tcp 94.104.18.0 0.0.1.255 any eq ssh (0 matches) +permit tcp 94.104.18.0 0.0.1.255 any eq telnet (0 matches) +permit tcp 192.4.21.0 0.0.0.255 any eq ssh (0 matches) +permit tcp 192.4.21.0 0.0.0.255 any eq telnet (0 matches) +permit tcp 192.4.91.0 0.0.0.255 any eq ssh (0 matches) +permit tcp 192.4.91.0 0.0.0.255 any eq telnet (0 matches) +permit tcp host 10.0.96.16 10.110.0.0 0.0.255.255 eq telnet (0 matches) +permit tcp 192.0.2.0 0.0.0.255 any eq ssh (0 matches) +permit tcp 192.0.2.0 0.0.0.255 any eq telnet (0 matches) +deny any any (0 matches) + +For info on ACLs used by IPSEC, please refer to show crypto acl [detail ] command. diff --git a/tests/oneaccess_oneos/show_ip_access-lists/show_ip_access-lists.oneos5.yml b/tests/oneaccess_oneos/show_ip_access-lists/show_ip_access-lists.oneos5.yml new file mode 100644 index 0000000000..c32920f35c --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_access-lists/show_ip_access-lists.oneos5.yml @@ -0,0 +1,578 @@ +--- +parsed_sample: + - acl_type: "extended" + acl_name: "GRE-Tunnel21" + line_num: "" + action: "" + protocol: "" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "" + src_wildcard: "" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "" + dst_network: "" + dst_wildcard: "" + dst_port_match: "" + dst_port: "" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "" + - acl_type: "extended" + acl_name: "GRE-Tunnel21" + line_num: "" + action: "permit" + protocol: "gre" + protocol_nr: "" + src_host: "10.94.55.207" + src_any: "" + src_network: "" + src_wildcard: "" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "94.105.25.2" + dst_any: "" + dst_network: "" + dst_wildcard: "" + dst_port_match: "" + dst_port: "" + dst_port_range_start: "" + dst_port_range_end: "" + log: "log" + matches: "0" + - acl_type: "extended" + acl_name: "GRE-Tunnel11" + line_num: "" + action: "" + protocol: "" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "" + src_wildcard: "" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "" + dst_network: "" + dst_wildcard: "" + dst_port_match: "" + dst_port: "" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "" + - acl_type: "extended" + acl_name: "GRE-Tunnel11" + line_num: "" + action: "permit" + protocol: "gre" + protocol_nr: "" + src_host: "10.94.55.207" + src_any: "" + src_network: "" + src_wildcard: "" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "94.105.25.9" + dst_any: "" + dst_network: "" + dst_wildcard: "" + dst_port_match: "" + dst_port: "" + dst_port_range_start: "" + dst_port_range_end: "" + log: "log" + matches: "0" + - acl_type: "extended" + acl_name: "GUEST_WIFI_IN" + line_num: "" + action: "" + protocol: "" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "" + src_wildcard: "" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "" + dst_network: "" + dst_wildcard: "" + dst_port_match: "" + dst_port: "" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "" + - acl_type: "extended" + acl_name: "GUEST_WIFI_IN" + line_num: "" + action: "deny" + protocol: "" + protocol_nr: "" + src_host: "" + src_any: "any" + src_network: "" + src_wildcard: "" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "" + dst_network: "10.0.0.0" + dst_wildcard: "0.255.255.255" + dst_port_match: "" + dst_port: "" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "0" + - acl_type: "extended" + acl_name: "GUEST_WIFI_IN" + line_num: "" + action: "deny" + protocol: "" + protocol_nr: "" + src_host: "" + src_any: "any" + src_network: "" + src_wildcard: "" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "" + dst_network: "172.16.0.0" + dst_wildcard: "0.15.255.255" + dst_port_match: "" + dst_port: "" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "0" + - acl_type: "extended" + acl_name: "GUEST_WIFI_IN" + line_num: "" + action: "deny" + protocol: "" + protocol_nr: "" + src_host: "" + src_any: "any" + src_network: "" + src_wildcard: "" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "" + dst_network: "192.168.0.0" + dst_wildcard: "0.0.255.255" + dst_port_match: "" + dst_port: "" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "0" + - acl_type: "extended" + acl_name: "GUEST_WIFI_IN" + line_num: "" + action: "permit" + protocol: "" + protocol_nr: "" + src_host: "" + src_any: "any" + src_network: "" + src_wildcard: "" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "any" + dst_network: "" + dst_wildcard: "" + dst_port_match: "" + dst_port: "" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "5164438" + - acl_type: "standard" + acl_name: "52" + line_num: "" + action: "" + protocol: "" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "" + src_wildcard: "" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "" + dst_network: "" + dst_wildcard: "" + dst_port_match: "" + dst_port: "" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "" + - acl_type: "standard" + acl_name: "52" + line_num: "" + action: "permit" + protocol: "" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "91.208.220.0" + src_wildcard: "0.0.0.255" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "any" + dst_network: "" + dst_wildcard: "" + dst_port_match: "" + dst_port: "" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "4519825" + - acl_type: "extended" + acl_name: "MANAGEMENT_IN" + line_num: "" + action: "" + protocol: "" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "" + src_wildcard: "" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "" + dst_network: "" + dst_wildcard: "" + dst_port_match: "" + dst_port: "" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "" + - acl_type: "extended" + acl_name: "MANAGEMENT_IN" + line_num: "" + action: "permit" + protocol: "tcp" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "91.208.220.0" + src_wildcard: "0.0.0.255" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "any" + dst_network: "" + dst_wildcard: "" + dst_port_match: "eq" + dst_port: "ssh" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "2896" + - acl_type: "extended" + acl_name: "MANAGEMENT_IN" + line_num: "" + action: "permit" + protocol: "tcp" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "91.208.220.0" + src_wildcard: "0.0.0.255" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "any" + dst_network: "" + dst_wildcard: "" + dst_port_match: "eq" + dst_port: "telnet" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "0" + - acl_type: "extended" + acl_name: "MANAGEMENT_IN" + line_num: "" + action: "permit" + protocol: "tcp" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "94.104.18.0" + src_wildcard: "0.0.1.255" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "any" + dst_network: "" + dst_wildcard: "" + dst_port_match: "eq" + dst_port: "ssh" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "0" + - acl_type: "extended" + acl_name: "MANAGEMENT_IN" + line_num: "" + action: "permit" + protocol: "tcp" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "94.104.18.0" + src_wildcard: "0.0.1.255" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "any" + dst_network: "" + dst_wildcard: "" + dst_port_match: "eq" + dst_port: "telnet" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "0" + - acl_type: "extended" + acl_name: "MANAGEMENT_IN" + line_num: "" + action: "permit" + protocol: "tcp" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "192.4.21.0" + src_wildcard: "0.0.0.255" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "any" + dst_network: "" + dst_wildcard: "" + dst_port_match: "eq" + dst_port: "ssh" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "0" + - acl_type: "extended" + acl_name: "MANAGEMENT_IN" + line_num: "" + action: "permit" + protocol: "tcp" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "192.4.21.0" + src_wildcard: "0.0.0.255" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "any" + dst_network: "" + dst_wildcard: "" + dst_port_match: "eq" + dst_port: "telnet" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "0" + - acl_type: "extended" + acl_name: "MANAGEMENT_IN" + line_num: "" + action: "permit" + protocol: "tcp" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "192.4.91.0" + src_wildcard: "0.0.0.255" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "any" + dst_network: "" + dst_wildcard: "" + dst_port_match: "eq" + dst_port: "ssh" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "0" + - acl_type: "extended" + acl_name: "MANAGEMENT_IN" + line_num: "" + action: "permit" + protocol: "tcp" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "192.4.91.0" + src_wildcard: "0.0.0.255" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "any" + dst_network: "" + dst_wildcard: "" + dst_port_match: "eq" + dst_port: "telnet" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "0" + - acl_type: "extended" + acl_name: "MANAGEMENT_IN" + line_num: "" + action: "permit" + protocol: "tcp" + protocol_nr: "" + src_host: "10.0.96.16" + src_any: "" + src_network: "" + src_wildcard: "" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "" + dst_network: "10.110.0.0" + dst_wildcard: "0.0.255.255" + dst_port_match: "eq" + dst_port: "telnet" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "0" + - acl_type: "extended" + acl_name: "MANAGEMENT_IN" + line_num: "" + action: "permit" + protocol: "tcp" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "192.0.2.0" + src_wildcard: "0.0.0.255" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "any" + dst_network: "" + dst_wildcard: "" + dst_port_match: "eq" + dst_port: "ssh" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "0" + - acl_type: "extended" + acl_name: "MANAGEMENT_IN" + line_num: "" + action: "permit" + protocol: "tcp" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "192.0.2.0" + src_wildcard: "0.0.0.255" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "any" + dst_network: "" + dst_wildcard: "" + dst_port_match: "eq" + dst_port: "telnet" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "0" + - acl_type: "extended" + acl_name: "MANAGEMENT_IN" + line_num: "" + action: "deny" + protocol: "" + protocol_nr: "" + src_host: "" + src_any: "any" + src_network: "" + src_wildcard: "" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "any" + dst_network: "" + dst_wildcard: "" + dst_port_match: "" + dst_port: "" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "0" diff --git a/tests/oneaccess_oneos/show_ip_access-lists/show_ip_access-lists.oneos6.raw b/tests/oneaccess_oneos/show_ip_access-lists/show_ip_access-lists.oneos6.raw new file mode 100644 index 0000000000..92567f137d --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_access-lists/show_ip_access-lists.oneos6.raw @@ -0,0 +1,42 @@ +ip access-list standard 52 + 1 permit 91.208.220.0 0.0.0.255 (988908 matches) + +ip access-list standard 5 + 1 permit 172.16.8.0 0.0.0.255 (0 matches) + +ip access-list extended GRE-Tunnel21 + 1 permit ip 47 10.94.57.196 0.0.0.0 94.105.25.2 0.0.0.0 log (0 matches) + +ip access-list extended GRE-Tunnel91 + 1 permit ip 47 10.94.57.196 0.0.0.0 94.105.25.9 0.0.0.0 log (0 matches) + +ip access-list extended MANAGEMENT + 1 permit ip 0.0.0.0 255.255.255.255 91.208.220.0 0.0.0.255 (1273326 matches) + 2 permit ip 91.208.220.0 0.0.0.255 0.0.0.0 255.255.255.255 (0 matches) + +ip access-list extended REAL-TIME + +ip access-list extended PREMIUM + +ip access-list extended GOLD + +ip access-list extended SILVER + +ip access-list extended BRONZE + +ip access-list extended MANAGEMENT_IN + 1 permit tcp 91.208.220.0 0.0.0.255 0.0.0.0 255.255.255.255 22 (1128 matches) + 2 permit tcp 91.208.220.0 0.0.0.255 0.0.0.0 255.255.255.255 23 (0 matches) + 3 permit tcp 94.104.18.0 0.0.1.255 0.0.0.0 255.255.255.255 22 (0 matches) + 4 permit tcp 94.104.18.0 0.0.1.255 0.0.0.0 255.255.255.255 23 (0 matches) + 5 permit tcp 94.105.225.124 0.0.0.3 0.0.0.0 255.255.255.255 22 (0 matches) + 6 permit tcp 94.105.225.124 0.0.0.3 0.0.0.0 255.255.255.255 23 (0 matches) + 7 permit tcp 192.4.21.0 0.0.0.255 0.0.0.0 255.255.255.255 22 (0 matches) + 8 permit tcp 192.4.21.0 0.0.0.255 0.0.0.0 255.255.255.255 23 (0 matches) + 9 permit tcp 192.4.91.0 0.0.0.255 0.0.0.0 255.255.255.255 22 (0 matches) + 10 permit tcp 192.4.91.0 0.0.0.255 0.0.0.0 255.255.255.255 23 (0 matches) + 11 permit tcp 10.0.96.16 0.0.0.0 10.110.0.0 0.0.255.255 23 (0 matches) + 12 permit tcp 10.0.32.16 0.0.0.0 10.110.0.0 0.0.255.255 23 (0 matches) + 13 permit tcp 192.0.2.0 0.0.0.255 0.0.0.0 255.255.255.255 22 (0 matches) + 14 permit tcp 192.0.2.0 0.0.0.255 0.0.0.0 255.255.255.255 23 (0 matches) + 15 deny ip 0.0.0.0 255.255.255.255 0.0.0.0 255.255.255.255 (0 matches) diff --git a/tests/oneaccess_oneos/show_ip_access-lists/show_ip_access-lists.oneos6.yml b/tests/oneaccess_oneos/show_ip_access-lists/show_ip_access-lists.oneos6.yml new file mode 100644 index 0000000000..0e706417c8 --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_access-lists/show_ip_access-lists.oneos6.yml @@ -0,0 +1,770 @@ +--- +parsed_sample: + - acl_type: "standard" + acl_name: "52" + line_num: "" + action: "" + protocol: "" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "" + src_wildcard: "" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "" + dst_network: "" + dst_wildcard: "" + dst_port_match: "" + dst_port: "" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "" + - acl_type: "standard" + acl_name: "52" + line_num: "1" + action: "permit" + protocol: "" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "91.208.220.0" + src_wildcard: "0.0.0.255" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "" + dst_network: "" + dst_wildcard: "" + dst_port_match: "" + dst_port: "" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "988908" + - acl_type: "standard" + acl_name: "5" + line_num: "" + action: "" + protocol: "" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "" + src_wildcard: "" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "" + dst_network: "" + dst_wildcard: "" + dst_port_match: "" + dst_port: "" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "" + - acl_type: "standard" + acl_name: "5" + line_num: "1" + action: "permit" + protocol: "" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "172.16.8.0" + src_wildcard: "0.0.0.255" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "" + dst_network: "" + dst_wildcard: "" + dst_port_match: "" + dst_port: "" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "0" + - acl_type: "extended" + acl_name: "GRE-Tunnel21" + line_num: "" + action: "" + protocol: "" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "" + src_wildcard: "" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "" + dst_network: "" + dst_wildcard: "" + dst_port_match: "" + dst_port: "" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "" + - acl_type: "extended" + acl_name: "GRE-Tunnel21" + line_num: "1" + action: "permit" + protocol: "ip" + protocol_nr: "47" + src_host: "" + src_any: "" + src_network: "10.94.57.196" + src_wildcard: "0.0.0.0" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "" + dst_network: "94.105.25.2" + dst_wildcard: "0.0.0.0" + dst_port_match: "" + dst_port: "log" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "0" + - acl_type: "extended" + acl_name: "GRE-Tunnel91" + line_num: "" + action: "" + protocol: "" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "" + src_wildcard: "" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "" + dst_network: "" + dst_wildcard: "" + dst_port_match: "" + dst_port: "" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "" + - acl_type: "extended" + acl_name: "GRE-Tunnel91" + line_num: "1" + action: "permit" + protocol: "ip" + protocol_nr: "47" + src_host: "" + src_any: "" + src_network: "10.94.57.196" + src_wildcard: "0.0.0.0" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "" + dst_network: "94.105.25.9" + dst_wildcard: "0.0.0.0" + dst_port_match: "" + dst_port: "log" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "0" + - acl_type: "extended" + acl_name: "MANAGEMENT" + line_num: "" + action: "" + protocol: "" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "" + src_wildcard: "" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "" + dst_network: "" + dst_wildcard: "" + dst_port_match: "" + dst_port: "" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "" + - acl_type: "extended" + acl_name: "MANAGEMENT" + line_num: "1" + action: "permit" + protocol: "ip" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "0.0.0.0" + src_wildcard: "255.255.255.255" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "" + dst_network: "91.208.220.0" + dst_wildcard: "0.0.0.255" + dst_port_match: "" + dst_port: "" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "1273326" + - acl_type: "extended" + acl_name: "MANAGEMENT" + line_num: "2" + action: "permit" + protocol: "ip" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "91.208.220.0" + src_wildcard: "0.0.0.255" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "" + dst_network: "0.0.0.0" + dst_wildcard: "255.255.255.255" + dst_port_match: "" + dst_port: "" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "0" + - acl_type: "extended" + acl_name: "REAL-TIME" + line_num: "" + action: "" + protocol: "" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "" + src_wildcard: "" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "" + dst_network: "" + dst_wildcard: "" + dst_port_match: "" + dst_port: "" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "" + - acl_type: "extended" + acl_name: "PREMIUM" + line_num: "" + action: "" + protocol: "" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "" + src_wildcard: "" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "" + dst_network: "" + dst_wildcard: "" + dst_port_match: "" + dst_port: "" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "" + - acl_type: "extended" + acl_name: "GOLD" + line_num: "" + action: "" + protocol: "" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "" + src_wildcard: "" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "" + dst_network: "" + dst_wildcard: "" + dst_port_match: "" + dst_port: "" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "" + - acl_type: "extended" + acl_name: "SILVER" + line_num: "" + action: "" + protocol: "" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "" + src_wildcard: "" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "" + dst_network: "" + dst_wildcard: "" + dst_port_match: "" + dst_port: "" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "" + - acl_type: "extended" + acl_name: "BRONZE" + line_num: "" + action: "" + protocol: "" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "" + src_wildcard: "" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "" + dst_network: "" + dst_wildcard: "" + dst_port_match: "" + dst_port: "" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "" + - acl_type: "extended" + acl_name: "MANAGEMENT_IN" + line_num: "" + action: "" + protocol: "" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "" + src_wildcard: "" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "" + dst_network: "" + dst_wildcard: "" + dst_port_match: "" + dst_port: "" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "" + - acl_type: "extended" + acl_name: "MANAGEMENT_IN" + line_num: "1" + action: "permit" + protocol: "tcp" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "91.208.220.0" + src_wildcard: "0.0.0.255" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "" + dst_network: "0.0.0.0" + dst_wildcard: "255.255.255.255" + dst_port_match: "" + dst_port: "22" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "1128" + - acl_type: "extended" + acl_name: "MANAGEMENT_IN" + line_num: "2" + action: "permit" + protocol: "tcp" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "91.208.220.0" + src_wildcard: "0.0.0.255" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "" + dst_network: "0.0.0.0" + dst_wildcard: "255.255.255.255" + dst_port_match: "" + dst_port: "23" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "0" + - acl_type: "extended" + acl_name: "MANAGEMENT_IN" + line_num: "3" + action: "permit" + protocol: "tcp" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "94.104.18.0" + src_wildcard: "0.0.1.255" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "" + dst_network: "0.0.0.0" + dst_wildcard: "255.255.255.255" + dst_port_match: "" + dst_port: "22" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "0" + - acl_type: "extended" + acl_name: "MANAGEMENT_IN" + line_num: "4" + action: "permit" + protocol: "tcp" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "94.104.18.0" + src_wildcard: "0.0.1.255" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "" + dst_network: "0.0.0.0" + dst_wildcard: "255.255.255.255" + dst_port_match: "" + dst_port: "23" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "0" + - acl_type: "extended" + acl_name: "MANAGEMENT_IN" + line_num: "5" + action: "permit" + protocol: "tcp" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "94.105.225.124" + src_wildcard: "0.0.0.3" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "" + dst_network: "0.0.0.0" + dst_wildcard: "255.255.255.255" + dst_port_match: "" + dst_port: "22" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "0" + - acl_type: "extended" + acl_name: "MANAGEMENT_IN" + line_num: "6" + action: "permit" + protocol: "tcp" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "94.105.225.124" + src_wildcard: "0.0.0.3" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "" + dst_network: "0.0.0.0" + dst_wildcard: "255.255.255.255" + dst_port_match: "" + dst_port: "23" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "0" + - acl_type: "extended" + acl_name: "MANAGEMENT_IN" + line_num: "7" + action: "permit" + protocol: "tcp" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "192.4.21.0" + src_wildcard: "0.0.0.255" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "" + dst_network: "0.0.0.0" + dst_wildcard: "255.255.255.255" + dst_port_match: "" + dst_port: "22" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "0" + - acl_type: "extended" + acl_name: "MANAGEMENT_IN" + line_num: "8" + action: "permit" + protocol: "tcp" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "192.4.21.0" + src_wildcard: "0.0.0.255" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "" + dst_network: "0.0.0.0" + dst_wildcard: "255.255.255.255" + dst_port_match: "" + dst_port: "23" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "0" + - acl_type: "extended" + acl_name: "MANAGEMENT_IN" + line_num: "9" + action: "permit" + protocol: "tcp" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "192.4.91.0" + src_wildcard: "0.0.0.255" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "" + dst_network: "0.0.0.0" + dst_wildcard: "255.255.255.255" + dst_port_match: "" + dst_port: "22" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "0" + - acl_type: "extended" + acl_name: "MANAGEMENT_IN" + line_num: "10" + action: "permit" + protocol: "tcp" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "192.4.91.0" + src_wildcard: "0.0.0.255" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "" + dst_network: "0.0.0.0" + dst_wildcard: "255.255.255.255" + dst_port_match: "" + dst_port: "23" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "0" + - acl_type: "extended" + acl_name: "MANAGEMENT_IN" + line_num: "11" + action: "permit" + protocol: "tcp" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "10.0.96.16" + src_wildcard: "0.0.0.0" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "" + dst_network: "10.110.0.0" + dst_wildcard: "0.0.255.255" + dst_port_match: "" + dst_port: "23" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "0" + - acl_type: "extended" + acl_name: "MANAGEMENT_IN" + line_num: "12" + action: "permit" + protocol: "tcp" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "10.0.32.16" + src_wildcard: "0.0.0.0" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "" + dst_network: "10.110.0.0" + dst_wildcard: "0.0.255.255" + dst_port_match: "" + dst_port: "23" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "0" + - acl_type: "extended" + acl_name: "MANAGEMENT_IN" + line_num: "13" + action: "permit" + protocol: "tcp" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "192.0.2.0" + src_wildcard: "0.0.0.255" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "" + dst_network: "0.0.0.0" + dst_wildcard: "255.255.255.255" + dst_port_match: "" + dst_port: "22" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "0" + - acl_type: "extended" + acl_name: "MANAGEMENT_IN" + line_num: "14" + action: "permit" + protocol: "tcp" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "192.0.2.0" + src_wildcard: "0.0.0.255" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "" + dst_network: "0.0.0.0" + dst_wildcard: "255.255.255.255" + dst_port_match: "" + dst_port: "23" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "0" + - acl_type: "extended" + acl_name: "MANAGEMENT_IN" + line_num: "15" + action: "deny" + protocol: "ip" + protocol_nr: "" + src_host: "" + src_any: "" + src_network: "0.0.0.0" + src_wildcard: "255.255.255.255" + src_port_match: "" + src_port: "" + src_port_range_start: "" + src_port_range_end: "" + dst_host: "" + dst_any: "" + dst_network: "0.0.0.0" + dst_wildcard: "255.255.255.255" + dst_port_match: "" + dst_port: "" + dst_port_range_start: "" + dst_port_range_end: "" + log: "" + matches: "0" diff --git a/tests/oneaccess_oneos/show_ip_as-path-access-list/show_ip_as-path-access-list.oneos5.raw b/tests/oneaccess_oneos/show_ip_as-path-access-list/show_ip_as-path-access-list.oneos5.raw new file mode 100644 index 0000000000..848969e923 --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_as-path-access-list/show_ip_as-path-access-list.oneos5.raw @@ -0,0 +1,2 @@ +AS path access list 102 + permit ^$ diff --git a/tests/oneaccess_oneos/show_ip_as-path-access-list/show_ip_as-path-access-list.oneos5.yml b/tests/oneaccess_oneos/show_ip_as-path-access-list/show_ip_as-path-access-list.oneos5.yml new file mode 100644 index 0000000000..96b39fa8e5 --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_as-path-access-list/show_ip_as-path-access-list.oneos5.yml @@ -0,0 +1,5 @@ +--- +parsed_sample: + - name: "102" + entries: + - "permit ^$" diff --git a/tests/oneaccess_oneos/show_ip_as-path-access-list/show_ip_as-path-access-list.oneos6.raw b/tests/oneaccess_oneos/show_ip_as-path-access-list/show_ip_as-path-access-list.oneos6.raw new file mode 100644 index 0000000000..848969e923 --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_as-path-access-list/show_ip_as-path-access-list.oneos6.raw @@ -0,0 +1,2 @@ +AS path access list 102 + permit ^$ diff --git a/tests/oneaccess_oneos/show_ip_as-path-access-list/show_ip_as-path-access-list.oneos6.yml b/tests/oneaccess_oneos/show_ip_as-path-access-list/show_ip_as-path-access-list.oneos6.yml new file mode 100644 index 0000000000..96b39fa8e5 --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_as-path-access-list/show_ip_as-path-access-list.oneos6.yml @@ -0,0 +1,5 @@ +--- +parsed_sample: + - name: "102" + entries: + - "permit ^$" From f7dcc67a3e5469fa22bdf494521aee2fdc0b909d Mon Sep 17 00:00:00 2001 From: Jacob McGill <9847006+jmcgill298@users.noreply.github.com> Date: Thu, 25 Jul 2024 10:17:32 -0400 Subject: [PATCH 56/60] Add Oneaccess templates (#1757) Co-authored-by: mwallraf Co-authored-by: Andrea Dainese --- ntc_templates/templates/index | 9 +- ...neaccess_oneos_show_ip_bgp_summary.textfsm | 34 +++++ ...cess_oneos_show_ip_interface_brief.textfsm | 12 ++ ...neaccess_oneos_show_ip_prefix-list.textfsm | 16 +++ .../oneaccess_oneos_show_ip_ssh.textfsm | 31 ++++ .../oneaccess_oneos_show_ip_vrf_brief.textfsm | 12 ++ .../show_ip_bgp_summary.oneos5.raw | 8 ++ .../show_ip_bgp_summary.oneos5.yml | 22 +++ .../show_ip_bgp_summary.oneos6.raw | 9 ++ .../show_ip_bgp_summary.oneos6.yml | 42 ++++++ .../show_ip_interface_brief.oneos5.raw | 21 +++ .../show_ip_interface_brief.oneos5.yml | 126 +++++++++++++++++ .../show_ip_interface_brief.oneos6.raw | 22 +++ .../show_ip_interface_brief.oneos6.yml | 132 ++++++++++++++++++ .../show_ip_prefix-list.oneos5.raw | 15 ++ .../show_ip_prefix-list.oneos5.yml | 83 +++++++++++ .../show_ip_prefix-list.oneos6.raw | 15 ++ .../show_ip_prefix-list.oneos6.yml | 83 +++++++++++ .../show_ip_ssh/show_ip_ssh.oneos5.raw | 11 ++ .../show_ip_ssh/show_ip_ssh.oneos5.yml | 13 ++ .../show_ip_ssh/show_ip_ssh.oneos6.raw | 11 ++ .../show_ip_ssh/show_ip_ssh.oneos6.yml | 13 ++ .../show_ip_vrf_brief.oneos5.raw | 7 + .../show_ip_vrf_brief.oneos5.yml | 16 +++ .../show_ip_vrf_brief.oneos6.raw | 8 ++ .../show_ip_vrf_brief.oneos6.yml | 29 ++++ 26 files changed, 798 insertions(+), 2 deletions(-) create mode 100644 ntc_templates/templates/oneaccess_oneos_show_ip_bgp_summary.textfsm create mode 100644 ntc_templates/templates/oneaccess_oneos_show_ip_interface_brief.textfsm create mode 100644 ntc_templates/templates/oneaccess_oneos_show_ip_prefix-list.textfsm create mode 100644 ntc_templates/templates/oneaccess_oneos_show_ip_ssh.textfsm create mode 100644 ntc_templates/templates/oneaccess_oneos_show_ip_vrf_brief.textfsm create mode 100644 tests/oneaccess_oneos/show_ip_bgp_summary/show_ip_bgp_summary.oneos5.raw create mode 100644 tests/oneaccess_oneos/show_ip_bgp_summary/show_ip_bgp_summary.oneos5.yml create mode 100644 tests/oneaccess_oneos/show_ip_bgp_summary/show_ip_bgp_summary.oneos6.raw create mode 100644 tests/oneaccess_oneos/show_ip_bgp_summary/show_ip_bgp_summary.oneos6.yml create mode 100644 tests/oneaccess_oneos/show_ip_interface_brief/show_ip_interface_brief.oneos5.raw create mode 100644 tests/oneaccess_oneos/show_ip_interface_brief/show_ip_interface_brief.oneos5.yml create mode 100644 tests/oneaccess_oneos/show_ip_interface_brief/show_ip_interface_brief.oneos6.raw create mode 100644 tests/oneaccess_oneos/show_ip_interface_brief/show_ip_interface_brief.oneos6.yml create mode 100644 tests/oneaccess_oneos/show_ip_prefix-list/show_ip_prefix-list.oneos5.raw create mode 100644 tests/oneaccess_oneos/show_ip_prefix-list/show_ip_prefix-list.oneos5.yml create mode 100644 tests/oneaccess_oneos/show_ip_prefix-list/show_ip_prefix-list.oneos6.raw create mode 100644 tests/oneaccess_oneos/show_ip_prefix-list/show_ip_prefix-list.oneos6.yml create mode 100644 tests/oneaccess_oneos/show_ip_ssh/show_ip_ssh.oneos5.raw create mode 100644 tests/oneaccess_oneos/show_ip_ssh/show_ip_ssh.oneos5.yml create mode 100644 tests/oneaccess_oneos/show_ip_ssh/show_ip_ssh.oneos6.raw create mode 100644 tests/oneaccess_oneos/show_ip_ssh/show_ip_ssh.oneos6.yml create mode 100644 tests/oneaccess_oneos/show_ip_vrf_brief/show_ip_vrf_brief.oneos5.raw create mode 100644 tests/oneaccess_oneos/show_ip_vrf_brief/show_ip_vrf_brief.oneos5.yml create mode 100644 tests/oneaccess_oneos/show_ip_vrf_brief/show_ip_vrf_brief.oneos6.raw create mode 100644 tests/oneaccess_oneos/show_ip_vrf_brief/show_ip_vrf_brief.oneos6.yml diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 65ef99bcd5..1596d0fed2 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -740,14 +740,19 @@ mikrotik_routeros_ping.textfsm, .*, mikrotik_routeros, [[/]]pin[[g]] oneaccess_oneos_show_voice_voip-call_active_all.textfsm, .*, oneaccess_oneos, sh[[ow]] voice voip-call active oneaccess_oneos_show_cellular-radio_equipment.textfsm, .*, oneaccess_oneos, sh[[ow]] cell[[ular-radio]] equipment oneaccess_oneos_show_voice_voip-call_any_all.textfsm, .*, oneaccess_oneos, sh[[ow]] voice voip-call any all -oneaccess_oneos_show_cellular-radio_network.textfsm, .*, oneaccess_oneos, sh[[ow]] cell[[ular-radio]] network oneaccess_oneos_show_cellular-radio_context.textfsm, .*, oneaccess_oneos, sh[[ow]] cell[[ular-radio]] context +oneaccess_oneos_show_cellular-radio_network.textfsm, .*, oneaccess_oneos, sh[[ow]] cell[[ular-radio]] network oneaccess_oneos_show_ip_as-path-access-list.textfsm, .*, oneaccess_oneos, sh[[ow]] ip as-path-access-list +oneaccess_oneos_show_ip_interface_brief.textfsm, .*, oneaccess_oneos, sh[[ow]] ip int[[erface]] brief oneaccess_oneos_show_ip_access-lists.textfsm, .*, oneaccess_oneos, sh[[ow]] ip access-lists[[s]] -oneaccess_oneos_show_vrrp_interface.textfsm, .*, oneaccess_oneos, sh[[ow]] vrrp int[[erface]] oneaccess_oneos_cat_bsa_bsaboot.inf.textfsm, .*, oneaccess_oneos, cat (\/|)(BSA|bsa)(\/| )bsa(B|b)oot.inf +oneaccess_oneos_show_ip_bgp_summary.textfsm, .*, oneaccess_oneos, sh[[ow]] ip bgp summary +oneaccess_oneos_show_ip_prefix-list.textfsm, .*, oneaccess_oneos, sh[[ow]] ip prefix-list +oneaccess_oneos_show_vrrp_interface.textfsm, .*, oneaccess_oneos, sh[[ow]] vrrp int[[erface]] +oneaccess_oneos_show_ip_vrf_brief.textfsm, .*, oneaccess_oneos, sh[[ow]] ip vrf brief oneaccess_oneos_show_interfaces.textfsm, .*, oneaccess_oneos, sh[[ow]] interface[[s]] oneaccess_oneos_show_helpers.textfsm, .*, oneaccess_oneos, sh[[ow]] helpers +oneaccess_oneos_show_ip_ssh.textfsm, .*, oneaccess_oneos, sh[[ow]] ip ssh oneaccess_oneos_hostname.textfsm, .*, oneaccess_oneos, hostname oneaccess_oneos_ls.textfsm, .*, oneaccess_oneos, ls( -[lh][lh]? )?.* diff --git a/ntc_templates/templates/oneaccess_oneos_show_ip_bgp_summary.textfsm b/ntc_templates/templates/oneaccess_oneos_show_ip_bgp_summary.textfsm new file mode 100644 index 0000000000..7c284e8d2d --- /dev/null +++ b/ntc_templates/templates/oneaccess_oneos_show_ip_bgp_summary.textfsm @@ -0,0 +1,34 @@ +Value Filldown,Required ROUTER_ID ([0-9a-f:\.]+) +Value Filldown LOCAL_AS (\d+(\.\d+)?) +Value Filldown VRF (\w+) +Value Filldown RIB_ENTRIES (\d+) +Value Filldown RIB_MEMORY (\d+\s\S+) +Value Filldown PEERS (\d+) +Value Filldown BGP_MEMORY (\d+\s\S+) +Value Filldown AS_PATH_ENTRIES (\d+) +Value Filldown COMMUNTIY_ENTRIES (\d+) +Value BGP_NEIGHBOR (\d+\.\d+\.\d+\.\d+) +Value ADDRESS_FAMILY (\d+) +Value NEIGHBOR_AS (\d+) +Value MESSAGE_RECEIVED (\d+) +Value MESSAGE_SENT (\d+) +Value TABLE_VERSION (\d+) +Value IN_QUEUE (\d+) +Value OUT_QUEUE (\d+) +Value UP_DOWN (\S+?) +Value STATE_PREFIX_RECEIVED (\S+\s+\S+|\S+) +Value Fillup TOTAL_NEIGHBORS (\d+) + +Start + ^BGP\srouter\sidentifier\s${ROUTER_ID},\slocal\sAS\snumber\s${LOCAL_AS},?\s+vrf\s\(?${VRF}\)? + ^RIB\sentries\s${RIB_ENTRIES},\susing\s${RIB_MEMORY}\sof\smemory + ^Peers\s${PEERS},\susing\s${BGP_MEMORY}\sof\smemory + ^${AS_PATH_ENTRIES}\sBGP\sAS-PATH\sentries + ^${COMMUNTIY_ENTRIES}\sBGP\scommunity\sentries + ^Neighbor\s+V\s+AS\s+MsgRcvd\s+MsgSent\s+TblVer\s+InQ\s+OutQ\s+Up/Down\s+State/PfxRcd\s*$$ + ^${BGP_NEIGHBOR}\s+${ADDRESS_FAMILY}\s+${NEIGHBOR_AS}\s+${MESSAGE_RECEIVED}\s+${MESSAGE_SENT}\s+${TABLE_VERSION}\s+${IN_QUEUE}\s+${OUT_QUEUE}\s+${UP_DOWN}\s+${STATE_PREFIX_RECEIVED} -> Record + ^Total\snumber\sof\sneighbors\s${TOTAL_NEIGHBORS} + ^\s*$$ + ^. -> Error + +EOF diff --git a/ntc_templates/templates/oneaccess_oneos_show_ip_interface_brief.textfsm b/ntc_templates/templates/oneaccess_oneos_show_ip_interface_brief.textfsm new file mode 100644 index 0000000000..b1fc09d9ef --- /dev/null +++ b/ntc_templates/templates/oneaccess_oneos_show_ip_interface_brief.textfsm @@ -0,0 +1,12 @@ +Value INTERFACE (\S+(?:\s\S+)?) +Value IP_ADDRESS (\S+) +Value OK (YES|NO|Yes|No|yes|no) +Value STATUS (up|down|administratively down) +Value PROTOCOL (up|down) +Value DESCRIPTION (.*?) + +Start + ^Interface\s+IP[-\s]Address\s+OK\?\s+Status\s+Protocol\s+Description\s*$$ + ^${INTERFACE}\s+${IP_ADDRESS}\s+${OK}\s+${STATUS}\s+${PROTOCOL}\s+${DESCRIPTION}\s*$$ -> Record + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/oneaccess_oneos_show_ip_prefix-list.textfsm b/ntc_templates/templates/oneaccess_oneos_show_ip_prefix-list.textfsm new file mode 100644 index 0000000000..3beb97c137 --- /dev/null +++ b/ntc_templates/templates/oneaccess_oneos_show_ip_prefix-list.textfsm @@ -0,0 +1,16 @@ +Value Required,Filldown PROTOCOL (\S+) +Value Required,Filldown NAME (\S+) +Value Filldown DESCRIPTION (.*) +Value Required SEQUENCE (\d+) +Value ACTION (\S+) +Value NETWORK ([0-9a-f:\.]+|any) +Value NETMASK (\d+) +Value LE (\d+) +Value GE (\d+) + +Start + ^${PROTOCOL}:\sip\s+prefix-list\s+${NAME} + ^\s+Description:\s${DESCRIPTION} + ^\s+seq\s+${SEQUENCE}\s+${ACTION}\s+${NETWORK}(/${NETMASK}|)(?:\s+ge\s+${GE}|)(?:\s+le\s+${LE}|)\s*$$ -> Record + ^\s*$$ + ^.+ -> Error diff --git a/ntc_templates/templates/oneaccess_oneos_show_ip_ssh.textfsm b/ntc_templates/templates/oneaccess_oneos_show_ip_ssh.textfsm new file mode 100644 index 0000000000..1298d168c5 --- /dev/null +++ b/ntc_templates/templates/oneaccess_oneos_show_ip_ssh.textfsm @@ -0,0 +1,31 @@ +Value SSH (\S+) +Value SCP (\S+) +Value ENCRYPTION (ssh\-\S+|\S+) +Value BITS (\d+) +Value FINGERPRINT ([a-f0-9:]+) +Value MAX_SESSIONS (\d+) +Value MAX_CHANNELS_SESSION (\d+) +Value METHOD (\S+) +Value SESSION_TIMEOUT (\d+) +Value AUTH_TIMEOUT (\d+) +Value AUTH_RETRIES (\d+) + +Start + ^SSH\s${SSH} + ^SCP\sserver\s${SCP} + ^Authentication\s.ethod:?\s${METHOD} + ^Authentication\stimeout\s${AUTH_TIMEOUT}\ssecs,\sretries\s${AUTH_RETRIES} + ^Session\stimeout\s${SESSION_TIMEOUT}\ssecs + ^Maximum\snumber\sof\ssessions\s${MAX_SESSIONS} + ^Maximum\snumber\sof\schannels\sper\ssession\s${MAX_CHANNELS_SESSION} + ^Authorized\s+public\s+keys: + ^none + ^Key\sfingerprint -> FINGERPRINT + ^\s*$$ + ^. -> Error + +FINGERPRINT + ^${ENCRYPTION}\s${BITS}\s${FINGERPRINT}\s*$$ -> Start + ^${BITS}\sMD5:${FINGERPRINT}.*\s\(${ENCRYPTION}\)$$ -> Start + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/oneaccess_oneos_show_ip_vrf_brief.textfsm b/ntc_templates/templates/oneaccess_oneos_show_ip_vrf_brief.textfsm new file mode 100644 index 0000000000..e4ef0b24c6 --- /dev/null +++ b/ntc_templates/templates/oneaccess_oneos_show_ip_vrf_brief.textfsm @@ -0,0 +1,12 @@ +Value VRF (\w+) +Value VRF_ID (\d+) +Value List INTERFACES ([\w\-]+\s?[\w\/\.]+) + +Start + ^\s*VRF\s+Name\s+VRF\s+I[Dd]\s+Interfaces\s*$$ + ^\s?\w+\s+\d+ -> Continue.Record + ^\s?${VRF}?\s+${VRF_ID}\s+${INTERFACES}$$ + ^\s?${VRF}?\s+${VRF_ID}\s*$$ + ^\s+${INTERFACES}$$ + ^\s*$$ + ^. -> Error diff --git a/tests/oneaccess_oneos/show_ip_bgp_summary/show_ip_bgp_summary.oneos5.raw b/tests/oneaccess_oneos/show_ip_bgp_summary/show_ip_bgp_summary.oneos5.raw new file mode 100644 index 0000000000..4898598f52 --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_bgp_summary/show_ip_bgp_summary.oneos5.raw @@ -0,0 +1,8 @@ +BGP router identifier 194.5.12.148, local AS number 65000, vrf (null) +6 BGP AS-PATH entries +0 BGP community entries + +Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd +194.5.163.29 4 14737 13360 12237 34 0 0 4d05h57m 28 + +Total number of neighbors 1 diff --git a/tests/oneaccess_oneos/show_ip_bgp_summary/show_ip_bgp_summary.oneos5.yml b/tests/oneaccess_oneos/show_ip_bgp_summary/show_ip_bgp_summary.oneos5.yml new file mode 100644 index 0000000000..4028770603 --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_bgp_summary/show_ip_bgp_summary.oneos5.yml @@ -0,0 +1,22 @@ +--- +parsed_sample: + - router_id: "194.5.12.148" + local_as: "65000" + vrf: "null" + rib_entries: "" + rib_memory: "" + peers: "" + bgp_memory: "" + as_path_entries: "6" + communtiy_entries: "0" + bgp_neighbor: "194.5.163.29" + address_family: "4" + neighbor_as: "14737" + message_received: "13360" + message_sent: "12237" + table_version: "34" + in_queue: "0" + out_queue: "0" + up_down: "4d05h57m" + state_prefix_received: "28" + total_neighbors: "1" diff --git a/tests/oneaccess_oneos/show_ip_bgp_summary/show_ip_bgp_summary.oneos6.raw b/tests/oneaccess_oneos/show_ip_bgp_summary/show_ip_bgp_summary.oneos6.raw new file mode 100644 index 0000000000..b12bc87083 --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_bgp_summary/show_ip_bgp_summary.oneos6.raw @@ -0,0 +1,9 @@ +BGP router identifier 1.105.35.17, local AS number 65000 vrf default +RIB entries 1493, using 105 KiB of memory +Peers 2, using 5128 bytes of memory + +Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd +192.4.21.254 4 61400 38962 26256 78123 0 0 20:35:48 881 +192.4.91.254 4 61400 38876 26260 78123 0 0 20:35:48 881 + +Total number of neighbors 2 diff --git a/tests/oneaccess_oneos/show_ip_bgp_summary/show_ip_bgp_summary.oneos6.yml b/tests/oneaccess_oneos/show_ip_bgp_summary/show_ip_bgp_summary.oneos6.yml new file mode 100644 index 0000000000..cea8e23d45 --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_bgp_summary/show_ip_bgp_summary.oneos6.yml @@ -0,0 +1,42 @@ +--- +parsed_sample: + - router_id: "1.105.35.17" + local_as: "65000" + vrf: "default" + rib_entries: "1493" + rib_memory: "105 KiB" + peers: "2" + bgp_memory: "5128 bytes" + as_path_entries: "" + communtiy_entries: "" + bgp_neighbor: "192.4.21.254" + address_family: "4" + neighbor_as: "61400" + message_received: "38962" + message_sent: "26256" + table_version: "78123" + in_queue: "0" + out_queue: "0" + up_down: "20:35:48" + state_prefix_received: "881" + total_neighbors: "2" + - router_id: "1.105.35.17" + local_as: "65000" + vrf: "default" + rib_entries: "1493" + rib_memory: "105 KiB" + peers: "2" + bgp_memory: "5128 bytes" + as_path_entries: "" + communtiy_entries: "" + bgp_neighbor: "192.4.91.254" + address_family: "4" + neighbor_as: "61400" + message_received: "38876" + message_sent: "26260" + table_version: "78123" + in_queue: "0" + out_queue: "0" + up_down: "20:35:48" + state_prefix_received: "881" + total_neighbors: "2" diff --git a/tests/oneaccess_oneos/show_ip_interface_brief/show_ip_interface_brief.oneos5.raw b/tests/oneaccess_oneos/show_ip_interface_brief/show_ip_interface_brief.oneos5.raw new file mode 100644 index 0000000000..045be80d64 --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_interface_brief/show_ip_interface_brief.oneos5.raw @@ -0,0 +1,21 @@ +Interface IP-Address OK? Status Protocol Description +GigabitEthernet 0/0 YES up up *** PBXPLUG 212 - BACKUP TEST - 94.105.1.119 *** +GigabitEthernet 0/1 YES up up *** PBXPLUG 401 - BACKUP TEST - 94.105.34.2 *** +GigabitEthernet 0/2 YES up down *IPERF* +GigabitEthernet 0/3 YES up down +FastEthernet 1/0 YES up up *** WAN INTERFACE *** +FastEthernet 1/0.1 192.168.1.2 YES up up *** management A-modem (modem ip = 192.168.1.1) *** +FastEthernet 1/0.10 YES up up *** VT096910 - GS20170330107 - IP-VPN - VDSL2 SHARED VLAN - NOS-EMLP-01/ANT-EMLP-01 - Loopback503941 *** +Dialer 1 94.105.163.30 YES up up *** VT096910 - GS20170330107 - IP-VPN - VDSL2 SHARED VLAN - NOS-EMLP-01/ANT-EMLP-01 - Loopback503941 +Dialer 2 NO administratively down down *** VT108085 - GS20190640686 - CI - VDSL2 SHARED VLAN - NOS-EMLP-01/ANT-EMLP-01 - LOOPBACK 503899 *** +Dialer 3 94.104.254.138 YES up up *** DATA VDSL shared VLAN - GSID0004_MAIN - CI TEST - NOS-EMLP-01/ANT-EMLP-01 - LOOPBACK 500000*** +Loopback 0 127.0.0.1 YES up up +Loopback 1 94.105.12.148 YES up up *** VT096910 - GS20170330107 *** +Loopback 777 94.107.245.249 YES up up +Bvi 10 192.168.10.1 YES up up *** VT108085 - GS20190640686 - CI ACCESS *** +Bvi 100 192.168.100.1 YES up up *** TEST MAARTEN - BACKUP SCRIPT PBXPLUG *** +Bvi 200 94.105.16.129 YES up down *IPERF* +dot11radio 0/0.1 YES up up +dot11radio 0/0.2 YES up up +Null 0 YES up up +dot11radio 0/0 YES up up diff --git a/tests/oneaccess_oneos/show_ip_interface_brief/show_ip_interface_brief.oneos5.yml b/tests/oneaccess_oneos/show_ip_interface_brief/show_ip_interface_brief.oneos5.yml new file mode 100644 index 0000000000..8f5ca00c60 --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_interface_brief/show_ip_interface_brief.oneos5.yml @@ -0,0 +1,126 @@ +--- +parsed_sample: + - interface: "GigabitEthernet 0/0" + ip_address: "" + ok: "YES" + status: "up" + protocol: "up" + description: "*** PBXPLUG 212 - BACKUP TEST - 94.105.1.119 ***" + - interface: "GigabitEthernet 0/1" + ip_address: "" + ok: "YES" + status: "up" + protocol: "up" + description: "*** PBXPLUG 401 - BACKUP TEST - 94.105.34.2 ***" + - interface: "GigabitEthernet 0/2" + ip_address: "" + ok: "YES" + status: "up" + protocol: "down" + description: "*IPERF*" + - interface: "GigabitEthernet 0/3" + ip_address: "" + ok: "YES" + status: "up" + protocol: "down" + description: "" + - interface: "FastEthernet 1/0" + ip_address: "" + ok: "YES" + status: "up" + protocol: "up" + description: "*** WAN INTERFACE ***" + - interface: "FastEthernet 1/0.1" + ip_address: "192.168.1.2" + ok: "YES" + status: "up" + protocol: "up" + description: "*** management A-modem (modem ip = 192.168.1.1) ***" + - interface: "FastEthernet 1/0.10" + ip_address: "" + ok: "YES" + status: "up" + protocol: "up" + description: "*** VT096910 - GS20170330107 - IP-VPN - VDSL2 SHARED VLAN - NOS-EMLP-01/ANT-EMLP-01\ + \ - Loopback503941 ***" + - interface: "Dialer 1" + ip_address: "94.105.163.30" + ok: "YES" + status: "up" + protocol: "up" + description: "*** VT096910 - GS20170330107 - IP-VPN - VDSL2 SHARED VLAN - NOS-EMLP-01/ANT-EMLP-01\ + \ - Loopback503941" + - interface: "Dialer 2" + ip_address: "" + ok: "NO" + status: "administratively down" + protocol: "down" + description: "*** VT108085 - GS20190640686 - CI - VDSL2 SHARED VLAN - NOS-EMLP-01/ANT-EMLP-01\ + \ - LOOPBACK 503899 ***" + - interface: "Dialer 3" + ip_address: "94.104.254.138" + ok: "YES" + status: "up" + protocol: "up" + description: "*** DATA VDSL shared VLAN - GSID0004_MAIN - CI TEST - NOS-EMLP-01/ANT-EMLP-01\ + \ - LOOPBACK 500000***" + - interface: "Loopback 0" + ip_address: "127.0.0.1" + ok: "YES" + status: "up" + protocol: "up" + description: "" + - interface: "Loopback 1" + ip_address: "94.105.12.148" + ok: "YES" + status: "up" + protocol: "up" + description: "*** VT096910 - GS20170330107 ***" + - interface: "Loopback 777" + ip_address: "94.107.245.249" + ok: "YES" + status: "up" + protocol: "up" + description: "" + - interface: "Bvi 10" + ip_address: "192.168.10.1" + ok: "YES" + status: "up" + protocol: "up" + description: "*** VT108085 - GS20190640686 - CI ACCESS ***" + - interface: "Bvi 100" + ip_address: "192.168.100.1" + ok: "YES" + status: "up" + protocol: "up" + description: "*** TEST MAARTEN - BACKUP SCRIPT PBXPLUG ***" + - interface: "Bvi 200" + ip_address: "94.105.16.129" + ok: "YES" + status: "up" + protocol: "down" + description: "*IPERF*" + - interface: "dot11radio 0/0.1" + ip_address: "" + ok: "YES" + status: "up" + protocol: "up" + description: "" + - interface: "dot11radio 0/0.2" + ip_address: "" + ok: "YES" + status: "up" + protocol: "up" + description: "" + - interface: "Null 0" + ip_address: "" + ok: "YES" + status: "up" + protocol: "up" + description: "" + - interface: "dot11radio 0/0" + ip_address: "" + ok: "YES" + status: "up" + protocol: "up" + description: "" diff --git a/tests/oneaccess_oneos/show_ip_interface_brief/show_ip_interface_brief.oneos6.raw b/tests/oneaccess_oneos/show_ip_interface_brief/show_ip_interface_brief.oneos6.raw new file mode 100644 index 0000000000..a99e1c1e3d --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_interface_brief/show_ip_interface_brief.oneos6.raw @@ -0,0 +1,22 @@ +Interface IP-Address OK? Status Protocol Description +GigabitEthernet 0/0 94.107.208.169 Yes up down *** LAN INTERFACE *** +GigabitEthernet 0/1 20.20.20.1 Yes up up *** LAB_C891F - GigabitEthernet0 *** +GigabitEthernet 0/2 Yes up down +GigabitEthernet 0/3 10.100.1.254 Yes up up TO LBB156 +GigabitEthernet 1/0 Yes up down *** WAN INTERFACE *** +GigabitEthernet 1/0.1 Yes up down +GigabitEthernet 1/0.10 No administratively down down +GigabitEthernet 1/0.200 Yes up down * VT108085 - - GS20190640686 - CORPORATE INTERNET - VDSL2 SHARED VLAN - NOS-EMLP-01/ANT-EMLP-01 - LOOPBACK 503899 * +GigabitEthernet 1/0.300 No administratively down down * VT096908 - - GS20170330105 - IP-VPN - VDSL2 SHARED VLAN - NOS-EMLP-01/ANT-EMLP-01 - Loopback503210 * +Bvi 300 94.107.224.226 Yes up down +Virtual-Ethernet 1 10.94.50.22 Yes up up * Mobile access 4G - UNTRUST - CORPORATE INTERNET - 4G * +Null 0 Yes up up Null 0 +Loopback 0 Yes up up +Loopback 1 94.105.9.192 Yes up up +Loopback 21 192.4.21.238 Yes up up *** Mobile access 4G - BGP PEER LOOPBACK ANT *** +Loopback 91 192.4.91.238 Yes up up *** Mobile access 4G - BGP PEER LOOPBACK NOS *** +Tunnel 21 94.105.9.192 Yes up up GRE tunnel to ANT-IPSEC-02 - NO IPSEC +Tunnel 91 94.105.9.192 Yes up up GRE tunnel to NOS-IPSEC-02 +Dialer 1 Yes up down * VT108085 - - GS20190640686 - CORPORATE INTERNET - VDSL2 SHARED VLAN - NOS-EMLP-01/ANT-EMLP-01 - LOOPBACK 503899 * +Dialer 3 No administratively down down * VT096908 - - GS20170330105 - IP-VPN - VDSL2 SHARED VLAN - NOS-EMLP-01/ANT-EMLP-01 - Loopback503210 * +Dialer 32 Yes up down diff --git a/tests/oneaccess_oneos/show_ip_interface_brief/show_ip_interface_brief.oneos6.yml b/tests/oneaccess_oneos/show_ip_interface_brief/show_ip_interface_brief.oneos6.yml new file mode 100644 index 0000000000..4c3558382e --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_interface_brief/show_ip_interface_brief.oneos6.yml @@ -0,0 +1,132 @@ +--- +parsed_sample: + - interface: "GigabitEthernet 0/0" + ip_address: "94.107.208.169" + ok: "Yes" + status: "up" + protocol: "down" + description: "*** LAN INTERFACE ***" + - interface: "GigabitEthernet 0/1" + ip_address: "20.20.20.1" + ok: "Yes" + status: "up" + protocol: "up" + description: "*** LAB_C891F - GigabitEthernet0 ***" + - interface: "GigabitEthernet 0/2" + ip_address: "" + ok: "Yes" + status: "up" + protocol: "down" + description: "" + - interface: "GigabitEthernet 0/3" + ip_address: "10.100.1.254" + ok: "Yes" + status: "up" + protocol: "up" + description: "TO LBB156" + - interface: "GigabitEthernet 1/0" + ip_address: "" + ok: "Yes" + status: "up" + protocol: "down" + description: "*** WAN INTERFACE ***" + - interface: "GigabitEthernet 1/0.1" + ip_address: "" + ok: "Yes" + status: "up" + protocol: "down" + description: "" + - interface: "GigabitEthernet 1/0.10" + ip_address: "" + ok: "No" + status: "administratively down" + protocol: "down" + description: "" + - interface: "GigabitEthernet 1/0.200" + ip_address: "" + ok: "Yes" + status: "up" + protocol: "down" + description: "* VT108085 - - GS20190640686 - CORPORATE INTERNET - VDSL2 SHARED VLAN\ + \ - NOS-EMLP-01/ANT-EMLP-01 - LOOPBACK 503899 *" + - interface: "GigabitEthernet 1/0.300" + ip_address: "" + ok: "No" + status: "administratively down" + protocol: "down" + description: "* VT096908 - - GS20170330105 - IP-VPN - VDSL2 SHARED VLAN - NOS-EMLP-01/ANT-EMLP-01\ + \ - Loopback503210 *" + - interface: "Bvi 300" + ip_address: "94.107.224.226" + ok: "Yes" + status: "up" + protocol: "down" + description: "" + - interface: "Virtual-Ethernet 1" + ip_address: "10.94.50.22" + ok: "Yes" + status: "up" + protocol: "up" + description: "* Mobile access 4G - UNTRUST - CORPORATE INTERNET - 4G *" + - interface: "Null 0" + ip_address: "" + ok: "Yes" + status: "up" + protocol: "up" + description: "Null 0" + - interface: "Loopback 0" + ip_address: "" + ok: "Yes" + status: "up" + protocol: "up" + description: "" + - interface: "Loopback 1" + ip_address: "94.105.9.192" + ok: "Yes" + status: "up" + protocol: "up" + description: "" + - interface: "Loopback 21" + ip_address: "192.4.21.238" + ok: "Yes" + status: "up" + protocol: "up" + description: "*** Mobile access 4G - BGP PEER LOOPBACK ANT ***" + - interface: "Loopback 91" + ip_address: "192.4.91.238" + ok: "Yes" + status: "up" + protocol: "up" + description: "*** Mobile access 4G - BGP PEER LOOPBACK NOS ***" + - interface: "Tunnel 21" + ip_address: "94.105.9.192" + ok: "Yes" + status: "up" + protocol: "up" + description: "GRE tunnel to ANT-IPSEC-02 - NO IPSEC" + - interface: "Tunnel 91" + ip_address: "94.105.9.192" + ok: "Yes" + status: "up" + protocol: "up" + description: "GRE tunnel to NOS-IPSEC-02" + - interface: "Dialer 1" + ip_address: "" + ok: "Yes" + status: "up" + protocol: "down" + description: "* VT108085 - - GS20190640686 - CORPORATE INTERNET - VDSL2 SHARED VLAN\ + \ - NOS-EMLP-01/ANT-EMLP-01 - LOOPBACK 503899 *" + - interface: "Dialer 3" + ip_address: "" + ok: "No" + status: "administratively down" + protocol: "down" + description: "* VT096908 - - GS20170330105 - IP-VPN - VDSL2 SHARED VLAN - NOS-EMLP-01/ANT-EMLP-01\ + \ - Loopback503210 *" + - interface: "Dialer 32" + ip_address: "" + ok: "Yes" + status: "up" + protocol: "down" + description: "" diff --git a/tests/oneaccess_oneos/show_ip_prefix-list/show_ip_prefix-list.oneos5.raw b/tests/oneaccess_oneos/show_ip_prefix-list/show_ip_prefix-list.oneos5.raw new file mode 100644 index 0000000000..fea365807a --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_prefix-list/show_ip_prefix-list.oneos5.raw @@ -0,0 +1,15 @@ +RIP: ip prefix-list DENY-BGP: 3 entries + Description: ** do not advertise to BGP neighbors ** + seq 5 permit 192.4.21.0/24 le 32 + seq 10 permit 192.4.91.0/24 le 32 + seq 15 deny any +OSPF: ip prefix-list DENY-BGP: 3 entries + Description: ** do not advertise to BGP neighbors ** + seq 5 permit 192.4.21.0/24 le 32 + seq 10 permit 192.4.91.0/24 le 32 + seq 15 deny any +BGP: ip prefix-list DENY-BGP: 3 entries + Description: ** do not advertise to BGP neighbors ** + seq 5 permit 192.4.21.0/24 le 32 + seq 10 permit 192.4.91.0/24 le 32 + seq 15 deny any diff --git a/tests/oneaccess_oneos/show_ip_prefix-list/show_ip_prefix-list.oneos5.yml b/tests/oneaccess_oneos/show_ip_prefix-list/show_ip_prefix-list.oneos5.yml new file mode 100644 index 0000000000..46e2515577 --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_prefix-list/show_ip_prefix-list.oneos5.yml @@ -0,0 +1,83 @@ +--- +parsed_sample: + - protocol: "RIP" + name: "DENY-BGP:" + description: "** do not advertise to BGP neighbors **" + sequence: "5" + action: "permit" + network: "192.4.21.0" + netmask: "24" + le: "32" + ge: "" + - protocol: "RIP" + name: "DENY-BGP:" + description: "** do not advertise to BGP neighbors **" + sequence: "10" + action: "permit" + network: "192.4.91.0" + netmask: "24" + le: "32" + ge: "" + - protocol: "RIP" + name: "DENY-BGP:" + description: "** do not advertise to BGP neighbors **" + sequence: "15" + action: "deny" + network: "any" + netmask: "" + le: "" + ge: "" + - protocol: "OSPF" + name: "DENY-BGP:" + description: "** do not advertise to BGP neighbors **" + sequence: "5" + action: "permit" + network: "192.4.21.0" + netmask: "24" + le: "32" + ge: "" + - protocol: "OSPF" + name: "DENY-BGP:" + description: "** do not advertise to BGP neighbors **" + sequence: "10" + action: "permit" + network: "192.4.91.0" + netmask: "24" + le: "32" + ge: "" + - protocol: "OSPF" + name: "DENY-BGP:" + description: "** do not advertise to BGP neighbors **" + sequence: "15" + action: "deny" + network: "any" + netmask: "" + le: "" + ge: "" + - protocol: "BGP" + name: "DENY-BGP:" + description: "** do not advertise to BGP neighbors **" + sequence: "5" + action: "permit" + network: "192.4.21.0" + netmask: "24" + le: "32" + ge: "" + - protocol: "BGP" + name: "DENY-BGP:" + description: "** do not advertise to BGP neighbors **" + sequence: "10" + action: "permit" + network: "192.4.91.0" + netmask: "24" + le: "32" + ge: "" + - protocol: "BGP" + name: "DENY-BGP:" + description: "** do not advertise to BGP neighbors **" + sequence: "15" + action: "deny" + network: "any" + netmask: "" + le: "" + ge: "" diff --git a/tests/oneaccess_oneos/show_ip_prefix-list/show_ip_prefix-list.oneos6.raw b/tests/oneaccess_oneos/show_ip_prefix-list/show_ip_prefix-list.oneos6.raw new file mode 100644 index 0000000000..fea365807a --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_prefix-list/show_ip_prefix-list.oneos6.raw @@ -0,0 +1,15 @@ +RIP: ip prefix-list DENY-BGP: 3 entries + Description: ** do not advertise to BGP neighbors ** + seq 5 permit 192.4.21.0/24 le 32 + seq 10 permit 192.4.91.0/24 le 32 + seq 15 deny any +OSPF: ip prefix-list DENY-BGP: 3 entries + Description: ** do not advertise to BGP neighbors ** + seq 5 permit 192.4.21.0/24 le 32 + seq 10 permit 192.4.91.0/24 le 32 + seq 15 deny any +BGP: ip prefix-list DENY-BGP: 3 entries + Description: ** do not advertise to BGP neighbors ** + seq 5 permit 192.4.21.0/24 le 32 + seq 10 permit 192.4.91.0/24 le 32 + seq 15 deny any diff --git a/tests/oneaccess_oneos/show_ip_prefix-list/show_ip_prefix-list.oneos6.yml b/tests/oneaccess_oneos/show_ip_prefix-list/show_ip_prefix-list.oneos6.yml new file mode 100644 index 0000000000..46e2515577 --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_prefix-list/show_ip_prefix-list.oneos6.yml @@ -0,0 +1,83 @@ +--- +parsed_sample: + - protocol: "RIP" + name: "DENY-BGP:" + description: "** do not advertise to BGP neighbors **" + sequence: "5" + action: "permit" + network: "192.4.21.0" + netmask: "24" + le: "32" + ge: "" + - protocol: "RIP" + name: "DENY-BGP:" + description: "** do not advertise to BGP neighbors **" + sequence: "10" + action: "permit" + network: "192.4.91.0" + netmask: "24" + le: "32" + ge: "" + - protocol: "RIP" + name: "DENY-BGP:" + description: "** do not advertise to BGP neighbors **" + sequence: "15" + action: "deny" + network: "any" + netmask: "" + le: "" + ge: "" + - protocol: "OSPF" + name: "DENY-BGP:" + description: "** do not advertise to BGP neighbors **" + sequence: "5" + action: "permit" + network: "192.4.21.0" + netmask: "24" + le: "32" + ge: "" + - protocol: "OSPF" + name: "DENY-BGP:" + description: "** do not advertise to BGP neighbors **" + sequence: "10" + action: "permit" + network: "192.4.91.0" + netmask: "24" + le: "32" + ge: "" + - protocol: "OSPF" + name: "DENY-BGP:" + description: "** do not advertise to BGP neighbors **" + sequence: "15" + action: "deny" + network: "any" + netmask: "" + le: "" + ge: "" + - protocol: "BGP" + name: "DENY-BGP:" + description: "** do not advertise to BGP neighbors **" + sequence: "5" + action: "permit" + network: "192.4.21.0" + netmask: "24" + le: "32" + ge: "" + - protocol: "BGP" + name: "DENY-BGP:" + description: "** do not advertise to BGP neighbors **" + sequence: "10" + action: "permit" + network: "192.4.91.0" + netmask: "24" + le: "32" + ge: "" + - protocol: "BGP" + name: "DENY-BGP:" + description: "** do not advertise to BGP neighbors **" + sequence: "15" + action: "deny" + network: "any" + netmask: "" + le: "" + ge: "" diff --git a/tests/oneaccess_oneos/show_ip_ssh/show_ip_ssh.oneos5.raw b/tests/oneaccess_oneos/show_ip_ssh/show_ip_ssh.oneos5.raw new file mode 100644 index 0000000000..f805882468 --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_ssh/show_ip_ssh.oneos5.raw @@ -0,0 +1,11 @@ +SSH Enabled +Authentication timeout 30 secs, retries 3 +Session timeout 900 secs +Authentication method: all +Maximum number of sessions 5 +Maximum number of channels per session 10 +Authorized public keys: +none +Key fingerprint: +ssh-rsa 4096 bc:f8:c3:67:8f:de:f3:ec:5c:29:b5:a4:e4:25:de:7a +SCP server enabled diff --git a/tests/oneaccess_oneos/show_ip_ssh/show_ip_ssh.oneos5.yml b/tests/oneaccess_oneos/show_ip_ssh/show_ip_ssh.oneos5.yml new file mode 100644 index 0000000000..2244fc3619 --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_ssh/show_ip_ssh.oneos5.yml @@ -0,0 +1,13 @@ +--- +parsed_sample: + - ssh: "Enabled" + scp: "enabled" + encryption: "ssh-rsa" + bits: "4096" + fingerprint: "bc:f8:c3:67:8f:de:f3:ec:5c:29:b5:a4:e4:25:de:7a" + max_sessions: "5" + max_channels_session: "10" + method: "all" + session_timeout: "900" + auth_timeout: "30" + auth_retries: "3" diff --git a/tests/oneaccess_oneos/show_ip_ssh/show_ip_ssh.oneos6.raw b/tests/oneaccess_oneos/show_ip_ssh/show_ip_ssh.oneos6.raw new file mode 100644 index 0000000000..b7f7730664 --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_ssh/show_ip_ssh.oneos6.raw @@ -0,0 +1,11 @@ +SSH Enabled +Authentication timeout 30 secs, retries 3 +Session timeout 900 secs +Authentication Method all +Maximum number of sessions 5 +Maximum number of channels per session 10 +Authorized public keys: +none +Key fingerprint: +4096 MD5:5e:70:36:5a:20:93:14:18:93:04:03:df:f0:72:f4:fc root@euroshoe01-12ton-03 (RSA) +SCP server disabled diff --git a/tests/oneaccess_oneos/show_ip_ssh/show_ip_ssh.oneos6.yml b/tests/oneaccess_oneos/show_ip_ssh/show_ip_ssh.oneos6.yml new file mode 100644 index 0000000000..c519fbb738 --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_ssh/show_ip_ssh.oneos6.yml @@ -0,0 +1,13 @@ +--- +parsed_sample: + - ssh: "Enabled" + scp: "disabled" + encryption: "RSA" + bits: "4096" + fingerprint: "5e:70:36:5a:20:93:14:18:93:04:03:df:f0:72:f4:fc" + max_sessions: "5" + max_channels_session: "10" + method: "all" + session_timeout: "900" + auth_timeout: "30" + auth_retries: "3" diff --git a/tests/oneaccess_oneos/show_ip_vrf_brief/show_ip_vrf_brief.oneos5.raw b/tests/oneaccess_oneos/show_ip_vrf_brief/show_ip_vrf_brief.oneos5.raw new file mode 100644 index 0000000000..5a101b499b --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_vrf_brief/show_ip_vrf_brief.oneos5.raw @@ -0,0 +1,7 @@ + VRF Name VRF Id Interfaces + MODEM 1 FastEthernet 1/0.1 + INTERNET 2 Dialer 2 + Dialer 3 + Loopback 777 + Bvi 10 + TEST 3 diff --git a/tests/oneaccess_oneos/show_ip_vrf_brief/show_ip_vrf_brief.oneos5.yml b/tests/oneaccess_oneos/show_ip_vrf_brief/show_ip_vrf_brief.oneos5.yml new file mode 100644 index 0000000000..60a8e0587e --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_vrf_brief/show_ip_vrf_brief.oneos5.yml @@ -0,0 +1,16 @@ +--- +parsed_sample: + - vrf: "MODEM" + vrf_id: "1" + interfaces: + - "FastEthernet 1/0.1" + - vrf: "INTERNET" + vrf_id: "2" + interfaces: + - "Dialer 2" + - "Dialer 3" + - "Loopback 777" + - "Bvi 10" + - vrf: "TEST" + vrf_id: "3" + interfaces: [] diff --git a/tests/oneaccess_oneos/show_ip_vrf_brief/show_ip_vrf_brief.oneos6.raw b/tests/oneaccess_oneos/show_ip_vrf_brief/show_ip_vrf_brief.oneos6.raw new file mode 100644 index 0000000000..f5fe34bc04 --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_vrf_brief/show_ip_vrf_brief.oneos6.raw @@ -0,0 +1,8 @@ +AUTO_PROVISIONING_0001 5 Dialer 32 +CORPORATE_INTERNET_0001 3 GigabitEthernet 0/0 +MODEM 4 GigabitEthernet 1/0.1 +O_SWOPS_LAB_0001 6 Dialer 3 +TRUST 7 +UNTRUST 2 GigabitEthernet 0/1 + Virtual-Ethernet 1 +Yavuz 8 diff --git a/tests/oneaccess_oneos/show_ip_vrf_brief/show_ip_vrf_brief.oneos6.yml b/tests/oneaccess_oneos/show_ip_vrf_brief/show_ip_vrf_brief.oneos6.yml new file mode 100644 index 0000000000..6ca7c26784 --- /dev/null +++ b/tests/oneaccess_oneos/show_ip_vrf_brief/show_ip_vrf_brief.oneos6.yml @@ -0,0 +1,29 @@ +--- +parsed_sample: + - vrf: "AUTO_PROVISIONING_0001" + vrf_id: "5" + interfaces: + - "Dialer 32" + - vrf: "CORPORATE_INTERNET_0001" + vrf_id: "3" + interfaces: + - "GigabitEthernet 0/0" + - vrf: "MODEM" + vrf_id: "4" + interfaces: + - "GigabitEthernet 1/0.1" + - vrf: "O_SWOPS_LAB_0001" + vrf_id: "6" + interfaces: + - "Dialer 3" + - vrf: "TRUST" + vrf_id: "7" + interfaces: [] + - vrf: "UNTRUST" + vrf_id: "2" + interfaces: + - "GigabitEthernet 0/1" + - "Virtual-Ethernet 1" + - vrf: "Yavuz" + vrf_id: "8" + interfaces: [] From 8025fdd0415b7d0750338b46bb8d98b9aa941ada Mon Sep 17 00:00:00 2001 From: Jacob McGill <9847006+jmcgill298@users.noreply.github.com> Date: Thu, 25 Jul 2024 10:21:31 -0400 Subject: [PATCH 57/60] Add Cisco IOS XR - show l2vpn mac-learning mac all location (#1767) Co-authored-by: Olof Kasselstrand --- ...how_l2vpn_mac-learning_mac_all_location.textfsm | 12 ++++++++++++ ntc_templates/templates/index | 1 + ...xr_show_l2vpn_mac-learning_mac_all_location.raw | 6 ++++++ ...xr_show_l2vpn_mac-learning_mac_all_location.yml | 14 ++++++++++++++ 4 files changed, 33 insertions(+) create mode 100644 ntc_templates/templates/cisco_xr_show_l2vpn_mac-learning_mac_all_location.textfsm create mode 100644 tests/cisco_xr/show_l2vpn_mac-learning_mac_all_location/cisco_xr_show_l2vpn_mac-learning_mac_all_location.raw create mode 100644 tests/cisco_xr/show_l2vpn_mac-learning_mac_all_location/cisco_xr_show_l2vpn_mac-learning_mac_all_location.yml diff --git a/ntc_templates/templates/cisco_xr_show_l2vpn_mac-learning_mac_all_location.textfsm b/ntc_templates/templates/cisco_xr_show_l2vpn_mac-learning_mac_all_location.textfsm new file mode 100644 index 0000000000..b4ab26dcf5 --- /dev/null +++ b/ntc_templates/templates/cisco_xr_show_l2vpn_mac-learning_mac_all_location.textfsm @@ -0,0 +1,12 @@ +Value TOPO_ID (\d+) +Value PRODUCER (\S+) +Value NEXT_HOP (\S+) +Value MAC_ADDRESS (\w+\.\w+\.\w+|\w+\:\w+\:\w+\:\w+\:\w+\:\w+) + +Start + # Match the timestamp at beginning of command output + ^\S+\s+\S+\s+\d+\s+\d+:\d+:\d+\.\d+\s+\S+\s*$$ + ^Topo ID\s+Producer\s+Next Hop\(s\)\s+Mac Address\s+IP Address$$ + ^-+\s+-+\s+-+\s+-+\s+-+$$ + ^${TOPO_ID}\s*${PRODUCER}\s*${NEXT_HOP}\s*${MAC_ADDRESS}\s* -> Record + ^. -> Error diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 1596d0fed2..e4dc7f5b75 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -483,6 +483,7 @@ cisco_xr_show_controllers_fabric_fia_errors_ingress_location.textfsm, .*, cisco_ cisco_xr_show_controllers_fabric_fia_drops_ingress_location.textfsm, .*, cisco_xr, sh[[ow]] contr[[ollers]] fabric fi[[a]] dr[[ops]] in[[gress]] loc[[ation]] cisco_xr_show_controllers_fabric_fia_errors_egress_location.textfsm, .*, cisco_xr, sh[[ow]] contr[[ollers]] fabric fi[[a]] err[[ors]] eg[[ress]] loc[[ation]] cisco_xr_show_controllers_fabric_fia_drops_egress_location.textfsm, .*, cisco_xr, sh[[ow]] contr[[ollers]] fabric fi[[a]] dr[[ops]] eg[[ress]] loc[[ation]] +cisco_xr_show_l2vpn_mac-learning_mac_all_location.textfsm, .*, cisco_xr, sh[[ow]] l2vpn mac-l[[earning]] mac all loc[[ation]] cisco_xr_show_lpts_pifib_hardware_police_location.textfsm, .*, cisco_xr, sh[[ow]] lpts pifib hardware police loc[[ation]] cisco_xr_show_controllers_HundredGigabitEthernet.textfsm, .*, cisco_xr, sh[[ow]] contr[[ollers]] Hu[[ndredGigabitEthernet]] cisco_xr_show_bgp_vrf_all_ipv4_unicast_summary.textfsm, .*, cisco_xr, sh[[ow]] bg[[p]] v[[rf]] all ip[[v4]] uni[[cast]] summ[[ary]] diff --git a/tests/cisco_xr/show_l2vpn_mac-learning_mac_all_location/cisco_xr_show_l2vpn_mac-learning_mac_all_location.raw b/tests/cisco_xr/show_l2vpn_mac-learning_mac_all_location/cisco_xr_show_l2vpn_mac-learning_mac_all_location.raw new file mode 100644 index 0000000000..0f865568c2 --- /dev/null +++ b/tests/cisco_xr/show_l2vpn_mac-learning_mac_all_location/cisco_xr_show_l2vpn_mac-learning_mac_all_location.raw @@ -0,0 +1,6 @@ +Tue Mar 14 10:56:45.557 CET +Topo ID Producer Next Hop(s) Mac Address IP Address +------- -------- ----------- -------------- ---------- +0 0/0/CPU0 Te0/0/0/24.2448 00c1.6402.7074 +0 0/0/CPU0 Te0/0/0/22.2448 5845.4cf3.094c +4 0/0/CPU0 Te0/0/0/28.25 249e.aba4.31b3 diff --git a/tests/cisco_xr/show_l2vpn_mac-learning_mac_all_location/cisco_xr_show_l2vpn_mac-learning_mac_all_location.yml b/tests/cisco_xr/show_l2vpn_mac-learning_mac_all_location/cisco_xr_show_l2vpn_mac-learning_mac_all_location.yml new file mode 100644 index 0000000000..f87f722e2e --- /dev/null +++ b/tests/cisco_xr/show_l2vpn_mac-learning_mac_all_location/cisco_xr_show_l2vpn_mac-learning_mac_all_location.yml @@ -0,0 +1,14 @@ +--- +parsed_sample: + - topo_id: "0" + producer: "0/0/CPU0" + next_hop: "Te0/0/0/24.2448" + mac_address: "00c1.6402.7074" + - topo_id: "0" + producer: "0/0/CPU0" + next_hop: "Te0/0/0/22.2448" + mac_address: "5845.4cf3.094c" + - topo_id: "4" + producer: "0/0/CPU0" + next_hop: "Te0/0/0/28.25" + mac_address: "249e.aba4.31b3" From 2dd2243a981ac36e1c58d7b83e1ea9f48ab9aad9 Mon Sep 17 00:00:00 2001 From: Jacob McGill <9847006+jmcgill298@users.noreply.github.com> Date: Thu, 25 Jul 2024 10:22:03 -0400 Subject: [PATCH 58/60] Ios show auth with identifier (#1766) * Add Identifier as catch header Some IOS switches use Identifier instead of Mac address as header. Added both headers. show authen ses Interface Identifier Method Domain Status Fg Session ID Gi1/0/25 1234.5678.9101 mab DATA Auth 0AF3B0050000001E00023F09 * Add test case --------- Co-authored-by: pierok13 --- .../templates/cisco_ios_show_authentication_sessions.textfsm | 2 +- .../cisco_ios_show_authentication_sessions3.raw | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ntc_templates/templates/cisco_ios_show_authentication_sessions.textfsm b/ntc_templates/templates/cisco_ios_show_authentication_sessions.textfsm index 0d2884466c..21cc320a53 100644 --- a/ntc_templates/templates/cisco_ios_show_authentication_sessions.textfsm +++ b/ntc_templates/templates/cisco_ios_show_authentication_sessions.textfsm @@ -6,7 +6,7 @@ Value STATUS (.+?) Value SESSION (\w+?) Start - ^Interface\s+MAC Address\s+Method\s+Domain -> Catch + ^Interface\s+(MAC Address|Identifier)\s+Method\s+Domain -> Catch # Capture time-stamp if vty line has command time-stamping turned on ^Load\s+for\s+ ^Time\s+source\s+is diff --git a/tests/cisco_ios/show_authentication_sessions/cisco_ios_show_authentication_sessions3.raw b/tests/cisco_ios/show_authentication_sessions/cisco_ios_show_authentication_sessions3.raw index db7b72ecf5..9594fc5e92 100644 --- a/tests/cisco_ios/show_authentication_sessions/cisco_ios_show_authentication_sessions3.raw +++ b/tests/cisco_ios/show_authentication_sessions/cisco_ios_show_authentication_sessions3.raw @@ -1,6 +1,6 @@ -Interface MAC Address Method Domain Status Fg Session ID +Interface Identifier Method Domain Status Fg Session ID ------------------------------------------------------------------------------ Gi1/0/10 c89a.12cd.3b74 dot1x DATA Auth 0A0A1DFE00000FB3000101FF Gi1/0/5 848a.12cd.3636 mab VOICE Auth 0A0A1DFE00000FBD000101FF From 11a0209955f58434c669312855a6b498c34607dc Mon Sep 17 00:00:00 2001 From: Jacob McGill <9847006+jmcgill298@users.noreply.github.com> Date: Thu, 25 Jul 2024 10:22:53 -0400 Subject: [PATCH 59/60] Added support for show_ip_bgp_all_summary_vrf (#1765) Co-authored-by: sjhloco --- ntc_templates/templates/index | 2 +- ...> cisco_nxos_show_ip_bgp_all_summary_vrf.raw} | 16 ---------------- ...> cisco_nxos_show_ip_bgp_all_summary_vrf.yml} | 0 3 files changed, 1 insertion(+), 17 deletions(-) rename tests/cisco_nxos/show_ip_bgp_summary_vrf/{cisco_nxos_show_ip_bgp_summary_vrf1.raw => cisco_nxos_show_ip_bgp_all_summary_vrf.raw} (92%) rename tests/cisco_nxos/show_ip_bgp_summary_vrf/{cisco_nxos_show_ip_bgp_summary_vrf1.yml => cisco_nxos_show_ip_bgp_all_summary_vrf.yml} (100%) diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index e4dc7f5b75..a03686b8a5 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -384,7 +384,7 @@ cisco_nxos_show_ip_interface_vrf_all.textfsm, .*, cisco_nxos, sh[[ow]] ip interf cisco_nxos_show_ipv6_interface_brief.textfsm, .*, cisco_nxos, sh[[ow]] ipv[[6]] interf[[ace]] b[[rief]] cisco_nxos_show_port-channel_summary.textfsm, .*, cisco_nxos, sh[[ow]] po[[rt-channel]] sum[[mary]] cisco_nxos_show_cts_interface_brief.textfsm, .*, cisco_nxos, sh[[ow]] cts inte[[rface]] br[[ief]] -cisco_nxos_show_ip_bgp_summary_vrf.textfsm, .*, cisco_nxos, sh[[ow]] ip b[[gp]] s[[ummary]] v[[rf]] +cisco_nxos_show_ip_bgp_summary_vrf.textfsm, .*, cisco_nxos, sh[[ow]] ip b[[gp]] (?:all\s+)?s[[ummary]] v[[rf]] cisco_nxos_show_ip_eigrp_neighbors.textfsm, .*, cisco_nxos, sh[[ow]] ip ei[[grp]] nei[[ghbors]] cisco_nxos_show_ip_interface_brief.textfsm, .*, cisco_nxos, sh[[ow]] ip int[[erface]] b[[rief]](?: vrf \S+)?\s*$ cisco_nxos_show_ip_mroutes_vrf_all.textfsm, .*, cisco_nxos, sh[[ow]] ip mr[[outes]] vrf al[[l]] diff --git a/tests/cisco_nxos/show_ip_bgp_summary_vrf/cisco_nxos_show_ip_bgp_summary_vrf1.raw b/tests/cisco_nxos/show_ip_bgp_summary_vrf/cisco_nxos_show_ip_bgp_all_summary_vrf.raw similarity index 92% rename from tests/cisco_nxos/show_ip_bgp_summary_vrf/cisco_nxos_show_ip_bgp_summary_vrf1.raw rename to tests/cisco_nxos/show_ip_bgp_summary_vrf/cisco_nxos_show_ip_bgp_all_summary_vrf.raw index 6277030de2..7ca91d00b4 100644 --- a/tests/cisco_nxos/show_ip_bgp_summary_vrf/cisco_nxos_show_ip_bgp_summary_vrf1.raw +++ b/tests/cisco_nxos/show_ip_bgp_summary_vrf/cisco_nxos_show_ip_bgp_all_summary_vrf.raw @@ -90,19 +90,3 @@ Neighbor T AS PfxRcd Type-2 Type-3 Type-4 Type-5 172.16.201.37 E 65162 698 481 7 0 210 172.16.201.38 E 65162 698 481 7 0 210 172.16.255.42 I 65164 14 0 0 0 14 - - -Value Filldown VRF (\S+) -Value Filldown ADDRESS_FAMILY (\S+\s\S+) -Value Filldown ROUTER_ID (\d+?\.\d+?\.\d+?\.\d+?) -Value Filldown LOCAL_AS (\d+) -Value Required BGP_NEIGH (\d+?\.\d+?\.\d+?\.\d+?) -Value BGP_VER (\d) -Value Required NEIGH_AS (\S+) -Value MSG_RCVD (\d+) -Value MSG_SENT (\d+) -Value TBLVER (\d+) -Value IN_QUEUE (\d+) -Value OUT_QUEUE (\d+) -Value UP_DOWN (\S+) -Value STATE_PFXRCD (\S+?\s+\S+?|\S+?) diff --git a/tests/cisco_nxos/show_ip_bgp_summary_vrf/cisco_nxos_show_ip_bgp_summary_vrf1.yml b/tests/cisco_nxos/show_ip_bgp_summary_vrf/cisco_nxos_show_ip_bgp_all_summary_vrf.yml similarity index 100% rename from tests/cisco_nxos/show_ip_bgp_summary_vrf/cisco_nxos_show_ip_bgp_summary_vrf1.yml rename to tests/cisco_nxos/show_ip_bgp_summary_vrf/cisco_nxos_show_ip_bgp_all_summary_vrf.yml From 9fc178482e7b3af5d72580d91ed541a20dce4b5a Mon Sep 17 00:00:00 2001 From: Jacob McGill <9847006+jmcgill298@users.noreply.github.com> Date: Thu, 25 Jul 2024 10:27:26 -0400 Subject: [PATCH 60/60] Add oneaccess templates (#1758) Co-authored-by: mwallraf Co-authored-by: Andrea Dainese --- ntc_templates/templates/index | 5 + .../oneaccess_oneos_show_isdn_active.textfsm | 19 + ...eaccess_oneos_show_isdn_led-status.textfsm | 67 ++ ...eaccess_oneos_show_isdn_status_all.textfsm | 54 ++ .../oneaccess_oneos_show_memory.textfsm | 39 + ...oneos_show_policy-interface_output.textfsm | 87 +++ .../show_isdn_active.plug103.raw | 7 + .../show_isdn_active.plug103.yml | 2 + .../show_isdn_active.plug212.raw | 8 + .../show_isdn_active.plug212.yml | 2 + .../show_isdn_active.plug401.raw | 51 ++ .../show_isdn_active.plug401.yml | 398 ++++++++++ .../show_isdn_led-status.plug103.raw | 22 + .../show_isdn_led-status.plug103.yml | 28 + .../show_isdn_led-status.plug212.raw | 30 + .../show_isdn_led-status.plug212.yml | 28 + .../show_isdn_led-status.plug401.raw | 22 + .../show_isdn_led-status.plug401.yml | 28 + .../show_isdn_status_all.plug103.raw | 39 + .../show_isdn_status_all.plug103.yml | 59 ++ .../show_isdn_status_all.plug212.raw | 40 + .../show_isdn_status_all.plug212.yml | 59 ++ .../show_isdn_status_all.plug401.raw | 122 +++ .../show_isdn_status_all.plug401.yml | 158 ++++ .../show_memory/show_memory.oneos5.raw | 27 + .../show_memory/show_memory.oneos5.yml | 8 + .../show_memory/show_memory.oneos6.raw | 33 + .../show_memory/show_memory.oneos6.yml | 8 + .../show_policy-interface_output.lbb_140.raw | 446 +++++++++++ .../show_policy-interface_output.lbb_140.yml | 702 ++++++++++++++++++ .../show_policy-interface_output.lbb_150.raw | 427 +++++++++++ .../show_policy-interface_output.lbb_150.yml | 632 ++++++++++++++++ 32 files changed, 3657 insertions(+) create mode 100644 ntc_templates/templates/oneaccess_oneos_show_isdn_active.textfsm create mode 100644 ntc_templates/templates/oneaccess_oneos_show_isdn_led-status.textfsm create mode 100644 ntc_templates/templates/oneaccess_oneos_show_isdn_status_all.textfsm create mode 100644 ntc_templates/templates/oneaccess_oneos_show_memory.textfsm create mode 100644 ntc_templates/templates/oneaccess_oneos_show_policy-interface_output.textfsm create mode 100644 tests/oneaccess_oneos/show_isdn_active/show_isdn_active.plug103.raw create mode 100644 tests/oneaccess_oneos/show_isdn_active/show_isdn_active.plug103.yml create mode 100644 tests/oneaccess_oneos/show_isdn_active/show_isdn_active.plug212.raw create mode 100644 tests/oneaccess_oneos/show_isdn_active/show_isdn_active.plug212.yml create mode 100644 tests/oneaccess_oneos/show_isdn_active/show_isdn_active.plug401.raw create mode 100644 tests/oneaccess_oneos/show_isdn_active/show_isdn_active.plug401.yml create mode 100644 tests/oneaccess_oneos/show_isdn_led-status/show_isdn_led-status.plug103.raw create mode 100644 tests/oneaccess_oneos/show_isdn_led-status/show_isdn_led-status.plug103.yml create mode 100644 tests/oneaccess_oneos/show_isdn_led-status/show_isdn_led-status.plug212.raw create mode 100644 tests/oneaccess_oneos/show_isdn_led-status/show_isdn_led-status.plug212.yml create mode 100644 tests/oneaccess_oneos/show_isdn_led-status/show_isdn_led-status.plug401.raw create mode 100644 tests/oneaccess_oneos/show_isdn_led-status/show_isdn_led-status.plug401.yml create mode 100644 tests/oneaccess_oneos/show_isdn_status_all/show_isdn_status_all.plug103.raw create mode 100644 tests/oneaccess_oneos/show_isdn_status_all/show_isdn_status_all.plug103.yml create mode 100644 tests/oneaccess_oneos/show_isdn_status_all/show_isdn_status_all.plug212.raw create mode 100644 tests/oneaccess_oneos/show_isdn_status_all/show_isdn_status_all.plug212.yml create mode 100644 tests/oneaccess_oneos/show_isdn_status_all/show_isdn_status_all.plug401.raw create mode 100644 tests/oneaccess_oneos/show_isdn_status_all/show_isdn_status_all.plug401.yml create mode 100644 tests/oneaccess_oneos/show_memory/show_memory.oneos5.raw create mode 100644 tests/oneaccess_oneos/show_memory/show_memory.oneos5.yml create mode 100644 tests/oneaccess_oneos/show_memory/show_memory.oneos6.raw create mode 100644 tests/oneaccess_oneos/show_memory/show_memory.oneos6.yml create mode 100644 tests/oneaccess_oneos/show_policy-interface_output/show_policy-interface_output.lbb_140.raw create mode 100644 tests/oneaccess_oneos/show_policy-interface_output/show_policy-interface_output.lbb_140.yml create mode 100644 tests/oneaccess_oneos/show_policy-interface_output/show_policy-interface_output.lbb_150.raw create mode 100644 tests/oneaccess_oneos/show_policy-interface_output/show_policy-interface_output.lbb_150.yml diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index a03686b8a5..4a0cfbdb5f 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -740,20 +740,25 @@ mikrotik_routeros_ping.textfsm, .*, mikrotik_routeros, [[/]]pin[[g]] oneaccess_oneos_show_voice_voip-call_active_all.textfsm, .*, oneaccess_oneos, sh[[ow]] voice voip-call active oneaccess_oneos_show_cellular-radio_equipment.textfsm, .*, oneaccess_oneos, sh[[ow]] cell[[ular-radio]] equipment +oneaccess_oneos_show_policy-interface_output.textfsm, .*, oneaccess_oneos, sh[[ow]] policy-interface output oneaccess_oneos_show_voice_voip-call_any_all.textfsm, .*, oneaccess_oneos, sh[[ow]] voice voip-call any all oneaccess_oneos_show_cellular-radio_context.textfsm, .*, oneaccess_oneos, sh[[ow]] cell[[ular-radio]] context oneaccess_oneos_show_cellular-radio_network.textfsm, .*, oneaccess_oneos, sh[[ow]] cell[[ular-radio]] network oneaccess_oneos_show_ip_as-path-access-list.textfsm, .*, oneaccess_oneos, sh[[ow]] ip as-path-access-list oneaccess_oneos_show_ip_interface_brief.textfsm, .*, oneaccess_oneos, sh[[ow]] ip int[[erface]] brief oneaccess_oneos_show_ip_access-lists.textfsm, .*, oneaccess_oneos, sh[[ow]] ip access-lists[[s]] +oneaccess_oneos_show_isdn_led-status.textfsm, .*, oneaccess_oneos, sh[[ow]] isdn led-status +oneaccess_oneos_show_isdn_status_all.textfsm, .*, oneaccess_oneos, sh[[ow]] isdn status all oneaccess_oneos_cat_bsa_bsaboot.inf.textfsm, .*, oneaccess_oneos, cat (\/|)(BSA|bsa)(\/| )bsa(B|b)oot.inf oneaccess_oneos_show_ip_bgp_summary.textfsm, .*, oneaccess_oneos, sh[[ow]] ip bgp summary oneaccess_oneos_show_ip_prefix-list.textfsm, .*, oneaccess_oneos, sh[[ow]] ip prefix-list oneaccess_oneos_show_vrrp_interface.textfsm, .*, oneaccess_oneos, sh[[ow]] vrrp int[[erface]] oneaccess_oneos_show_ip_vrf_brief.textfsm, .*, oneaccess_oneos, sh[[ow]] ip vrf brief +oneaccess_oneos_show_isdn_active.textfsm, .*, oneaccess_oneos, sh[[ow]] isdn active oneaccess_oneos_show_interfaces.textfsm, .*, oneaccess_oneos, sh[[ow]] interface[[s]] oneaccess_oneos_show_helpers.textfsm, .*, oneaccess_oneos, sh[[ow]] helpers oneaccess_oneos_show_ip_ssh.textfsm, .*, oneaccess_oneos, sh[[ow]] ip ssh +oneaccess_oneos_show_memory.textfsm, .*, oneaccess_oneos, sh[[ow]] memory oneaccess_oneos_hostname.textfsm, .*, oneaccess_oneos, hostname oneaccess_oneos_ls.textfsm, .*, oneaccess_oneos, ls( -[lh][lh]? )?.* diff --git a/ntc_templates/templates/oneaccess_oneos_show_isdn_active.textfsm b/ntc_templates/templates/oneaccess_oneos_show_isdn_active.textfsm new file mode 100644 index 0000000000..49676f0145 --- /dev/null +++ b/ntc_templates/templates/oneaccess_oneos_show_isdn_active.textfsm @@ -0,0 +1,19 @@ +Value Required APP (\S+) +Value CALL_TYPE (\S+) +Value CALLING_NBR (\S+) +Value CALLED_NBR (\S+) +Value DURATION (\d+:\d+:\d+) +Value PORT (\S+) +Value BCHANNEL (\d+) +Value CALL_REF (\d+) +Value CALL_ID (\d+) + +Start + ^${APP}\s+${CALL_TYPE}\s+${CALLING_NBR}\s+${CALLED_NBR}\s+${DURATION}\s+${PORT}\s+${BCHANNEL}\s+${CALL_REF}\s+${CALL_ID} -> Record + ^\s*-+\s*$$ + ^\s+ISDN\s+ACTIVE\s+CALLS\s*$$ + ^\s*App\.\s+Call\s+Calling\s+Called\s+Call\s+Port\s+BChan\s+Call-ref\s+call-id\s*$$ + ^\s+Type\s+Number\s+Number\s+Duration\s*$$ + ^\s*no\s+isdn\s+active\s+calls + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/oneaccess_oneos_show_isdn_led-status.textfsm b/ntc_templates/templates/oneaccess_oneos_show_isdn_led-status.textfsm new file mode 100644 index 0000000000..d59f4c95da --- /dev/null +++ b/ntc_templates/templates/oneaccess_oneos_show_isdn_led-status.textfsm @@ -0,0 +1,67 @@ +Value DIALPEER_POTS_UP (\d+) +Value DIALPEER_VOIP_UP (\d+) +Value SIP_GATEWAY_STATUS (no shutdown|shutdown|[nN]o Sip-gateway) +Value SIP_GATEWAY_REGISTERED (.*registered.*) +Value SIP_GATEWAY_NBR_REGISTERED (\d+) +Value SIP_GATEWAY_NBR_AVAILABLE (\d+) +Value SIP_GATEWAY_REGISTRAR (\S+:\d+) +Value SIP_GATEWAY_INTF (\S+\s\S+) +Value SIP_GATEWAY_INTF_IP (\S+) +Value SIP_GATEWAY_INTF_STATUS (\S+) +Value SIP_SERVER_STATUS (no shutdown|shutdown|[nN]o Sip-server) +Value VOICE_COM_STATUS (no shutdown|shutdown|[nN]o voice com) +Value TRACK_COND_VOICE_GW (\S+) +Value TRACK_COND_VOICE_PORT (\S+) +Value SYSLED_VOIP_COLOR (\S+|\-) +Value SYSLED_VOIP_STATE (\S+) +Value SYSLED_COM_COLOR (\S+|\-) +Value SYSLED_COM_STATE (\S+) +Value SYSLED_MAINTENANCE_COLOR (\S+|\-) +Value SYSLED_MAINTENANCE_STATE (\S+) +Value SYSLED_PRI_COLOR (\S+|\-) +Value SYSLED_PRI_STATE (\S+) +Value SYSLED_BRI1_COLOR (\S+|\-) +Value SYSLED_BRI1_STATE (\S+) +Value SYSLED_BRI2_COLOR (\S+|\-) +Value SYSLED_BRI2_STATE (\S+) + + +Start + ^\s*${DIALPEER_POTS_UP}\sDial\-peer\spots\sup + ^\s*${DIALPEER_VOIP_UP}\sDial\-peer\svoip\sup + ^\s*Sip\-gateway\sstatus\sis\s${SIP_GATEWAY_STATUS} -> SipGateway + ^\s*${SIP_GATEWAY_STATUS} + ^\s*Sip\-server\sstatus\sis\s${SIP_SERVER_STATUS} + ^\s*${SIP_SERVER_STATUS} + ^\s*voice\s+com\sstatus\sis\s${VOICE_COM_STATUS} + ^\s*${VOICE_COM_STATUS} + ^\s*voice\sled\strack-conditions -> Track + ^\s*Sys\s+LEDs -> SysLed + ^\s*Status\s+of\s+VOIP\s+service + ^\s*Isdn\s+virtual\s+LEDs + ^\s*(isdnshut|Layer1State|nbcomm) + ^\s*$$ + ^. -> Error + +SipGateway + ^\s*->\sis\s${SIP_GATEWAY_REGISTERED} + ^\s*${SIP_GATEWAY_NBR_REGISTERED}\/${SIP_GATEWAY_NBR_AVAILABLE}\sep\sis.*with\sregistrar\s${SIP_GATEWAY_REGISTRAR} + ^\s*->\sIF\s${SIP_GATEWAY_INTF}\s\[${SIP_GATEWAY_INTF_IP}\]\sis\s${SIP_GATEWAY_INTF_STATUS}\. + ^\s*$$ -> Start + ^. -> Error + +Track + ^\s*voice-gw\s+${TRACK_COND_VOICE_GW} + ^\s*voice-port\s+${TRACK_COND_VOICE_PORT} + ^\s*$$ -> Start + ^. -> Error + +SysLed + ^\s*SYS\sLED\s(VoIP|VOIP)\s*color=\s*${SYSLED_VOIP_COLOR}\s*,?\sstate=${SYSLED_VOIP_STATE} + ^\s*SYS\sLED\sCOM\s*color=\s*${SYSLED_COM_COLOR}\s*,?\sstate=${SYSLED_COM_STATE} + ^\s*SYS\sLED\sMaintenance\s*color=\s*${SYSLED_MAINTENANCE_COLOR}\s*,?\sstate=${SYSLED_MAINTENANCE_STATE} + ^\s*SYS\sLED\sPRI\s*color=\s*${SYSLED_PRI_COLOR}\s*,?\sstate=${SYSLED_PRI_STATE} + ^\s*SYS\sLED\sBRI1\s*color=\s*${SYSLED_BRI1_COLOR}\s*,?\sstate=${SYSLED_BRI1_STATE} + ^\s*SYS\sLED\sBRI2\s*color=\s*${SYSLED_BRI2_COLOR}\s*,?\sstate=${SYSLED_BRI2_STATE} + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/oneaccess_oneos_show_isdn_status_all.textfsm b/ntc_templates/templates/oneaccess_oneos_show_isdn_status_all.textfsm new file mode 100644 index 0000000000..a0cf2fffa4 --- /dev/null +++ b/ntc_templates/templates/oneaccess_oneos_show_isdn_status_all.textfsm @@ -0,0 +1,54 @@ +Value Required ISDN_LINE (\d+\/\d+) +Value PHYSICAL_TYPE (\S+) +Value PROTOCOL_DESCRIPTOR (\S+) +Value PROTOCOL_LINECODE (\S+) +Value PROTOCOL_FRAMING (\S+) +Value CONFIG_STATE (\S+) +Value LOOP_STATE (\S+) +Value L1_STATUS (\S+) +Value AIS (\S+) +Value LOS (\S+) +Value RAI (\S+) +Value PRI_AIS_OCCURRENCES (\d+) +Value PRI_LOS_OCCURRENCES (\d+) +Value PRI_RDI_OCCURRENCES (\d+) +Value L2_STATUS (\S+) +Value L2_TX_FRAMES_DCHANNEL (\d+) +Value L2_RX_FRAMES_DCHANNEL (\d+) +Value L3_ACTIVE_CALLS (\d+|no active call) +Value List L3_CALL_DETAILS (.*) + +Start + ^\s*isdn\sline\s+${ISDN_LINE} -> ISDNLINE + ^\s*$$ + ^. -> Error + +ISDNLINE + ^\s+physical\stype\s+${PHYSICAL_TYPE} + ^\s+protocol\sdescriptor\s+${PROTOCOL_DESCRIPTOR} + ^\s+linecode\s+${PROTOCOL_LINECODE} + ^\s+framing\s+${PROTOCOL_FRAMING} + ^\s+config\sstate\s+${CONFIG_STATE} + ^\s+loop\sstate\s+${LOOP_STATE} + ^\s+\-layer\s1\sstatus\s+${L1_STATUS} + ^\s*Alarm\sIndication\sSignal\s+\(AIS\)\s+${AIS} + ^\s*Loss\sOff\sSignal\s+\(LOS\)\s+${LOS} + ^\s*Remote\sIndication\sSignal\s+\(RAI\)\s+${RAI} + ^\s*pri\sAIS\soccurrence\(s\)\s+${PRI_AIS_OCCURRENCES} + ^\s*pri\sLOS\soccurrence\(s\)\s+${PRI_LOS_OCCURRENCES} + ^\s*pri\sRDI\soccurrence\(s\)\s+${PRI_RDI_OCCURRENCES} + ^\s+\-layer\s2\sstatus\s+${L2_STATUS} + ^\s+Tx\sframes\son\sD\schannel\s+${L2_TX_FRAMES_DCHANNEL} + ^\s+Rx\sframes\son\sD\schannel\s+${L2_RX_FRAMES_DCHANNEL} + ^\s+-layer\s3\sstatus -> L3Status + ^\s*$$ -> Record + ^\s*isdn\sline\s+${ISDN_LINE} -> ISDNLINE + ^\s+ces=\s+ + ^. -> Error + +L3Status + ^\s*(active\scall\s*|)${L3_ACTIVE_CALLS} + ^\s*->\s${L3_CALL_DETAILS} + ^\s*$$ -> Record ISDNLINE + ^. -> Error + diff --git a/ntc_templates/templates/oneaccess_oneos_show_memory.textfsm b/ntc_templates/templates/oneaccess_oneos_show_memory.textfsm new file mode 100644 index 0000000000..50d8f6aace --- /dev/null +++ b/ntc_templates/templates/oneaccess_oneos_show_memory.textfsm @@ -0,0 +1,39 @@ +Value RAM (\S+|\d+\s?\d+) +Value BOOT_SIZE (\S+|\d+\s?\d+) +Value FLASH_SIZE (\S+|\d+\s?\d+) +Value USER_PARTITION_TOTAL (\S+|\d+\s?\d+) +Value USER_PARTITION_USED (\S+|\d+\s?\d+) +Value USER_PARTITION_FREE (\S+|\d+\s?\d+) + + +Start + # total system memory + ^\s*\|\sRam\ssize\s+\|\s+${RAM}\s+\| + ^\s*\|\sMemory Total\s+\|\s+${RAM}\s+\| + # total boot size + ^\s*\|\s+:\.\.Boot\s+\|\s+${BOOT_SIZE}\s+\| + ^\s*\|\sBoot\sPartition\s+\|\s+${BOOT_SIZE}\s+\| + # total flash disk size + ^\s*\|\s+Extended\sFlash\ssize\s+\|\s+${FLASH_SIZE}\s+\| + ^\s*\|\sFlash\sTotal\s+\|\s+${FLASH_SIZE}\s+\| + # total user partition size and usage, part of flash (/BSA) + ^\s*\|\s+:\.\.Flash\sdisk\stotal\s+\|\s+${USER_PARTITION_TOTAL}\s+\| + ^\s*\|\s+\-\suser\s+\|\s+${USER_PARTITION_TOTAL}\s+\|\s+${USER_PARTITION_FREE}\s+\|\s+${USER_PARTITION_USED}\s+\| + ^\s*\|\s+used\s+\|\s+${USER_PARTITION_USED}\s+\| + ^\s*\|\s+free\s+\|\s+${USER_PARTITION_FREE}\s+\| + ^\s*=+\s*$$ + ^\s*\|\s*Memory\s+status\s+report\s+\|\s+Total\s+\|\s+Free\s+\|\s+Use\s*%\s+\|\s*$$ + ^\s*\|\s*Memory\s+status\s+report\s+\|\s+Kbytes\s+\|\s+\|\s*$$ + ^\s*\|\-+\| + ^\s*\|\s*(Shared|Control|Forwarding)\s+Partition\s+\| + ^\s*\|\s+\-\s*((Shared|Core\s+0)\s+Pool|Binary)\s+\| + ^\s*\|\s+\| + ^\s*\|\s+\-\s*(Linux\s+(RAM|cached|buffers|File\s+Systems)|system\s+free) + ^\s*\|\s+\-\s*(root|tmp)\s+\| + ^\s*\|\s*File\s+systems\s+\| + ^\s*\|\s*Removable\s+disks\s+\| + ^\s*\|\s*:(\s+:)?\.\. + ^\s*\|\s*:(\s+:)?\s+(used|free)\s+\| + ^\s*\|\s*Flash\s+size\s+\| + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/oneaccess_oneos_show_policy-interface_output.textfsm b/ntc_templates/templates/oneaccess_oneos_show_policy-interface_output.textfsm new file mode 100644 index 0000000000..fd777c1286 --- /dev/null +++ b/ntc_templates/templates/oneaccess_oneos_show_policy-interface_output.textfsm @@ -0,0 +1,87 @@ +Value Filldown INTERFACE (.*) +Value Filldown SERVICE_POLICY_OUT_PARENT (\S+) +Value Filldown CLASS_PARENT (\S+) +Value Filldown CLASS_PARENT_PRIORITY (.*\S) +Value Filldown SERVICE_POLICY_OUT_CHILD (\S+) +Value CLASS_CHILD (\S+) +Value PACKETS (\d+) +Value Required BYTES (\d+) +Value DSCP_REMARKED (\d+) +Value MEAN_INTPUT_RATE_BITS_SECOND (\d+) +Value Fillup TOTAL_BW_KBS (\d+) +Value Fillup TOTAL_QUEUE_LENGTH (\d+) +Value Fillup TOTAL_MEAN_INPUT_RATE_BPS (\d+) +Value Fillup TOTAL_MEAN_OUTPUT_RATE_BPS (\d+) +Value Fillup TOTAL_OUTPUT_PACKETS (\d+) +Value Fillup TOTAL_OUTPUT_PACKETS_DROPPED (\d+) +Value Fillup TOTAL_OUTPUT_PACKETS_DROPPED_PERCENT (\d+) +Value Fillup TOTAL_OUTPUT_BYTES (\d+) +Value Fillup TOTAL_OUTPUT_BYTES_DROPPED (\d+) +Value Fillup TOTAL_OUTPUT_BYTES_DROPPED_PERCENT (\d+) +Value QOS_BYTES_OUT (\d+) +Value QOS_BYTES_DROPPED (\d+) +Value QOS_BYTES_DROPPED_PERCENT (\d+) +Value QOS_AVERAGE_INPUT_BPS (\d+) +Value QOS_AVERAGE_OUTPUT_BPS (\d+) +Value QOS_PACKETS_OUT (\d+) +Value QOS_PACKETS_DROPPED (\d+) +Value QOS_PACKETS_DROPPED_PERCENT (\d+) +Value QOS_BW_KB (\d+) +Value QOS_BURST_B (\d+) +Value QOS_QUEUE_LENGTH (\d+) +Value QOS_QUEUE_LIMIT (\d+) +Value Fillup QOS_REMAINING_BW_SHARE (\d+) +Value Fillup QOS_EXCESS_RATE_PRIORITY (\d+) +Value Fillup QOS_EXCESS_PACKETS (\d+) + +# each record is either part of the traffic stats output +# these records do not have any QOS values filled in +# or the queueing output +# these records will have QOS values filled in +Start + ^${INTERFACE}:\sservice-policy\soutput\s${SERVICE_POLICY_OUT_PARENT} + ^traffic\sstatistics: -> TrafficStats + ^output\squeuing\sstatistics: -> OutputQueuingStats + ^\s*$$ + ^. -> Error + +TrafficStats + ^\s{2}Class\s'${CLASS_PARENT}': + ^\s+${PACKETS}\spackets,\s${BYTES}\sbytes,(:?\s${DSCP_REMARKED}\sdscp\sremarked,)?\smean\sinput\srate\s${MEAN_INTPUT_RATE_BITS_SECOND}\sbits/s -> Record + ^\s+Service-policy\s${SERVICE_POLICY_OUT_CHILD}\s: + ^\s+Class\s'${CLASS_CHILD}': + ^\s+${PACKETS}\spackets,\s${BYTES}\sbytes,(:?\s${DSCP_REMARKED}\sdscp\sremarked,)?\smean\sinput\srate\s${MEAN_INTPUT_RATE_BITS_SECOND}\sbits/s -> Record + ^\s+Packets\s+dropped\s+by\s+Congestion\s+Management: + ^\s+cir\s+\d+\s+kbits/s,\s+cbs\s\d+\s+bytes + ^\s+(conformed|exceeded)\s+\d+\s+packets,\s+\d+\s+bytes;\s+action: + ^\s*$$ -> Start + ^. -> Error + +OutputQueuingStats + ^\s+Class\s'${CLASS_PARENT}':\s${CLASS_PARENT_PRIORITY} + ^\s+bandwidth\s${QOS_BW_KB}\skb/s,\sburst\s${QOS_BURST_B}\sbytes,\squeue\slength/limit\s${QOS_QUEUE_LENGTH}/${QOS_QUEUE_LIMIT} + ^\s+mean\sinput\srate\s${QOS_AVERAGE_INPUT_BPS}\sbits/s,\smean\soutput\srate\s${QOS_AVERAGE_OUTPUT_BPS}\sbits/s + ^\s+packets\soutput\s${QOS_PACKETS_OUT},\spackets\sdropped\s${QOS_PACKETS_DROPPED}\s\(${QOS_PACKETS_DROPPED_PERCENT}%\) + ^\s+remaining-bandwidth\sshare\s${QOS_REMAINING_BW_SHARE},\sexcess-rate-priority\s${QOS_EXCESS_RATE_PRIORITY},\sexcess\spackets\ssent\s${QOS_EXCESS_PACKETS} + ^\s+bytes\soutput\s${QOS_BYTES_OUT},\sbytes\sdropped\s${QOS_BYTES_DROPPED}\s\(${QOS_BYTES_DROPPED_PERCENT}%\) -> Continue + ^\s+bytes\soutput\s${BYTES},\sbytes\sdropped\s\d+\s\(\d+%\) -> Record + ^\s+Service-policy\s+VDSL_QOS_4M_OUT\s+: + ^\s+weight\s+random\s+early\s+detection\s*: + ^\s+exponential\s+weight\s*: + ^\s+Dscp\s+Random\s+drop\s+\s+Tail\s+drop\s+Min/Max\s+Mark\s*$$ + ^\s+pkts\s+pkts\s+threshold\s+\s+probability\s*$$ + ^\s+\d+\s+\d+\s+\d+\s+\d+/\d+\s+\d+/\d+\s*$$ + ^\s+bandwidth\s+\d+\s+kb/s,\s+burst\s+\d+\s+bytes + ^\s+Service-policy\s+\S+\s*: + ^\s+Interface\stotal: -> StatsInterfaceTotal + ^\*$$ + ^. -> Error + +StatsInterfaceTotal + ^\s+bandwidth\s${TOTAL_BW_KBS}\skb/s,\squeue\slength\s${TOTAL_QUEUE_LENGTH} + ^\s+mean\sinput\srate\s${TOTAL_MEAN_INPUT_RATE_BPS}\sbits/s,\smean\soutput\srate\s${TOTAL_MEAN_OUTPUT_RATE_BPS}\sbits/s + ^\s+packets\soutput\s${TOTAL_OUTPUT_PACKETS},\spackets\sdropped\s${TOTAL_OUTPUT_PACKETS_DROPPED}\s\(${TOTAL_OUTPUT_PACKETS_DROPPED_PERCENT}%\) + ^\s+bytes\soutput\s${TOTAL_OUTPUT_BYTES},\sbytes\sdropped\s${TOTAL_OUTPUT_BYTES_DROPPED}\s\(${TOTAL_OUTPUT_BYTES_DROPPED_PERCENT}%\) + ^\s+bandwidth\s+\d+\s+kb/s + ^\s*$$ -> Start + ^. -> Error diff --git a/tests/oneaccess_oneos/show_isdn_active/show_isdn_active.plug103.raw b/tests/oneaccess_oneos/show_isdn_active/show_isdn_active.plug103.raw new file mode 100644 index 0000000000..b373969207 --- /dev/null +++ b/tests/oneaccess_oneos/show_isdn_active/show_isdn_active.plug103.raw @@ -0,0 +1,7 @@ + ISDN ACTIVE CALLS +-------------------------------------------------------------------------------- +App. Call Calling Called Call Port BChan Call-ref call-id + Type Number Number Duration +-------------------------------------------------------------------------------- +no isdn active calls... +-------------------------------------------------------------------------------- diff --git a/tests/oneaccess_oneos/show_isdn_active/show_isdn_active.plug103.yml b/tests/oneaccess_oneos/show_isdn_active/show_isdn_active.plug103.yml new file mode 100644 index 0000000000..e77add67ed --- /dev/null +++ b/tests/oneaccess_oneos/show_isdn_active/show_isdn_active.plug103.yml @@ -0,0 +1,2 @@ +--- +parsed_sample: [] diff --git a/tests/oneaccess_oneos/show_isdn_active/show_isdn_active.plug212.raw b/tests/oneaccess_oneos/show_isdn_active/show_isdn_active.plug212.raw new file mode 100644 index 0000000000..872b24aafb --- /dev/null +++ b/tests/oneaccess_oneos/show_isdn_active/show_isdn_active.plug212.raw @@ -0,0 +1,8 @@ +-------------------------------------------------------------------------------- + ISDN ACTIVE CALLS +-------------------------------------------------------------------------------- +App. Call Calling Called Call Port BChan Call-ref call-id + Type Number Number Duration +-------------------------------------------------------------------------------- +no isdn active calls... +-------------------------------------------------------------------------------- diff --git a/tests/oneaccess_oneos/show_isdn_active/show_isdn_active.plug212.yml b/tests/oneaccess_oneos/show_isdn_active/show_isdn_active.plug212.yml new file mode 100644 index 0000000000..e77add67ed --- /dev/null +++ b/tests/oneaccess_oneos/show_isdn_active/show_isdn_active.plug212.yml @@ -0,0 +1,2 @@ +--- +parsed_sample: [] diff --git a/tests/oneaccess_oneos/show_isdn_active/show_isdn_active.plug401.raw b/tests/oneaccess_oneos/show_isdn_active/show_isdn_active.plug401.raw new file mode 100644 index 0000000000..ad870918f1 --- /dev/null +++ b/tests/oneaccess_oneos/show_isdn_active/show_isdn_active.plug401.raw @@ -0,0 +1,51 @@ +-------------------------------------------------------------------------------- + ISDN ACTIVE CALLS +-------------------------------------------------------------------------------- +App. Call Calling Called Call Port BChan Call-ref call-id + Type Number Number Duration +-------------------------------------------------------------------------------- +Voice In 38719004 027239004 19:33:37 5/0 5 22175 284 +Voice Out 15241987 32472111 00:09:50 5/0 20 14020 839 +Voice Out 14212131 32475576 00:00:22 5/0 15 22212 951 +Voice Out 36532583 32475565 00:00:36 5/0 14 21956 948 +Voice Out 24264348 32472111 00:00:46 5/0 13 21700 945 +Voice Out 89356749 32472885 00:01:14 5/0 12 20932 936 +Voice Out 477439715 32474606 00:00:50 5/0 11 21444 942 +Voice Out 14540755 32475561 00:09:24 5/0 2 14532 845 +Voice Out 32410896 32472111 00:01:32 5/0 9 20420 930 +Voice Out 89714969 32472111 00:02:02 5/0 8 19396 917 +Voice Out 50390141 32472111 00:02:21 5/0 7 19140 914 +Voice Out 93837200 32475498 00:01:39 5/0 1 20164 927 +Voice Out 32038511 32472111 00:03:32 5/0 3 18372 904 +Voice In 38719014 027239024 00:03:50 5/1 18 23786 901 +Voice In 27730100 089656580 00:06:36 5/1 4 23784 876 +Voice In 32472111 32038300 00:01:42 5/1 13 23787 926 +Voice In 32473113 0472246687 00:11:57 5/1 15 23780 799 +Voice Out 67411600 38719001 00:01:38 5/1 14 27314 928 +Voice Out 479583380 38719014 00:03:50 5/1 17 25266 900 +Voice Out 36586363 32472921 00:00:19 5/1 3 28338 952 +Voice Out 489903858 38719004 19:27:12 5/1 6 13189 331 +Voice Out 474478482 32475500 00:01:50 5/1 12 27058 924 +Voice Out 35002121 32472111 00:01:54 5/1 11 26802 921 +Voice Out 488266068 32472334 00:02:01 5/1 9 26546 918 +Voice Out 36900190 32475200 00:06:15 5/1 7 23986 881 +Voice Out 474301373 32472921 00:00:56 5/1 5 27826 937 +Voice Out 22693377 32472616 00:05:31 5/1 10 24498 888 +Voice Out 14828220 32472243 00:00:31 5/1 2 28082 949 +Voice In 38719004 027239004 19:27:12 5/3 12 22164 332 +Voice Out 53662430 32475260 00:00:50 5/3 18 14788 944 +Voice Out 37705742 32472111 00:01:54 5/3 14 12996 922 +Voice Out 92352220 32475500 00:00:50 5/3 17 14532 941 +Voice Out 494722995 32472906 00:04:39 5/3 20 10948 892 +Voice Out 32038511 32474650 00:01:37 5/3 13 13508 929 +Voice Out 34402102 32475562 00:00:55 5/3 15 14276 938 +Voice Out 27344360 32472705 00:00:17 5/3 11 15556 953 +Voice Out 11648572 32474606 00:01:14 5/3 5 14020 935 +Voice Out 22693377 32475578 00:00:27 5/3 8 15300 950 +Voice Out 499353710 38719004 19:33:37 5/3 4 18067 283 +Voice Out 25241614 32472111 00:01:44 5/3 3 13252 925 +Voice Out 32869211 32472714 00:07:43 5/3 7 8900 864 +Voice Out 14828220 32475260 00:01:29 5/3 10 13764 932 +Voice Out 495583389 32475500 00:02:07 5/3 6 12484 916 +Voice Out 33543653 32475464 00:00:43 5/3 2 15044 947 +-------------------------------------------------------------------------------- diff --git a/tests/oneaccess_oneos/show_isdn_active/show_isdn_active.plug401.yml b/tests/oneaccess_oneos/show_isdn_active/show_isdn_active.plug401.yml new file mode 100644 index 0000000000..d07a43e69a --- /dev/null +++ b/tests/oneaccess_oneos/show_isdn_active/show_isdn_active.plug401.yml @@ -0,0 +1,398 @@ +--- +parsed_sample: + - app: "Voice" + call_type: "In" + calling_nbr: "38719004" + called_nbr: "027239004" + duration: "19:33:37" + port: "5/0" + bchannel: "5" + call_ref: "22175" + call_id: "284" + - app: "Voice" + call_type: "Out" + calling_nbr: "15241987" + called_nbr: "32472111" + duration: "00:09:50" + port: "5/0" + bchannel: "20" + call_ref: "14020" + call_id: "839" + - app: "Voice" + call_type: "Out" + calling_nbr: "14212131" + called_nbr: "32475576" + duration: "00:00:22" + port: "5/0" + bchannel: "15" + call_ref: "22212" + call_id: "951" + - app: "Voice" + call_type: "Out" + calling_nbr: "36532583" + called_nbr: "32475565" + duration: "00:00:36" + port: "5/0" + bchannel: "14" + call_ref: "21956" + call_id: "948" + - app: "Voice" + call_type: "Out" + calling_nbr: "24264348" + called_nbr: "32472111" + duration: "00:00:46" + port: "5/0" + bchannel: "13" + call_ref: "21700" + call_id: "945" + - app: "Voice" + call_type: "Out" + calling_nbr: "89356749" + called_nbr: "32472885" + duration: "00:01:14" + port: "5/0" + bchannel: "12" + call_ref: "20932" + call_id: "936" + - app: "Voice" + call_type: "Out" + calling_nbr: "477439715" + called_nbr: "32474606" + duration: "00:00:50" + port: "5/0" + bchannel: "11" + call_ref: "21444" + call_id: "942" + - app: "Voice" + call_type: "Out" + calling_nbr: "14540755" + called_nbr: "32475561" + duration: "00:09:24" + port: "5/0" + bchannel: "2" + call_ref: "14532" + call_id: "845" + - app: "Voice" + call_type: "Out" + calling_nbr: "32410896" + called_nbr: "32472111" + duration: "00:01:32" + port: "5/0" + bchannel: "9" + call_ref: "20420" + call_id: "930" + - app: "Voice" + call_type: "Out" + calling_nbr: "89714969" + called_nbr: "32472111" + duration: "00:02:02" + port: "5/0" + bchannel: "8" + call_ref: "19396" + call_id: "917" + - app: "Voice" + call_type: "Out" + calling_nbr: "50390141" + called_nbr: "32472111" + duration: "00:02:21" + port: "5/0" + bchannel: "7" + call_ref: "19140" + call_id: "914" + - app: "Voice" + call_type: "Out" + calling_nbr: "93837200" + called_nbr: "32475498" + duration: "00:01:39" + port: "5/0" + bchannel: "1" + call_ref: "20164" + call_id: "927" + - app: "Voice" + call_type: "Out" + calling_nbr: "32038511" + called_nbr: "32472111" + duration: "00:03:32" + port: "5/0" + bchannel: "3" + call_ref: "18372" + call_id: "904" + - app: "Voice" + call_type: "In" + calling_nbr: "38719014" + called_nbr: "027239024" + duration: "00:03:50" + port: "5/1" + bchannel: "18" + call_ref: "23786" + call_id: "901" + - app: "Voice" + call_type: "In" + calling_nbr: "27730100" + called_nbr: "089656580" + duration: "00:06:36" + port: "5/1" + bchannel: "4" + call_ref: "23784" + call_id: "876" + - app: "Voice" + call_type: "In" + calling_nbr: "32472111" + called_nbr: "32038300" + duration: "00:01:42" + port: "5/1" + bchannel: "13" + call_ref: "23787" + call_id: "926" + - app: "Voice" + call_type: "In" + calling_nbr: "32473113" + called_nbr: "0472246687" + duration: "00:11:57" + port: "5/1" + bchannel: "15" + call_ref: "23780" + call_id: "799" + - app: "Voice" + call_type: "Out" + calling_nbr: "67411600" + called_nbr: "38719001" + duration: "00:01:38" + port: "5/1" + bchannel: "14" + call_ref: "27314" + call_id: "928" + - app: "Voice" + call_type: "Out" + calling_nbr: "479583380" + called_nbr: "38719014" + duration: "00:03:50" + port: "5/1" + bchannel: "17" + call_ref: "25266" + call_id: "900" + - app: "Voice" + call_type: "Out" + calling_nbr: "36586363" + called_nbr: "32472921" + duration: "00:00:19" + port: "5/1" + bchannel: "3" + call_ref: "28338" + call_id: "952" + - app: "Voice" + call_type: "Out" + calling_nbr: "489903858" + called_nbr: "38719004" + duration: "19:27:12" + port: "5/1" + bchannel: "6" + call_ref: "13189" + call_id: "331" + - app: "Voice" + call_type: "Out" + calling_nbr: "474478482" + called_nbr: "32475500" + duration: "00:01:50" + port: "5/1" + bchannel: "12" + call_ref: "27058" + call_id: "924" + - app: "Voice" + call_type: "Out" + calling_nbr: "35002121" + called_nbr: "32472111" + duration: "00:01:54" + port: "5/1" + bchannel: "11" + call_ref: "26802" + call_id: "921" + - app: "Voice" + call_type: "Out" + calling_nbr: "488266068" + called_nbr: "32472334" + duration: "00:02:01" + port: "5/1" + bchannel: "9" + call_ref: "26546" + call_id: "918" + - app: "Voice" + call_type: "Out" + calling_nbr: "36900190" + called_nbr: "32475200" + duration: "00:06:15" + port: "5/1" + bchannel: "7" + call_ref: "23986" + call_id: "881" + - app: "Voice" + call_type: "Out" + calling_nbr: "474301373" + called_nbr: "32472921" + duration: "00:00:56" + port: "5/1" + bchannel: "5" + call_ref: "27826" + call_id: "937" + - app: "Voice" + call_type: "Out" + calling_nbr: "22693377" + called_nbr: "32472616" + duration: "00:05:31" + port: "5/1" + bchannel: "10" + call_ref: "24498" + call_id: "888" + - app: "Voice" + call_type: "Out" + calling_nbr: "14828220" + called_nbr: "32472243" + duration: "00:00:31" + port: "5/1" + bchannel: "2" + call_ref: "28082" + call_id: "949" + - app: "Voice" + call_type: "In" + calling_nbr: "38719004" + called_nbr: "027239004" + duration: "19:27:12" + port: "5/3" + bchannel: "12" + call_ref: "22164" + call_id: "332" + - app: "Voice" + call_type: "Out" + calling_nbr: "53662430" + called_nbr: "32475260" + duration: "00:00:50" + port: "5/3" + bchannel: "18" + call_ref: "14788" + call_id: "944" + - app: "Voice" + call_type: "Out" + calling_nbr: "37705742" + called_nbr: "32472111" + duration: "00:01:54" + port: "5/3" + bchannel: "14" + call_ref: "12996" + call_id: "922" + - app: "Voice" + call_type: "Out" + calling_nbr: "92352220" + called_nbr: "32475500" + duration: "00:00:50" + port: "5/3" + bchannel: "17" + call_ref: "14532" + call_id: "941" + - app: "Voice" + call_type: "Out" + calling_nbr: "494722995" + called_nbr: "32472906" + duration: "00:04:39" + port: "5/3" + bchannel: "20" + call_ref: "10948" + call_id: "892" + - app: "Voice" + call_type: "Out" + calling_nbr: "32038511" + called_nbr: "32474650" + duration: "00:01:37" + port: "5/3" + bchannel: "13" + call_ref: "13508" + call_id: "929" + - app: "Voice" + call_type: "Out" + calling_nbr: "34402102" + called_nbr: "32475562" + duration: "00:00:55" + port: "5/3" + bchannel: "15" + call_ref: "14276" + call_id: "938" + - app: "Voice" + call_type: "Out" + calling_nbr: "27344360" + called_nbr: "32472705" + duration: "00:00:17" + port: "5/3" + bchannel: "11" + call_ref: "15556" + call_id: "953" + - app: "Voice" + call_type: "Out" + calling_nbr: "11648572" + called_nbr: "32474606" + duration: "00:01:14" + port: "5/3" + bchannel: "5" + call_ref: "14020" + call_id: "935" + - app: "Voice" + call_type: "Out" + calling_nbr: "22693377" + called_nbr: "32475578" + duration: "00:00:27" + port: "5/3" + bchannel: "8" + call_ref: "15300" + call_id: "950" + - app: "Voice" + call_type: "Out" + calling_nbr: "499353710" + called_nbr: "38719004" + duration: "19:33:37" + port: "5/3" + bchannel: "4" + call_ref: "18067" + call_id: "283" + - app: "Voice" + call_type: "Out" + calling_nbr: "25241614" + called_nbr: "32472111" + duration: "00:01:44" + port: "5/3" + bchannel: "3" + call_ref: "13252" + call_id: "925" + - app: "Voice" + call_type: "Out" + calling_nbr: "32869211" + called_nbr: "32472714" + duration: "00:07:43" + port: "5/3" + bchannel: "7" + call_ref: "8900" + call_id: "864" + - app: "Voice" + call_type: "Out" + calling_nbr: "14828220" + called_nbr: "32475260" + duration: "00:01:29" + port: "5/3" + bchannel: "10" + call_ref: "13764" + call_id: "932" + - app: "Voice" + call_type: "Out" + calling_nbr: "495583389" + called_nbr: "32475500" + duration: "00:02:07" + port: "5/3" + bchannel: "6" + call_ref: "12484" + call_id: "916" + - app: "Voice" + call_type: "Out" + calling_nbr: "33543653" + called_nbr: "32475464" + duration: "00:00:43" + port: "5/3" + bchannel: "2" + call_ref: "15044" + call_id: "947" diff --git a/tests/oneaccess_oneos/show_isdn_led-status/show_isdn_led-status.plug103.raw b/tests/oneaccess_oneos/show_isdn_led-status/show_isdn_led-status.plug103.raw new file mode 100644 index 0000000000..99408d2135 --- /dev/null +++ b/tests/oneaccess_oneos/show_isdn_led-status/show_isdn_led-status.plug103.raw @@ -0,0 +1,22 @@ + Status of VOIP service + + 1 Dial-peer pots up. + 1 Dial-peer voip up. + + Sip-gateway status is no shutdown, + -> is registered + 1/1 ep is registered with registrar sip.blabla.be:5060 + -> IF loopback 1 [1.2.3.4] is up. + + No Sip-server, + + no voice com... + +voice led track-conditions + voice-gw any + voice-port no + +Sys LEDs +SYS LED VoIP color= GREEN , state=ON +SYS LED COM color= - , state=OFF +SYS LED Maintenance color= - , state=OFF diff --git a/tests/oneaccess_oneos/show_isdn_led-status/show_isdn_led-status.plug103.yml b/tests/oneaccess_oneos/show_isdn_led-status/show_isdn_led-status.plug103.yml new file mode 100644 index 0000000000..e7350635ff --- /dev/null +++ b/tests/oneaccess_oneos/show_isdn_led-status/show_isdn_led-status.plug103.yml @@ -0,0 +1,28 @@ +--- +parsed_sample: + - dialpeer_pots_up: "1" + dialpeer_voip_up: "1" + sip_gateway_status: "no shutdown" + sip_gateway_registered: "registered" + sip_gateway_nbr_registered: "1" + sip_gateway_nbr_available: "1" + sip_gateway_registrar: "sip.blabla.be:5060" + sip_gateway_intf: "loopback 1" + sip_gateway_intf_ip: "1.2.3.4" + sip_gateway_intf_status: "up" + sip_server_status: "No Sip-server" + voice_com_status: "no voice com" + track_cond_voice_gw: "any" + track_cond_voice_port: "no" + sysled_voip_color: "GREEN" + sysled_voip_state: "ON" + sysled_com_color: "-" + sysled_com_state: "OFF" + sysled_maintenance_color: "-" + sysled_maintenance_state: "OFF" + sysled_pri_color: "" + sysled_pri_state: "" + sysled_bri1_color: "" + sysled_bri1_state: "" + sysled_bri2_color: "" + sysled_bri2_state: "" diff --git a/tests/oneaccess_oneos/show_isdn_led-status/show_isdn_led-status.plug212.raw b/tests/oneaccess_oneos/show_isdn_led-status/show_isdn_led-status.plug212.raw new file mode 100644 index 0000000000..eb8698c22d --- /dev/null +++ b/tests/oneaccess_oneos/show_isdn_led-status/show_isdn_led-status.plug212.raw @@ -0,0 +1,30 @@ + + Status of VOIP service + + 1 Dial-peer pots up. + 1 Dial-peer voip up. + + Sip-gateway status is no shutdown, + -> is registered + 1/1 ep is registered with registrar sip.blabla.be:5060 + -> IF loopback 1 [1.2.3.4] is up. + + No Sip-server, + + no voice com... + +Isdn virtual LEDs +isdnshut = 1 0 0 +Layer1State = A - - +nbcomm = 0 0 0 + +voice led track-conditions + voice-gw any + voice-port any + +Sys LEDs +SYS LED VOIP color=GREEN state=ON + +SYS LED PRI color=GREEN state=OFF +SYS LED BRI1 color=- state=OFF +SYS LED BRI2 color=- state=OFF diff --git a/tests/oneaccess_oneos/show_isdn_led-status/show_isdn_led-status.plug212.yml b/tests/oneaccess_oneos/show_isdn_led-status/show_isdn_led-status.plug212.yml new file mode 100644 index 0000000000..e95f48ef58 --- /dev/null +++ b/tests/oneaccess_oneos/show_isdn_led-status/show_isdn_led-status.plug212.yml @@ -0,0 +1,28 @@ +--- +parsed_sample: + - dialpeer_pots_up: "1" + dialpeer_voip_up: "1" + sip_gateway_status: "no shutdown" + sip_gateway_registered: "registered" + sip_gateway_nbr_registered: "1" + sip_gateway_nbr_available: "1" + sip_gateway_registrar: "sip.blabla.be:5060" + sip_gateway_intf: "loopback 1" + sip_gateway_intf_ip: "1.2.3.4" + sip_gateway_intf_status: "up" + sip_server_status: "No Sip-server" + voice_com_status: "no voice com" + track_cond_voice_gw: "any" + track_cond_voice_port: "any" + sysled_voip_color: "GREEN" + sysled_voip_state: "ON" + sysled_com_color: "" + sysled_com_state: "" + sysled_maintenance_color: "" + sysled_maintenance_state: "" + sysled_pri_color: "GREEN" + sysled_pri_state: "OFF" + sysled_bri1_color: "-" + sysled_bri1_state: "OFF" + sysled_bri2_color: "-" + sysled_bri2_state: "OFF" diff --git a/tests/oneaccess_oneos/show_isdn_led-status/show_isdn_led-status.plug401.raw b/tests/oneaccess_oneos/show_isdn_led-status/show_isdn_led-status.plug401.raw new file mode 100644 index 0000000000..57f35362c7 --- /dev/null +++ b/tests/oneaccess_oneos/show_isdn_led-status/show_isdn_led-status.plug401.raw @@ -0,0 +1,22 @@ + Status of VOIP service + + 1 Dial-peer pots up. + 1 Dial-peer voip up. + + Sip-gateway status is no shutdown, + -> is registered + 1/1 ep is registered with registrar sip.blabla.be:5060 + -> IF loopback 1 [1.2.3.4] is up. + + Sip-server status is shutdown, + + no voice com... + +voice led track-conditions + voice-gw any + voice-port no + +Sys LEDs +SYS LED VoIP color= GREEN , state=ON +SYS LED COM color= - , state=OFF +SYS LED Maintenance color= - , state=OFF diff --git a/tests/oneaccess_oneos/show_isdn_led-status/show_isdn_led-status.plug401.yml b/tests/oneaccess_oneos/show_isdn_led-status/show_isdn_led-status.plug401.yml new file mode 100644 index 0000000000..488cca2d63 --- /dev/null +++ b/tests/oneaccess_oneos/show_isdn_led-status/show_isdn_led-status.plug401.yml @@ -0,0 +1,28 @@ +--- +parsed_sample: + - dialpeer_pots_up: "1" + dialpeer_voip_up: "1" + sip_gateway_status: "no shutdown" + sip_gateway_registered: "registered" + sip_gateway_nbr_registered: "1" + sip_gateway_nbr_available: "1" + sip_gateway_registrar: "sip.blabla.be:5060" + sip_gateway_intf: "loopback 1" + sip_gateway_intf_ip: "1.2.3.4" + sip_gateway_intf_status: "up" + sip_server_status: "shutdown" + voice_com_status: "no voice com" + track_cond_voice_gw: "any" + track_cond_voice_port: "no" + sysled_voip_color: "GREEN" + sysled_voip_state: "ON" + sysled_com_color: "-" + sysled_com_state: "OFF" + sysled_maintenance_color: "-" + sysled_maintenance_state: "OFF" + sysled_pri_color: "" + sysled_pri_state: "" + sysled_bri1_color: "" + sysled_bri1_state: "" + sysled_bri2_color: "" + sysled_bri2_state: "" diff --git a/tests/oneaccess_oneos/show_isdn_status_all/show_isdn_status_all.plug103.raw b/tests/oneaccess_oneos/show_isdn_status_all/show_isdn_status_all.plug103.raw new file mode 100644 index 0000000000..0497c8bd8e --- /dev/null +++ b/tests/oneaccess_oneos/show_isdn_status_all/show_isdn_status_all.plug103.raw @@ -0,0 +1,39 @@ + isdn line 5/0 + physical type E1 + protocol descriptor E1_PRI + linecode hdb3 + framing DF + config state up + loop state down + -layer 1 status deactivated + Alarm Indication Signal (AIS) OFF + Loss Off Signal (LOS) ON + Remote Indication Signal (RAI) OFF + pri AIS occurrence(s) 0 + pri LOS occurrence(s) 1 + pri RDI occurrence(s) 0 + -layer 2 status deactivated + Tx frames on D channel 0 + Rx frames on D channel 0 + -layer 3 status + no active call + + isdn line 5/1 + protocol descriptor BRI_NT + config state down + -layer 1 status deactivated + -layer 2 status deactivated + Tx frames on D channel 0 + Rx frames on D channel 0 + -layer 3 status + no active call + + isdn line 5/2 + protocol descriptor BRI_NT + config state down + -layer 1 status deactivated + -layer 2 status deactivated + Tx frames on D channel 0 + Rx frames on D channel 0 + -layer 3 status + no active call diff --git a/tests/oneaccess_oneos/show_isdn_status_all/show_isdn_status_all.plug103.yml b/tests/oneaccess_oneos/show_isdn_status_all/show_isdn_status_all.plug103.yml new file mode 100644 index 0000000000..306ee86a91 --- /dev/null +++ b/tests/oneaccess_oneos/show_isdn_status_all/show_isdn_status_all.plug103.yml @@ -0,0 +1,59 @@ +--- +parsed_sample: + - isdn_line: "5/0" + physical_type: "E1" + protocol_descriptor: "E1_PRI" + protocol_linecode: "hdb3" + protocol_framing: "DF" + config_state: "up" + loop_state: "down" + l1_status: "deactivated" + ais: "OFF" + los: "ON" + rai: "OFF" + pri_ais_occurrences: "0" + pri_los_occurrences: "1" + pri_rdi_occurrences: "0" + l2_status: "deactivated" + l2_tx_frames_dchannel: "0" + l2_rx_frames_dchannel: "0" + l3_active_calls: "no active call" + l3_call_details: [] + - isdn_line: "5/1" + physical_type: "" + protocol_descriptor: "BRI_NT" + protocol_linecode: "" + protocol_framing: "" + config_state: "down" + loop_state: "" + l1_status: "deactivated" + ais: "" + los: "" + rai: "" + pri_ais_occurrences: "" + pri_los_occurrences: "" + pri_rdi_occurrences: "" + l2_status: "deactivated" + l2_tx_frames_dchannel: "0" + l2_rx_frames_dchannel: "0" + l3_active_calls: "no active call" + l3_call_details: [] + - isdn_line: "5/2" + physical_type: "" + protocol_descriptor: "BRI_NT" + protocol_linecode: "" + protocol_framing: "" + config_state: "down" + loop_state: "" + l1_status: "deactivated" + ais: "" + los: "" + rai: "" + pri_ais_occurrences: "" + pri_los_occurrences: "" + pri_rdi_occurrences: "" + l2_status: "deactivated" + l2_tx_frames_dchannel: "0" + l2_rx_frames_dchannel: "0" + l3_active_calls: "no active call" + l3_call_details: [] diff --git a/tests/oneaccess_oneos/show_isdn_status_all/show_isdn_status_all.plug212.raw b/tests/oneaccess_oneos/show_isdn_status_all/show_isdn_status_all.plug212.raw new file mode 100644 index 0000000000..c801bb1e08 --- /dev/null +++ b/tests/oneaccess_oneos/show_isdn_status_all/show_isdn_status_all.plug212.raw @@ -0,0 +1,40 @@ + isdn line 5/0 + physical type E1 + protocol descriptor E1_PRI + linecode hdb3 + framing MF + config state up + loop state down + -layer 1 status activated + Alarm Indication Signal (AIS) OFF + Loss Off Signal (LOS) OFF + Remote Indication Signal (RAI) OFF + pri AIS occurrence(s) 0 + pri LOS occurrence(s) 0 + pri RDI occurrence(s) 0 + -layer 2 status activated + ces= 1 , tei= 0 , state= established + Tx frames on D channel 50 + Rx frames on D channel 50 + -layer 3 status + no active call + + isdn line 5/1 + protocol descriptor BRI_NT + config state down + -layer 1 status deactivated + -layer 2 status deactivated + Tx frames on D channel 0 + Rx frames on D channel 0 + -layer 3 status + no active call + + isdn line 5/2 + protocol descriptor BRI_NT + config state down + -layer 1 status deactivated + -layer 2 status deactivated + Tx frames on D channel 0 + Rx frames on D channel 0 + -layer 3 status + no active call diff --git a/tests/oneaccess_oneos/show_isdn_status_all/show_isdn_status_all.plug212.yml b/tests/oneaccess_oneos/show_isdn_status_all/show_isdn_status_all.plug212.yml new file mode 100644 index 0000000000..b10099aa16 --- /dev/null +++ b/tests/oneaccess_oneos/show_isdn_status_all/show_isdn_status_all.plug212.yml @@ -0,0 +1,59 @@ +--- +parsed_sample: + - isdn_line: "5/0" + physical_type: "E1" + protocol_descriptor: "E1_PRI" + protocol_linecode: "hdb3" + protocol_framing: "MF" + config_state: "up" + loop_state: "down" + l1_status: "activated" + ais: "OFF" + los: "OFF" + rai: "OFF" + pri_ais_occurrences: "0" + pri_los_occurrences: "0" + pri_rdi_occurrences: "0" + l2_status: "activated" + l2_tx_frames_dchannel: "50" + l2_rx_frames_dchannel: "50" + l3_active_calls: "no active call" + l3_call_details: [] + - isdn_line: "5/1" + physical_type: "" + protocol_descriptor: "BRI_NT" + protocol_linecode: "" + protocol_framing: "" + config_state: "down" + loop_state: "" + l1_status: "deactivated" + ais: "" + los: "" + rai: "" + pri_ais_occurrences: "" + pri_los_occurrences: "" + pri_rdi_occurrences: "" + l2_status: "deactivated" + l2_tx_frames_dchannel: "0" + l2_rx_frames_dchannel: "0" + l3_active_calls: "no active call" + l3_call_details: [] + - isdn_line: "5/2" + physical_type: "" + protocol_descriptor: "BRI_NT" + protocol_linecode: "" + protocol_framing: "" + config_state: "down" + loop_state: "" + l1_status: "deactivated" + ais: "" + los: "" + rai: "" + pri_ais_occurrences: "" + pri_los_occurrences: "" + pri_rdi_occurrences: "" + l2_status: "deactivated" + l2_tx_frames_dchannel: "0" + l2_rx_frames_dchannel: "0" + l3_active_calls: "no active call" + l3_call_details: [] diff --git a/tests/oneaccess_oneos/show_isdn_status_all/show_isdn_status_all.plug401.raw b/tests/oneaccess_oneos/show_isdn_status_all/show_isdn_status_all.plug401.raw new file mode 100644 index 0000000000..add8791369 --- /dev/null +++ b/tests/oneaccess_oneos/show_isdn_status_all/show_isdn_status_all.plug401.raw @@ -0,0 +1,122 @@ + isdn line 5/0 + physical type E1 + protocol descriptor E1_PRI + linecode hdb3 + framing DF + config state up + loop state down + -layer 1 status activated + Alarm Indication Signal (AIS) OFF + Loss Off Signal (LOS) OFF + Remote Indication Signal (RAI) OFF + pri AIS occurrence(s) 0 + pri LOS occurrence(s) 1 + pri RDI occurrence(s) 0 + -layer 2 status activated + ces= 1 , tei= 0 , state= established + Tx frames on D channel 1775901 + Rx frames on D channel 1775901 + -layer 3 status + active call 10 + -> App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type= In , BChan= 5 , call-ref= 22175 , call-id= 284, IsmConnect. + -> App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan=20 , call-ref= 14020 , call-id= 839, IsmConnect. + -> App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan=15 , call-ref= 22212 , call-id= 951, IsmConnect. + -> App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan=14 , call-ref= 21956 , call-id= 948, IsmConnect. + -> App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan=13 , call-ref= 21700 , call-id= 945, IsmConnect. + -> App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan=12 , call-ref= 20932 , call-id= 936, IsmConnect. + -> App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan= 2 , call-ref= 14532 , call-id= 845, IsmConnect. + -> App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan= 9 , call-ref= 20420 , call-id= 930, IsmConnect. + -> App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan= 7 , call-ref= 19140 , call-id= 914, IsmConnect. + -> App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan= 6 , call-ref= 22724 , call-id= 957, IsmConnect. + + isdn line 5/1 + physical type E1 + protocol descriptor E1_PRI + linecode hdb3 + framing DF + config state up + loop state down + -layer 1 status activated + Alarm Indication Signal (AIS) OFF + Loss Off Signal (LOS) OFF + Remote Indication Signal (RAI) OFF + pri AIS occurrence(s) 0 + pri LOS occurrence(s) 1 + pri RDI occurrence(s) 0 + -layer 2 status activated + ces= 1 , tei= 0 , state= established + Tx frames on D channel 1760092 + Rx frames on D channel 1760092 + -layer 3 status + active call 14 + -> App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type= In , BChan=18 , call-ref= 23786 , call-id= 901, IsmConnect. + -> App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type= In , BChan= 4 , call-ref= 23784 , call-id= 876, IsmConnect. + -> App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type= In , BChan=15 , call-ref= 23780 , call-id= 799, IsmConnect. + -> App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan=17 , call-ref= 25266 , call-id= 900, IsmConnect. + -> App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan= 3 , call-ref= 28338 , call-id= 952, IsmConnect. + -> App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan= 6 , call-ref= 13189 , call-id= 331, IsmConnect. + -> App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan=12 , call-ref= 27058 , call-id= 924, IsmConnect. + -> App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan=11 , call-ref= 26802 , call-id= 921, IsmConnect. + -> App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan= 9 , call-ref= 26546 , call-id= 918, IsmConnect. + -> App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan= 7 , call-ref= 23986 , call-id= 881, IsmConnect. + -> App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan= 8 , call-ref= 28850 , call-id= 958, IsmConnect. + -> App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan= 5 , call-ref= 27826 , call-id= 937, IsmConnect. + -> App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan= 2 , call-ref= 28082 , call-id= 949, IsmConnect. + -> App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan= 1 , call-ref= 28594 , call-id= 955, IsmConnect. + + isdn line 5/2 + physical type E1 + protocol descriptor E1_PRI + linecode hdb3 + framing DF + config state down + loop state down + -layer 1 status deactivated + Alarm Indication Signal (AIS) OFF + Loss Off Signal (LOS) OFF + Remote Indication Signal (RAI) OFF + pri AIS occurrence(s) 0 + pri LOS occurrence(s) 0 + pri RDI occurrence(s) 0 + -layer 2 status deactivated + Tx frames on D channel 0 + Rx frames on D channel 0 + -layer 3 status + no active call + + isdn line 5/3 + physical type E1 + protocol descriptor E1_PRI + linecode hdb3 + framing DF + config state up + loop state down + -layer 1 status activated + Alarm Indication Signal (AIS) OFF + Loss Off Signal (LOS) OFF + Remote Indication Signal (RAI) OFF + pri AIS occurrence(s) 0 + pri LOS occurrence(s) 1 + pri RDI occurrence(s) 0 + -layer 2 status activated + ces= 1 , tei= 0 , state= established + Tx frames on D channel 1775555 + Rx frames on D channel 1775555 + -layer 3 status + active call 16 + -> App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type= In , BChan=12 , call-ref= 22164 , call-id= 332, IsmConnect. + -> App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan= 1 , call-ref= 15812 , call-id= 956, IsmConnect. + -> App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan=18 , call-ref= 14788 , call-id= 944, IsmConnect. + -> App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan=14 , call-ref= 12996 , call-id= 922, IsmConnect. + -> App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan=17 , call-ref= 14532 , call-id= 941, IsmConnect. + -> App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan=20 , call-ref= 10948 , call-id= 892, IsmConnect. + -> App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan=15 , call-ref= 14276 , call-id= 938, IsmConnect. + -> App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan=11 , call-ref= 15556 , call-id= 953, IsmConnect. + -> App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan= 5 , call-ref= 14020 , call-id= 935, IsmConnect. + -> App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan= 8 , call-ref= 15300 , call-id= 950, IsmConnect. + -> App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan= 4 , call-ref= 18067 , call-id= 283, IsmConnect. + -> App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan= 3 , call-ref= 13252 , call-id= 925, IsmConnect. + -> App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan= 7 , call-ref= 8900 , call-id= 864, IsmConnect. + -> App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan= 9 , call-ref= 16068 , call-id= 959, IsmConnect. + -> App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan= 6 , call-ref= 12484 , call-id= 916, IsmConnect. + -> App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan= 2 , call-ref= 15044 , call-id= 947, IsmConnect. diff --git a/tests/oneaccess_oneos/show_isdn_status_all/show_isdn_status_all.plug401.yml b/tests/oneaccess_oneos/show_isdn_status_all/show_isdn_status_all.plug401.yml new file mode 100644 index 0000000000..9d6e79fca5 --- /dev/null +++ b/tests/oneaccess_oneos/show_isdn_status_all/show_isdn_status_all.plug401.yml @@ -0,0 +1,158 @@ +--- +parsed_sample: + - isdn_line: "5/0" + physical_type: "E1" + protocol_descriptor: "E1_PRI" + protocol_linecode: "hdb3" + protocol_framing: "DF" + config_state: "up" + loop_state: "down" + l1_status: "activated" + ais: "OFF" + los: "OFF" + rai: "OFF" + pri_ais_occurrences: "0" + pri_los_occurrences: "1" + pri_rdi_occurrences: "0" + l2_status: "activated" + l2_tx_frames_dchannel: "1775901" + l2_rx_frames_dchannel: "1775901" + l3_active_calls: "10" + l3_call_details: + - "App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type= In , BChan= 5 , call-ref=\ + \ 22175 , call-id= 284, IsmConnect." + - "App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan=20 , call-ref=\ + \ 14020 , call-id= 839, IsmConnect." + - "App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan=15 , call-ref=\ + \ 22212 , call-id= 951, IsmConnect." + - "App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan=14 , call-ref=\ + \ 21956 , call-id= 948, IsmConnect." + - "App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan=13 , call-ref=\ + \ 21700 , call-id= 945, IsmConnect." + - "App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan=12 , call-ref=\ + \ 20932 , call-id= 936, IsmConnect." + - "App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan= 2 , call-ref=\ + \ 14532 , call-id= 845, IsmConnect." + - "App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan= 9 , call-ref=\ + \ 20420 , call-id= 930, IsmConnect." + - "App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan= 7 , call-ref=\ + \ 19140 , call-id= 914, IsmConnect." + - "App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan= 6 , call-ref=\ + \ 22724 , call-id= 957, IsmConnect." + - isdn_line: "5/1" + physical_type: "E1" + protocol_descriptor: "E1_PRI" + protocol_linecode: "hdb3" + protocol_framing: "DF" + config_state: "up" + loop_state: "down" + l1_status: "activated" + ais: "OFF" + los: "OFF" + rai: "OFF" + pri_ais_occurrences: "0" + pri_los_occurrences: "1" + pri_rdi_occurrences: "0" + l2_status: "activated" + l2_tx_frames_dchannel: "1760092" + l2_rx_frames_dchannel: "1760092" + l3_active_calls: "14" + l3_call_details: + - "App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type= In , BChan=18 , call-ref=\ + \ 23786 , call-id= 901, IsmConnect." + - "App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type= In , BChan= 4 , call-ref=\ + \ 23784 , call-id= 876, IsmConnect." + - "App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type= In , BChan=15 , call-ref=\ + \ 23780 , call-id= 799, IsmConnect." + - "App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan=17 , call-ref=\ + \ 25266 , call-id= 900, IsmConnect." + - "App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan= 3 , call-ref=\ + \ 28338 , call-id= 952, IsmConnect." + - "App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan= 6 , call-ref=\ + \ 13189 , call-id= 331, IsmConnect." + - "App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan=12 , call-ref=\ + \ 27058 , call-id= 924, IsmConnect." + - "App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan=11 , call-ref=\ + \ 26802 , call-id= 921, IsmConnect." + - "App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan= 9 , call-ref=\ + \ 26546 , call-id= 918, IsmConnect." + - "App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan= 7 , call-ref=\ + \ 23986 , call-id= 881, IsmConnect." + - "App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan= 8 , call-ref=\ + \ 28850 , call-id= 958, IsmConnect." + - "App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan= 5 , call-ref=\ + \ 27826 , call-id= 937, IsmConnect." + - "App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan= 2 , call-ref=\ + \ 28082 , call-id= 949, IsmConnect." + - "App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan= 1 , call-ref=\ + \ 28594 , call-id= 955, IsmConnect." + - isdn_line: "5/2" + physical_type: "E1" + protocol_descriptor: "E1_PRI" + protocol_linecode: "hdb3" + protocol_framing: "DF" + config_state: "down" + loop_state: "down" + l1_status: "deactivated" + ais: "OFF" + los: "OFF" + rai: "OFF" + pri_ais_occurrences: "0" + pri_los_occurrences: "0" + pri_rdi_occurrences: "0" + l2_status: "deactivated" + l2_tx_frames_dchannel: "0" + l2_rx_frames_dchannel: "0" + l3_active_calls: "no active call" + l3_call_details: [] + - isdn_line: "5/3" + physical_type: "E1" + protocol_descriptor: "E1_PRI" + protocol_linecode: "hdb3" + protocol_framing: "DF" + config_state: "up" + loop_state: "down" + l1_status: "activated" + ais: "OFF" + los: "OFF" + rai: "OFF" + pri_ais_occurrences: "0" + pri_los_occurrences: "1" + pri_rdi_occurrences: "0" + l2_status: "activated" + l2_tx_frames_dchannel: "1775555" + l2_rx_frames_dchannel: "1775555" + l3_active_calls: "16" + l3_call_details: + - "App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type= In , BChan=12 , call-ref=\ + \ 22164 , call-id= 332, IsmConnect." + - "App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan= 1 , call-ref=\ + \ 15812 , call-id= 956, IsmConnect." + - "App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan=18 , call-ref=\ + \ 14788 , call-id= 944, IsmConnect." + - "App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan=14 , call-ref=\ + \ 12996 , call-id= 922, IsmConnect." + - "App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan=17 , call-ref=\ + \ 14532 , call-id= 941, IsmConnect." + - "App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan=20 , call-ref=\ + \ 10948 , call-id= 892, IsmConnect." + - "App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan=15 , call-ref=\ + \ 14276 , call-id= 938, IsmConnect." + - "App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan=11 , call-ref=\ + \ 15556 , call-id= 953, IsmConnect." + - "App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan= 5 , call-ref=\ + \ 14020 , call-id= 935, IsmConnect." + - "App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan= 8 , call-ref=\ + \ 15300 , call-id= 950, IsmConnect." + - "App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan= 4 , call-ref=\ + \ 18067 , call-id= 283, IsmConnect." + - "App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan= 3 , call-ref=\ + \ 13252 , call-id= 925, IsmConnect." + - "App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan= 7 , call-ref=\ + \ 8900 , call-id= 864, IsmConnect." + - "App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan= 9 , call-ref=\ + \ 16068 , call-id= 959, IsmConnect." + - "App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan= 6 , call-ref=\ + \ 12484 , call-id= 916, IsmConnect." + - "App=Voice , BC=[Speech,64 kbit/s,G.711 A-law], type=Out , BChan= 2 , call-ref=\ + \ 15044 , call-id= 947, IsmConnect." diff --git a/tests/oneaccess_oneos/show_memory/show_memory.oneos5.raw b/tests/oneaccess_oneos/show_memory/show_memory.oneos5.raw new file mode 100644 index 0000000000..e17cd8703b --- /dev/null +++ b/tests/oneaccess_oneos/show_memory/show_memory.oneos5.raw @@ -0,0 +1,27 @@ +=============================================== +| Memory status report | Kbytes | | +=============================================== +| Ram size | 262 144 | | +| :..Program | 41 171 | | +| : :..code | 30 715 | | +| : :..data | 10 455 | | +| :..Static buffers | 192 | | +| :..Dynamic total | 213 604 | | +| : : used | 46 847 | 21.9% | +| : : free | 166 757 | 78.0% | +| : :..System total | 213 604 | | +| : used | 46 847 | 21.9% | +| : free | 166 757 | 78.0% | +| :..Ram disk total | 1 011 | | +| used | 74 | 7.4% | +| free | 937 | 92.7% | +| | | | +| Flash size | 2 048 | | +| :..Boot | 1 024 | | +| :..Static areas | 200 | | +| | | | +| Extended Flash size | 65 536 | | +| :..Flash disk total | 64 688 | | +| used | 31 176 | 48.1% | +| free | 33 512 | 51.8% | +=============================================== diff --git a/tests/oneaccess_oneos/show_memory/show_memory.oneos5.yml b/tests/oneaccess_oneos/show_memory/show_memory.oneos5.yml new file mode 100644 index 0000000000..a06485b016 --- /dev/null +++ b/tests/oneaccess_oneos/show_memory/show_memory.oneos5.yml @@ -0,0 +1,8 @@ +--- +parsed_sample: + - ram: "262 144" + boot_size: "1 024" + flash_size: "65 536" + user_partition_total: "64 688" + user_partition_used: "31 176" + user_partition_free: "33 512" diff --git a/tests/oneaccess_oneos/show_memory/show_memory.oneos6.raw b/tests/oneaccess_oneos/show_memory/show_memory.oneos6.raw new file mode 100644 index 0000000000..63ba8ec6b8 --- /dev/null +++ b/tests/oneaccess_oneos/show_memory/show_memory.oneos6.raw @@ -0,0 +1,33 @@ +================================================================================ +| Memory status report | Total | Free | Use % | +================================================================================ +| Memory Total | 1.0GiB | | | +|----------------------------------------------|----------|----------|---------| +| Shared Partition | | | | +| - Shared Pool | 31.9MiB | 27.7MiB | 13.3% | +| | | | | +| Control Partition | | | | +| - Linux RAM (*) | 546.1MiB | 183.4MiB | 66.4% | +| - system free | | 102.7MiB | | +| - Linux cached | 127.9MiB | | | +| - Linux buffers | 8.7MiB | | | +| - Linux File Systems | | | | +| - root | 273.0MiB | 268.4MiB | 1.7% | +| - tmp | na |used:51MiB| 90.0% | +| | | | | +| Forwarding Partition | | | | +| - Shared Pool | 249.9MiB | 233.1MiB | 6.7% | +| - Core 0 Pool | 1.9MiB | 1.4MiB | 25.8% | +| - Binary | 3.2MiB | | | +| | | | | +================================================================================ +| Flash Total | 512.0MiB | | | +|----------------------------------------------|----------|----------|---------| +| Boot Partition | 100.0MiB | | | +| | | | | +| File systems | 412.0MiB | | | +| - user | 366.9MiB | 85.4MiB | 76.7% | +================================================================================ +| Removable disks | | | | +|----------------------------------------------|----------|----------|---------| +================================================================================ diff --git a/tests/oneaccess_oneos/show_memory/show_memory.oneos6.yml b/tests/oneaccess_oneos/show_memory/show_memory.oneos6.yml new file mode 100644 index 0000000000..342ff1b0bd --- /dev/null +++ b/tests/oneaccess_oneos/show_memory/show_memory.oneos6.yml @@ -0,0 +1,8 @@ +--- +parsed_sample: + - ram: "1.0GiB" + boot_size: "100.0MiB" + flash_size: "512.0MiB" + user_partition_total: "366.9MiB" + user_partition_used: "76.7%" + user_partition_free: "85.4MiB" diff --git a/tests/oneaccess_oneos/show_policy-interface_output/show_policy-interface_output.lbb_140.raw b/tests/oneaccess_oneos/show_policy-interface_output/show_policy-interface_output.lbb_140.raw new file mode 100644 index 0000000000..ed41bf9278 --- /dev/null +++ b/tests/oneaccess_oneos/show_policy-interface_output/show_policy-interface_output.lbb_140.raw @@ -0,0 +1,446 @@ +FastEthernet 1/0: service-policy output L3VPN_SHARED_VLAN_SHAPE_CE_OUT +traffic statistics: + Class 'CLASS_ANY': + 705455781 packets, 202655648081 bytes, 0 dscp remarked, mean input rate 76250 bits/s + Packets dropped by Congestion Management: CPU:0 Rx:0 Total:0 + Service-policy L3VPN_SHARED_QOS_CE_OUT : + Class 'REAL-TIME': color-blind mode + 82440 packets, 22296428 bytes, mean input rate 0 bits/s + cir 512 kbits/s, cbs 6400 bytes + conformed 79705 packets, 20216566 bytes; action: set-dscp-transmit 46 + exceeded 2735 packets, 2079862 bytes; action: drop + Class 'MANAGEMENT': + 3881496 packets, 352515276 bytes, 0 dscp remarked, mean input rate 76250 bits/s + Packets dropped by Congestion Management: CPU:0 Rx:0 Total:0 + Class 'ROUTING': + 94685677 packets, 20577282182 bytes, 0 dscp remarked, mean input rate 0 bits/s + Packets dropped by Congestion Management: CPU:0 Rx:0 Total:0 + Class 'PREMIUM': + 866614 packets, 336167380 bytes, 17 dscp remarked, mean input rate 0 bits/s + Packets dropped by Congestion Management: CPU:0 Rx:0 Total:0 + Class 'GOLD': + 45391 packets, 15054274 bytes, 111 dscp remarked, mean input rate 0 bits/s + Packets dropped by Congestion Management: CPU:0 Rx:0 Total:0 + Class 'SILVER': + 5160082 packets, 2081326098 bytes, 968 dscp remarked, mean input rate 0 bits/s + Packets dropped by Congestion Management: CPU:0 Rx:0 Total:0 + Class 'BRONZE': + 76569 packets, 28162916 bytes, 70513 dscp remarked, mean input rate 0 bits/s + Packets dropped by Congestion Management: CPU:0 Rx:0 Total:0 + Class 'class-default': + 600657514 packets, 179242844271 bytes, 0 dscp remarked, mean input rate 0 bits/s + Packets dropped by Congestion Management: CPU:0 Rx:0 Total:0 + Class 'class-default': + 0 packets, 0 bytes, 0 dscp remarked, mean input rate 0 bits/s + Packets dropped by Congestion Management: CPU:0 Rx:0 Total:0 + +output queuing statistics: + Class 'CLASS_ANY': medium priority (no excess allowed) + bandwidth 33250 kb/s, burst 81872 bytes + mean input rate 73400 bits/s, mean output rate 73400 bits/s + packets output 700594742, packets dropped 707805 (0%) + bytes output 222578689918, bytes dropped 939630669 (0%) + Service-policy L3VPN_SHARED_QOS_CE_OUT : + Class 'REAL-TIME': high priority + bandwidth 512 kb/s, burst 32249 bytes, queue length/limit 0/50 + mean input rate 0 bits/s, mean output rate 0 bits/s + packets output 79705, packets dropped 0 (0%) + bytes output 22607716, bytes dropped 0 (0%) + Class 'MANAGEMENT': medium priority + bandwidth 9 kb/s, burst 1870 bytes, queue length/limit 0/50 + mean input rate 73200 bits/s, mean output rate 73200 bits/s + packets output 3881341, packets dropped 0 (0%) + bytes output 468946094, bytes dropped 0 (0%) + remaining-bandwidth share 1, excess-rate-priority 0, excess packets sent 222911 + Class 'ROUTING': medium priority + bandwidth 9 kb/s, burst 1870 bytes, queue length/limit 0/50 + mean input rate 0 bits/s, mean output rate 0 bits/s + packets output 94685677, packets dropped 0 (0%) + bytes output 23417852492, bytes dropped 0 (0%) + remaining-bandwidth share 1, excess-rate-priority 0, excess packets sent 83405404 + Class 'PREMIUM': medium priority + bandwidth 11452 kb/s, burst 28624 bytes, queue length/limit 0/60 + mean input rate 0 bits/s, mean output rate 0 bits/s + packets output 866614, packets dropped 0 (0%) + bytes output 362165800, bytes dropped 0 (0%) + remaining-bandwidth share 34, excess-rate-priority 0, excess packets sent 279 + weight random early detection: + exponential weight: 9 + + Dscp Random drop Tail drop Min/Max Mark + pkts pkts threshold probability + 0 0 0 30/60 1/10 + 1 0 0 33/60 1/10 + 2 0 0 36/60 1/10 + 3 0 0 39/60 1/10 + 4 0 0 42/60 1/10 + 5 0 0 45/60 1/10 + 6 0 0 48/60 1/10 + 7 0 0 51/60 1/10 + 8 0 0 33/60 1/10 + 9 0 0 33/60 1/10 + 10 0 0 36/60 1/10 + 11 0 0 39/60 1/10 + 12 0 0 42/60 1/10 + 13 0 0 45/60 1/10 + 14 0 0 48/60 1/10 + 15 0 0 51/60 1/10 + 16 0 0 36/60 1/10 + 17 0 0 33/60 1/10 + 18 0 0 36/60 1/10 + 19 0 0 39/60 1/10 + 20 0 0 42/60 1/10 + 21 0 0 45/60 1/10 + 22 0 0 48/60 1/10 + 23 0 0 51/60 1/10 + 24 0 0 39/60 1/10 + 25 0 0 33/60 1/10 + 26 0 0 36/60 1/10 + 27 0 0 39/60 1/10 + 28 0 0 42/60 1/10 + 29 0 0 45/60 1/10 + 30 0 0 48/60 1/10 + 31 0 0 51/60 1/10 + 32 0 0 42/60 1/10 + 33 0 0 33/60 1/10 + 34 0 0 36/60 1/10 + 35 0 0 39/60 1/10 + 36 0 0 42/60 1/10 + 37 0 0 45/60 1/10 + 38 0 0 48/60 1/10 + 39 0 0 51/60 1/10 + 40 0 0 45/60 1/10 + 41 0 0 33/60 1/10 + 42 0 0 36/60 1/10 + 43 0 0 39/60 1/10 + 44 0 0 42/60 1/10 + 45 0 0 45/60 1/10 + 46 0 0 48/60 1/10 + 47 0 0 51/60 1/10 + 48 0 0 48/60 1/10 + 49 0 0 33/60 1/10 + 50 0 0 36/60 1/10 + 51 0 0 39/60 1/10 + 52 0 0 42/60 1/10 + 53 0 0 45/60 1/10 + 54 0 0 48/60 1/10 + 55 0 0 51/60 1/10 + 56 0 0 51/60 1/10 + 57 0 0 33/60 1/10 + 58 0 0 36/60 1/10 + 59 0 0 39/60 1/10 + 60 0 0 42/60 1/10 + 61 0 0 45/60 1/10 + 62 0 0 48/60 1/10 + 63 0 0 51/60 1/10 + Class 'GOLD': medium priority + bandwidth 8180 kb/s, burst 29750 bytes, queue length/limit 0/60 + mean input rate 0 bits/s, mean output rate 0 bits/s + packets output 45391, packets dropped 0 (0%) + bytes output 16416004, bytes dropped 0 (0%) + remaining-bandwidth share 24, excess-rate-priority 0, excess packets sent 0 + weight random early detection: + exponential weight: 9 + + Dscp Random drop Tail drop Min/Max Mark + pkts pkts threshold probability + 0 0 0 30/60 1/10 + 1 0 0 33/60 1/10 + 2 0 0 36/60 1/10 + 3 0 0 39/60 1/10 + 4 0 0 42/60 1/10 + 5 0 0 45/60 1/10 + 6 0 0 48/60 1/10 + 7 0 0 51/60 1/10 + 8 0 0 33/60 1/10 + 9 0 0 33/60 1/10 + 10 0 0 36/60 1/10 + 11 0 0 39/60 1/10 + 12 0 0 42/60 1/10 + 13 0 0 45/60 1/10 + 14 0 0 48/60 1/10 + 15 0 0 51/60 1/10 + 16 0 0 36/60 1/10 + 17 0 0 33/60 1/10 + 18 0 0 36/60 1/10 + 19 0 0 39/60 1/10 + 20 0 0 42/60 1/10 + 21 0 0 45/60 1/10 + 22 0 0 48/60 1/10 + 23 0 0 51/60 1/10 + 24 0 0 39/60 1/10 + 25 0 0 33/60 1/10 + 26 0 0 36/60 1/10 + 27 0 0 39/60 1/10 + 28 0 0 42/60 1/10 + 29 0 0 45/60 1/10 + 30 0 0 48/60 1/10 + 31 0 0 51/60 1/10 + 32 0 0 42/60 1/10 + 33 0 0 33/60 1/10 + 34 0 0 36/60 1/10 + 35 0 0 39/60 1/10 + 36 0 0 42/60 1/10 + 37 0 0 45/60 1/10 + 38 0 0 48/60 1/10 + 39 0 0 51/60 1/10 + 40 0 0 45/60 1/10 + 41 0 0 33/60 1/10 + 42 0 0 36/60 1/10 + 43 0 0 39/60 1/10 + 44 0 0 42/60 1/10 + 45 0 0 45/60 1/10 + 46 0 0 48/60 1/10 + 47 0 0 51/60 1/10 + 48 0 0 48/60 1/10 + 49 0 0 33/60 1/10 + 50 0 0 36/60 1/10 + 51 0 0 39/60 1/10 + 52 0 0 42/60 1/10 + 53 0 0 45/60 1/10 + 54 0 0 48/60 1/10 + 55 0 0 51/60 1/10 + 56 0 0 51/60 1/10 + 57 0 0 33/60 1/10 + 58 0 0 36/60 1/10 + 59 0 0 39/60 1/10 + 60 0 0 42/60 1/10 + 61 0 0 45/60 1/10 + 62 0 0 48/60 1/10 + 63 0 0 51/60 1/10 + Class 'SILVER': medium priority + bandwidth 4908 kb/s, burst 30749 bytes, queue length/limit 0/60 + mean input rate 0 bits/s, mean output rate 0 bits/s + packets output 5160082, packets dropped 0 (0%) + bytes output 2236128558, bytes dropped 0 (0%) + remaining-bandwidth share 14, excess-rate-priority 0, excess packets sent 42 + weight random early detection: + exponential weight: 9 + + Dscp Random drop Tail drop Min/Max Mark + pkts pkts threshold probability + 0 0 0 30/60 1/10 + 1 0 0 33/60 1/10 + 2 0 0 36/60 1/10 + 3 0 0 39/60 1/10 + 4 0 0 42/60 1/10 + 5 0 0 45/60 1/10 + 6 0 0 48/60 1/10 + 7 0 0 51/60 1/10 + 8 0 0 33/60 1/10 + 9 0 0 33/60 1/10 + 10 0 0 36/60 1/10 + 11 0 0 39/60 1/10 + 12 0 0 42/60 1/10 + 13 0 0 45/60 1/10 + 14 0 0 48/60 1/10 + 15 0 0 51/60 1/10 + 16 0 0 36/60 1/10 + 17 0 0 33/60 1/10 + 18 0 0 36/60 1/10 + 19 0 0 39/60 1/10 + 20 0 0 42/60 1/10 + 21 0 0 45/60 1/10 + 22 0 0 48/60 1/10 + 23 0 0 51/60 1/10 + 24 0 0 39/60 1/10 + 25 0 0 33/60 1/10 + 26 0 0 36/60 1/10 + 27 0 0 39/60 1/10 + 28 0 0 42/60 1/10 + 29 0 0 45/60 1/10 + 30 0 0 48/60 1/10 + 31 0 0 51/60 1/10 + 32 0 0 42/60 1/10 + 33 0 0 33/60 1/10 + 34 0 0 36/60 1/10 + 35 0 0 39/60 1/10 + 36 0 0 42/60 1/10 + 37 0 0 45/60 1/10 + 38 0 0 48/60 1/10 + 39 0 0 51/60 1/10 + 40 0 0 45/60 1/10 + 41 0 0 33/60 1/10 + 42 0 0 36/60 1/10 + 43 0 0 39/60 1/10 + 44 0 0 42/60 1/10 + 45 0 0 45/60 1/10 + 46 0 0 48/60 1/10 + 47 0 0 51/60 1/10 + 48 0 0 48/60 1/10 + 49 0 0 33/60 1/10 + 50 0 0 36/60 1/10 + 51 0 0 39/60 1/10 + 52 0 0 42/60 1/10 + 53 0 0 45/60 1/10 + 54 0 0 48/60 1/10 + 55 0 0 51/60 1/10 + 56 0 0 51/60 1/10 + 57 0 0 33/60 1/10 + 58 0 0 36/60 1/10 + 59 0 0 39/60 1/10 + 60 0 0 42/60 1/10 + 61 0 0 45/60 1/10 + 62 0 0 48/60 1/10 + 63 0 0 51/60 1/10 + Class 'BRONZE': medium priority + bandwidth 3272 kb/s, burst 31249 bytes, queue length/limit 0/60 + mean input rate 0 bits/s, mean output rate 0 bits/s + packets output 76493, packets dropped 76 (0%) + bytes output 30364562, bytes dropped 95424 (0%) + remaining-bandwidth share 9, excess-rate-priority 0, excess packets sent 10772 + weight random early detection: + exponential weight: 7 + + Dscp Random drop Tail drop Min/Max Mark + pkts pkts threshold probability + 0 0 0 30/60 1/10 + 1 0 0 33/60 1/10 + 2 0 0 36/60 1/10 + 3 0 0 39/60 1/10 + 4 0 0 42/60 1/10 + 5 0 0 45/60 1/10 + 6 0 0 48/60 1/10 + 7 0 0 51/60 1/10 + 8 0 0 33/60 1/10 + 9 0 0 33/60 1/10 + 10 0 0 36/60 1/10 + 11 0 0 39/60 1/10 + 12 0 0 42/60 1/10 + 13 0 0 45/60 1/10 + 14 0 0 48/60 1/10 + 15 0 0 51/60 1/10 + 16 0 0 36/60 1/10 + 17 0 0 33/60 1/10 + 18 0 0 36/60 1/10 + 19 0 0 39/60 1/10 + 20 0 0 42/60 1/10 + 21 0 0 45/60 1/10 + 22 0 0 48/60 1/10 + 23 0 0 51/60 1/10 + 24 0 0 39/60 1/10 + 25 0 0 33/60 1/10 + 26 0 0 36/60 1/10 + 27 0 0 39/60 1/10 + 28 0 0 42/60 1/10 + 29 0 0 45/60 1/10 + 30 0 0 48/60 1/10 + 31 0 0 51/60 1/10 + 32 0 0 42/60 1/10 + 33 0 0 33/60 1/10 + 34 0 0 36/60 1/10 + 35 0 0 39/60 1/10 + 36 0 0 42/60 1/10 + 37 0 0 45/60 1/10 + 38 0 0 48/60 1/10 + 39 0 0 51/60 1/10 + 40 0 0 45/60 1/10 + 41 0 0 33/60 1/10 + 42 0 0 36/60 1/10 + 43 0 0 39/60 1/10 + 44 0 0 42/60 1/10 + 45 0 0 45/60 1/10 + 46 0 0 48/60 1/10 + 47 0 0 51/60 1/10 + 48 0 0 48/60 1/10 + 49 0 0 33/60 1/10 + 50 0 0 36/60 1/10 + 51 0 0 39/60 1/10 + 52 0 0 42/60 1/10 + 53 0 0 45/60 1/10 + 54 0 0 48/60 1/10 + 55 0 0 51/60 1/10 + 56 0 0 51/60 1/10 + 57 0 0 33/60 1/10 + 58 0 0 36/60 1/10 + 59 0 0 39/60 1/10 + 60 0 0 42/60 1/10 + 61 0 0 45/60 1/10 + 62 0 0 48/60 1/10 + 63 0 0 51/60 1/10 + Class 'class-default': medium priority + bandwidth 4908 kb/s, burst 30749 bytes, queue length/limit 0/60 + mean input rate 96 bits/s, mean output rate 96 bits/s + packets output 595799441, packets dropped 707729 (0%) + bytes output 196024209496, bytes dropped 939535245 (0%) + remaining-bandwidth share 14, excess-rate-priority 0, excess packets sent 52266475 + weight random early detection: + exponential weight: 9 + + Dscp Random drop Tail drop Min/Max Mark + pkts pkts threshold probability + 0 119931 0 30/60 1/10 + 1 0 0 33/60 1/10 + 2 41 0 36/60 1/10 + 3 0 0 39/60 1/10 + 4 3 0 42/60 1/10 + 5 0 0 45/60 1/10 + 6 0 0 48/60 1/10 + 7 0 0 51/60 1/10 + 8 0 0 33/60 1/10 + 9 0 0 33/60 1/10 + 10 0 0 36/60 1/10 + 11 0 0 39/60 1/10 + 12 0 0 42/60 1/10 + 13 0 0 45/60 1/10 + 14 0 0 48/60 1/10 + 15 0 0 51/60 1/10 + 16 0 0 36/60 1/10 + 17 0 0 33/60 1/10 + 18 0 0 36/60 1/10 + 19 0 0 39/60 1/10 + 20 0 0 42/60 1/10 + 21 0 0 45/60 1/10 + 22 0 0 48/60 1/10 + 23 0 0 51/60 1/10 + 24 0 0 39/60 1/10 + 25 0 0 33/60 1/10 + 26 0 0 36/60 1/10 + 27 0 0 39/60 1/10 + 28 0 0 42/60 1/10 + 29 0 0 45/60 1/10 + 30 0 0 48/60 1/10 + 31 0 0 51/60 1/10 + 32 0 0 42/60 1/10 + 33 0 0 33/60 1/10 + 34 0 0 36/60 1/10 + 35 0 0 39/60 1/10 + 36 0 0 42/60 1/10 + 37 0 0 45/60 1/10 + 38 0 0 48/60 1/10 + 39 0 0 51/60 1/10 + 40 0 0 45/60 1/10 + 41 0 0 33/60 1/10 + 42 0 0 36/60 1/10 + 43 0 0 39/60 1/10 + 44 0 0 42/60 1/10 + 45 0 0 45/60 1/10 + 46 0 0 48/60 1/10 + 47 0 0 51/60 1/10 + 48 0 0 48/60 1/10 + 49 0 0 33/60 1/10 + 50 0 0 36/60 1/10 + 51 0 0 39/60 1/10 + 52 0 0 42/60 1/10 + 53 0 0 45/60 1/10 + 54 0 0 48/60 1/10 + 55 0 0 51/60 1/10 + 56 2 0 51/60 1/10 + 57 0 0 33/60 1/10 + 58 0 0 36/60 1/10 + 59 0 0 39/60 1/10 + 60 0 0 42/60 1/10 + 61 0 0 45/60 1/10 + 62 0 0 48/60 1/10 + 63 0 0 51/60 1/10 + Class 'class-default': medium priority + bandwidth 66750 kb/s, burst 163868 bytes, queue length/limit 0/50 + mean input rate 0 bits/s, mean output rate 0 bits/s + packets output 0, packets dropped 0 (0%) + bytes output 0, bytes dropped 0 (0%) + remaining-bandwidth share 66, excess-rate-priority 0, excess packets sent 0 + Interface total: + bandwidth 100000 kb/s + mean input rate 104400 bits/s, mean output rate 104400 bits/s + packets output 704745364, packets dropped 707805 (0%) + bytes output 222877578682, bytes dropped 939630669 (0%) diff --git a/tests/oneaccess_oneos/show_policy-interface_output/show_policy-interface_output.lbb_140.yml b/tests/oneaccess_oneos/show_policy-interface_output/show_policy-interface_output.lbb_140.yml new file mode 100644 index 0000000000..fa30831786 --- /dev/null +++ b/tests/oneaccess_oneos/show_policy-interface_output/show_policy-interface_output.lbb_140.yml @@ -0,0 +1,702 @@ +--- +parsed_sample: + - interface: "FastEthernet 1/0" + service_policy_out_parent: "L3VPN_SHARED_VLAN_SHAPE_CE_OUT" + class_parent: "CLASS_ANY" + class_parent_priority: "" + service_policy_out_child: "" + class_child: "" + packets: "705455781" + bytes: "202655648081" + dscp_remarked: "0" + mean_intput_rate_bits_second: "76250" + total_bw_kbs: "" + total_queue_length: "" + total_mean_input_rate_bps: "104400" + total_mean_output_rate_bps: "104400" + total_output_packets: "704745364" + total_output_packets_dropped: "707805" + total_output_packets_dropped_percent: "0" + total_output_bytes: "222877578682" + total_output_bytes_dropped: "939630669" + total_output_bytes_dropped_percent: "0" + qos_bytes_out: "" + qos_bytes_dropped: "" + qos_bytes_dropped_percent: "" + qos_average_input_bps: "" + qos_average_output_bps: "" + qos_packets_out: "" + qos_packets_dropped: "" + qos_packets_dropped_percent: "" + qos_bw_kb: "" + qos_burst_b: "" + qos_queue_length: "" + qos_queue_limit: "" + qos_remaining_bw_share: "1" + qos_excess_rate_priority: "0" + qos_excess_packets: "222911" + - interface: "FastEthernet 1/0" + service_policy_out_parent: "L3VPN_SHARED_VLAN_SHAPE_CE_OUT" + class_parent: "CLASS_ANY" + class_parent_priority: "" + service_policy_out_child: "L3VPN_SHARED_QOS_CE_OUT" + class_child: "REAL-TIME" + packets: "82440" + bytes: "22296428" + dscp_remarked: "" + mean_intput_rate_bits_second: "0" + total_bw_kbs: "" + total_queue_length: "" + total_mean_input_rate_bps: "104400" + total_mean_output_rate_bps: "104400" + total_output_packets: "704745364" + total_output_packets_dropped: "707805" + total_output_packets_dropped_percent: "0" + total_output_bytes: "222877578682" + total_output_bytes_dropped: "939630669" + total_output_bytes_dropped_percent: "0" + qos_bytes_out: "" + qos_bytes_dropped: "" + qos_bytes_dropped_percent: "" + qos_average_input_bps: "" + qos_average_output_bps: "" + qos_packets_out: "" + qos_packets_dropped: "" + qos_packets_dropped_percent: "" + qos_bw_kb: "" + qos_burst_b: "" + qos_queue_length: "" + qos_queue_limit: "" + qos_remaining_bw_share: "1" + qos_excess_rate_priority: "0" + qos_excess_packets: "222911" + - interface: "FastEthernet 1/0" + service_policy_out_parent: "L3VPN_SHARED_VLAN_SHAPE_CE_OUT" + class_parent: "CLASS_ANY" + class_parent_priority: "" + service_policy_out_child: "L3VPN_SHARED_QOS_CE_OUT" + class_child: "MANAGEMENT" + packets: "3881496" + bytes: "352515276" + dscp_remarked: "0" + mean_intput_rate_bits_second: "76250" + total_bw_kbs: "" + total_queue_length: "" + total_mean_input_rate_bps: "104400" + total_mean_output_rate_bps: "104400" + total_output_packets: "704745364" + total_output_packets_dropped: "707805" + total_output_packets_dropped_percent: "0" + total_output_bytes: "222877578682" + total_output_bytes_dropped: "939630669" + total_output_bytes_dropped_percent: "0" + qos_bytes_out: "" + qos_bytes_dropped: "" + qos_bytes_dropped_percent: "" + qos_average_input_bps: "" + qos_average_output_bps: "" + qos_packets_out: "" + qos_packets_dropped: "" + qos_packets_dropped_percent: "" + qos_bw_kb: "" + qos_burst_b: "" + qos_queue_length: "" + qos_queue_limit: "" + qos_remaining_bw_share: "1" + qos_excess_rate_priority: "0" + qos_excess_packets: "222911" + - interface: "FastEthernet 1/0" + service_policy_out_parent: "L3VPN_SHARED_VLAN_SHAPE_CE_OUT" + class_parent: "CLASS_ANY" + class_parent_priority: "" + service_policy_out_child: "L3VPN_SHARED_QOS_CE_OUT" + class_child: "ROUTING" + packets: "94685677" + bytes: "20577282182" + dscp_remarked: "0" + mean_intput_rate_bits_second: "0" + total_bw_kbs: "" + total_queue_length: "" + total_mean_input_rate_bps: "104400" + total_mean_output_rate_bps: "104400" + total_output_packets: "704745364" + total_output_packets_dropped: "707805" + total_output_packets_dropped_percent: "0" + total_output_bytes: "222877578682" + total_output_bytes_dropped: "939630669" + total_output_bytes_dropped_percent: "0" + qos_bytes_out: "" + qos_bytes_dropped: "" + qos_bytes_dropped_percent: "" + qos_average_input_bps: "" + qos_average_output_bps: "" + qos_packets_out: "" + qos_packets_dropped: "" + qos_packets_dropped_percent: "" + qos_bw_kb: "" + qos_burst_b: "" + qos_queue_length: "" + qos_queue_limit: "" + qos_remaining_bw_share: "1" + qos_excess_rate_priority: "0" + qos_excess_packets: "222911" + - interface: "FastEthernet 1/0" + service_policy_out_parent: "L3VPN_SHARED_VLAN_SHAPE_CE_OUT" + class_parent: "CLASS_ANY" + class_parent_priority: "" + service_policy_out_child: "L3VPN_SHARED_QOS_CE_OUT" + class_child: "PREMIUM" + packets: "866614" + bytes: "336167380" + dscp_remarked: "17" + mean_intput_rate_bits_second: "0" + total_bw_kbs: "" + total_queue_length: "" + total_mean_input_rate_bps: "104400" + total_mean_output_rate_bps: "104400" + total_output_packets: "704745364" + total_output_packets_dropped: "707805" + total_output_packets_dropped_percent: "0" + total_output_bytes: "222877578682" + total_output_bytes_dropped: "939630669" + total_output_bytes_dropped_percent: "0" + qos_bytes_out: "" + qos_bytes_dropped: "" + qos_bytes_dropped_percent: "" + qos_average_input_bps: "" + qos_average_output_bps: "" + qos_packets_out: "" + qos_packets_dropped: "" + qos_packets_dropped_percent: "" + qos_bw_kb: "" + qos_burst_b: "" + qos_queue_length: "" + qos_queue_limit: "" + qos_remaining_bw_share: "1" + qos_excess_rate_priority: "0" + qos_excess_packets: "222911" + - interface: "FastEthernet 1/0" + service_policy_out_parent: "L3VPN_SHARED_VLAN_SHAPE_CE_OUT" + class_parent: "CLASS_ANY" + class_parent_priority: "" + service_policy_out_child: "L3VPN_SHARED_QOS_CE_OUT" + class_child: "GOLD" + packets: "45391" + bytes: "15054274" + dscp_remarked: "111" + mean_intput_rate_bits_second: "0" + total_bw_kbs: "" + total_queue_length: "" + total_mean_input_rate_bps: "104400" + total_mean_output_rate_bps: "104400" + total_output_packets: "704745364" + total_output_packets_dropped: "707805" + total_output_packets_dropped_percent: "0" + total_output_bytes: "222877578682" + total_output_bytes_dropped: "939630669" + total_output_bytes_dropped_percent: "0" + qos_bytes_out: "" + qos_bytes_dropped: "" + qos_bytes_dropped_percent: "" + qos_average_input_bps: "" + qos_average_output_bps: "" + qos_packets_out: "" + qos_packets_dropped: "" + qos_packets_dropped_percent: "" + qos_bw_kb: "" + qos_burst_b: "" + qos_queue_length: "" + qos_queue_limit: "" + qos_remaining_bw_share: "1" + qos_excess_rate_priority: "0" + qos_excess_packets: "222911" + - interface: "FastEthernet 1/0" + service_policy_out_parent: "L3VPN_SHARED_VLAN_SHAPE_CE_OUT" + class_parent: "CLASS_ANY" + class_parent_priority: "" + service_policy_out_child: "L3VPN_SHARED_QOS_CE_OUT" + class_child: "SILVER" + packets: "5160082" + bytes: "2081326098" + dscp_remarked: "968" + mean_intput_rate_bits_second: "0" + total_bw_kbs: "" + total_queue_length: "" + total_mean_input_rate_bps: "104400" + total_mean_output_rate_bps: "104400" + total_output_packets: "704745364" + total_output_packets_dropped: "707805" + total_output_packets_dropped_percent: "0" + total_output_bytes: "222877578682" + total_output_bytes_dropped: "939630669" + total_output_bytes_dropped_percent: "0" + qos_bytes_out: "" + qos_bytes_dropped: "" + qos_bytes_dropped_percent: "" + qos_average_input_bps: "" + qos_average_output_bps: "" + qos_packets_out: "" + qos_packets_dropped: "" + qos_packets_dropped_percent: "" + qos_bw_kb: "" + qos_burst_b: "" + qos_queue_length: "" + qos_queue_limit: "" + qos_remaining_bw_share: "1" + qos_excess_rate_priority: "0" + qos_excess_packets: "222911" + - interface: "FastEthernet 1/0" + service_policy_out_parent: "L3VPN_SHARED_VLAN_SHAPE_CE_OUT" + class_parent: "CLASS_ANY" + class_parent_priority: "" + service_policy_out_child: "L3VPN_SHARED_QOS_CE_OUT" + class_child: "BRONZE" + packets: "76569" + bytes: "28162916" + dscp_remarked: "70513" + mean_intput_rate_bits_second: "0" + total_bw_kbs: "" + total_queue_length: "" + total_mean_input_rate_bps: "104400" + total_mean_output_rate_bps: "104400" + total_output_packets: "704745364" + total_output_packets_dropped: "707805" + total_output_packets_dropped_percent: "0" + total_output_bytes: "222877578682" + total_output_bytes_dropped: "939630669" + total_output_bytes_dropped_percent: "0" + qos_bytes_out: "" + qos_bytes_dropped: "" + qos_bytes_dropped_percent: "" + qos_average_input_bps: "" + qos_average_output_bps: "" + qos_packets_out: "" + qos_packets_dropped: "" + qos_packets_dropped_percent: "" + qos_bw_kb: "" + qos_burst_b: "" + qos_queue_length: "" + qos_queue_limit: "" + qos_remaining_bw_share: "1" + qos_excess_rate_priority: "0" + qos_excess_packets: "222911" + - interface: "FastEthernet 1/0" + service_policy_out_parent: "L3VPN_SHARED_VLAN_SHAPE_CE_OUT" + class_parent: "CLASS_ANY" + class_parent_priority: "" + service_policy_out_child: "L3VPN_SHARED_QOS_CE_OUT" + class_child: "class-default" + packets: "600657514" + bytes: "179242844271" + dscp_remarked: "0" + mean_intput_rate_bits_second: "0" + total_bw_kbs: "" + total_queue_length: "" + total_mean_input_rate_bps: "104400" + total_mean_output_rate_bps: "104400" + total_output_packets: "704745364" + total_output_packets_dropped: "707805" + total_output_packets_dropped_percent: "0" + total_output_bytes: "222877578682" + total_output_bytes_dropped: "939630669" + total_output_bytes_dropped_percent: "0" + qos_bytes_out: "" + qos_bytes_dropped: "" + qos_bytes_dropped_percent: "" + qos_average_input_bps: "" + qos_average_output_bps: "" + qos_packets_out: "" + qos_packets_dropped: "" + qos_packets_dropped_percent: "" + qos_bw_kb: "" + qos_burst_b: "" + qos_queue_length: "" + qos_queue_limit: "" + qos_remaining_bw_share: "1" + qos_excess_rate_priority: "0" + qos_excess_packets: "222911" + - interface: "FastEthernet 1/0" + service_policy_out_parent: "L3VPN_SHARED_VLAN_SHAPE_CE_OUT" + class_parent: "class-default" + class_parent_priority: "" + service_policy_out_child: "L3VPN_SHARED_QOS_CE_OUT" + class_child: "" + packets: "0" + bytes: "0" + dscp_remarked: "0" + mean_intput_rate_bits_second: "0" + total_bw_kbs: "" + total_queue_length: "" + total_mean_input_rate_bps: "104400" + total_mean_output_rate_bps: "104400" + total_output_packets: "704745364" + total_output_packets_dropped: "707805" + total_output_packets_dropped_percent: "0" + total_output_bytes: "222877578682" + total_output_bytes_dropped: "939630669" + total_output_bytes_dropped_percent: "0" + qos_bytes_out: "" + qos_bytes_dropped: "" + qos_bytes_dropped_percent: "" + qos_average_input_bps: "" + qos_average_output_bps: "" + qos_packets_out: "" + qos_packets_dropped: "" + qos_packets_dropped_percent: "" + qos_bw_kb: "" + qos_burst_b: "" + qos_queue_length: "" + qos_queue_limit: "" + qos_remaining_bw_share: "1" + qos_excess_rate_priority: "0" + qos_excess_packets: "222911" + - interface: "FastEthernet 1/0" + service_policy_out_parent: "L3VPN_SHARED_VLAN_SHAPE_CE_OUT" + class_parent: "CLASS_ANY" + class_parent_priority: "medium priority (no excess allowed)" + service_policy_out_child: "L3VPN_SHARED_QOS_CE_OUT" + class_child: "" + packets: "" + bytes: "222578689918" + dscp_remarked: "" + mean_intput_rate_bits_second: "" + total_bw_kbs: "" + total_queue_length: "" + total_mean_input_rate_bps: "104400" + total_mean_output_rate_bps: "104400" + total_output_packets: "704745364" + total_output_packets_dropped: "707805" + total_output_packets_dropped_percent: "0" + total_output_bytes: "222877578682" + total_output_bytes_dropped: "939630669" + total_output_bytes_dropped_percent: "0" + qos_bytes_out: "222578689918" + qos_bytes_dropped: "939630669" + qos_bytes_dropped_percent: "0" + qos_average_input_bps: "73400" + qos_average_output_bps: "73400" + qos_packets_out: "700594742" + qos_packets_dropped: "707805" + qos_packets_dropped_percent: "0" + qos_bw_kb: "" + qos_burst_b: "" + qos_queue_length: "" + qos_queue_limit: "" + qos_remaining_bw_share: "1" + qos_excess_rate_priority: "0" + qos_excess_packets: "222911" + - interface: "FastEthernet 1/0" + service_policy_out_parent: "L3VPN_SHARED_VLAN_SHAPE_CE_OUT" + class_parent: "REAL-TIME" + class_parent_priority: "high priority" + service_policy_out_child: "L3VPN_SHARED_QOS_CE_OUT" + class_child: "" + packets: "" + bytes: "22607716" + dscp_remarked: "" + mean_intput_rate_bits_second: "" + total_bw_kbs: "" + total_queue_length: "" + total_mean_input_rate_bps: "104400" + total_mean_output_rate_bps: "104400" + total_output_packets: "704745364" + total_output_packets_dropped: "707805" + total_output_packets_dropped_percent: "0" + total_output_bytes: "222877578682" + total_output_bytes_dropped: "939630669" + total_output_bytes_dropped_percent: "0" + qos_bytes_out: "22607716" + qos_bytes_dropped: "0" + qos_bytes_dropped_percent: "0" + qos_average_input_bps: "0" + qos_average_output_bps: "0" + qos_packets_out: "79705" + qos_packets_dropped: "0" + qos_packets_dropped_percent: "0" + qos_bw_kb: "512" + qos_burst_b: "32249" + qos_queue_length: "0" + qos_queue_limit: "50" + qos_remaining_bw_share: "1" + qos_excess_rate_priority: "0" + qos_excess_packets: "222911" + - interface: "FastEthernet 1/0" + service_policy_out_parent: "L3VPN_SHARED_VLAN_SHAPE_CE_OUT" + class_parent: "MANAGEMENT" + class_parent_priority: "medium priority" + service_policy_out_child: "L3VPN_SHARED_QOS_CE_OUT" + class_child: "" + packets: "" + bytes: "468946094" + dscp_remarked: "" + mean_intput_rate_bits_second: "" + total_bw_kbs: "" + total_queue_length: "" + total_mean_input_rate_bps: "104400" + total_mean_output_rate_bps: "104400" + total_output_packets: "704745364" + total_output_packets_dropped: "707805" + total_output_packets_dropped_percent: "0" + total_output_bytes: "222877578682" + total_output_bytes_dropped: "939630669" + total_output_bytes_dropped_percent: "0" + qos_bytes_out: "468946094" + qos_bytes_dropped: "0" + qos_bytes_dropped_percent: "0" + qos_average_input_bps: "73200" + qos_average_output_bps: "73200" + qos_packets_out: "3881341" + qos_packets_dropped: "0" + qos_packets_dropped_percent: "0" + qos_bw_kb: "9" + qos_burst_b: "1870" + qos_queue_length: "0" + qos_queue_limit: "50" + qos_remaining_bw_share: "1" + qos_excess_rate_priority: "0" + qos_excess_packets: "222911" + - interface: "FastEthernet 1/0" + service_policy_out_parent: "L3VPN_SHARED_VLAN_SHAPE_CE_OUT" + class_parent: "ROUTING" + class_parent_priority: "medium priority" + service_policy_out_child: "L3VPN_SHARED_QOS_CE_OUT" + class_child: "" + packets: "" + bytes: "23417852492" + dscp_remarked: "" + mean_intput_rate_bits_second: "" + total_bw_kbs: "" + total_queue_length: "" + total_mean_input_rate_bps: "104400" + total_mean_output_rate_bps: "104400" + total_output_packets: "704745364" + total_output_packets_dropped: "707805" + total_output_packets_dropped_percent: "0" + total_output_bytes: "222877578682" + total_output_bytes_dropped: "939630669" + total_output_bytes_dropped_percent: "0" + qos_bytes_out: "23417852492" + qos_bytes_dropped: "0" + qos_bytes_dropped_percent: "0" + qos_average_input_bps: "0" + qos_average_output_bps: "0" + qos_packets_out: "94685677" + qos_packets_dropped: "0" + qos_packets_dropped_percent: "0" + qos_bw_kb: "9" + qos_burst_b: "1870" + qos_queue_length: "0" + qos_queue_limit: "50" + qos_remaining_bw_share: "1" + qos_excess_rate_priority: "0" + qos_excess_packets: "222911" + - interface: "FastEthernet 1/0" + service_policy_out_parent: "L3VPN_SHARED_VLAN_SHAPE_CE_OUT" + class_parent: "PREMIUM" + class_parent_priority: "medium priority" + service_policy_out_child: "L3VPN_SHARED_QOS_CE_OUT" + class_child: "" + packets: "" + bytes: "362165800" + dscp_remarked: "" + mean_intput_rate_bits_second: "" + total_bw_kbs: "" + total_queue_length: "" + total_mean_input_rate_bps: "104400" + total_mean_output_rate_bps: "104400" + total_output_packets: "704745364" + total_output_packets_dropped: "707805" + total_output_packets_dropped_percent: "0" + total_output_bytes: "222877578682" + total_output_bytes_dropped: "939630669" + total_output_bytes_dropped_percent: "0" + qos_bytes_out: "362165800" + qos_bytes_dropped: "0" + qos_bytes_dropped_percent: "0" + qos_average_input_bps: "0" + qos_average_output_bps: "0" + qos_packets_out: "866614" + qos_packets_dropped: "0" + qos_packets_dropped_percent: "0" + qos_bw_kb: "11452" + qos_burst_b: "28624" + qos_queue_length: "0" + qos_queue_limit: "60" + qos_remaining_bw_share: "1" + qos_excess_rate_priority: "0" + qos_excess_packets: "83405404" + - interface: "FastEthernet 1/0" + service_policy_out_parent: "L3VPN_SHARED_VLAN_SHAPE_CE_OUT" + class_parent: "GOLD" + class_parent_priority: "medium priority" + service_policy_out_child: "L3VPN_SHARED_QOS_CE_OUT" + class_child: "" + packets: "" + bytes: "16416004" + dscp_remarked: "" + mean_intput_rate_bits_second: "" + total_bw_kbs: "" + total_queue_length: "" + total_mean_input_rate_bps: "104400" + total_mean_output_rate_bps: "104400" + total_output_packets: "704745364" + total_output_packets_dropped: "707805" + total_output_packets_dropped_percent: "0" + total_output_bytes: "222877578682" + total_output_bytes_dropped: "939630669" + total_output_bytes_dropped_percent: "0" + qos_bytes_out: "16416004" + qos_bytes_dropped: "0" + qos_bytes_dropped_percent: "0" + qos_average_input_bps: "0" + qos_average_output_bps: "0" + qos_packets_out: "45391" + qos_packets_dropped: "0" + qos_packets_dropped_percent: "0" + qos_bw_kb: "8180" + qos_burst_b: "29750" + qos_queue_length: "0" + qos_queue_limit: "60" + qos_remaining_bw_share: "34" + qos_excess_rate_priority: "0" + qos_excess_packets: "279" + - interface: "FastEthernet 1/0" + service_policy_out_parent: "L3VPN_SHARED_VLAN_SHAPE_CE_OUT" + class_parent: "SILVER" + class_parent_priority: "medium priority" + service_policy_out_child: "L3VPN_SHARED_QOS_CE_OUT" + class_child: "" + packets: "" + bytes: "2236128558" + dscp_remarked: "" + mean_intput_rate_bits_second: "" + total_bw_kbs: "" + total_queue_length: "" + total_mean_input_rate_bps: "104400" + total_mean_output_rate_bps: "104400" + total_output_packets: "704745364" + total_output_packets_dropped: "707805" + total_output_packets_dropped_percent: "0" + total_output_bytes: "222877578682" + total_output_bytes_dropped: "939630669" + total_output_bytes_dropped_percent: "0" + qos_bytes_out: "2236128558" + qos_bytes_dropped: "0" + qos_bytes_dropped_percent: "0" + qos_average_input_bps: "0" + qos_average_output_bps: "0" + qos_packets_out: "5160082" + qos_packets_dropped: "0" + qos_packets_dropped_percent: "0" + qos_bw_kb: "4908" + qos_burst_b: "30749" + qos_queue_length: "0" + qos_queue_limit: "60" + qos_remaining_bw_share: "24" + qos_excess_rate_priority: "0" + qos_excess_packets: "0" + - interface: "FastEthernet 1/0" + service_policy_out_parent: "L3VPN_SHARED_VLAN_SHAPE_CE_OUT" + class_parent: "BRONZE" + class_parent_priority: "medium priority" + service_policy_out_child: "L3VPN_SHARED_QOS_CE_OUT" + class_child: "" + packets: "" + bytes: "30364562" + dscp_remarked: "" + mean_intput_rate_bits_second: "" + total_bw_kbs: "" + total_queue_length: "" + total_mean_input_rate_bps: "104400" + total_mean_output_rate_bps: "104400" + total_output_packets: "704745364" + total_output_packets_dropped: "707805" + total_output_packets_dropped_percent: "0" + total_output_bytes: "222877578682" + total_output_bytes_dropped: "939630669" + total_output_bytes_dropped_percent: "0" + qos_bytes_out: "30364562" + qos_bytes_dropped: "95424" + qos_bytes_dropped_percent: "0" + qos_average_input_bps: "0" + qos_average_output_bps: "0" + qos_packets_out: "76493" + qos_packets_dropped: "76" + qos_packets_dropped_percent: "0" + qos_bw_kb: "3272" + qos_burst_b: "31249" + qos_queue_length: "0" + qos_queue_limit: "60" + qos_remaining_bw_share: "14" + qos_excess_rate_priority: "0" + qos_excess_packets: "42" + - interface: "FastEthernet 1/0" + service_policy_out_parent: "L3VPN_SHARED_VLAN_SHAPE_CE_OUT" + class_parent: "class-default" + class_parent_priority: "medium priority" + service_policy_out_child: "L3VPN_SHARED_QOS_CE_OUT" + class_child: "" + packets: "" + bytes: "196024209496" + dscp_remarked: "" + mean_intput_rate_bits_second: "" + total_bw_kbs: "" + total_queue_length: "" + total_mean_input_rate_bps: "104400" + total_mean_output_rate_bps: "104400" + total_output_packets: "704745364" + total_output_packets_dropped: "707805" + total_output_packets_dropped_percent: "0" + total_output_bytes: "222877578682" + total_output_bytes_dropped: "939630669" + total_output_bytes_dropped_percent: "0" + qos_bytes_out: "196024209496" + qos_bytes_dropped: "939535245" + qos_bytes_dropped_percent: "0" + qos_average_input_bps: "96" + qos_average_output_bps: "96" + qos_packets_out: "595799441" + qos_packets_dropped: "707729" + qos_packets_dropped_percent: "0" + qos_bw_kb: "4908" + qos_burst_b: "30749" + qos_queue_length: "0" + qos_queue_limit: "60" + qos_remaining_bw_share: "9" + qos_excess_rate_priority: "0" + qos_excess_packets: "10772" + - interface: "FastEthernet 1/0" + service_policy_out_parent: "L3VPN_SHARED_VLAN_SHAPE_CE_OUT" + class_parent: "class-default" + class_parent_priority: "medium priority" + service_policy_out_child: "L3VPN_SHARED_QOS_CE_OUT" + class_child: "" + packets: "" + bytes: "0" + dscp_remarked: "" + mean_intput_rate_bits_second: "" + total_bw_kbs: "" + total_queue_length: "" + total_mean_input_rate_bps: "104400" + total_mean_output_rate_bps: "104400" + total_output_packets: "704745364" + total_output_packets_dropped: "707805" + total_output_packets_dropped_percent: "0" + total_output_bytes: "222877578682" + total_output_bytes_dropped: "939630669" + total_output_bytes_dropped_percent: "0" + qos_bytes_out: "0" + qos_bytes_dropped: "0" + qos_bytes_dropped_percent: "0" + qos_average_input_bps: "0" + qos_average_output_bps: "0" + qos_packets_out: "0" + qos_packets_dropped: "0" + qos_packets_dropped_percent: "0" + qos_bw_kb: "66750" + qos_burst_b: "163868" + qos_queue_length: "0" + qos_queue_limit: "50" + qos_remaining_bw_share: "14" + qos_excess_rate_priority: "0" + qos_excess_packets: "52266475" diff --git a/tests/oneaccess_oneos/show_policy-interface_output/show_policy-interface_output.lbb_150.raw b/tests/oneaccess_oneos/show_policy-interface_output/show_policy-interface_output.lbb_150.raw new file mode 100644 index 0000000000..9185f600aa --- /dev/null +++ b/tests/oneaccess_oneos/show_policy-interface_output/show_policy-interface_output.lbb_150.raw @@ -0,0 +1,427 @@ +GigabitEthernet 1/0: service-policy output L3VPN_DEDICATED_VLAN_SHAPE_CE_OUT +traffic statistics: + Class 'CLASS_ANY': + 17116556 packets, 2997937810 bytes, 0 dscp remarked, mean input rate 8290 bits/s + Service-policy VDSL_QOS_4M_OUT : + Class 'MANAGEMENT': + 3526876 packets, 284813499 bytes, 0 dscp remarked, mean input rate 8290 bits/s + Class 'ROUTING': + 72309 packets, 4451262 bytes, 0 dscp remarked, mean input rate 0 bits/s + Class 'PREMIUM': + 19374 packets, 13810113 bytes, 0 dscp remarked, mean input rate 0 bits/s + Class 'GOLD': + 0 packets, 0 bytes, 0 dscp remarked, mean input rate 0 bits/s + Class 'SILVER': + 0 packets, 0 bytes, 0 dscp remarked, mean input rate 0 bits/s + Class 'BRONZE': + 0 packets, 0 bytes, 0 dscp remarked, mean input rate 0 bits/s + Class 'class-default': + 13497997 packets, 2694862936 bytes, 0 dscp remarked, mean input rate 0 bits/s + Class 'class-default': + 0 packets, 0 bytes, 0 dscp remarked, mean input rate 0 bits/s + +output queuing statistics: + Class 'CLASS_ANY': medium priority (no excess allowed) + bandwidth 3800 kb/s, burst 34368 bytes, queue length/limit 0/50 + mean input rate 0 bits/s, mean output rate 0 bits/s + packets output 14594313, packets dropped 0 (0%) + bytes output 3139710008, bytes dropped 0 (0%) + Service-policy VDSL_QOS_4M_OUT : + Class 'MANAGEMENT': medium priority + bandwidth 9 kb/s, burst 7104 bytes, queue length/limit 0/50 + mean input rate 0 bits/s, mean output rate 0 bits/s + packets output 1077447, packets dropped 0 (0%) + bytes output 133680047, bytes dropped 0 (0%) + remaining-bandwidth share 1, excess-rate-priority 0, excess packets sent 58982 + Class 'ROUTING': medium priority + bandwidth 9 kb/s, burst 7104 bytes, queue length/limit 0/50 + mean input rate 0 bits/s, mean output rate 0 bits/s + packets output 0, packets dropped 0 (0%) + bytes output 0, bytes dropped 0 (0%) + remaining-bandwidth share 1, excess-rate-priority 0, excess packets sent 0 + Class 'PREMIUM': medium priority + bandwidth 1323 kb/s, burst 34496 bytes, queue length/limit 0/60 + mean input rate 0 bits/s, mean output rate 0 bits/s + packets output 19374, packets dropped 0 (0%) + bytes output 14236341, bytes dropped 0 (0%) + remaining-bandwidth share 34, excess-rate-priority 0, excess packets sent 0 + weight random early detection: + exponential weight: 7 + + Dscp Random drop Tail drop Min/Max Mark + pkts pkts threshold probability + 0 0 0 30/60 1/10 + 1 0 0 33/60 1/10 + 2 0 0 36/60 1/10 + 3 0 0 39/60 1/10 + 4 0 0 42/60 1/10 + 5 0 0 45/60 1/10 + 6 0 0 48/60 1/10 + 7 0 0 51/60 1/10 + 8 0 0 33/60 1/10 + 9 0 0 33/60 1/10 + 10 0 0 36/60 1/10 + 11 0 0 39/60 1/10 + 12 0 0 42/60 1/10 + 13 0 0 45/60 1/10 + 14 0 0 48/60 1/10 + 15 0 0 51/60 1/10 + 16 0 0 36/60 1/10 + 17 0 0 33/60 1/10 + 18 0 0 36/60 1/10 + 19 0 0 39/60 1/10 + 20 0 0 42/60 1/10 + 21 0 0 45/60 1/10 + 22 0 0 48/60 1/10 + 23 0 0 51/60 1/10 + 24 0 0 39/60 1/10 + 25 0 0 33/60 1/10 + 26 0 0 36/60 1/10 + 27 0 0 39/60 1/10 + 28 0 0 42/60 1/10 + 29 0 0 45/60 1/10 + 30 0 0 48/60 1/10 + 31 0 0 51/60 1/10 + 32 0 0 42/60 1/10 + 33 0 0 33/60 1/10 + 34 0 0 36/60 1/10 + 35 0 0 39/60 1/10 + 36 0 0 42/60 1/10 + 37 0 0 45/60 1/10 + 38 0 0 48/60 1/10 + 39 0 0 51/60 1/10 + 40 0 0 45/60 1/10 + 41 0 0 33/60 1/10 + 42 0 0 36/60 1/10 + 43 0 0 39/60 1/10 + 44 0 0 42/60 1/10 + 45 0 0 45/60 1/10 + 46 0 0 48/60 1/10 + 47 0 0 51/60 1/10 + 48 0 0 48/60 1/10 + 49 0 0 33/60 1/10 + 50 0 0 36/60 1/10 + 51 0 0 39/60 1/10 + 52 0 0 42/60 1/10 + 53 0 0 45/60 1/10 + 54 0 0 48/60 1/10 + 55 0 0 51/60 1/10 + 56 0 0 51/60 1/10 + 57 0 0 33/60 1/10 + 58 0 0 36/60 1/10 + 59 0 0 39/60 1/10 + 60 0 0 42/60 1/10 + 61 0 0 45/60 1/10 + 62 0 0 48/60 1/10 + 63 0 0 51/60 1/10 + Class 'GOLD': medium priority + bandwidth 945 kb/s, burst 34496 bytes, queue length/limit 0/60 + mean input rate 0 bits/s, mean output rate 0 bits/s + packets output 0, packets dropped 0 (0%) + bytes output 0, bytes dropped 0 (0%) + remaining-bandwidth share 24, excess-rate-priority 0, excess packets sent 0 + weight random early detection: + exponential weight: 7 + + Dscp Random drop Tail drop Min/Max Mark + pkts pkts threshold probability + 0 0 0 30/60 1/10 + 1 0 0 33/60 1/10 + 2 0 0 36/60 1/10 + 3 0 0 39/60 1/10 + 4 0 0 42/60 1/10 + 5 0 0 45/60 1/10 + 6 0 0 48/60 1/10 + 7 0 0 51/60 1/10 + 8 0 0 33/60 1/10 + 9 0 0 33/60 1/10 + 10 0 0 36/60 1/10 + 11 0 0 39/60 1/10 + 12 0 0 42/60 1/10 + 13 0 0 45/60 1/10 + 14 0 0 48/60 1/10 + 15 0 0 51/60 1/10 + 16 0 0 36/60 1/10 + 17 0 0 33/60 1/10 + 18 0 0 36/60 1/10 + 19 0 0 39/60 1/10 + 20 0 0 42/60 1/10 + 21 0 0 45/60 1/10 + 22 0 0 48/60 1/10 + 23 0 0 51/60 1/10 + 24 0 0 39/60 1/10 + 25 0 0 33/60 1/10 + 26 0 0 36/60 1/10 + 27 0 0 39/60 1/10 + 28 0 0 42/60 1/10 + 29 0 0 45/60 1/10 + 30 0 0 48/60 1/10 + 31 0 0 51/60 1/10 + 32 0 0 42/60 1/10 + 33 0 0 33/60 1/10 + 34 0 0 36/60 1/10 + 35 0 0 39/60 1/10 + 36 0 0 42/60 1/10 + 37 0 0 45/60 1/10 + 38 0 0 48/60 1/10 + 39 0 0 51/60 1/10 + 40 0 0 45/60 1/10 + 41 0 0 33/60 1/10 + 42 0 0 36/60 1/10 + 43 0 0 39/60 1/10 + 44 0 0 42/60 1/10 + 45 0 0 45/60 1/10 + 46 0 0 48/60 1/10 + 47 0 0 51/60 1/10 + 48 0 0 48/60 1/10 + 49 0 0 33/60 1/10 + 50 0 0 36/60 1/10 + 51 0 0 39/60 1/10 + 52 0 0 42/60 1/10 + 53 0 0 45/60 1/10 + 54 0 0 48/60 1/10 + 55 0 0 51/60 1/10 + 56 0 0 51/60 1/10 + 57 0 0 33/60 1/10 + 58 0 0 36/60 1/10 + 59 0 0 39/60 1/10 + 60 0 0 42/60 1/10 + 61 0 0 45/60 1/10 + 62 0 0 48/60 1/10 + 63 0 0 51/60 1/10 + Class 'SILVER': medium priority + bandwidth 567 kb/s, burst 34496 bytes, queue length/limit 0/60 + mean input rate 0 bits/s, mean output rate 0 bits/s + packets output 0, packets dropped 0 (0%) + bytes output 0, bytes dropped 0 (0%) + remaining-bandwidth share 14, excess-rate-priority 0, excess packets sent 0 + weight random early detection: + exponential weight: 6 + + Dscp Random drop Tail drop Min/Max Mark + pkts pkts threshold probability + 0 0 0 30/60 1/10 + 1 0 0 33/60 1/10 + 2 0 0 36/60 1/10 + 3 0 0 39/60 1/10 + 4 0 0 42/60 1/10 + 5 0 0 45/60 1/10 + 6 0 0 48/60 1/10 + 7 0 0 51/60 1/10 + 8 0 0 33/60 1/10 + 9 0 0 33/60 1/10 + 10 0 0 36/60 1/10 + 11 0 0 39/60 1/10 + 12 0 0 42/60 1/10 + 13 0 0 45/60 1/10 + 14 0 0 48/60 1/10 + 15 0 0 51/60 1/10 + 16 0 0 36/60 1/10 + 17 0 0 33/60 1/10 + 18 0 0 36/60 1/10 + 19 0 0 39/60 1/10 + 20 0 0 42/60 1/10 + 21 0 0 45/60 1/10 + 22 0 0 48/60 1/10 + 23 0 0 51/60 1/10 + 24 0 0 39/60 1/10 + 25 0 0 33/60 1/10 + 26 0 0 36/60 1/10 + 27 0 0 39/60 1/10 + 28 0 0 42/60 1/10 + 29 0 0 45/60 1/10 + 30 0 0 48/60 1/10 + 31 0 0 51/60 1/10 + 32 0 0 42/60 1/10 + 33 0 0 33/60 1/10 + 34 0 0 36/60 1/10 + 35 0 0 39/60 1/10 + 36 0 0 42/60 1/10 + 37 0 0 45/60 1/10 + 38 0 0 48/60 1/10 + 39 0 0 51/60 1/10 + 40 0 0 45/60 1/10 + 41 0 0 33/60 1/10 + 42 0 0 36/60 1/10 + 43 0 0 39/60 1/10 + 44 0 0 42/60 1/10 + 45 0 0 45/60 1/10 + 46 0 0 48/60 1/10 + 47 0 0 51/60 1/10 + 48 0 0 48/60 1/10 + 49 0 0 33/60 1/10 + 50 0 0 36/60 1/10 + 51 0 0 39/60 1/10 + 52 0 0 42/60 1/10 + 53 0 0 45/60 1/10 + 54 0 0 48/60 1/10 + 55 0 0 51/60 1/10 + 56 0 0 51/60 1/10 + 57 0 0 33/60 1/10 + 58 0 0 36/60 1/10 + 59 0 0 39/60 1/10 + 60 0 0 42/60 1/10 + 61 0 0 45/60 1/10 + 62 0 0 48/60 1/10 + 63 0 0 51/60 1/10 + Class 'BRONZE': medium priority + bandwidth 378 kb/s, burst 7104 bytes, queue length/limit 0/60 + mean input rate 0 bits/s, mean output rate 0 bits/s + packets output 0, packets dropped 0 (0%) + bytes output 0, bytes dropped 0 (0%) + remaining-bandwidth share 9, excess-rate-priority 0, excess packets sent 0 + weight random early detection: + exponential weight: 6 + + Dscp Random drop Tail drop Min/Max Mark + pkts pkts threshold probability + 0 0 0 30/60 1/10 + 1 0 0 33/60 1/10 + 2 0 0 36/60 1/10 + 3 0 0 39/60 1/10 + 4 0 0 42/60 1/10 + 5 0 0 45/60 1/10 + 6 0 0 48/60 1/10 + 7 0 0 51/60 1/10 + 8 0 0 33/60 1/10 + 9 0 0 33/60 1/10 + 10 0 0 36/60 1/10 + 11 0 0 39/60 1/10 + 12 0 0 42/60 1/10 + 13 0 0 45/60 1/10 + 14 0 0 48/60 1/10 + 15 0 0 51/60 1/10 + 16 0 0 36/60 1/10 + 17 0 0 33/60 1/10 + 18 0 0 36/60 1/10 + 19 0 0 39/60 1/10 + 20 0 0 42/60 1/10 + 21 0 0 45/60 1/10 + 22 0 0 48/60 1/10 + 23 0 0 51/60 1/10 + 24 0 0 39/60 1/10 + 25 0 0 33/60 1/10 + 26 0 0 36/60 1/10 + 27 0 0 39/60 1/10 + 28 0 0 42/60 1/10 + 29 0 0 45/60 1/10 + 30 0 0 48/60 1/10 + 31 0 0 51/60 1/10 + 32 0 0 42/60 1/10 + 33 0 0 33/60 1/10 + 34 0 0 36/60 1/10 + 35 0 0 39/60 1/10 + 36 0 0 42/60 1/10 + 37 0 0 45/60 1/10 + 38 0 0 48/60 1/10 + 39 0 0 51/60 1/10 + 40 0 0 45/60 1/10 + 41 0 0 33/60 1/10 + 42 0 0 36/60 1/10 + 43 0 0 39/60 1/10 + 44 0 0 42/60 1/10 + 45 0 0 45/60 1/10 + 46 0 0 48/60 1/10 + 47 0 0 51/60 1/10 + 48 0 0 48/60 1/10 + 49 0 0 33/60 1/10 + 50 0 0 36/60 1/10 + 51 0 0 39/60 1/10 + 52 0 0 42/60 1/10 + 53 0 0 45/60 1/10 + 54 0 0 48/60 1/10 + 55 0 0 51/60 1/10 + 56 0 0 51/60 1/10 + 57 0 0 33/60 1/10 + 58 0 0 36/60 1/10 + 59 0 0 39/60 1/10 + 60 0 0 42/60 1/10 + 61 0 0 45/60 1/10 + 62 0 0 48/60 1/10 + 63 0 0 51/60 1/10 + Class 'class-default': medium priority + bandwidth 569 kb/s, burst 34496 bytes, queue length/limit 0/60 + mean input rate 0 bits/s, mean output rate 0 bits/s + packets output 13497492, packets dropped 0 (0%) + bytes output 2991793620, bytes dropped 0 (0%) + remaining-bandwidth share 14, excess-rate-priority 0, excess packets sent 0 + weight random early detection: + exponential weight: 6 + + Dscp Random drop Tail drop Min/Max Mark + pkts pkts threshold probability + 0 0 0 30/60 1/10 + 1 0 0 33/60 1/10 + 2 0 0 36/60 1/10 + 3 0 0 39/60 1/10 + 4 0 0 42/60 1/10 + 5 0 0 45/60 1/10 + 6 0 0 48/60 1/10 + 7 0 0 51/60 1/10 + 8 0 0 33/60 1/10 + 9 0 0 33/60 1/10 + 10 0 0 36/60 1/10 + 11 0 0 39/60 1/10 + 12 0 0 42/60 1/10 + 13 0 0 45/60 1/10 + 14 0 0 48/60 1/10 + 15 0 0 51/60 1/10 + 16 0 0 36/60 1/10 + 17 0 0 33/60 1/10 + 18 0 0 36/60 1/10 + 19 0 0 39/60 1/10 + 20 0 0 42/60 1/10 + 21 0 0 45/60 1/10 + 22 0 0 48/60 1/10 + 23 0 0 51/60 1/10 + 24 0 0 39/60 1/10 + 25 0 0 33/60 1/10 + 26 0 0 36/60 1/10 + 27 0 0 39/60 1/10 + 28 0 0 42/60 1/10 + 29 0 0 45/60 1/10 + 30 0 0 48/60 1/10 + 31 0 0 51/60 1/10 + 32 0 0 42/60 1/10 + 33 0 0 33/60 1/10 + 34 0 0 36/60 1/10 + 35 0 0 39/60 1/10 + 36 0 0 42/60 1/10 + 37 0 0 45/60 1/10 + 38 0 0 48/60 1/10 + 39 0 0 51/60 1/10 + 40 0 0 45/60 1/10 + 41 0 0 33/60 1/10 + 42 0 0 36/60 1/10 + 43 0 0 39/60 1/10 + 44 0 0 42/60 1/10 + 45 0 0 45/60 1/10 + 46 0 0 48/60 1/10 + 47 0 0 51/60 1/10 + 48 0 0 48/60 1/10 + 49 0 0 33/60 1/10 + 50 0 0 36/60 1/10 + 51 0 0 39/60 1/10 + 52 0 0 42/60 1/10 + 53 0 0 45/60 1/10 + 54 0 0 48/60 1/10 + 55 0 0 51/60 1/10 + 56 0 0 51/60 1/10 + 57 0 0 33/60 1/10 + 58 0 0 36/60 1/10 + 59 0 0 39/60 1/10 + 60 0 0 42/60 1/10 + 61 0 0 45/60 1/10 + 62 0 0 48/60 1/10 + 63 0 0 51/60 1/10 + Class 'class-default': medium priority + bandwidth 996200 kb/s, burst 12928 bytes, queue length/limit 0/50 + mean input rate 0 bits/s, mean output rate 0 bits/s + packets output 0, packets dropped 0 (0%) + bytes output 0, bytes dropped 0 (0%) + remaining-bandwidth share 100, excess-rate-priority 0, excess packets sent 0 + Interface total: + bandwidth 1000000 kb/s, queue length 0 + mean input rate 0 bits/s, mean output rate 0 bits/s + packets output 14594313, packets dropped 0 (0%) + bytes output 3139710008, bytes dropped 0 (0%) diff --git a/tests/oneaccess_oneos/show_policy-interface_output/show_policy-interface_output.lbb_150.yml b/tests/oneaccess_oneos/show_policy-interface_output/show_policy-interface_output.lbb_150.yml new file mode 100644 index 0000000000..34dab33fd8 --- /dev/null +++ b/tests/oneaccess_oneos/show_policy-interface_output/show_policy-interface_output.lbb_150.yml @@ -0,0 +1,632 @@ +--- +parsed_sample: + - interface: "GigabitEthernet 1/0" + service_policy_out_parent: "L3VPN_DEDICATED_VLAN_SHAPE_CE_OUT" + class_parent: "CLASS_ANY" + class_parent_priority: "" + service_policy_out_child: "" + class_child: "" + packets: "17116556" + bytes: "2997937810" + dscp_remarked: "0" + mean_intput_rate_bits_second: "8290" + total_bw_kbs: "1000000" + total_queue_length: "0" + total_mean_input_rate_bps: "0" + total_mean_output_rate_bps: "0" + total_output_packets: "14594313" + total_output_packets_dropped: "0" + total_output_packets_dropped_percent: "0" + total_output_bytes: "3139710008" + total_output_bytes_dropped: "0" + total_output_bytes_dropped_percent: "0" + qos_bytes_out: "" + qos_bytes_dropped: "" + qos_bytes_dropped_percent: "" + qos_average_input_bps: "" + qos_average_output_bps: "" + qos_packets_out: "" + qos_packets_dropped: "" + qos_packets_dropped_percent: "" + qos_bw_kb: "" + qos_burst_b: "" + qos_queue_length: "" + qos_queue_limit: "" + qos_remaining_bw_share: "1" + qos_excess_rate_priority: "0" + qos_excess_packets: "58982" + - interface: "GigabitEthernet 1/0" + service_policy_out_parent: "L3VPN_DEDICATED_VLAN_SHAPE_CE_OUT" + class_parent: "CLASS_ANY" + class_parent_priority: "" + service_policy_out_child: "VDSL_QOS_4M_OUT" + class_child: "MANAGEMENT" + packets: "3526876" + bytes: "284813499" + dscp_remarked: "0" + mean_intput_rate_bits_second: "8290" + total_bw_kbs: "1000000" + total_queue_length: "0" + total_mean_input_rate_bps: "0" + total_mean_output_rate_bps: "0" + total_output_packets: "14594313" + total_output_packets_dropped: "0" + total_output_packets_dropped_percent: "0" + total_output_bytes: "3139710008" + total_output_bytes_dropped: "0" + total_output_bytes_dropped_percent: "0" + qos_bytes_out: "" + qos_bytes_dropped: "" + qos_bytes_dropped_percent: "" + qos_average_input_bps: "" + qos_average_output_bps: "" + qos_packets_out: "" + qos_packets_dropped: "" + qos_packets_dropped_percent: "" + qos_bw_kb: "" + qos_burst_b: "" + qos_queue_length: "" + qos_queue_limit: "" + qos_remaining_bw_share: "1" + qos_excess_rate_priority: "0" + qos_excess_packets: "58982" + - interface: "GigabitEthernet 1/0" + service_policy_out_parent: "L3VPN_DEDICATED_VLAN_SHAPE_CE_OUT" + class_parent: "CLASS_ANY" + class_parent_priority: "" + service_policy_out_child: "VDSL_QOS_4M_OUT" + class_child: "ROUTING" + packets: "72309" + bytes: "4451262" + dscp_remarked: "0" + mean_intput_rate_bits_second: "0" + total_bw_kbs: "1000000" + total_queue_length: "0" + total_mean_input_rate_bps: "0" + total_mean_output_rate_bps: "0" + total_output_packets: "14594313" + total_output_packets_dropped: "0" + total_output_packets_dropped_percent: "0" + total_output_bytes: "3139710008" + total_output_bytes_dropped: "0" + total_output_bytes_dropped_percent: "0" + qos_bytes_out: "" + qos_bytes_dropped: "" + qos_bytes_dropped_percent: "" + qos_average_input_bps: "" + qos_average_output_bps: "" + qos_packets_out: "" + qos_packets_dropped: "" + qos_packets_dropped_percent: "" + qos_bw_kb: "" + qos_burst_b: "" + qos_queue_length: "" + qos_queue_limit: "" + qos_remaining_bw_share: "1" + qos_excess_rate_priority: "0" + qos_excess_packets: "58982" + - interface: "GigabitEthernet 1/0" + service_policy_out_parent: "L3VPN_DEDICATED_VLAN_SHAPE_CE_OUT" + class_parent: "CLASS_ANY" + class_parent_priority: "" + service_policy_out_child: "VDSL_QOS_4M_OUT" + class_child: "PREMIUM" + packets: "19374" + bytes: "13810113" + dscp_remarked: "0" + mean_intput_rate_bits_second: "0" + total_bw_kbs: "1000000" + total_queue_length: "0" + total_mean_input_rate_bps: "0" + total_mean_output_rate_bps: "0" + total_output_packets: "14594313" + total_output_packets_dropped: "0" + total_output_packets_dropped_percent: "0" + total_output_bytes: "3139710008" + total_output_bytes_dropped: "0" + total_output_bytes_dropped_percent: "0" + qos_bytes_out: "" + qos_bytes_dropped: "" + qos_bytes_dropped_percent: "" + qos_average_input_bps: "" + qos_average_output_bps: "" + qos_packets_out: "" + qos_packets_dropped: "" + qos_packets_dropped_percent: "" + qos_bw_kb: "" + qos_burst_b: "" + qos_queue_length: "" + qos_queue_limit: "" + qos_remaining_bw_share: "1" + qos_excess_rate_priority: "0" + qos_excess_packets: "58982" + - interface: "GigabitEthernet 1/0" + service_policy_out_parent: "L3VPN_DEDICATED_VLAN_SHAPE_CE_OUT" + class_parent: "CLASS_ANY" + class_parent_priority: "" + service_policy_out_child: "VDSL_QOS_4M_OUT" + class_child: "GOLD" + packets: "0" + bytes: "0" + dscp_remarked: "0" + mean_intput_rate_bits_second: "0" + total_bw_kbs: "1000000" + total_queue_length: "0" + total_mean_input_rate_bps: "0" + total_mean_output_rate_bps: "0" + total_output_packets: "14594313" + total_output_packets_dropped: "0" + total_output_packets_dropped_percent: "0" + total_output_bytes: "3139710008" + total_output_bytes_dropped: "0" + total_output_bytes_dropped_percent: "0" + qos_bytes_out: "" + qos_bytes_dropped: "" + qos_bytes_dropped_percent: "" + qos_average_input_bps: "" + qos_average_output_bps: "" + qos_packets_out: "" + qos_packets_dropped: "" + qos_packets_dropped_percent: "" + qos_bw_kb: "" + qos_burst_b: "" + qos_queue_length: "" + qos_queue_limit: "" + qos_remaining_bw_share: "1" + qos_excess_rate_priority: "0" + qos_excess_packets: "58982" + - interface: "GigabitEthernet 1/0" + service_policy_out_parent: "L3VPN_DEDICATED_VLAN_SHAPE_CE_OUT" + class_parent: "CLASS_ANY" + class_parent_priority: "" + service_policy_out_child: "VDSL_QOS_4M_OUT" + class_child: "SILVER" + packets: "0" + bytes: "0" + dscp_remarked: "0" + mean_intput_rate_bits_second: "0" + total_bw_kbs: "1000000" + total_queue_length: "0" + total_mean_input_rate_bps: "0" + total_mean_output_rate_bps: "0" + total_output_packets: "14594313" + total_output_packets_dropped: "0" + total_output_packets_dropped_percent: "0" + total_output_bytes: "3139710008" + total_output_bytes_dropped: "0" + total_output_bytes_dropped_percent: "0" + qos_bytes_out: "" + qos_bytes_dropped: "" + qos_bytes_dropped_percent: "" + qos_average_input_bps: "" + qos_average_output_bps: "" + qos_packets_out: "" + qos_packets_dropped: "" + qos_packets_dropped_percent: "" + qos_bw_kb: "" + qos_burst_b: "" + qos_queue_length: "" + qos_queue_limit: "" + qos_remaining_bw_share: "1" + qos_excess_rate_priority: "0" + qos_excess_packets: "58982" + - interface: "GigabitEthernet 1/0" + service_policy_out_parent: "L3VPN_DEDICATED_VLAN_SHAPE_CE_OUT" + class_parent: "CLASS_ANY" + class_parent_priority: "" + service_policy_out_child: "VDSL_QOS_4M_OUT" + class_child: "BRONZE" + packets: "0" + bytes: "0" + dscp_remarked: "0" + mean_intput_rate_bits_second: "0" + total_bw_kbs: "1000000" + total_queue_length: "0" + total_mean_input_rate_bps: "0" + total_mean_output_rate_bps: "0" + total_output_packets: "14594313" + total_output_packets_dropped: "0" + total_output_packets_dropped_percent: "0" + total_output_bytes: "3139710008" + total_output_bytes_dropped: "0" + total_output_bytes_dropped_percent: "0" + qos_bytes_out: "" + qos_bytes_dropped: "" + qos_bytes_dropped_percent: "" + qos_average_input_bps: "" + qos_average_output_bps: "" + qos_packets_out: "" + qos_packets_dropped: "" + qos_packets_dropped_percent: "" + qos_bw_kb: "" + qos_burst_b: "" + qos_queue_length: "" + qos_queue_limit: "" + qos_remaining_bw_share: "1" + qos_excess_rate_priority: "0" + qos_excess_packets: "58982" + - interface: "GigabitEthernet 1/0" + service_policy_out_parent: "L3VPN_DEDICATED_VLAN_SHAPE_CE_OUT" + class_parent: "CLASS_ANY" + class_parent_priority: "" + service_policy_out_child: "VDSL_QOS_4M_OUT" + class_child: "class-default" + packets: "13497997" + bytes: "2694862936" + dscp_remarked: "0" + mean_intput_rate_bits_second: "0" + total_bw_kbs: "1000000" + total_queue_length: "0" + total_mean_input_rate_bps: "0" + total_mean_output_rate_bps: "0" + total_output_packets: "14594313" + total_output_packets_dropped: "0" + total_output_packets_dropped_percent: "0" + total_output_bytes: "3139710008" + total_output_bytes_dropped: "0" + total_output_bytes_dropped_percent: "0" + qos_bytes_out: "" + qos_bytes_dropped: "" + qos_bytes_dropped_percent: "" + qos_average_input_bps: "" + qos_average_output_bps: "" + qos_packets_out: "" + qos_packets_dropped: "" + qos_packets_dropped_percent: "" + qos_bw_kb: "" + qos_burst_b: "" + qos_queue_length: "" + qos_queue_limit: "" + qos_remaining_bw_share: "1" + qos_excess_rate_priority: "0" + qos_excess_packets: "58982" + - interface: "GigabitEthernet 1/0" + service_policy_out_parent: "L3VPN_DEDICATED_VLAN_SHAPE_CE_OUT" + class_parent: "class-default" + class_parent_priority: "" + service_policy_out_child: "VDSL_QOS_4M_OUT" + class_child: "" + packets: "0" + bytes: "0" + dscp_remarked: "0" + mean_intput_rate_bits_second: "0" + total_bw_kbs: "1000000" + total_queue_length: "0" + total_mean_input_rate_bps: "0" + total_mean_output_rate_bps: "0" + total_output_packets: "14594313" + total_output_packets_dropped: "0" + total_output_packets_dropped_percent: "0" + total_output_bytes: "3139710008" + total_output_bytes_dropped: "0" + total_output_bytes_dropped_percent: "0" + qos_bytes_out: "" + qos_bytes_dropped: "" + qos_bytes_dropped_percent: "" + qos_average_input_bps: "" + qos_average_output_bps: "" + qos_packets_out: "" + qos_packets_dropped: "" + qos_packets_dropped_percent: "" + qos_bw_kb: "" + qos_burst_b: "" + qos_queue_length: "" + qos_queue_limit: "" + qos_remaining_bw_share: "1" + qos_excess_rate_priority: "0" + qos_excess_packets: "58982" + - interface: "GigabitEthernet 1/0" + service_policy_out_parent: "L3VPN_DEDICATED_VLAN_SHAPE_CE_OUT" + class_parent: "CLASS_ANY" + class_parent_priority: "medium priority (no excess allowed)" + service_policy_out_child: "VDSL_QOS_4M_OUT" + class_child: "" + packets: "" + bytes: "3139710008" + dscp_remarked: "" + mean_intput_rate_bits_second: "" + total_bw_kbs: "1000000" + total_queue_length: "0" + total_mean_input_rate_bps: "0" + total_mean_output_rate_bps: "0" + total_output_packets: "14594313" + total_output_packets_dropped: "0" + total_output_packets_dropped_percent: "0" + total_output_bytes: "3139710008" + total_output_bytes_dropped: "0" + total_output_bytes_dropped_percent: "0" + qos_bytes_out: "3139710008" + qos_bytes_dropped: "0" + qos_bytes_dropped_percent: "0" + qos_average_input_bps: "0" + qos_average_output_bps: "0" + qos_packets_out: "14594313" + qos_packets_dropped: "0" + qos_packets_dropped_percent: "0" + qos_bw_kb: "3800" + qos_burst_b: "34368" + qos_queue_length: "0" + qos_queue_limit: "50" + qos_remaining_bw_share: "1" + qos_excess_rate_priority: "0" + qos_excess_packets: "58982" + - interface: "GigabitEthernet 1/0" + service_policy_out_parent: "L3VPN_DEDICATED_VLAN_SHAPE_CE_OUT" + class_parent: "MANAGEMENT" + class_parent_priority: "medium priority" + service_policy_out_child: "VDSL_QOS_4M_OUT" + class_child: "" + packets: "" + bytes: "133680047" + dscp_remarked: "" + mean_intput_rate_bits_second: "" + total_bw_kbs: "1000000" + total_queue_length: "0" + total_mean_input_rate_bps: "0" + total_mean_output_rate_bps: "0" + total_output_packets: "14594313" + total_output_packets_dropped: "0" + total_output_packets_dropped_percent: "0" + total_output_bytes: "3139710008" + total_output_bytes_dropped: "0" + total_output_bytes_dropped_percent: "0" + qos_bytes_out: "133680047" + qos_bytes_dropped: "0" + qos_bytes_dropped_percent: "0" + qos_average_input_bps: "0" + qos_average_output_bps: "0" + qos_packets_out: "1077447" + qos_packets_dropped: "0" + qos_packets_dropped_percent: "0" + qos_bw_kb: "9" + qos_burst_b: "7104" + qos_queue_length: "0" + qos_queue_limit: "50" + qos_remaining_bw_share: "1" + qos_excess_rate_priority: "0" + qos_excess_packets: "58982" + - interface: "GigabitEthernet 1/0" + service_policy_out_parent: "L3VPN_DEDICATED_VLAN_SHAPE_CE_OUT" + class_parent: "ROUTING" + class_parent_priority: "medium priority" + service_policy_out_child: "VDSL_QOS_4M_OUT" + class_child: "" + packets: "" + bytes: "0" + dscp_remarked: "" + mean_intput_rate_bits_second: "" + total_bw_kbs: "1000000" + total_queue_length: "0" + total_mean_input_rate_bps: "0" + total_mean_output_rate_bps: "0" + total_output_packets: "14594313" + total_output_packets_dropped: "0" + total_output_packets_dropped_percent: "0" + total_output_bytes: "3139710008" + total_output_bytes_dropped: "0" + total_output_bytes_dropped_percent: "0" + qos_bytes_out: "0" + qos_bytes_dropped: "0" + qos_bytes_dropped_percent: "0" + qos_average_input_bps: "0" + qos_average_output_bps: "0" + qos_packets_out: "0" + qos_packets_dropped: "0" + qos_packets_dropped_percent: "0" + qos_bw_kb: "9" + qos_burst_b: "7104" + qos_queue_length: "0" + qos_queue_limit: "50" + qos_remaining_bw_share: "1" + qos_excess_rate_priority: "0" + qos_excess_packets: "58982" + - interface: "GigabitEthernet 1/0" + service_policy_out_parent: "L3VPN_DEDICATED_VLAN_SHAPE_CE_OUT" + class_parent: "PREMIUM" + class_parent_priority: "medium priority" + service_policy_out_child: "VDSL_QOS_4M_OUT" + class_child: "" + packets: "" + bytes: "14236341" + dscp_remarked: "" + mean_intput_rate_bits_second: "" + total_bw_kbs: "1000000" + total_queue_length: "0" + total_mean_input_rate_bps: "0" + total_mean_output_rate_bps: "0" + total_output_packets: "14594313" + total_output_packets_dropped: "0" + total_output_packets_dropped_percent: "0" + total_output_bytes: "3139710008" + total_output_bytes_dropped: "0" + total_output_bytes_dropped_percent: "0" + qos_bytes_out: "14236341" + qos_bytes_dropped: "0" + qos_bytes_dropped_percent: "0" + qos_average_input_bps: "0" + qos_average_output_bps: "0" + qos_packets_out: "19374" + qos_packets_dropped: "0" + qos_packets_dropped_percent: "0" + qos_bw_kb: "1323" + qos_burst_b: "34496" + qos_queue_length: "0" + qos_queue_limit: "60" + qos_remaining_bw_share: "1" + qos_excess_rate_priority: "0" + qos_excess_packets: "0" + - interface: "GigabitEthernet 1/0" + service_policy_out_parent: "L3VPN_DEDICATED_VLAN_SHAPE_CE_OUT" + class_parent: "GOLD" + class_parent_priority: "medium priority" + service_policy_out_child: "VDSL_QOS_4M_OUT" + class_child: "" + packets: "" + bytes: "0" + dscp_remarked: "" + mean_intput_rate_bits_second: "" + total_bw_kbs: "1000000" + total_queue_length: "0" + total_mean_input_rate_bps: "0" + total_mean_output_rate_bps: "0" + total_output_packets: "14594313" + total_output_packets_dropped: "0" + total_output_packets_dropped_percent: "0" + total_output_bytes: "3139710008" + total_output_bytes_dropped: "0" + total_output_bytes_dropped_percent: "0" + qos_bytes_out: "0" + qos_bytes_dropped: "0" + qos_bytes_dropped_percent: "0" + qos_average_input_bps: "0" + qos_average_output_bps: "0" + qos_packets_out: "0" + qos_packets_dropped: "0" + qos_packets_dropped_percent: "0" + qos_bw_kb: "945" + qos_burst_b: "34496" + qos_queue_length: "0" + qos_queue_limit: "60" + qos_remaining_bw_share: "34" + qos_excess_rate_priority: "0" + qos_excess_packets: "0" + - interface: "GigabitEthernet 1/0" + service_policy_out_parent: "L3VPN_DEDICATED_VLAN_SHAPE_CE_OUT" + class_parent: "SILVER" + class_parent_priority: "medium priority" + service_policy_out_child: "VDSL_QOS_4M_OUT" + class_child: "" + packets: "" + bytes: "0" + dscp_remarked: "" + mean_intput_rate_bits_second: "" + total_bw_kbs: "1000000" + total_queue_length: "0" + total_mean_input_rate_bps: "0" + total_mean_output_rate_bps: "0" + total_output_packets: "14594313" + total_output_packets_dropped: "0" + total_output_packets_dropped_percent: "0" + total_output_bytes: "3139710008" + total_output_bytes_dropped: "0" + total_output_bytes_dropped_percent: "0" + qos_bytes_out: "0" + qos_bytes_dropped: "0" + qos_bytes_dropped_percent: "0" + qos_average_input_bps: "0" + qos_average_output_bps: "0" + qos_packets_out: "0" + qos_packets_dropped: "0" + qos_packets_dropped_percent: "0" + qos_bw_kb: "567" + qos_burst_b: "34496" + qos_queue_length: "0" + qos_queue_limit: "60" + qos_remaining_bw_share: "24" + qos_excess_rate_priority: "0" + qos_excess_packets: "0" + - interface: "GigabitEthernet 1/0" + service_policy_out_parent: "L3VPN_DEDICATED_VLAN_SHAPE_CE_OUT" + class_parent: "BRONZE" + class_parent_priority: "medium priority" + service_policy_out_child: "VDSL_QOS_4M_OUT" + class_child: "" + packets: "" + bytes: "0" + dscp_remarked: "" + mean_intput_rate_bits_second: "" + total_bw_kbs: "1000000" + total_queue_length: "0" + total_mean_input_rate_bps: "0" + total_mean_output_rate_bps: "0" + total_output_packets: "14594313" + total_output_packets_dropped: "0" + total_output_packets_dropped_percent: "0" + total_output_bytes: "3139710008" + total_output_bytes_dropped: "0" + total_output_bytes_dropped_percent: "0" + qos_bytes_out: "0" + qos_bytes_dropped: "0" + qos_bytes_dropped_percent: "0" + qos_average_input_bps: "0" + qos_average_output_bps: "0" + qos_packets_out: "0" + qos_packets_dropped: "0" + qos_packets_dropped_percent: "0" + qos_bw_kb: "378" + qos_burst_b: "7104" + qos_queue_length: "0" + qos_queue_limit: "60" + qos_remaining_bw_share: "14" + qos_excess_rate_priority: "0" + qos_excess_packets: "0" + - interface: "GigabitEthernet 1/0" + service_policy_out_parent: "L3VPN_DEDICATED_VLAN_SHAPE_CE_OUT" + class_parent: "class-default" + class_parent_priority: "medium priority" + service_policy_out_child: "VDSL_QOS_4M_OUT" + class_child: "" + packets: "" + bytes: "2991793620" + dscp_remarked: "" + mean_intput_rate_bits_second: "" + total_bw_kbs: "1000000" + total_queue_length: "0" + total_mean_input_rate_bps: "0" + total_mean_output_rate_bps: "0" + total_output_packets: "14594313" + total_output_packets_dropped: "0" + total_output_packets_dropped_percent: "0" + total_output_bytes: "3139710008" + total_output_bytes_dropped: "0" + total_output_bytes_dropped_percent: "0" + qos_bytes_out: "2991793620" + qos_bytes_dropped: "0" + qos_bytes_dropped_percent: "0" + qos_average_input_bps: "0" + qos_average_output_bps: "0" + qos_packets_out: "13497492" + qos_packets_dropped: "0" + qos_packets_dropped_percent: "0" + qos_bw_kb: "569" + qos_burst_b: "34496" + qos_queue_length: "0" + qos_queue_limit: "60" + qos_remaining_bw_share: "9" + qos_excess_rate_priority: "0" + qos_excess_packets: "0" + - interface: "GigabitEthernet 1/0" + service_policy_out_parent: "L3VPN_DEDICATED_VLAN_SHAPE_CE_OUT" + class_parent: "class-default" + class_parent_priority: "medium priority" + service_policy_out_child: "VDSL_QOS_4M_OUT" + class_child: "" + packets: "" + bytes: "0" + dscp_remarked: "" + mean_intput_rate_bits_second: "" + total_bw_kbs: "1000000" + total_queue_length: "0" + total_mean_input_rate_bps: "0" + total_mean_output_rate_bps: "0" + total_output_packets: "14594313" + total_output_packets_dropped: "0" + total_output_packets_dropped_percent: "0" + total_output_bytes: "3139710008" + total_output_bytes_dropped: "0" + total_output_bytes_dropped_percent: "0" + qos_bytes_out: "0" + qos_bytes_dropped: "0" + qos_bytes_dropped_percent: "0" + qos_average_input_bps: "0" + qos_average_output_bps: "0" + qos_packets_out: "0" + qos_packets_dropped: "0" + qos_packets_dropped_percent: "0" + qos_bw_kb: "996200" + qos_burst_b: "12928" + qos_queue_length: "0" + qos_queue_limit: "50" + qos_remaining_bw_share: "14" + qos_excess_rate_priority: "0" + qos_excess_packets: "0"