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

Otlp support #207

Open
wants to merge 49 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
dcddbca
creating branch to test extra requires for grpc
vhowdhur Apr 25, 2023
67571f6
Revert "creating branch to test extra requires for grpc"
vhowdhur Apr 25, 2023
7a68c70
Merge remote-tracking branch 'origin/main'
vhowdhur Apr 25, 2023
e41e5b4
redirecting to otlp-support openapiart branch
vhowdhur May 5, 2023
b9674b5
Update auto generated go snappi
actions-user May 5, 2023
de595f9
dummy commit
vhowdhur May 8, 2023
73999ff
Update auto generated go snappi
actions-user May 8, 2023
ad74371
dummy commit
vhowdhur May 9, 2023
b43902e
Update auto generated go snappi
actions-user May 9, 2023
79912d0
dummy commit
vhowdhur May 11, 2023
d1e70b4
Update auto generated go snappi
actions-user May 11, 2023
18e749b
dummy commit
vhowdhur May 12, 2023
66a0a22
Update auto generated go snappi
actions-user May 12, 2023
50923f5
adding dependency for telemetry
vhowdhur May 22, 2023
9f2f980
Update auto generated go snappi
actions-user May 22, 2023
954600c
Merge branch 'main' into otlp-support
vhowdhur May 22, 2023
ba63304
Update auto generated go snappi
actions-user May 22, 2023
ec08a41
dummy commit
vhowdhur Jun 12, 2023
d646cbf
Update auto generated go snappi
actions-user Jun 12, 2023
305c85f
dummy commit to get latest changes
vhowdhur Jun 14, 2023
2d1006c
Update auto generated go snappi
actions-user Jun 14, 2023
b4a6a7c
Merge branch 'main' into otlp-support
vhowdhur Jun 23, 2023
07d9d26
Update auto generated go snappi
actions-user Jun 23, 2023
b54fb11
trigger build
vhowdhur Aug 7, 2023
1aa4157
Update auto generated go snappi
actions-user Aug 7, 2023
b209b57
Merge branch 'main' into otlp-support
vhowdhur Aug 7, 2023
a1fa4a3
Merge remote-tracking branch 'origin/otlp-support' into otlp-support
vhowdhur Aug 7, 2023
c032e1e
Update auto generated go snappi
actions-user Aug 7, 2023
10d07ee
Merge branch 'main' into otlp-support
vhowdhur Aug 21, 2023
37039af
Update auto generated go snappi
actions-user Aug 21, 2023
0c45d64
Merge branch 'main' into otlp-support
vhowdhur Aug 31, 2023
7216e97
Update auto generated go snappi
actions-user Aug 31, 2023
575243d
Trigger CI
vhowdhur Sep 20, 2023
a86d3e7
Update auto generated go snappi
actions-user Sep 20, 2023
18a79b4
hard coding version so that it passes in controller CI
vhowdhur Sep 21, 2023
217e0bb
Update auto generated go snappi
actions-user Sep 21, 2023
1b55742
Merge branch 'main' into otlp-support
vhowdhur Oct 16, 2023
84def1b
Update auto generated go snappi
actions-user Oct 16, 2023
e34810e
Merge branch 'main' into otlp-support
vhowdhur Feb 27, 2024
55ea236
Update auto generated go snappi
actions-user Feb 27, 2024
7eace40
Merge branch 'main' into otlp-support
vhowdhur Feb 27, 2024
a6e00dd
Update auto generated go snappi
actions-user Feb 27, 2024
29bcb52
Merge branch 'main' into otlp-support
vhowdhur Mar 8, 2024
994cef8
Update auto generated go snappi
actions-user Mar 8, 2024
f10f3e8
Trigger CI
vhowdhur Mar 13, 2024
e2a692f
Merge remote-tracking branch 'origin/otlp-support' into otlp-support
vhowdhur Mar 13, 2024
921b48e
Update auto generated go snappi
actions-user Mar 13, 2024
1405b9c
Merge branch 'refs/heads/main' into otlp-support
Vibaswan Nov 24, 2024
b486778
Update auto generated go snappi
actions-user Nov 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion do.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
USE_MODELS_DIR = None

# supported values - branch name or None
USE_OPENAPIART_BRANCH = None
USE_OPENAPIART_BRANCH = "otlp-support"
USE_MODELS_BRANCH = None

