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

[PR]_If_counters_state.YML #168

Open
wants to merge 3 commits into
base: automation_framework
Choose a base branch
from
Open
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
195 changes: 195 additions & 0 deletions AutomationFramework/test_cases/if_counters_state.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,195 @@

- testcase:
name: if_state_in_broadcast_pkts
id: 1
description: >
This test is to get The number of packets, delivered by this sub-layer to a higher (sub-)layer.
rpcs:
- template: if_state_in_broadcast_pkts.xml
operation: get
params:
interface_name: "eth1"
out_broadcast_pkts: ""

- testcase:
name: if_state_in_discards
id: 2
description: >
This test is to get The number of inbound packets that were chosen to be discarded
rpcs:
- template: if_state_in_discards.xml
operation: get
params:
interface_name: "eth1"
in_discards: ""

- testcase:
name: if_state_in_errors
id: 3
description: >
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: ""

- 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:
interface_name: "eth1"
in_fcs_errors: ""

- 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:
interface_name: "eth1"
in_multicast_pkts: ""

- testcase:
name: if_state_in_octets
id: 6
description: >
This test is to get the total number of octets received on the interface, including framing characters.
rpcs:
- template: if_state_in_octets.xml
operation: get
params:
interface_name: "eth1"
in_octects: ""

- 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 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
params:
interface_name: "eth1"
out_broadcast_pkts: ""


- testcase:
name: if_state_out_discards
id: 11
description: >
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
params:
interface_name: "eth1"
out_discards: ""

- testcase:
name: if_state_out_errors
id: 12
description: >
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
params:
interface_name: "eth1"
out_errors: ""

- testcase:
name: if_state_out_multicast_pkts
id: 13
description: >
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
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 the total number of octets transmitted out of the interface, including framing characters.
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 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
params:
interface_name: "eth1"
out_unicast_pkts: ""
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<get>
<filter>
<interfaces xmlns="http://openconfig.net/yang/interfaces">
<interface>
<name>{{interface_name}}</name>
<state>
<counters>
<in-broadcast-pkts>{{in_broadcast_pkts}}</in-broadcast-pkts>
</counters>
</state>
</interface>
</interfaces>
</filter>
</get>
14 changes: 14 additions & 0 deletions AutomationFramework/test_cases/templates/if_state_in_discards.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<get>
<filter>
<interfaces xmlns="http://openconfig.net/yang/interfaces">
<interface>
<name>{{interface_name}}</name>
<state>
<counters>
<in-discards>{{in_discards}}</in-discards>
</counters>
</state>
</interface>
</interfaces>
</filter>
</get>
14 changes: 14 additions & 0 deletions AutomationFramework/test_cases/templates/if_state_in_errors.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<get>
<filter>
<interfaces xmlns="http://openconfig.net/yang/interfaces">
<interface>
<name>{{interface_name}}</name>
<state>
<counters>
<in-errors>{{in_errors}}</in-errors>
</counters>
</state>
</interface>
</interfaces>
</filter>
</get>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<get>
<filter>
<interfaces xmlns="http://openconfig.net/yang/interfaces">
<interface>
<name>{{interface_name}}</name>
<state>
<counters>
<in-fcs-errors>{{in_fcs_errors}}</in-fcs-errors>
</counters>
</state>
</interface>
</interfaces>
</filter>
</get>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<get>
<filter>
<interfaces xmlns="http://openconfig.net/yang/interfaces">
<interface>
<name>{{interface_name}}</name>
<state>
<counters>
<in-multicast-pkts>{{in_multicast_pkts}}</in-multicast-pkts>
</counters>
</state>
</interface>
</interfaces>
</filter>
</get>
14 changes: 14 additions & 0 deletions AutomationFramework/test_cases/templates/if_state_in_octets.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<get>
<filter>
<interfaces xmlns="http://openconfig.net/yang/interfaces">
<interface>
<name>{{interface_name}}</name>
<state>
<counters>
<in-octets>{{in_octects}}</in-octets>
</counters>
</state>
</interface>
</interfaces>
</filter>
</get>
14 changes: 14 additions & 0 deletions AutomationFramework/test_cases/templates/if_state_in_pkts.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<get>
<filter>
<interfaces xmlns="http://openconfig.net/yang/interfaces">
<interface>
<name>{{interface_name}}</name>
<state>
<counters>
<in-pkts>{{in_pkts}}</in-pkts>
</counters>
</state>
</interface>
</interfaces>
</filter>
</get>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<get>
<filter>
<interfaces xmlns="http://openconfig.net/yang/interfaces">
<interface>
<name>{{interface_name}}</name>
<state>
<counters>
<in-unicast-pkts>{{in_unicast_pkts}}</in-unicast-pkts>
</counters>
</state>
</interface>
</interfaces>
</filter>
</get>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<get>
<filter>
<interfaces xmlns="http://openconfig.net/yang/interfaces">
<interface>
<name>{{interface_name}}</name>
<state>
<counters>
<in-unknown-protos>{{in_unknown_protos}}</in-unknown-protos>
</counters>
</state>
</interface>
</interfaces>
</filter>
</get>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<get>
<filter>
<interfaces xmlns="http://openconfig.net/yang/interfaces">
<interface>
<name>{{interface_name}}</name>
<state>
<counters>
<out-broadcast-pkts>{{out_broadcast_pkts}}</out-broadcast-pkts>
</counters>
</state>
</interface>
</interfaces>
</filter>
</get>
14 changes: 14 additions & 0 deletions AutomationFramework/test_cases/templates/if_state_out_discards.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<get>
<filter>
<interfaces xmlns="http://openconfig.net/yang/interfaces">
<interface>
<name>{{interface_name}}</name>
<state>
<counters>
<out-discards>{{out_discards}}</out-discards>
</counters>
</state>
</interface>
</interfaces>
</filter>
</get>
14 changes: 14 additions & 0 deletions AutomationFramework/test_cases/templates/if_state_out_errors.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<get>
<filter>
<interfaces xmlns="http://openconfig.net/yang/interfaces">
<interface>
<name>{{interface_name}}</name>
<state>
<counters>
<out-errors>{{out_errors}}</out-errors>
</counters>
</state>
</interface>
</interfaces>
</filter>
</get>
Loading