From 5cc9255c9fb61b83ee947ef9512215ec7472f089 Mon Sep 17 00:00:00 2001 From: itdependsnetworks Date: Fri, 2 Jun 2017 17:13:28 -0400 Subject: [PATCH] update xr controllers --- templates/cisco_xr_show_controllers.template | 15 +- .../cisco_xr_show_controllers.parsed | 77 --------- .../cisco_xr_show_controllers_all_phy.parsed | 157 ++++++++++++++++++ ... => cisco_xr_show_controllers_all_phy.raw} | 0 4 files changed, 170 insertions(+), 79 deletions(-) delete mode 100644 tests/cisco_xr/show_controllers_all_phy/cisco_xr_show_controllers.parsed create mode 100644 tests/cisco_xr/show_controllers_all_phy/cisco_xr_show_controllers_all_phy.parsed rename tests/cisco_xr/show_controllers_all_phy/{cisco_xr_show_controllers.raw => cisco_xr_show_controllers_all_phy.raw} (100%) diff --git a/templates/cisco_xr_show_controllers.template b/templates/cisco_xr_show_controllers.template index af0d9bd836..0cf1cd0f34 100644 --- a/templates/cisco_xr_show_controllers.template +++ b/templates/cisco_xr_show_controllers.template @@ -1,6 +1,6 @@ Value Filldown INTERFACE (\S+/\S+) Value LANE (\d+) -Value Required TEMPERATURE_VALUE (([-\+]?\d+\.\d+|(N\/A))) +Value TEMPERATURE_VALUE (([-\+]?\d+\.\d+|(N\/A))) Value TEMPERATURE_ALARM_HIGH (([-\+]?\d+\.\d+|(N\/A))) Value TEMPERATURE_ALARM_LOW (([-\+]?\d+\.\d+|(N\/A))) Value TEMPERATURE_WARN_HIGH (([-\+]?\d+\.\d+|(N\/A))) @@ -11,8 +11,15 @@ Value VOLTAGE_ALARM_LOW (([-\+]?\d+\.\d+|(N\/A))) Value VOLTAGE_WARN_HIGH (([-\+]?\d+\.\d+|(N\/A))) Value VOLTAGE_WARN_LOW (([-\+]?\d+\.\d+|(N\/A))) Value RX_VALUE (([-\+]?\d+\.\d+|(N\/A))) +Value RX_ALARM_HIGH (([-\+]?\d+\.\d+)) +Value RX_ALARM_LOW (([-\+]?\d+\.\d+)) +Value RX_WARN_HIGH (([-\+]?\d+\.\d+)) +Value RX_WARN_LOW (([-\+]?\d+\.\d+)) Value TX_VALUE (([-\+]?\d+\.\d+|(N\/A))) - +Value TX_ALARM_HIGH (([-\+]?\d+\.\d+)) +Value TX_ALARM_LOW (([-\+]?\d+\.\d+)) +Value TX_WARN_HIGH (([-\+]?\d+\.\d+)) +Value TX_WARN_LOW (([-\+]?\d+\.\d+)) Start ^PHY\s+data\s+for\s+interface:\s+${INTERFACE} @@ -26,5 +33,9 @@ Controllers ^\s+Lane -> Record Lanes Lanes + ^\s+Transmit Power:.+\(${TX_ALARM_HIGH} dBm\).+\(${TX_WARN_HIGH} dBm\).+\(${TX_WARN_LOW} dBm\).+\(${TX_ALARM_LOW} dBm\) -> Record + ^\s+Receive Power:.+\(${RX_ALARM_HIGH} dBm\).+\(${RX_WARN_HIGH} dBm\).+\(${RX_WARN_LOW} dBm\).+\(${RX_ALARM_LOW} dBm\) -> Record ^\s+${LANE}\s+${TEMPERATURE_VALUE}.*\(${TX_VALUE}\s+\S+\).*\(${RX_VALUE}\s+\S+\) -> Record + ^\S -> Start +EOF diff --git a/tests/cisco_xr/show_controllers_all_phy/cisco_xr_show_controllers.parsed b/tests/cisco_xr/show_controllers_all_phy/cisco_xr_show_controllers.parsed deleted file mode 100644 index a904b7f000..0000000000 --- a/tests/cisco_xr/show_controllers_all_phy/cisco_xr_show_controllers.parsed +++ /dev/null @@ -1,77 +0,0 @@ ---- -parsed_sample: - -- interface: 'FortyGigE0/1/1/0' - lane: '' - temperature_value: '+26.535' - temperature_alarm_high: '+75.000' - temperature_alarm_low: '-5.000' - temperature_warn_high: '+70.000' - temperature_warn_low: '+0.000' - voltage_value: '3.254' - voltage_alarm_high: '3.630' - voltage_alarm_low: '2.970' - voltage_warn_high: '3.465' - voltage_warn_low: '3.100' - rx_value: '' - tx_value: '' - -- interface: 'FortyGigE0/1/1/0' - lane: '0' - temperature_value: 'N/A' - temperature_alarm_high: '' - temperature_alarm_low: '' - temperature_warn_high: '' - temperature_warn_low: '' - voltage_value: '' - voltage_alarm_high: '' - voltage_alarm_low: '' - voltage_warn_high: '' - voltage_warn_low: '' - rx_value: '-2.33215' - tx_value: '-2.19179' - -- interface: 'FortyGigE0/1/1/0' - lane: '1' - temperature_value: 'N/A' - temperature_alarm_high: '' - temperature_alarm_low: '' - temperature_warn_high: '' - temperature_warn_low: '' - voltage_value: '' - voltage_alarm_high: '' - voltage_alarm_low: '' - voltage_warn_high: '' - voltage_warn_low: '' - rx_value: '-2.87014' - tx_value: '-2.03426' - -- interface: 'FortyGigE0/1/1/0' - lane: '2' - temperature_value: 'N/A' - temperature_alarm_high: '' - temperature_alarm_low: '' - temperature_warn_high: '' - temperature_warn_low: '' - voltage_value: '' - voltage_alarm_high: '' - voltage_alarm_low: '' - voltage_warn_high: '' - voltage_warn_low: '' - rx_value: '-1.58703' - tx_value: '-2.03703' - -- interface: 'FortyGigE0/1/1/0' - lane: '3' - temperature_value: 'N/A' - temperature_alarm_high: '' - temperature_alarm_low: '' - temperature_warn_high: '' - temperature_warn_low: '' - voltage_value: '' - voltage_alarm_high: '' - voltage_alarm_low: '' - voltage_warn_high: '' - voltage_warn_low: '' - rx_value: '-2.27312' - tx_value: '-1.87755' \ No newline at end of file diff --git a/tests/cisco_xr/show_controllers_all_phy/cisco_xr_show_controllers_all_phy.parsed b/tests/cisco_xr/show_controllers_all_phy/cisco_xr_show_controllers_all_phy.parsed new file mode 100644 index 0000000000..a0da39f3e9 --- /dev/null +++ b/tests/cisco_xr/show_controllers_all_phy/cisco_xr_show_controllers_all_phy.parsed @@ -0,0 +1,157 @@ +--- +parsed_sample: + +- interface: FortyGigE0/1/1/0 + lane: '' + rx_alarm_high: '' + rx_alarm_low: '' + rx_value: '' + rx_warn_high: '' + rx_warn_low: '' + temperature_alarm_high: '+75.000' + temperature_alarm_low: '-5.000' + temperature_value: '+26.535' + temperature_warn_high: '+70.000' + temperature_warn_low: '+0.000' + tx_alarm_high: '' + tx_alarm_low: '' + tx_value: '' + tx_warn_high: '' + tx_warn_low: '' + voltage_alarm_high: '3.630' + voltage_alarm_low: '2.970' + voltage_value: '3.254' + voltage_warn_high: '3.465' + voltage_warn_low: '3.100' +- interface: FortyGigE0/1/1/0 + lane: '' + rx_alarm_high: '' + rx_alarm_low: '' + rx_value: '' + rx_warn_high: '' + rx_warn_low: '' + temperature_alarm_high: '' + temperature_alarm_low: '' + temperature_value: '' + temperature_warn_high: '' + temperature_warn_low: '' + tx_alarm_high: '1.99974' + tx_alarm_low: '-11.60522' + tx_value: '' + tx_warn_high: '-1.00015' + tx_warn_low: '-7.60200' + voltage_alarm_high: '' + voltage_alarm_low: '' + voltage_value: '' + voltage_warn_high: '' + voltage_warn_low: '' +- interface: FortyGigE0/1/1/0 + lane: '' + rx_alarm_high: '3.39988' + rx_alarm_low: '-13.50665' + rx_value: '' + rx_warn_high: '2.40000' + rx_warn_low: '-9.50007' + temperature_alarm_high: '' + temperature_alarm_low: '' + temperature_value: '' + temperature_warn_high: '' + temperature_warn_low: '' + tx_alarm_high: '' + tx_alarm_low: '' + tx_value: '' + tx_warn_high: '' + tx_warn_low: '' + voltage_alarm_high: '' + voltage_alarm_low: '' + voltage_value: '' + voltage_warn_high: '' + voltage_warn_low: '' +- interface: FortyGigE0/1/1/0 + lane: '0' + rx_alarm_high: '' + rx_alarm_low: '' + rx_value: '-2.33215' + rx_warn_high: '' + rx_warn_low: '' + temperature_alarm_high: '' + temperature_alarm_low: '' + temperature_value: N/A + temperature_warn_high: '' + temperature_warn_low: '' + tx_alarm_high: '' + tx_alarm_low: '' + tx_value: '-2.19179' + tx_warn_high: '' + tx_warn_low: '' + voltage_alarm_high: '' + voltage_alarm_low: '' + voltage_value: '' + voltage_warn_high: '' + voltage_warn_low: '' +- interface: FortyGigE0/1/1/0 + lane: '1' + rx_alarm_high: '' + rx_alarm_low: '' + rx_value: '-2.87014' + rx_warn_high: '' + rx_warn_low: '' + temperature_alarm_high: '' + temperature_alarm_low: '' + temperature_value: N/A + temperature_warn_high: '' + temperature_warn_low: '' + tx_alarm_high: '' + tx_alarm_low: '' + tx_value: '-2.03426' + tx_warn_high: '' + tx_warn_low: '' + voltage_alarm_high: '' + voltage_alarm_low: '' + voltage_value: '' + voltage_warn_high: '' + voltage_warn_low: '' +- interface: FortyGigE0/1/1/0 + lane: '2' + rx_alarm_high: '' + rx_alarm_low: '' + rx_value: '-1.58703' + rx_warn_high: '' + rx_warn_low: '' + temperature_alarm_high: '' + temperature_alarm_low: '' + temperature_value: N/A + temperature_warn_high: '' + temperature_warn_low: '' + tx_alarm_high: '' + tx_alarm_low: '' + tx_value: '-2.03703' + tx_warn_high: '' + tx_warn_low: '' + voltage_alarm_high: '' + voltage_alarm_low: '' + voltage_value: '' + voltage_warn_high: '' + voltage_warn_low: '' +- interface: FortyGigE0/1/1/0 + lane: '3' + rx_alarm_high: '' + rx_alarm_low: '' + rx_value: '-2.27312' + rx_warn_high: '' + rx_warn_low: '' + temperature_alarm_high: '' + temperature_alarm_low: '' + temperature_value: N/A + temperature_warn_high: '' + temperature_warn_low: '' + tx_alarm_high: '' + tx_alarm_low: '' + tx_value: '-1.87755' + tx_warn_high: '' + tx_warn_low: '' + voltage_alarm_high: '' + voltage_alarm_low: '' + voltage_value: '' + voltage_warn_high: '' + voltage_warn_low: '' diff --git a/tests/cisco_xr/show_controllers_all_phy/cisco_xr_show_controllers.raw b/tests/cisco_xr/show_controllers_all_phy/cisco_xr_show_controllers_all_phy.raw similarity index 100% rename from tests/cisco_xr/show_controllers_all_phy/cisco_xr_show_controllers.raw rename to tests/cisco_xr/show_controllers_all_phy/cisco_xr_show_controllers_all_phy.raw