OPENAPIART_REPO = "https://github.com/open-traffic-generator/openapiart.git"
Expand Down
19 changes: 19 additions & 0 deletions gosnappi/action_protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ type marshalActionProtocol interface {
ToYaml() (string, error)
// ToJson marshals ActionProtocol to JSON text
ToJson() (string, error)
// ToJsonRaw marshals ActionProtocol to raw JSON text
ToJsonRaw() (string, error)
}

type unMarshalactionProtocol struct {
Expand Down Expand Up @@ -169,6 +171,23 @@ func (m *unMarshalactionProtocol) FromYaml(value string) error {
return nil
}

func (m *marshalactionProtocol) ToJsonRaw() (string, error) {
vErr := m.obj.validateToAndFrom()
if vErr != nil {
return "", vErr
}
opts := protojson.MarshalOptions{
UseProtoNames: true,
AllowPartial: true,
EmitUnpopulated: false,
}
data, err := opts.Marshal(m.obj.msg())
if err != nil {
return "", err
}
return string(data), nil
}

func (m *marshalactionProtocol) ToJson() (string, error) {
vErr := m.obj.validateToAndFrom()
if vErr != nil {
Expand Down
19 changes: 19 additions & 0 deletions gosnappi/action_protocol_bgp.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ type marshalActionProtocolBgp interface {
ToYaml() (string, error)
// ToJson marshals ActionProtocolBgp to JSON text
ToJson() (string, error)
// ToJsonRaw marshals ActionProtocolBgp to raw JSON text
ToJsonRaw() (string, error)
}

type unMarshalactionProtocolBgp struct {
Expand Down Expand Up @@ -168,6 +170,23 @@ func (m *unMarshalactionProtocolBgp) FromYaml(value string) error {
return nil
}

func (m *marshalactionProtocolBgp) ToJsonRaw() (string, error) {
vErr := m.obj.validateToAndFrom()
if vErr != nil {
return "", vErr
}
opts := protojson.MarshalOptions{
UseProtoNames: true,
AllowPartial: true,
EmitUnpopulated: false,
}
data, err := opts.Marshal(m.obj.msg())
if err != nil {
return "", err
}
return string(data), nil
}

func (m *marshalactionProtocolBgp) ToJson() (string, error) {
vErr := m.obj.validateToAndFrom()
if vErr != nil {
Expand Down
19 changes: 19 additions & 0 deletions gosnappi/action_protocol_bgp_graceful_restart_notification.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ type marshalActionProtocolBgpGracefulRestartNotification interface {
ToYaml() (string, error)
// ToJson marshals ActionProtocolBgpGracefulRestartNotification to JSON text
ToJson() (string, error)
// ToJsonRaw marshals ActionProtocolBgpGracefulRestartNotification to raw JSON text
ToJsonRaw() (string, error)
}

type unMarshalactionProtocolBgpGracefulRestartNotification struct {
Expand Down Expand Up @@ -173,6 +175,23 @@ func (m *unMarshalactionProtocolBgpGracefulRestartNotification) FromYaml(value s
return nil
}

func (m *marshalactionProtocolBgpGracefulRestartNotification) ToJsonRaw() (string, error) {
vErr := m.obj.validateToAndFrom()
if vErr != nil {
return "", vErr
}
opts := protojson.MarshalOptions{
UseProtoNames: true,
AllowPartial: true,
EmitUnpopulated: false,
}
data, err := opts.Marshal(m.obj.msg())
if err != nil {
return "", err
}
return string(data), nil
}

func (m *marshalactionProtocolBgpGracefulRestartNotification) ToJson() (string, error) {
vErr := m.obj.validateToAndFrom()
if vErr != nil {
Expand Down
19 changes: 19 additions & 0 deletions gosnappi/action_protocol_bgp_initiate_graceful_restart.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ type marshalActionProtocolBgpInitiateGracefulRestart interface {
ToYaml() (string, error)
// ToJson marshals ActionProtocolBgpInitiateGracefulRestart to JSON text
ToJson() (string, error)
// ToJsonRaw marshals ActionProtocolBgpInitiateGracefulRestart to raw JSON text
ToJsonRaw() (string, error)
}

type unMarshalactionProtocolBgpInitiateGracefulRestart struct {
Expand Down Expand Up @@ -167,6 +169,23 @@ func (m *unMarshalactionProtocolBgpInitiateGracefulRestart) FromYaml(value strin
return nil
}

func (m *marshalactionProtocolBgpInitiateGracefulRestart) ToJsonRaw() (string, error) {
vErr := m.obj.validateToAndFrom()
if vErr != nil {
return "", vErr
}
opts := protojson.MarshalOptions{
UseProtoNames: true,
AllowPartial: true,
EmitUnpopulated: false,
}
data, err := opts.Marshal(m.obj.msg())
if err != nil {
return "", err
}
return string(data), nil
}

func (m *marshalactionProtocolBgpInitiateGracefulRestart) ToJson() (string, error) {
vErr := m.obj.validateToAndFrom()
if vErr != nil {
Expand Down
19 changes: 19 additions & 0 deletions gosnappi/action_protocol_bgp_notification.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ type marshalActionProtocolBgpNotification interface {
ToYaml() (string, error)
// ToJson marshals ActionProtocolBgpNotification to JSON text
ToJson() (string, error)
// ToJsonRaw marshals ActionProtocolBgpNotification to raw JSON text
ToJsonRaw() (string, error)
}

type unMarshalactionProtocolBgpNotification struct {
Expand Down Expand Up @@ -173,6 +175,23 @@ func (m *unMarshalactionProtocolBgpNotification) FromYaml(value string) error {
return nil
}

func (m *marshalactionProtocolBgpNotification) ToJsonRaw() (string, error) {
vErr := m.obj.validateToAndFrom()
if vErr != nil {
return "", vErr
}
opts := protojson.MarshalOptions{
UseProtoNames: true,
AllowPartial: true,
EmitUnpopulated: false,
}
data, err := opts.Marshal(m.obj.msg())
if err != nil {
return "", err
}
return string(data), nil
}

func (m *marshalactionProtocolBgpNotification) ToJson() (string, error) {
vErr := m.obj.validateToAndFrom()
if vErr != nil {
Expand Down
19 changes: 19 additions & 0 deletions gosnappi/action_protocol_ipv4.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ type marshalActionProtocolIpv4 interface {
ToYaml() (string, error)
// ToJson marshals ActionProtocolIpv4 to JSON text
ToJson() (string, error)
// ToJsonRaw marshals ActionProtocolIpv4 to raw JSON text
ToJsonRaw() (string, error)
}

type unMarshalactionProtocolIpv4 struct {
Expand Down Expand Up @@ -167,6 +169,23 @@ func (m *unMarshalactionProtocolIpv4) FromYaml(value string) error {
return nil
}

func (m *marshalactionProtocolIpv4) ToJsonRaw() (string, error) {
vErr := m.obj.validateToAndFrom()
if vErr != nil {
return "", vErr
}
opts := protojson.MarshalOptions{
UseProtoNames: true,
AllowPartial: true,
EmitUnpopulated: false,
}
data, err := opts.Marshal(m.obj.msg())
if err != nil {
return "", err
}
return string(data), nil
}

func (m *marshalactionProtocolIpv4) ToJson() (string, error) {
vErr := m.obj.validateToAndFrom()
if vErr != nil {
Expand Down
19 changes: 19 additions & 0 deletions gosnappi/action_protocol_ipv4_ping.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ type marshalActionProtocolIpv4Ping interface {
ToYaml() (string, error)
// ToJson marshals ActionProtocolIpv4Ping to JSON text
ToJson() (string, error)
// ToJsonRaw marshals ActionProtocolIpv4Ping to raw JSON text
ToJsonRaw() (string, error)
}

type unMarshalactionProtocolIpv4Ping struct {
Expand Down Expand Up @@ -167,6 +169,23 @@ func (m *unMarshalactionProtocolIpv4Ping) FromYaml(value string) error {
return nil
}

func (m *marshalactionProtocolIpv4Ping) ToJsonRaw() (string, error) {
vErr := m.obj.validateToAndFrom()
if vErr != nil {
return "", vErr
}
opts := protojson.MarshalOptions{
UseProtoNames: true,
AllowPartial: true,
EmitUnpopulated: false,
}
data, err := opts.Marshal(m.obj.msg())
if err != nil {
return "", err
}
return string(data), nil
}

func (m *marshalactionProtocolIpv4Ping) ToJson() (string, error) {
vErr := m.obj.validateToAndFrom()
if vErr != nil {
Expand Down
19 changes: 19 additions & 0 deletions gosnappi/action_protocol_ipv4_ping_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ type marshalActionProtocolIpv4PingRequest interface {
ToYaml() (string, error)
// ToJson marshals ActionProtocolIpv4PingRequest to JSON text
ToJson() (string, error)
// ToJsonRaw marshals ActionProtocolIpv4PingRequest to raw JSON text
ToJsonRaw() (string, error)
}

type unMarshalactionProtocolIpv4PingRequest struct {
Expand Down Expand Up @@ -166,6 +168,23 @@ func (m *unMarshalactionProtocolIpv4PingRequest) FromYaml(value string) error {
return nil
}

func (m *marshalactionProtocolIpv4PingRequest) ToJsonRaw() (string, error) {
vErr := m.obj.validateToAndFrom()
if vErr != nil {
return "", vErr
}
opts := protojson.MarshalOptions{
UseProtoNames: true,
AllowPartial: true,
EmitUnpopulated: false,
}
data, err := opts.Marshal(m.obj.msg())
if err != nil {
return "", err
}
return string(data), nil
}

func (m *marshalactionProtocolIpv4PingRequest) ToJson() (string, error) {
vErr := m.obj.validateToAndFrom()
if vErr != nil {
Expand Down
19 changes: 19 additions & 0 deletions gosnappi/action_protocol_ipv6.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ type marshalActionProtocolIpv6 interface {
ToYaml() (string, error)
// ToJson marshals ActionProtocolIpv6 to JSON text
ToJson() (string, error)
// ToJsonRaw marshals ActionProtocolIpv6 to raw JSON text
ToJsonRaw() (string, error)
}

type unMarshalactionProtocolIpv6 struct {
Expand Down Expand Up @@ -167,6 +169,23 @@ func (m *unMarshalactionProtocolIpv6) FromYaml(value string) error {
return nil
}

func (m *marshalactionProtocolIpv6) ToJsonRaw() (string, error) {
vErr := m.obj.validateToAndFrom()
if vErr != nil {
return "", vErr
}
opts := protojson.MarshalOptions{
UseProtoNames: true,
AllowPartial: true,
EmitUnpopulated: false,
}
data, err := opts.Marshal(m.obj.msg())
if err != nil {
return "", err
}
return string(data), nil
}

func (m *marshalactionProtocolIpv6) ToJson() (string, error) {
vErr := m.obj.validateToAndFrom()
if vErr != nil {
Expand Down
19 changes: 19 additions & 0 deletions gosnappi/action_protocol_ipv6_ping.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ type marshalActionProtocolIpv6Ping interface {
ToYaml() (string, error)
// ToJson marshals ActionProtocolIpv6Ping to JSON text
ToJson() (string, error)
// ToJsonRaw marshals ActionProtocolIpv6Ping to raw JSON text
ToJsonRaw() (string, error)
}

type unMarshalactionProtocolIpv6Ping struct {
Expand Down Expand Up @@ -167,6 +169,23 @@ func (m *unMarshalactionProtocolIpv6Ping) FromYaml(value string) error {
return nil
}

func (m *marshalactionProtocolIpv6Ping) ToJsonRaw() (string, error) {
vErr := m.obj.validateToAndFrom()
if vErr != nil {
return "", vErr
}
opts := protojson.MarshalOptions{
UseProtoNames: true,
AllowPartial: true,
EmitUnpopulated: false,
}
data, err := opts.Marshal(m.obj.msg())
if err != nil {
return "", err
}
return string(data), nil
}

func (m *marshalactionProtocolIpv6Ping) ToJson() (string, error) {
vErr := m.obj.validateToAndFrom()
if vErr != nil {
Expand Down
19 changes: 19 additions & 0 deletions gosnappi/action_protocol_ipv6_ping_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ type marshalActionProtocolIpv6PingRequest interface {
ToYaml() (string, error)
// ToJson marshals ActionProtocolIpv6PingRequest to JSON text
ToJson() (string, error)
// ToJsonRaw marshals ActionProtocolIpv6PingRequest to raw JSON text
ToJsonRaw() (string, error)
}

type unMarshalactionProtocolIpv6PingRequest struct {
Expand Down Expand Up @@ -166,6 +168,23 @@ func (m *unMarshalactionProtocolIpv6PingRequest) FromYaml(value string) error {
return nil
}

func (m *marshalactionProtocolIpv6PingRequest) ToJsonRaw() (string, error) {
vErr := m.obj.validateToAndFrom()
if vErr != nil {
return "", vErr
}
opts := protojson.MarshalOptions{
UseProtoNames: true,
AllowPartial: true,
EmitUnpopulated: false,
}
data, err := opts.Marshal(m.obj.msg())
if err != nil {
return "", err
}
return string(data), nil
}

func (m *marshalactionProtocolIpv6PingRequest) ToJson() (string, error) {
vErr := m.obj.validateToAndFrom()
if vErr != nil {
Expand Down
Loading