Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added juniper_junos_show_version.template #298

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added Error
Empty file.
1 change: 1 addition & 0 deletions templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ juniper_junos_show_chassis_firmware.template, .*, juniper_junos, sh[[ow]] ch[[as
juniper_junos_show_isis_adjacency.template, .*, juniper_junos, sh[[ow]] is[[is]] ad[[jacency]]
juniper_junos_show_ospf_neighbor.template, .*, juniper_junos, sh[[ow]] ospf n[[eighbor]]
juniper_junos_show_interfaces.template, .*, juniper_junos, sh[[ow]] inte[[rfaces]]
juniper_junos_show_version.template, .*, juniper_junos, sh[[ow]] ver[[sion]]

juniper_screenos_get_route.template, .*, juniper_screenos, get route

Expand Down
78 changes: 78 additions & 0 deletions templates/juniper_junos_show_version.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
Value Required HOSTNAME (\S+)
Value MODEL (\S+)
Value JUNOS_VERSION ([\S\s]*)
Value BASE_OS_BOOT (\S+)
Value BASE_OS_SOFTWARE_SUITE (\S+)
Value KERNEL_SOFTWARE_SUITE (\S+)
Value CRYPTO_SOFTWARE_SUITE (\S+)
Value PACKET_FORWARDING_ENGINE_SUPPORT_M_T_EX_COMMON (\S+)
Value PACKET_FORWARDING_ENGINE_SUPPORT_MX_COMMON (\S+)
Value ONLINE_DOCUMENTATION (\S+)
Value SERVICES_AACL_CONTAINER_PACKAGE (\S+)
Value SERVICES_APPLICATION_LEVEL_GATEWAYS (\S+)
Value APPID_SERVICES (\S+)
Value BORDER_GATEWAY_FUNCTION_PACKAGE (\S+)
Value SERVICES_CAPTIVE_PORTAL_CONTENT_DELIVERY_PACKAGE (\S+)
Value SERVICES_HTTP_CONTENT_MANAGEMENT_PACKAGE (\S+)
Value IDP_SERVICES (\S+)
Value SERVICES_JFLOW_CONTAINER_PACKAGE (\S+)
Value SERVICES_LL_PDF_CONTAINER_PACKAGE (\S+)
Value SERVICES_MOBILENEXT_SOFTWARE_PACKAGE (\S+)
Value SERVICES_MOBILE_SUBSCRIBER_SERVICE_PACKAGE (\S+)
Value SERVICES_NAT (\S+)
Value SERVICES_PTSP_CONTAINER_PACKAGE (\S+)
Value SERVICES_RPM (\S+)
Value SERVICES_STATEFUL_FIREWALL (\S+)
Value VOICE_SERVICES_CONTAINER_PACKAGE (\S+)
Value SERVICES_CRYPTO (\S+)
Value SERVICES_SSL (\S+)
Value SERVICES_IPSEC (\S+)
Value PLATFORM_SOFTWARE_SUITE (\S+)
Value RUNTIME_SOFTWARE_SUITE (\S+)
Value ROUTING_SOFTWARE_SUITE (\S+)
Value PY_BASE_I386 (\S+)
Value LAB_PACKAGE (\S+)
Value SERIAL_NUMBER (\S+)
Value QFABRIC_SYSTEM_ID (\S+)
Value List OTHER_DEVICE_PROPERTIES ([^\[]*)
Value List OTHER_PROPERTIES_VERSIONS (\S+)

Start
^Hostname:\s+${HOSTNAME}
^Model:\s+${MODEL}
^Junos:\s+${JUNOS_VERSION}
^JUNOS\s+Base\s+OS\s+boot\s+\[${BASE_OS_BOOT}\]
^JUNOS\s+Base\s+OS\s+Software\s+Suite\s+\[${BASE_OS_SOFTWARE_SUITE}\]
^JUNOS\s+Kernel\s+Software\s+Suite\s+\[${KERNEL_SOFTWARE_SUITE}\]
^JUNOS\s+Crypto\s+Software\s+Suite\s+\[${CRYPTO_SOFTWARE_SUITE}\]
^JUNOS\s+Packet\s+Forwarding\s+Engine\s+Support\s+\(M/T/EX\s+Common\)\s+\[${PACKET_FORWARDING_ENGINE_SUPPORT_M_T_EX_COMMON}\]
^JUNOS\s+Packet\s+Forwarding\s+Engine\s+Support\s+\(MX\s+Common\)\s+\[${PACKET_FORWARDING_ENGINE_SUPPORT_MX_COMMON}\]
^JUNOS\s+Online\s+Documentation\s+\[${ONLINE_DOCUMENTATION}\]
^JUNOS\s+Services\s+AACL\s+Container\s+package\s+\[${SERVICES_AACL_CONTAINER_PACKAGE}\]
^JUNOS\s+Services\s+Application\s+Level\s+Gateways\s+\[${SERVICES_APPLICATION_LEVEL_GATEWAYS}\]
^JUNOS\s+AppId\s+Services\s+\[${APPID_SERVICES}\]
^JUNOS\s+Border\s+Gateway\s+Function\s+package\s+\[${BORDER_GATEWAY_FUNCTION_PACKAGE}\]
^JUNOS\s+Services\s+Captive\s+Portal\s+and\s+Content\s+Delivery\s+Container\s+package\s+\[${SERVICES_CAPTIVE_PORTAL_CONTENT_DELIVERY_PACKAGE}\]
^JUNOS\s+Services\s+HTTP\s+Content\s+Management\s+package\s+\[${SERVICES_HTTP_CONTENT_MANAGEMENT_PACKAGE}\]
^JUNOS\s+IDP\s+Services\s+\[${IDP_SERVICES}\]
^JUNOS\s+Services\s+Jflow\s+Container\s+package\s+\[${SERVICES_JFLOW_CONTAINER_PACKAGE}\]
^JUNOS\s+Services\s+LL-PDF\s+Container\s+package\s+\[${SERVICES_LL_PDF_CONTAINER_PACKAGE}\]
^JUNOS\s+Services\s+MobileNext\s+Software\s+package\s+\[${SERVICES_MOBILENEXT_SOFTWARE_PACKAGE}\]
^JUNOS\s+Services\s+Mobile\s+Subscriber\s+Service\s+Container\s+package\s+\[${SERVICES_MOBILE_SUBSCRIBER_SERVICE_PACKAGE}\]
^JUNOS\s+Services\s+NAT\s+\[${SERVICES_NAT}\]
^JUNOS\s+Services\s+PTSP\s+Container\s+package\s+\[${SERVICES_PTSP_CONTAINER_PACKAGE}\]
^JUNOS\s+Services\s+RPM\s+\[${SERVICES_RPM}\]
^JUNOS\s+Services\s+Stateful\s+Firewall\s+\[${SERVICES_STATEFUL_FIREWALL}\]
^JUNOS\s+Voice\s+Services\s+Container\s+package\s+\[${VOICE_SERVICES_CONTAINER_PACKAGE}\]
^JUNOS\s+Services\s+Crypto\s+\[${SERVICES_CRYPTO}\]
^JUNOS\s+Services\s+SSL\s+\[${SERVICES_SSL}\]
^JUNOS\s+Services\s+IPSec\s+\[${SERVICES_IPSEC}\]
^JUNOS\s+platform\s+Software\s+Suite\s+\[${PLATFORM_SOFTWARE_SUITE}\]
^JUNOS\s+Runtime\s+Software\s+Suite\s+\[${RUNTIME_SOFTWARE_SUITE}\]
^JUNOS\s+Routing\s+Software\s+Suite\s+\[${ROUTING_SOFTWARE_SUITE}\]
^JUNOS\s+py-base-i386\s+\[${PY_BASE_I386}\]
^labpkg\s+\[${LAB_PACKAGE}\]
^Serial\s+Number:\s+${SERIAL_NUMBER}
^QFabric\s+System\s+ID:\s+${QFABRIC_SYSTEM_ID}
^JUNOS\s+${OTHER_DEVICE_PROPERTIES}\[${OTHER_PROPERTIES_VERSIONS}\]
^. -> Error
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
parsed_sample:
- hostname: "lab"
model: "mx240"
junos_version: "13.3R1.4"
base_os_boot: "13.3R1.4"
base_os_software_suite: "13.3R1.4"
kernel_software_suite: "13.3R1.4"
crypto_software_suite: "13.3R1.4"
packet_forwarding_engine_support_m_t_ex_common: "13.3R1.4"
packet_forwarding_engine_support_mx_common: "13.3R1.4"
online_documentation: "113.3R1.4"
services_aacl_container_package: "13.3R1.4"
services_application_level_gateways: "13.3R1.4"
appid_services: "13.3R1.4"
border_gateway_function_package: "13.3R1.4"
services_captive_portal_content_delivery_package: "13.3R1.4"
services_http_content_management_package: "13.3R1.4"
idp_services: "13.3R1.4"
services_jflow_container_package: "13.3R1.4"
services_ll_pdf_container_package: "13.3R1.4"
services_mobilenext_software_package: "13.3R1.4"
services_mobile_subscriber_service_package: "13.3R1.4"
services_nat: "13.3R1.4"
services_ptsp_container_package: "13.3R1.4"
services_rpm: "13.3R1.4"
services_stateful_firewall: "13.3R1.4"
voice_services_container_package: "13.3R1.4"
services_crypto: "13.3R1.4"
services_ssl: "13.3R1.4"
services_ipsec: "13.3R1.4"
platform_software_suite: "13.3R1.4"
runtime_software_suite: "13.3R1.4"
routing_software_suite: "13.3R1.4"
py_base_i386: "13.3R1.4"
lab_package: "7.0"
serial_number: "qfsn-0123456789"
qfabric_system_id: "f158527a-f99e-11e0-9fbd-00e081c57cda"
other_device_properties: []
other_properties_versions: []
36 changes: 36 additions & 0 deletions tests/juniper_junos/show_version/juniper_junos_show_version.raw
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
Hostname: lab
Model: mx240
Junos: 13.3R1.4
JUNOS Base OS boot [13.3R1.4]
JUNOS Base OS Software Suite [13.3R1.4]
JUNOS Kernel Software Suite [13.3R1.4]
JUNOS Crypto Software Suite [13.3R1.4]
JUNOS Packet Forwarding Engine Support (M/T/EX Common) [13.3R1.4]
JUNOS Packet Forwarding Engine Support (MX Common) [13.3R1.4]
JUNOS Online Documentation [113.3R1.4]
JUNOS Services AACL Container package [13.3R1.4]
JUNOS Services Application Level Gateways [13.3R1.4]
JUNOS AppId Services [13.3R1.4]
JUNOS Border Gateway Function package [13.3R1.4]
JUNOS Services Captive Portal and Content Delivery Container package [13.3R1.4]
JUNOS Services HTTP Content Management package [13.3R1.4]
JUNOS IDP Services [13.3R1.4]
JUNOS Services Jflow Container package [13.3R1.4]
JUNOS Services LL-PDF Container package [13.3R1.4]
JUNOS Services MobileNext Software package [13.3R1.4]
JUNOS Services Mobile Subscriber Service Container package [13.3R1.4]
JUNOS Services NAT [13.3R1.4]
JUNOS Services PTSP Container package [13.3R1.4]
JUNOS Services RPM [13.3R1.4]
JUNOS Services Stateful Firewall [13.3R1.4]
JUNOS Voice Services Container package [13.3R1.4]
JUNOS Services Crypto [13.3R1.4]
JUNOS Services SSL [13.3R1.4]
JUNOS Services IPSec [13.3R1.4]
JUNOS platform Software Suite [13.3R1.4]
JUNOS Runtime Software Suite [13.3R1.4]
JUNOS Routing Software Suite [13.3R1.4]
JUNOS py-base-i386 [13.3R1.4]
labpkg [7.0]
Serial Number: qfsn-0123456789
QFabric System ID: f158527a-f99e-11e0-9fbd-00e081c57cda