From 812acd2fec0f281e388841b164251d89f86b2643 Mon Sep 17 00:00:00 2001 From: javierb10 <71277297+javierb10@users.noreply.github.com> Date: Wed, 24 Feb 2021 18:47:31 +0100 Subject: [PATCH 1/3] [commit]_if_counters_state.YML added xml and created file yml if_counters_state --- .../test_cases/if_counters_state.yml | 69 +++++++++++++++++++ .../templates/if_state_in_broadcast_pkts.xml | 14 ++++ .../templates/if_state_in_discards.xml | 14 ++++ .../templates/if_state_in_errors.xml | 14 ++++ .../templates/if_state_in_fcs_errors.xml | 14 ++++ .../templates/if_state_in_multicast_pkts.xml | 14 ++++ .../templates/if_state_in_octets.xml | 14 ++++ .../test_cases/templates/if_state_in_pkts.xml | 14 ++++ .../templates/if_state_in_unicast_pkts.xml | 14 ++++ .../templates/if_state_in_unknown_protos.xml | 14 ++++ .../templates/if_state_out_broadcast_pkts.xml | 14 ++++ .../templates/if_state_out_discards.xml | 14 ++++ .../templates/if_state_out_errors.xml | 14 ++++ .../templates/if_state_out_multicast_pkts.xml | 14 ++++ .../templates/if_state_out_octets.xml | 14 ++++ .../templates/if_state_out_pkts.xml | 14 ++++ .../templates/if_state_out_unicast_pkts.xml | 14 ++++ 17 files changed, 293 insertions(+) create mode 100644 AutomationFramework/test_cases/if_counters_state.yml create mode 100644 AutomationFramework/test_cases/templates/if_state_in_broadcast_pkts.xml create mode 100644 AutomationFramework/test_cases/templates/if_state_in_discards.xml create mode 100644 AutomationFramework/test_cases/templates/if_state_in_errors.xml create mode 100644 AutomationFramework/test_cases/templates/if_state_in_fcs_errors.xml create mode 100644 AutomationFramework/test_cases/templates/if_state_in_multicast_pkts.xml create mode 100644 AutomationFramework/test_cases/templates/if_state_in_octets.xml create mode 100644 AutomationFramework/test_cases/templates/if_state_in_pkts.xml create mode 100644 AutomationFramework/test_cases/templates/if_state_in_unicast_pkts.xml create mode 100644 AutomationFramework/test_cases/templates/if_state_in_unknown_protos.xml create mode 100644 AutomationFramework/test_cases/templates/if_state_out_broadcast_pkts.xml create mode 100644 AutomationFramework/test_cases/templates/if_state_out_discards.xml create mode 100644 AutomationFramework/test_cases/templates/if_state_out_errors.xml create mode 100644 AutomationFramework/test_cases/templates/if_state_out_multicast_pkts.xml create mode 100644 AutomationFramework/test_cases/templates/if_state_out_octets.xml create mode 100644 AutomationFramework/test_cases/templates/if_state_out_pkts.xml create mode 100644 AutomationFramework/test_cases/templates/if_state_out_unicast_pkts.xml diff --git a/AutomationFramework/test_cases/if_counters_state.yml b/AutomationFramework/test_cases/if_counters_state.yml new file mode 100644 index 0000000..1dfcc57 --- /dev/null +++ b/AutomationFramework/test_cases/if_counters_state.yml @@ -0,0 +1,69 @@ + +- testcase: + name: hw_port_channel_speed + id: 1 + description: > + This test is to set channel speed. + rpcs: + - template: hw_port_channel_speed.xml + target: candidate + operation: edit-config + commit: true + params: + name: "Eth1/1" + channel_speed: "SPEED_40GB" + +- testcase: + name: hw_port_num_channels + id: 2 + description: > + This test is to set channel numbers. + rpcs: + - template: hw_port_num_channels.xml + target: candidate + operation: edit-config + commit: true + params: + name: "Eth1/1" + num_channels: "4" + +- testcase: + name: hw_port_channel_speed_state + id: 3 + description: > + This test is to get channel speed. + rpcs: + + - template: hw_port_channel_speed.xml + target: candidate + operation: edit-config + commit: true + params: + name: "Eth1/1" + channel_speed: "SPEED_40GB" + + - template: hw_port_channel_speed_state.xml + operation: get + params: + name: "Eth1/1" + channel_speed_state: "" + +- testcase: + name: hw_port_num_channels_state + id: 4 + description: > + This test is to get number channels. + rpcs: + - template: hw_port_num_channels.xml + target: candidate + operation: edit-config + commit: true + params: + name: "Eth1/1" + num_channels: "4" + + - template: hw_port_num_channels_state.xml + operation: get + params: + name: "Eth1/1" + num_channels: "" diff --git a/AutomationFramework/test_cases/templates/if_state_in_broadcast_pkts.xml b/AutomationFramework/test_cases/templates/if_state_in_broadcast_pkts.xml new file mode 100644 index 0000000..149349d --- /dev/null +++ b/AutomationFramework/test_cases/templates/if_state_in_broadcast_pkts.xml @@ -0,0 +1,14 @@ + + + + + {{interface_name}} + + + {{out_broadcast_pkts}} + + + + + + \ No newline at end of file diff --git a/AutomationFramework/test_cases/templates/if_state_in_discards.xml b/AutomationFramework/test_cases/templates/if_state_in_discards.xml new file mode 100644 index 0000000..71e20c5 --- /dev/null +++ b/AutomationFramework/test_cases/templates/if_state_in_discards.xml @@ -0,0 +1,14 @@ + + + + + {{interface_name}} + + + {{out_discards}} + + + + + + \ No newline at end of file diff --git a/AutomationFramework/test_cases/templates/if_state_in_errors.xml b/AutomationFramework/test_cases/templates/if_state_in_errors.xml new file mode 100644 index 0000000..f4320f4 --- /dev/null +++ b/AutomationFramework/test_cases/templates/if_state_in_errors.xml @@ -0,0 +1,14 @@ + + + + + {{interface_name}} + + + {{in_errors}} + + + + + + \ No newline at end of file diff --git a/AutomationFramework/test_cases/templates/if_state_in_fcs_errors.xml b/AutomationFramework/test_cases/templates/if_state_in_fcs_errors.xml new file mode 100644 index 0000000..2b5a2e5 --- /dev/null +++ b/AutomationFramework/test_cases/templates/if_state_in_fcs_errors.xml @@ -0,0 +1,14 @@ + + + + + {{interface_name}} + + + {{in_fcs_errors}} + + + + + + \ No newline at end of file diff --git a/AutomationFramework/test_cases/templates/if_state_in_multicast_pkts.xml b/AutomationFramework/test_cases/templates/if_state_in_multicast_pkts.xml new file mode 100644 index 0000000..4503c36 --- /dev/null +++ b/AutomationFramework/test_cases/templates/if_state_in_multicast_pkts.xml @@ -0,0 +1,14 @@ + + + + + {{interface_name}} + + + {{out_multicast_pkts}} + + + + + + \ No newline at end of file diff --git a/AutomationFramework/test_cases/templates/if_state_in_octets.xml b/AutomationFramework/test_cases/templates/if_state_in_octets.xml new file mode 100644 index 0000000..3a7c429 --- /dev/null +++ b/AutomationFramework/test_cases/templates/if_state_in_octets.xml @@ -0,0 +1,14 @@ + + + + + {{interface_name}} + + + {{in_octects}} + + + + + + \ No newline at end of file diff --git a/AutomationFramework/test_cases/templates/if_state_in_pkts.xml b/AutomationFramework/test_cases/templates/if_state_in_pkts.xml new file mode 100644 index 0000000..1ae1e66 --- /dev/null +++ b/AutomationFramework/test_cases/templates/if_state_in_pkts.xml @@ -0,0 +1,14 @@ + + + + + {{interface_name}} + + + {{in_pkts}} + + + + + + \ No newline at end of file diff --git a/AutomationFramework/test_cases/templates/if_state_in_unicast_pkts.xml b/AutomationFramework/test_cases/templates/if_state_in_unicast_pkts.xml new file mode 100644 index 0000000..f24df09 --- /dev/null +++ b/AutomationFramework/test_cases/templates/if_state_in_unicast_pkts.xml @@ -0,0 +1,14 @@ + + + + + {{interface_name}} + + + {{in_unicast_pkts}} + + + + + + \ No newline at end of file diff --git a/AutomationFramework/test_cases/templates/if_state_in_unknown_protos.xml b/AutomationFramework/test_cases/templates/if_state_in_unknown_protos.xml new file mode 100644 index 0000000..f5eb9cc --- /dev/null +++ b/AutomationFramework/test_cases/templates/if_state_in_unknown_protos.xml @@ -0,0 +1,14 @@ + + + + + {{interface_name}} + + + {{in_unknown_protos}} + + + + + + \ No newline at end of file diff --git a/AutomationFramework/test_cases/templates/if_state_out_broadcast_pkts.xml b/AutomationFramework/test_cases/templates/if_state_out_broadcast_pkts.xml new file mode 100644 index 0000000..149349d --- /dev/null +++ b/AutomationFramework/test_cases/templates/if_state_out_broadcast_pkts.xml @@ -0,0 +1,14 @@ + + + + + {{interface_name}} + + + {{out_broadcast_pkts}} + + + + + + \ No newline at end of file diff --git a/AutomationFramework/test_cases/templates/if_state_out_discards.xml b/AutomationFramework/test_cases/templates/if_state_out_discards.xml new file mode 100644 index 0000000..c332c54 --- /dev/null +++ b/AutomationFramework/test_cases/templates/if_state_out_discards.xml @@ -0,0 +1,14 @@ + + + + + {{interface_name}} + + + {{out_discards}} + + + + + + \ No newline at end of file diff --git a/AutomationFramework/test_cases/templates/if_state_out_errors.xml b/AutomationFramework/test_cases/templates/if_state_out_errors.xml new file mode 100644 index 0000000..9e5a9e1 --- /dev/null +++ b/AutomationFramework/test_cases/templates/if_state_out_errors.xml @@ -0,0 +1,14 @@ + + + + + {{interface_name}} + + + {{out_errors}} + + + + + + \ No newline at end of file diff --git a/AutomationFramework/test_cases/templates/if_state_out_multicast_pkts.xml b/AutomationFramework/test_cases/templates/if_state_out_multicast_pkts.xml new file mode 100644 index 0000000..4503c36 --- /dev/null +++ b/AutomationFramework/test_cases/templates/if_state_out_multicast_pkts.xml @@ -0,0 +1,14 @@ + + + + + {{interface_name}} + + + {{out_multicast_pkts}} + + + + + + \ No newline at end of file diff --git a/AutomationFramework/test_cases/templates/if_state_out_octets.xml b/AutomationFramework/test_cases/templates/if_state_out_octets.xml new file mode 100644 index 0000000..6fc3317 --- /dev/null +++ b/AutomationFramework/test_cases/templates/if_state_out_octets.xml @@ -0,0 +1,14 @@ + + + + + {{interface_name}} + + + {{out_octets}} + + + + + + \ No newline at end of file diff --git a/AutomationFramework/test_cases/templates/if_state_out_pkts.xml b/AutomationFramework/test_cases/templates/if_state_out_pkts.xml new file mode 100644 index 0000000..587b9b3 --- /dev/null +++ b/AutomationFramework/test_cases/templates/if_state_out_pkts.xml @@ -0,0 +1,14 @@ + + + + + {{interface_name}} + + + {{out_pkts}} + + + + + + \ No newline at end of file diff --git a/AutomationFramework/test_cases/templates/if_state_out_unicast_pkts.xml b/AutomationFramework/test_cases/templates/if_state_out_unicast_pkts.xml new file mode 100644 index 0000000..72518f9 --- /dev/null +++ b/AutomationFramework/test_cases/templates/if_state_out_unicast_pkts.xml @@ -0,0 +1,14 @@ + + + + + {{interface_name}} + + + {{out_unicast_pkts}} + + + + + + \ No newline at end of file From 8d41fcf8ff30b96c6d9202e2c85a31fd4a5e241e Mon Sep 17 00:00:00 2001 From: javierb10 <71277297+javierb10@users.noreply.github.com> Date: Thu, 25 Feb 2021 15:18:48 +0100 Subject: [PATCH 2/3] [commit]_if_counters_state.YML --- .../test_cases/if_counters_state.yml | 203 ++++++++++++++---- .../templates/if_state_in_broadcast_pkts.xml | 2 +- .../templates/if_state_in_discards.xml | 2 +- .../templates/if_state_in_multicast_pkts.xml | 2 +- 4 files changed, 167 insertions(+), 42 deletions(-) diff --git a/AutomationFramework/test_cases/if_counters_state.yml b/AutomationFramework/test_cases/if_counters_state.yml index 1dfcc57..bd1595f 100644 --- a/AutomationFramework/test_cases/if_counters_state.yml +++ b/AutomationFramework/test_cases/if_counters_state.yml @@ -1,69 +1,194 @@ - testcase: - name: hw_port_channel_speed + name: if_state_in_broadcast_pkts id: 1 description: > - This test is to set channel speed. + This test is to get The number of packets, delivered by this sub-layer to a higher (sub-)layer. rpcs: - - template: hw_port_channel_speed.xml - target: candidate - operation: edit-config - commit: true + - template: if_state_in_broadcast_pkts.xml + operation: get params: - name: "Eth1/1" - channel_speed: "SPEED_40GB" + interface_name: "eth1" + out_broadcast_pkts: "" - testcase: - name: hw_port_num_channels + name: if_state_in_discards id: 2 description: > - This test is to set channel numbers. + This test is to get The number of inbound packets that were chosen to be discarded rpcs: - - template: hw_port_num_channels.xml - target: candidate - operation: edit-config - commit: true + - template: if_state_in_discards.xml + operation: get params: - name: "Eth1/1" - num_channels: "4" + interface_name: "eth1" + in_discards: "" - testcase: - name: hw_port_channel_speed_state + name: if_state_in_errors id: 3 description: > - This test is to get channel speed. + This test is to get the number of inbound packets that contained errors . rpcs: + - template: if_state_in_errors.xml + operation: get + params: + interface_name: "eth1" + in_errors: "" - - template: hw_port_channel_speed.xml - target: candidate - operation: edit-config - commit: true +- testcase: + name: if_state_in_fcs_errors + id: 4 + description: > + This test is to get the number of received packets which had errors in the frame check sequence (FCS), i.e., framing errors. + rpcs: + - template: if_state_in_fcs_errors.xml + operation: get params: - name: "Eth1/1" - channel_speed: "SPEED_40GB" + interface_name: "eth1" + in_fcs_errors: "" - - template: hw_port_channel_speed_state.xml +- testcase: + name: if_state_in_multicast_pkts + id: 5 + description: > + This test is to get The number of packets, delivered by this sub-layer to a higher (sub-)layer, that were addressed to a multicast address at this sub-layer + rpcs: + - template: if_state_in_multicast_pkts.xml operation: get params: - name: "Eth1/1" - channel_speed_state: "" + interface_name: "eth1" + in_multicast_pkts: "" - testcase: - name: hw_port_num_channels_state - id: 4 + name: if_state_in_octets + id: 6 description: > - This test is to get number channels. + This test is to get the total number of octets received on the interface, including framing characters. rpcs: - - template: hw_port_num_channels.xml - target: candidate - operation: edit-config - commit: true + - template: if_state_in_octets.xml + operation: get params: - name: "Eth1/1" - num_channels: "4" + interface_name: "eth1" + in_octects: "" - - template: hw_port_num_channels_state.xml +- testcase: + name: if_state_in_pkts + id: 7 + description: > + This test is to get The total number of packets received on the interface, including all unicast, multicast, broadcast and bad packets etc. + rpcs: + - template: if_state_in_pkts.xml + operation: get + params: + interface_name: "eth1" + in_pkts: "" + +- testcase: + name: if_state_in_unicast_pkts + id: 8 + description: > + This test is to get The number of packets, delivered by this sub-layer to a higher (sub-)layer, that were not addressed to a multicast or broadcast address at this sub-layer + rpcs: + - template: if_state_in_unicast_pkts.xml + operation: get + params: + interface_name: "eth1" + in_unicast_pkts: "" + +- testcase: + name: if_state_in_unknown_protos + id: 9 + description: > + This test is to get the number of packets received via the interface that were discarded because of an unknown or unsupported protocol.(For packet-oriented interfaces) + rpcs: + - template: if_state_in_unknown_protos.xml + operation: get + params: + interface_name: "eth1" + in_unknown_protos: "" + +- testcase: + name: if_state_out_broadcast_pkts + id: 10 + description: > + This test is to get type of component by the system. + rpcs: + - template: if_state_out_broadcast_pkts.xml + operation: get + params: + interface_name: "eth1" + out_broadcast_pkts: "" + + +- testcase: + name: if_state_out_discards + id: 11 + description: > + This test is to get type of component by the system. + rpcs: + - template: if_state_out_discards.xml + operation: get + params: + interface_name: "eth1" + out_discards: "" + +- testcase: + name: if_state_out_errors + id: 12 + description: > + This test is to get type of component by the system. + rpcs: + - template: if_state_out_errors.xml + operation: get + params: + interface_name: "eth1" + out_errors: "" + +- testcase: + name: if_state_out_multicast_pkts + id: 13 + description: > + This test is to get type of component by the system. + rpcs: + - template: if_state_out_multicast_pkts.xml + operation: get + params: + interface_name: "eth1" + out_multicast_pkts: "" + +- testcase: + name: if_state_out_octets + id: 14 + description: > + This test is to get type of component by the system. + rpcs: + - template: if_state_out_octets.xml + operation: get + params: + interface_name: "eth1" + out_octets: "" + +- testcase: + name: if_state_out_pkts + id: 15 + description: > + This test is to get type of component by the system. + rpcs: + - template: if_state_out_pkts.xml + operation: get + params: + interface_name: "eth1" + out_pkts: "" + + +- testcase: + name: if_state_out_unicast_pkts + id: 16 + description: > + This test is to get type of component by the system. + rpcs: + - template: if_state_out_unicast_pkts.xml operation: get params: - name: "Eth1/1" - num_channels: "" + interface_name: "eth1" + out_unicast_pkts: "" diff --git a/AutomationFramework/test_cases/templates/if_state_in_broadcast_pkts.xml b/AutomationFramework/test_cases/templates/if_state_in_broadcast_pkts.xml index 149349d..7c087f1 100644 --- a/AutomationFramework/test_cases/templates/if_state_in_broadcast_pkts.xml +++ b/AutomationFramework/test_cases/templates/if_state_in_broadcast_pkts.xml @@ -5,7 +5,7 @@ {{interface_name}} - {{out_broadcast_pkts}} + {{in_broadcast_pkts}} diff --git a/AutomationFramework/test_cases/templates/if_state_in_discards.xml b/AutomationFramework/test_cases/templates/if_state_in_discards.xml index 71e20c5..d610b3c 100644 --- a/AutomationFramework/test_cases/templates/if_state_in_discards.xml +++ b/AutomationFramework/test_cases/templates/if_state_in_discards.xml @@ -5,7 +5,7 @@ {{interface_name}} - {{out_discards}} + {{in_discards}} diff --git a/AutomationFramework/test_cases/templates/if_state_in_multicast_pkts.xml b/AutomationFramework/test_cases/templates/if_state_in_multicast_pkts.xml index 4503c36..f8d45fd 100644 --- a/AutomationFramework/test_cases/templates/if_state_in_multicast_pkts.xml +++ b/AutomationFramework/test_cases/templates/if_state_in_multicast_pkts.xml @@ -5,7 +5,7 @@ {{interface_name}} - {{out_multicast_pkts}} + {{in_multicast_pkts}} From 659c346915fb6a13bd9285b63322e9153bcdd610 Mon Sep 17 00:00:00 2001 From: javierb10 <71277297+javierb10@users.noreply.github.com> Date: Thu, 25 Feb 2021 16:50:01 +0100 Subject: [PATCH 3/3] [commit]_if_counters_state.YML update yml --- .../test_cases/if_counters_state.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/AutomationFramework/test_cases/if_counters_state.yml b/AutomationFramework/test_cases/if_counters_state.yml index bd1595f..5e220d0 100644 --- a/AutomationFramework/test_cases/if_counters_state.yml +++ b/AutomationFramework/test_cases/if_counters_state.yml @@ -111,7 +111,7 @@ name: if_state_out_broadcast_pkts id: 10 description: > - This test is to get type of component by the system. + This test is to get the total number of packets that higher-level protocols requested be transmitted, and that were addressed to a broadcast address at this sub-layer, including those that were discarded or not sent. rpcs: - template: if_state_out_broadcast_pkts.xml operation: get @@ -124,7 +124,7 @@ name: if_state_out_discards id: 11 description: > - This test is to get type of component by the system. + This test is to get the number of outbound packets that were chosen to be discarded even though no errors had been detected to prevent their being transmitted. rpcs: - template: if_state_out_discards.xml operation: get @@ -136,7 +136,8 @@ name: if_state_out_errors id: 12 description: > - This test is to get type of component by the system. + This test is to get (For packet-oriented interfaces) the number of outbound packets that could not be transmitted because of errors. (For character-oriented or fixed-length interfaces)to get the +number of outbound transmission units that could not be transmitted because of errors. rpcs: - template: if_state_out_errors.xml operation: get @@ -148,7 +149,7 @@ name: if_state_out_multicast_pkts id: 13 description: > - This test is to get type of component by the system. + This test is to get the total number of packets that higher-level protocols requested be transmitted, and that were addressed to a multicast address at this sub-layer, including those that were discarded or not sent. rpcs: - template: if_state_out_multicast_pkts.xml operation: get @@ -172,7 +173,7 @@ name: if_state_out_pkts id: 15 description: > - This test is to get type of component by the system. + This test is to get the total number of octets transmitted out of the interface, including framing characters. rpcs: - template: if_state_out_pkts.xml operation: get @@ -185,7 +186,7 @@ name: if_state_out_unicast_pkts id: 16 description: > - This test is to get type of component by the system. + This test is to get The total number of packets that higher-level protocols requested be transmitted, and that were not addressed to a multicast or broadcast address at this sub-layer, including those that were discarded or not sent. rpcs: - template: if_state_out_unicast_pkts.xml operation: get