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

Support for User Defined Metrics #370

Open
wants to merge 45 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
363d54d
initial draft of UDS model
PrasenjitAdhikary Mar 20, 2024
44d9ca0
Update auto generated content
actions-user Mar 20, 2024
169133d
remove count constraint from non-array struct
PrasenjitAdhikary Mar 20, 2024
c624a35
Merge branch 'dev-uds' of https://github.com/open-traffic-generator/m…
PrasenjitAdhikary Mar 20, 2024
20e2886
Update auto generated content
actions-user Mar 20, 2024
bac7862
changes for uds
vhowdhur Mar 21, 2024
f007627
Update auto generated content
actions-user Mar 21, 2024
2121369
cosmetic changes
vhowdhur Mar 25, 2024
b1b1356
Merge remote-tracking branch 'origin/dev-uds' into dev-uds
vhowdhur Mar 25, 2024
714f7dc
Update auto generated content
actions-user Mar 25, 2024
1a07486
fix type
vhowdhur Mar 26, 2024
547f677
Update auto generated content
actions-user Mar 26, 2024
11499d5
adding name for filters
vhowdhur Mar 27, 2024
fe4df46
Update auto generated content
actions-user Mar 27, 2024
3ab1dc1
Merge branch 'master' into dev-uds
vhowdhur Apr 1, 2024
1cc60b0
Update auto generated content
actions-user Apr 1, 2024
31dcf38
addressing review comments
vhowdhur Apr 2, 2024
f335571
Update auto generated content
actions-user Apr 2, 2024
f040569
Merge branch 'master' into dev-uds
vhowdhur Apr 2, 2024
2ae5ffd
refactor
vhowdhur Apr 2, 2024
538e5c6
Update auto generated content
actions-user Apr 2, 2024
15736a2
refactor model
vhowdhur Apr 4, 2024
2d5c0e7
Update auto generated content
actions-user Apr 4, 2024
ae4ec49
small nomenclature change
vhowdhur Apr 4, 2024
595d25d
Update auto generated content
actions-user Apr 4, 2024
b43eda8
resolving review comments
vhowdhur Apr 16, 2024
183d69f
Update auto generated content
actions-user Apr 16, 2024
8c6e88c
adding more comments to bin_filters description
vhowdhur Apr 17, 2024
6ab9abb
Update auto generated content
actions-user Apr 17, 2024
c0d710f
limiting packet headers
vhowdhur Apr 17, 2024
013c0ab
Update auto generated content
actions-user Apr 17, 2024
703e9ba
revert spaces
vhowdhur Apr 17, 2024
24111ca
adding mpls packet header
vhowdhur Apr 17, 2024
b5a7d66
Update auto generated content
actions-user Apr 17, 2024
1529bb8
refactoring
vhowdhur Apr 18, 2024
b699dfc
Update auto generated content
actions-user Apr 18, 2024
066ad6e
adding x-uds to packet templates
vhowdhur Apr 19, 2024
b4acead
bug fix for checksum
vhowdhur Apr 19, 2024
f35c3bd
Update auto generated content
actions-user Apr 19, 2024
2a62933
remove checksum and add packet_header hierarchy
vhowdhur Apr 19, 2024
da9ba99
Update auto generated content
actions-user Apr 19, 2024
247d918
making required fields for checksum
vhowdhur Apr 19, 2024
58d4a10
Update auto generated content
actions-user Apr 19, 2024
954a6c6
refactoring bin hierarchy to include mode and per port settings
vhowdhur Apr 29, 2024
a7b9401
Update auto generated content
actions-user Apr 29, 2024
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
12 changes: 7 additions & 5 deletions artifacts/openapi.html

Large diffs are not rendered by default.

2,057 changes: 1,817 additions & 240 deletions artifacts/openapi.yaml

Large diffs are not rendered by default.

3,147 changes: 2,290 additions & 857 deletions artifacts/otg.proto

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,17 @@ components:
items:
$ref: '../lldp/lldp.yaml#/components/schemas/Lldp'
x-field-uid: 9
receive_bins:
x-status:
status: under_review
information: There may be changes in receive_bins configuration
description: |-
The receive_bins that will be configured on traffic generator. To get metrics according to configured bins/buckets.
type: array
items:
$ref: '../receive_bins/receive_bins.yaml#/components/schemas/ReceiveBins'
x-field-uid: 10

Config.Options:
description: |-
Global configuration options.
Expand Down
32 changes: 32 additions & 0 deletions flow/packet-headers/arp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,35 @@ components:
default: 0.0.0.0
features: [count, metric_tags]
x-field-uid: 9

Filter.Arp:
description: ARP packet header
type: object
properties:
hardware_type:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 1
protocol_type:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 2
hardware_length:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 3
protocol_length:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 4
operation:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 5
sender_hardware_addr:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 6
sender_protocol_addr:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 7
target_hardware_addr:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 8
target_protocol_addr:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 9
17 changes: 17 additions & 0 deletions flow/packet-headers/ethernet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,20 @@ components:
default: 0
features: [count, metric_tags]
x-field-uid: 4

Filter.Ethernet:
description: Ethernet packet header
type: object
properties:
dst:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 1
src:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 2
ether_type:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 3
pfc_queue:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 4
20 changes: 20 additions & 0 deletions flow/packet-headers/ethernetpause.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,23 @@ components:
default: 0
features: [count, metric_tags]
x-field-uid: 5

Filter.EthernetPause:
description: IEEE 802.3x global ethernet pause packet header
type: object
properties:
dst:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 1
src:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 2
ether_type:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 3
control_op_code:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 4
time:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 5
23 changes: 23 additions & 0 deletions flow/packet-headers/gre.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,26 @@ components:
default: 0
features: [count, metric_tags]
x-field-uid: 6

Filter.Gre:
description: Standard GRE packet header (RFC2784)
type: object
properties:
checksum_present:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 1
reserved0:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 2
version:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 3
protocol:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 4
checksum:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 5
reserved1:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 6
40 changes: 40 additions & 0 deletions flow/packet-headers/gtp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -162,3 +162,43 @@ components:
default: 0
features: [count, metric_tags]
x-field-uid: 3

Filter.Gtpv1:
type: object
properties:
version:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 1
protocol_type:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 2
reserved:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 3
e_flag:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 4
s_flag:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 5
pn_flag:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 6
message_type:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 7
message_length:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 8
teid:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 9
squence_number:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 10
n_pdu_number:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 11
next_extension_header_type:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 12
31 changes: 31 additions & 0 deletions flow/packet-headers/gtpv2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,34 @@ components:
default: 0
features: [count, metric_tags]
x-field-uid: 9

Filter.Gtpv2:
type: object
properties:
version:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 1
piggybacking_flag:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 2
teid_flag:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 3
spare1:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 4
message_type:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 5
message_length:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 6
teid:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 7
sequence_number:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 8
spare2:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 9
33 changes: 33 additions & 0 deletions flow/packet-headers/icmp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,36 @@ components:
default: 0
features: [count, metric_tags]
x-field-uid: 2

Filter.Icmp:
description: ICMP packet header
type: object
properties:
choice:
type: string
default: echo
x-field-uid: 1
x-enum:
echo:
x-field-uid: 1
echo:
$ref: '#/components/schemas/Filter.Icmp.Echo'
x-field-uid: 2
Filter.Icmp.Echo:
type: object
properties:
type:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 1
code:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 2
checksum:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 3
identifier:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 4
sequence_number:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 5
33 changes: 33 additions & 0 deletions flow/packet-headers/icmpv6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,36 @@ components:
format: checksum
length: 16
x-field-uid: 1

Filter.Icmpv6:
description: ICMPv6 packet header
type: object
properties:
choice:
type: string
default: echo
x-field-uid: 1
x-enum:
echo:
x-field-uid: 1
echo:
$ref: '#/components/schemas/Filter.Icmpv6.Echo'
x-field-uid: 2
Filter.Icmpv6.Echo:
type: object
properties:
type:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 1
code:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 2
identifier:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 3
sequence_number:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 4
checksum:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 5
19 changes: 19 additions & 0 deletions flow/packet-headers/igmpv1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,22 @@ components:
default: 0.0.0.0
features: [count, metric_tags]
x-field-uid: 5

Filter.Igmpv1:
type: object
properties:
version:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 1
type:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 2
unused:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 3
checksum:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 4
group_address:
$ref: "../../receive_bins/receive_bins.yaml#/components/schemas/Filter.Field"
x-field-uid: 5
Loading