From 8f30a5b8424cd9ba1bbca252b788bc851939fb84 Mon Sep 17 00:00:00 2001 From: Github Actions Bot Date: Mon, 30 Sep 2024 15:40:54 +0000 Subject: [PATCH 1/6] Update auto generated go snappi --- gosnappi/bgp_attributes_community.go | 34 ++++++++--------- ...tributes_sr_policy_explicit_null_policy.go | 38 +++++++++---------- ...dhcpv6_client_options_duid_uuid_variant.go | 14 +++---- ...dhcpv6_client_options_duid_uuid_version.go | 38 +++++++++---------- .../dhcpv6_client_options_message_type.go | 34 ++++++++--------- .../dhcpv6_client_options_options_request.go | 34 ++++++++--------- .../dhcpv6_server_options_message_type.go | 20 +++++----- gosnappi/flow_rsvp_lsp_tunnel_flag.go | 14 +++---- gosnappi/go.mod | 10 ++--- gosnappi/go.sum | 20 +++++----- gosnappi/metrics_response.go | 28 +++++++------- requirements.txt | 10 ++--- 12 files changed, 147 insertions(+), 147 deletions(-) diff --git a/gosnappi/bgp_attributes_community.go b/gosnappi/bgp_attributes_community.go index d256e9f8..eaef2eaa 100644 --- a/gosnappi/bgp_attributes_community.go +++ b/gosnappi/bgp_attributes_community.go @@ -278,16 +278,16 @@ type BgpAttributesCommunity interface { Choice() BgpAttributesCommunityChoiceEnum // setChoice assigns BgpAttributesCommunityChoiceEnum provided by user to BgpAttributesCommunity setChoice(value BgpAttributesCommunityChoiceEnum) BgpAttributesCommunity - // getter for NoAdvertised to set choice. - NoAdvertised() - // getter for NoExport to set choice. - NoExport() - // getter for LlgrStale to set choice. - LlgrStale() // getter for NoExportSubconfed to set choice. NoExportSubconfed() + // getter for NoAdvertised to set choice. + NoAdvertised() // getter for NoLlgr to set choice. NoLlgr() + // getter for LlgrStale to set choice. + LlgrStale() + // getter for NoExport to set choice. + NoExport() // CustomCommunity returns BgpAttributesCustomCommunity, set in BgpAttributesCommunity. // BgpAttributesCustomCommunity is user defined COMMUNITY attribute containing 2 byte AS and custom 2 byte value defined by the administrator of the domain. CustomCommunity() BgpAttributesCustomCommunity @@ -322,14 +322,19 @@ func (obj *bgpAttributesCommunity) Choice() BgpAttributesCommunityChoiceEnum { return BgpAttributesCommunityChoiceEnum(obj.obj.Choice.Enum().String()) } +// getter for NoExportSubconfed to set choice +func (obj *bgpAttributesCommunity) NoExportSubconfed() { + obj.setChoice(BgpAttributesCommunityChoice.NO_EXPORT_SUBCONFED) +} + // getter for NoAdvertised to set choice func (obj *bgpAttributesCommunity) NoAdvertised() { obj.setChoice(BgpAttributesCommunityChoice.NO_ADVERTISED) } -// getter for NoExport to set choice -func (obj *bgpAttributesCommunity) NoExport() { - obj.setChoice(BgpAttributesCommunityChoice.NO_EXPORT) +// getter for NoLlgr to set choice +func (obj *bgpAttributesCommunity) NoLlgr() { + obj.setChoice(BgpAttributesCommunityChoice.NO_LLGR) } // getter for LlgrStale to set choice @@ -337,14 +342,9 @@ func (obj *bgpAttributesCommunity) LlgrStale() { obj.setChoice(BgpAttributesCommunityChoice.LLGR_STALE) } -// getter for NoExportSubconfed to set choice -func (obj *bgpAttributesCommunity) NoExportSubconfed() { - obj.setChoice(BgpAttributesCommunityChoice.NO_EXPORT_SUBCONFED) -} - -// getter for NoLlgr to set choice -func (obj *bgpAttributesCommunity) NoLlgr() { - obj.setChoice(BgpAttributesCommunityChoice.NO_LLGR) +// getter for NoExport to set choice +func (obj *bgpAttributesCommunity) NoExport() { + obj.setChoice(BgpAttributesCommunityChoice.NO_EXPORT) } func (obj *bgpAttributesCommunity) setChoice(value BgpAttributesCommunityChoiceEnum) BgpAttributesCommunity { diff --git a/gosnappi/bgp_attributes_sr_policy_explicit_null_policy.go b/gosnappi/bgp_attributes_sr_policy_explicit_null_policy.go index dfa5a518..94e65321 100644 --- a/gosnappi/bgp_attributes_sr_policy_explicit_null_policy.go +++ b/gosnappi/bgp_attributes_sr_policy_explicit_null_policy.go @@ -272,16 +272,16 @@ type BgpAttributesSrPolicyExplicitNullPolicy interface { setChoice(value BgpAttributesSrPolicyExplicitNullPolicyChoiceEnum) BgpAttributesSrPolicyExplicitNullPolicy // HasChoice checks if Choice has been set in BgpAttributesSrPolicyExplicitNullPolicy HasChoice() bool - // getter for Unknown to set choice. - Unknown() - // getter for DonotPush to set choice. - DonotPush() - // getter for PushIpv6 to set choice. - PushIpv6() // getter for PushIpv4AndIpv6 to set choice. PushIpv4AndIpv6() // getter for PushIpv4 to set choice. PushIpv4() + // getter for DonotPush to set choice. + DonotPush() + // getter for Unknown to set choice. + Unknown() + // getter for PushIpv6 to set choice. + PushIpv6() } type BgpAttributesSrPolicyExplicitNullPolicyChoiceEnum string @@ -305,9 +305,14 @@ func (obj *bgpAttributesSrPolicyExplicitNullPolicy) Choice() BgpAttributesSrPoli return BgpAttributesSrPolicyExplicitNullPolicyChoiceEnum(obj.obj.Choice.Enum().String()) } -// getter for Unknown to set choice -func (obj *bgpAttributesSrPolicyExplicitNullPolicy) Unknown() { - obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.UNKNOWN) +// getter for PushIpv4AndIpv6 to set choice +func (obj *bgpAttributesSrPolicyExplicitNullPolicy) PushIpv4AndIpv6() { + obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.PUSH_IPV4_AND_IPV6) +} + +// getter for PushIpv4 to set choice +func (obj *bgpAttributesSrPolicyExplicitNullPolicy) PushIpv4() { + obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.PUSH_IPV4) } // getter for DonotPush to set choice @@ -315,21 +320,16 @@ func (obj *bgpAttributesSrPolicyExplicitNullPolicy) DonotPush() { obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.DONOT_PUSH) } +// getter for Unknown to set choice +func (obj *bgpAttributesSrPolicyExplicitNullPolicy) Unknown() { + obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.UNKNOWN) +} + // getter for PushIpv6 to set choice func (obj *bgpAttributesSrPolicyExplicitNullPolicy) PushIpv6() { obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.PUSH_IPV6) } -// getter for PushIpv4AndIpv6 to set choice -func (obj *bgpAttributesSrPolicyExplicitNullPolicy) PushIpv4AndIpv6() { - obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.PUSH_IPV4_AND_IPV6) -} - -// getter for PushIpv4 to set choice -func (obj *bgpAttributesSrPolicyExplicitNullPolicy) PushIpv4() { - obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.PUSH_IPV4) -} - // The Explicit NULL Label policy. // Choice returns a string func (obj *bgpAttributesSrPolicyExplicitNullPolicy) HasChoice() bool { diff --git a/gosnappi/dhcpv6_client_options_duid_uuid_variant.go b/gosnappi/dhcpv6_client_options_duid_uuid_variant.go index 814d9ff4..1e6192c8 100644 --- a/gosnappi/dhcpv6_client_options_duid_uuid_variant.go +++ b/gosnappi/dhcpv6_client_options_duid_uuid_variant.go @@ -270,12 +270,12 @@ type Dhcpv6ClientOptionsDuidUuidVariant interface { setChoice(value Dhcpv6ClientOptionsDuidUuidVariantChoiceEnum) Dhcpv6ClientOptionsDuidUuidVariant // HasChoice checks if Choice has been set in Dhcpv6ClientOptionsDuidUuidVariant HasChoice() bool + // getter for Dce to set choice. + Dce() // getter for VarReserved to set choice. VarReserved() // getter for Ncs to set choice. Ncs() - // getter for Dce to set choice. - Dce() // getter for Guid to set choice. Guid() } @@ -299,6 +299,11 @@ func (obj *dhcpv6ClientOptionsDuidUuidVariant) Choice() Dhcpv6ClientOptionsDuidU return Dhcpv6ClientOptionsDuidUuidVariantChoiceEnum(obj.obj.Choice.Enum().String()) } +// getter for Dce to set choice +func (obj *dhcpv6ClientOptionsDuidUuidVariant) Dce() { + obj.setChoice(Dhcpv6ClientOptionsDuidUuidVariantChoice.DCE) +} + // getter for VarReserved to set choice func (obj *dhcpv6ClientOptionsDuidUuidVariant) VarReserved() { obj.setChoice(Dhcpv6ClientOptionsDuidUuidVariantChoice.VAR_RESERVED) @@ -309,11 +314,6 @@ func (obj *dhcpv6ClientOptionsDuidUuidVariant) Ncs() { obj.setChoice(Dhcpv6ClientOptionsDuidUuidVariantChoice.NCS) } -// getter for Dce to set choice -func (obj *dhcpv6ClientOptionsDuidUuidVariant) Dce() { - obj.setChoice(Dhcpv6ClientOptionsDuidUuidVariantChoice.DCE) -} - // getter for Guid to set choice func (obj *dhcpv6ClientOptionsDuidUuidVariant) Guid() { obj.setChoice(Dhcpv6ClientOptionsDuidUuidVariantChoice.GUID) diff --git a/gosnappi/dhcpv6_client_options_duid_uuid_version.go b/gosnappi/dhcpv6_client_options_duid_uuid_version.go index 7411dd98..e714fa92 100644 --- a/gosnappi/dhcpv6_client_options_duid_uuid_version.go +++ b/gosnappi/dhcpv6_client_options_duid_uuid_version.go @@ -270,16 +270,16 @@ type Dhcpv6ClientOptionsDuidUuidVersion interface { setChoice(value Dhcpv6ClientOptionsDuidUuidVersionChoiceEnum) Dhcpv6ClientOptionsDuidUuidVersion // HasChoice checks if Choice has been set in Dhcpv6ClientOptionsDuidUuidVersion HasChoice() bool - // getter for V_4 to set choice. - V_4() - // getter for V_1 to set choice. - V_1() - // getter for V_3 to set choice. - V_3() // getter for V_2 to set choice. V_2() // getter for V_5 to set choice. V_5() + // getter for V_1 to set choice. + V_1() + // getter for V_4 to set choice. + V_4() + // getter for V_3 to set choice. + V_3() } type Dhcpv6ClientOptionsDuidUuidVersionChoiceEnum string @@ -303,9 +303,14 @@ func (obj *dhcpv6ClientOptionsDuidUuidVersion) Choice() Dhcpv6ClientOptionsDuidU return Dhcpv6ClientOptionsDuidUuidVersionChoiceEnum(obj.obj.Choice.Enum().String()) } -// getter for V_4 to set choice -func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_4() { - obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_4) +// getter for V_2 to set choice +func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_2() { + obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_2) +} + +// getter for V_5 to set choice +func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_5() { + obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_5) } // getter for V_1 to set choice @@ -313,21 +318,16 @@ func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_1() { obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_1) } +// getter for V_4 to set choice +func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_4() { + obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_4) +} + // getter for V_3 to set choice func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_3() { obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_3) } -// getter for V_2 to set choice -func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_2() { - obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_2) -} - -// getter for V_5 to set choice -func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_5() { - obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_5) -} - // The version values are from 1 to 5 in the most significant 4 bits of the timestamp (bits 4 through 7 of the time_hi_and_version field). // Choice returns a string func (obj *dhcpv6ClientOptionsDuidUuidVersion) HasChoice() bool { diff --git a/gosnappi/dhcpv6_client_options_message_type.go b/gosnappi/dhcpv6_client_options_message_type.go index 5a0da2df..1ecd447d 100644 --- a/gosnappi/dhcpv6_client_options_message_type.go +++ b/gosnappi/dhcpv6_client_options_message_type.go @@ -270,18 +270,18 @@ type Dhcpv6ClientOptionsMessageType interface { setChoice(value Dhcpv6ClientOptionsMessageTypeChoiceEnum) Dhcpv6ClientOptionsMessageType // HasChoice checks if Choice has been set in Dhcpv6ClientOptionsMessageType HasChoice() bool - // getter for Rebind to set choice. - Rebind() // getter for Renew to set choice. Renew() - // getter for InformRequest to set choice. - InformRequest() + // getter for Release to set choice. + Release() // getter for Request to set choice. Request() + // getter for Rebind to set choice. + Rebind() // getter for Solicit to set choice. Solicit() - // getter for Release to set choice. - Release() + // getter for InformRequest to set choice. + InformRequest() } type Dhcpv6ClientOptionsMessageTypeChoiceEnum string @@ -307,19 +307,14 @@ func (obj *dhcpv6ClientOptionsMessageType) Choice() Dhcpv6ClientOptionsMessageTy return Dhcpv6ClientOptionsMessageTypeChoiceEnum(obj.obj.Choice.Enum().String()) } -// getter for Rebind to set choice -func (obj *dhcpv6ClientOptionsMessageType) Rebind() { - obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.REBIND) -} - // getter for Renew to set choice func (obj *dhcpv6ClientOptionsMessageType) Renew() { obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.RENEW) } -// getter for InformRequest to set choice -func (obj *dhcpv6ClientOptionsMessageType) InformRequest() { - obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.INFORM_REQUEST) +// getter for Release to set choice +func (obj *dhcpv6ClientOptionsMessageType) Release() { + obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.RELEASE) } // getter for Request to set choice @@ -327,14 +322,19 @@ func (obj *dhcpv6ClientOptionsMessageType) Request() { obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.REQUEST) } +// getter for Rebind to set choice +func (obj *dhcpv6ClientOptionsMessageType) Rebind() { + obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.REBIND) +} + // getter for Solicit to set choice func (obj *dhcpv6ClientOptionsMessageType) Solicit() { obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.SOLICIT) } -// getter for Release to set choice -func (obj *dhcpv6ClientOptionsMessageType) Release() { - obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.RELEASE) +// getter for InformRequest to set choice +func (obj *dhcpv6ClientOptionsMessageType) InformRequest() { + obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.INFORM_REQUEST) } // The client message name where the option is included, by default it is all. diff --git a/gosnappi/dhcpv6_client_options_options_request.go b/gosnappi/dhcpv6_client_options_options_request.go index 9d129f79..631a9691 100644 --- a/gosnappi/dhcpv6_client_options_options_request.go +++ b/gosnappi/dhcpv6_client_options_options_request.go @@ -278,16 +278,16 @@ type Dhcpv6ClientOptionsOptionsRequest interface { setChoice(value Dhcpv6ClientOptionsOptionsRequestChoiceEnum) Dhcpv6ClientOptionsOptionsRequest // HasChoice checks if Choice has been set in Dhcpv6ClientOptionsOptionsRequest HasChoice() bool - // getter for NameServers to set choice. - NameServers() - // getter for Fqdn to set choice. - Fqdn() // getter for Sztp to set choice. Sztp() - // getter for BootfileUrl to set choice. - BootfileUrl() + // getter for Fqdn to set choice. + Fqdn() + // getter for NameServers to set choice. + NameServers() // getter for VendorInformation to set choice. VendorInformation() + // getter for BootfileUrl to set choice. + BootfileUrl() // Custom returns Dhcpv6ClientOptionsCustom, set in Dhcpv6ClientOptionsOptionsRequest. // Dhcpv6ClientOptionsCustom is the Custom option is used to provide a not so well known option in the message between a client and a server. Custom() Dhcpv6ClientOptionsCustom @@ -322,9 +322,9 @@ func (obj *dhcpv6ClientOptionsOptionsRequest) Choice() Dhcpv6ClientOptionsOption return Dhcpv6ClientOptionsOptionsRequestChoiceEnum(obj.obj.Choice.Enum().String()) } -// getter for NameServers to set choice -func (obj *dhcpv6ClientOptionsOptionsRequest) NameServers() { - obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.NAME_SERVERS) +// getter for Sztp to set choice +func (obj *dhcpv6ClientOptionsOptionsRequest) Sztp() { + obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.SZTP) } // getter for Fqdn to set choice @@ -332,14 +332,9 @@ func (obj *dhcpv6ClientOptionsOptionsRequest) Fqdn() { obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.FQDN) } -// getter for Sztp to set choice -func (obj *dhcpv6ClientOptionsOptionsRequest) Sztp() { - obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.SZTP) -} - -// getter for BootfileUrl to set choice -func (obj *dhcpv6ClientOptionsOptionsRequest) BootfileUrl() { - obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.BOOTFILE_URL) +// getter for NameServers to set choice +func (obj *dhcpv6ClientOptionsOptionsRequest) NameServers() { + obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.NAME_SERVERS) } // getter for VendorInformation to set choice @@ -347,6 +342,11 @@ func (obj *dhcpv6ClientOptionsOptionsRequest) VendorInformation() { obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.VENDOR_INFORMATION) } +// getter for BootfileUrl to set choice +func (obj *dhcpv6ClientOptionsOptionsRequest) BootfileUrl() { + obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.BOOTFILE_URL) +} + // The Option Request option is used to identify a list of options in a message between a client and a server. The option code is 6. - Vendor_specific information option, requested by clients for vendor-specific informations from servers. - DNS Recursive Name Server Option, requested by clients to get the list ofIPv6 addresses of DNS recursive name // servers to which DNS queries may be sent by the client resolver in order of preference. // - Client FQDN option - indicates whether the client or the DHCP server should update DNS with the AAAA record diff --git a/gosnappi/dhcpv6_server_options_message_type.go b/gosnappi/dhcpv6_server_options_message_type.go index fb9162ea..1eb23b3a 100644 --- a/gosnappi/dhcpv6_server_options_message_type.go +++ b/gosnappi/dhcpv6_server_options_message_type.go @@ -270,12 +270,12 @@ type Dhcpv6ServerOptionsMessageType interface { setChoice(value Dhcpv6ServerOptionsMessageTypeChoiceEnum) Dhcpv6ServerOptionsMessageType // HasChoice checks if Choice has been set in Dhcpv6ServerOptionsMessageType HasChoice() bool - // getter for Reply to set choice. - Reply() - // getter for Advertise to set choice. - Advertise() // getter for ReConfigure to set choice. ReConfigure() + // getter for Advertise to set choice. + Advertise() + // getter for Reply to set choice. + Reply() } type Dhcpv6ServerOptionsMessageTypeChoiceEnum string @@ -295,9 +295,9 @@ func (obj *dhcpv6ServerOptionsMessageType) Choice() Dhcpv6ServerOptionsMessageTy return Dhcpv6ServerOptionsMessageTypeChoiceEnum(obj.obj.Choice.Enum().String()) } -// getter for Reply to set choice -func (obj *dhcpv6ServerOptionsMessageType) Reply() { - obj.setChoice(Dhcpv6ServerOptionsMessageTypeChoice.REPLY) +// getter for ReConfigure to set choice +func (obj *dhcpv6ServerOptionsMessageType) ReConfigure() { + obj.setChoice(Dhcpv6ServerOptionsMessageTypeChoice.RE_CONFIGURE) } // getter for Advertise to set choice @@ -305,9 +305,9 @@ func (obj *dhcpv6ServerOptionsMessageType) Advertise() { obj.setChoice(Dhcpv6ServerOptionsMessageTypeChoice.ADVERTISE) } -// getter for ReConfigure to set choice -func (obj *dhcpv6ServerOptionsMessageType) ReConfigure() { - obj.setChoice(Dhcpv6ServerOptionsMessageTypeChoice.RE_CONFIGURE) +// getter for Reply to set choice +func (obj *dhcpv6ServerOptionsMessageType) Reply() { + obj.setChoice(Dhcpv6ServerOptionsMessageTypeChoice.REPLY) } // The server message name where the option is included, by default it is all. diff --git a/gosnappi/flow_rsvp_lsp_tunnel_flag.go b/gosnappi/flow_rsvp_lsp_tunnel_flag.go index 724bbb14..5047737d 100644 --- a/gosnappi/flow_rsvp_lsp_tunnel_flag.go +++ b/gosnappi/flow_rsvp_lsp_tunnel_flag.go @@ -270,10 +270,10 @@ type FlowRSVPLspTunnelFlag interface { setChoice(value FlowRSVPLspTunnelFlagChoiceEnum) FlowRSVPLspTunnelFlag // HasChoice checks if Choice has been set in FlowRSVPLspTunnelFlag HasChoice() bool - // getter for LocalProtectionDesired to set choice. - LocalProtectionDesired() // getter for SeStyleDesired to set choice. SeStyleDesired() + // getter for LocalProtectionDesired to set choice. + LocalProtectionDesired() // getter for LabelRecordingDesired to set choice. LabelRecordingDesired() } @@ -295,16 +295,16 @@ func (obj *flowRSVPLspTunnelFlag) Choice() FlowRSVPLspTunnelFlagChoiceEnum { return FlowRSVPLspTunnelFlagChoiceEnum(obj.obj.Choice.Enum().String()) } -// getter for LocalProtectionDesired to set choice -func (obj *flowRSVPLspTunnelFlag) LocalProtectionDesired() { - obj.setChoice(FlowRSVPLspTunnelFlagChoice.LOCAL_PROTECTION_DESIRED) -} - // getter for SeStyleDesired to set choice func (obj *flowRSVPLspTunnelFlag) SeStyleDesired() { obj.setChoice(FlowRSVPLspTunnelFlagChoice.SE_STYLE_DESIRED) } +// getter for LocalProtectionDesired to set choice +func (obj *flowRSVPLspTunnelFlag) LocalProtectionDesired() { + obj.setChoice(FlowRSVPLspTunnelFlagChoice.LOCAL_PROTECTION_DESIRED) +} + // getter for LabelRecordingDesired to set choice func (obj *flowRSVPLspTunnelFlag) LabelRecordingDesired() { obj.setChoice(FlowRSVPLspTunnelFlagChoice.LABEL_RECORDING_DESIRED) diff --git a/gosnappi/go.mod b/gosnappi/go.mod index 8c20411c..4346afbb 100644 --- a/gosnappi/go.mod +++ b/gosnappi/go.mod @@ -9,7 +9,7 @@ require ( github.com/ghodss/yaml v1.0.0 github.com/gorilla/mux v1.8.1 github.com/stretchr/testify v1.9.0 - google.golang.org/grpc v1.66.2 + google.golang.org/grpc v1.67.0 google.golang.org/protobuf v1.34.2 ) @@ -17,10 +17,10 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/kr/pretty v0.3.1 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - golang.org/x/net v0.26.0 // indirect - golang.org/x/sys v0.21.0 // indirect - golang.org/x/text v0.16.0 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20240604185151-ef581f913117 // indirect + golang.org/x/net v0.28.0 // indirect + golang.org/x/sys v0.24.0 // indirect + golang.org/x/text v0.17.0 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 // indirect gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect gopkg.in/yaml.v2 v2.2.3 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect diff --git a/gosnappi/go.sum b/gosnappi/go.sum index 89e4da0e..3c279b8f 100644 --- a/gosnappi/go.sum +++ b/gosnappi/go.sum @@ -23,16 +23,16 @@ github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZV github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -golang.org/x/net v0.26.0 h1:soB7SVo0PWrY4vPW/+ay0jKDNScG2X9wFeYlXIvJsOQ= -golang.org/x/net v0.26.0/go.mod h1:5YKkiSynbBIh3p6iOc/vibscux0x38BZDkn8sCUPxHE= -golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws= -golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= -golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240604185151-ef581f913117 h1:1GBuWVLM/KMVUv1t1En5Gs+gFZCNd360GGb4sSxtrhU= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240604185151-ef581f913117/go.mod h1:EfXuqaE1J41VCDicxHzUDm+8rk+7ZdXzHV0IhO/I6s0= -google.golang.org/grpc v1.66.2 h1:3QdXkuq3Bkh7w+ywLdLvM56cmGvQHUMZpiCzt6Rqaoo= -google.golang.org/grpc v1.66.2/go.mod h1:s3/l6xSSCURdVfAnL+TqCNMyTDAGN6+lZeVxnZR128Y= +golang.org/x/net v0.28.0 h1:a9JDOJc5GMUJ0+UDqmLT86WiEy7iWyIhz8gz8E4e5hE= +golang.org/x/net v0.28.0/go.mod h1:yqtgsTWOOnlGLG9GFRrK3++bGOUEkNBoHZc8MEDWPNg= +golang.org/x/sys v0.24.0 h1:Twjiwq9dn6R1fQcyiK+wQyHWfaz/BJB+YIpzU/Cv3Xg= +golang.org/x/sys v0.24.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/text v0.17.0 h1:XtiM5bkSOt+ewxlOE/aE/AKEHibwj/6gvWMl9Rsh0Qc= +golang.org/x/text v0.17.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 h1:e7S5W7MGGLaSu8j3YjdezkZ+m1/Nm0uRVRMEMGk26Xs= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142/go.mod h1:UqMtugtsSgubUsoxbuAoiCXvqvErP7Gf0so0mK9tHxU= +google.golang.org/grpc v1.67.0 h1:IdH9y6PF5MPSdAntIcpjQ+tXO41pcQsfZV2RxtQgVcw= +google.golang.org/grpc v1.67.0/go.mod h1:1gLDyUQU7CTLJI90u3nXZ9ekeghjeM7pTDZlqFNg2AA= google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= diff --git a/gosnappi/metrics_response.go b/gosnappi/metrics_response.go index bdd6f2b7..18ff43e5 100644 --- a/gosnappi/metrics_response.go +++ b/gosnappi/metrics_response.go @@ -302,14 +302,14 @@ type MetricsResponse interface { setChoice(value MetricsResponseChoiceEnum) MetricsResponse // HasChoice checks if Choice has been set in MetricsResponse HasChoice() bool - // getter for Dhcpv4Server to set choice. - Dhcpv4Server() - // getter for Dhcpv4Client to set choice. - Dhcpv4Client() // getter for Dhcpv6Client to set choice. Dhcpv6Client() + // getter for Dhcpv4Server to set choice. + Dhcpv4Server() // getter for Dhcpv6Server to set choice. Dhcpv6Server() + // getter for Dhcpv4Client to set choice. + Dhcpv4Client() // PortMetrics returns MetricsResponsePortMetricIterIter, set in MetricsResponse PortMetrics() MetricsResponsePortMetricIter // FlowMetrics returns MetricsResponseFlowMetricIterIter, set in MetricsResponse @@ -376,26 +376,26 @@ func (obj *metricsResponse) Choice() MetricsResponseChoiceEnum { return MetricsResponseChoiceEnum(obj.obj.Choice.Enum().String()) } -// getter for Dhcpv4Server to set choice -func (obj *metricsResponse) Dhcpv4Server() { - obj.setChoice(MetricsResponseChoice.DHCPV4_SERVER) -} - -// getter for Dhcpv4Client to set choice -func (obj *metricsResponse) Dhcpv4Client() { - obj.setChoice(MetricsResponseChoice.DHCPV4_CLIENT) -} - // getter for Dhcpv6Client to set choice func (obj *metricsResponse) Dhcpv6Client() { obj.setChoice(MetricsResponseChoice.DHCPV6_CLIENT) } +// getter for Dhcpv4Server to set choice +func (obj *metricsResponse) Dhcpv4Server() { + obj.setChoice(MetricsResponseChoice.DHCPV4_SERVER) +} + // getter for Dhcpv6Server to set choice func (obj *metricsResponse) Dhcpv6Server() { obj.setChoice(MetricsResponseChoice.DHCPV6_SERVER) } +// getter for Dhcpv4Client to set choice +func (obj *metricsResponse) Dhcpv4Client() { + obj.setChoice(MetricsResponseChoice.DHCPV4_CLIENT) +} + // description is TBD // Choice returns a string func (obj *metricsResponse) HasChoice() bool { diff --git a/requirements.txt b/requirements.txt index d34ff02d..ed9d0cd3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,11 +1,11 @@ --prefer-binary -grpcio~=1.44.0 ; python_version <= '3.6' -grpcio~=1.59.0 ; python_version > '3.6' +requests +protobuf~=3.15.0 ; python_version <= '3.6' +protobuf~=4.24.4 ; python_version > '3.6' grpcio-tools~=1.44.0 ; python_version <= '3.6' grpcio-tools~=1.59.0 ; python_version > '3.6' -requests +grpcio~=1.59.0 ; python_version > '3.6' +grpcio~=1.44.0 ; python_version <= '3.6' PyYAML -protobuf~=4.24.4 ; python_version > '3.6' -protobuf~=3.15.0 ; python_version <= '3.6' semantic_version urllib3 From 405498ad27fe3662324ac1f23c43f659fb7053f9 Mon Sep 17 00:00:00 2001 From: Indrani Bhattacharya <70219648+indraniBh@users.noreply.github.com> Date: Mon, 30 Sep 2024 21:18:02 +0530 Subject: [PATCH 2/6] Update snappi-ixnetwork 1.13.0 and remover snappi-convergence --- setup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/setup.py b/setup.py index a62a0735..4f1a7369 100644 --- a/setup.py +++ b/setup.py @@ -46,9 +46,8 @@ python_requires=">=2.7, <4", install_requires=install_requires, extras_require={ - "ixnetwork": ["snappi_ixnetwork==0.9.1"], + "ixnetwork": ["snappi_ixnetwork==1.13.0"], "trex": ["snappi_trex"], - "convergence": ["snappi_convergence==0.4.1"], "testing": ["pytest", "flask"], }, ) From e0c041e7f3379f579ab746edb4c854600cc2e5d5 Mon Sep 17 00:00:00 2001 From: Github Actions Bot Date: Mon, 30 Sep 2024 16:01:52 +0000 Subject: [PATCH 3/6] Update auto generated go snappi --- gosnappi/bgp_attributes_community.go | 28 ++++++------ ...tributes_sr_policy_explicit_null_policy.go | 28 ++++++------ ...dhcpv6_client_options_duid_uuid_variant.go | 14 +++--- ...dhcpv6_client_options_duid_uuid_version.go | 14 +++--- .../dhcpv6_client_options_message_type.go | 44 +++++++++---------- .../dhcpv6_client_options_options_request.go | 24 +++++----- .../dhcpv6_server_options_message_type.go | 14 +++--- gosnappi/flow_rsvp_lsp_tunnel_flag.go | 20 ++++----- gosnappi/metrics_response.go | 20 ++++----- requirements.txt | 10 ++--- 10 files changed, 108 insertions(+), 108 deletions(-) diff --git a/gosnappi/bgp_attributes_community.go b/gosnappi/bgp_attributes_community.go index eaef2eaa..2e20cb74 100644 --- a/gosnappi/bgp_attributes_community.go +++ b/gosnappi/bgp_attributes_community.go @@ -278,14 +278,14 @@ type BgpAttributesCommunity interface { Choice() BgpAttributesCommunityChoiceEnum // setChoice assigns BgpAttributesCommunityChoiceEnum provided by user to BgpAttributesCommunity setChoice(value BgpAttributesCommunityChoiceEnum) BgpAttributesCommunity - // getter for NoExportSubconfed to set choice. - NoExportSubconfed() - // getter for NoAdvertised to set choice. - NoAdvertised() // getter for NoLlgr to set choice. NoLlgr() // getter for LlgrStale to set choice. LlgrStale() + // getter for NoExportSubconfed to set choice. + NoExportSubconfed() + // getter for NoAdvertised to set choice. + NoAdvertised() // getter for NoExport to set choice. NoExport() // CustomCommunity returns BgpAttributesCustomCommunity, set in BgpAttributesCommunity. @@ -322,16 +322,6 @@ func (obj *bgpAttributesCommunity) Choice() BgpAttributesCommunityChoiceEnum { return BgpAttributesCommunityChoiceEnum(obj.obj.Choice.Enum().String()) } -// getter for NoExportSubconfed to set choice -func (obj *bgpAttributesCommunity) NoExportSubconfed() { - obj.setChoice(BgpAttributesCommunityChoice.NO_EXPORT_SUBCONFED) -} - -// getter for NoAdvertised to set choice -func (obj *bgpAttributesCommunity) NoAdvertised() { - obj.setChoice(BgpAttributesCommunityChoice.NO_ADVERTISED) -} - // getter for NoLlgr to set choice func (obj *bgpAttributesCommunity) NoLlgr() { obj.setChoice(BgpAttributesCommunityChoice.NO_LLGR) @@ -342,6 +332,16 @@ func (obj *bgpAttributesCommunity) LlgrStale() { obj.setChoice(BgpAttributesCommunityChoice.LLGR_STALE) } +// getter for NoExportSubconfed to set choice +func (obj *bgpAttributesCommunity) NoExportSubconfed() { + obj.setChoice(BgpAttributesCommunityChoice.NO_EXPORT_SUBCONFED) +} + +// getter for NoAdvertised to set choice +func (obj *bgpAttributesCommunity) NoAdvertised() { + obj.setChoice(BgpAttributesCommunityChoice.NO_ADVERTISED) +} + // getter for NoExport to set choice func (obj *bgpAttributesCommunity) NoExport() { obj.setChoice(BgpAttributesCommunityChoice.NO_EXPORT) diff --git a/gosnappi/bgp_attributes_sr_policy_explicit_null_policy.go b/gosnappi/bgp_attributes_sr_policy_explicit_null_policy.go index 94e65321..b603f8d8 100644 --- a/gosnappi/bgp_attributes_sr_policy_explicit_null_policy.go +++ b/gosnappi/bgp_attributes_sr_policy_explicit_null_policy.go @@ -274,14 +274,14 @@ type BgpAttributesSrPolicyExplicitNullPolicy interface { HasChoice() bool // getter for PushIpv4AndIpv6 to set choice. PushIpv4AndIpv6() - // getter for PushIpv4 to set choice. - PushIpv4() - // getter for DonotPush to set choice. - DonotPush() // getter for Unknown to set choice. Unknown() // getter for PushIpv6 to set choice. PushIpv6() + // getter for PushIpv4 to set choice. + PushIpv4() + // getter for DonotPush to set choice. + DonotPush() } type BgpAttributesSrPolicyExplicitNullPolicyChoiceEnum string @@ -310,16 +310,6 @@ func (obj *bgpAttributesSrPolicyExplicitNullPolicy) PushIpv4AndIpv6() { obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.PUSH_IPV4_AND_IPV6) } -// getter for PushIpv4 to set choice -func (obj *bgpAttributesSrPolicyExplicitNullPolicy) PushIpv4() { - obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.PUSH_IPV4) -} - -// getter for DonotPush to set choice -func (obj *bgpAttributesSrPolicyExplicitNullPolicy) DonotPush() { - obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.DONOT_PUSH) -} - // getter for Unknown to set choice func (obj *bgpAttributesSrPolicyExplicitNullPolicy) Unknown() { obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.UNKNOWN) @@ -330,6 +320,16 @@ func (obj *bgpAttributesSrPolicyExplicitNullPolicy) PushIpv6() { obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.PUSH_IPV6) } +// getter for PushIpv4 to set choice +func (obj *bgpAttributesSrPolicyExplicitNullPolicy) PushIpv4() { + obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.PUSH_IPV4) +} + +// getter for DonotPush to set choice +func (obj *bgpAttributesSrPolicyExplicitNullPolicy) DonotPush() { + obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.DONOT_PUSH) +} + // The Explicit NULL Label policy. // Choice returns a string func (obj *bgpAttributesSrPolicyExplicitNullPolicy) HasChoice() bool { diff --git a/gosnappi/dhcpv6_client_options_duid_uuid_variant.go b/gosnappi/dhcpv6_client_options_duid_uuid_variant.go index 1e6192c8..46378976 100644 --- a/gosnappi/dhcpv6_client_options_duid_uuid_variant.go +++ b/gosnappi/dhcpv6_client_options_duid_uuid_variant.go @@ -272,12 +272,12 @@ type Dhcpv6ClientOptionsDuidUuidVariant interface { HasChoice() bool // getter for Dce to set choice. Dce() - // getter for VarReserved to set choice. - VarReserved() // getter for Ncs to set choice. Ncs() // getter for Guid to set choice. Guid() + // getter for VarReserved to set choice. + VarReserved() } type Dhcpv6ClientOptionsDuidUuidVariantChoiceEnum string @@ -304,11 +304,6 @@ func (obj *dhcpv6ClientOptionsDuidUuidVariant) Dce() { obj.setChoice(Dhcpv6ClientOptionsDuidUuidVariantChoice.DCE) } -// getter for VarReserved to set choice -func (obj *dhcpv6ClientOptionsDuidUuidVariant) VarReserved() { - obj.setChoice(Dhcpv6ClientOptionsDuidUuidVariantChoice.VAR_RESERVED) -} - // getter for Ncs to set choice func (obj *dhcpv6ClientOptionsDuidUuidVariant) Ncs() { obj.setChoice(Dhcpv6ClientOptionsDuidUuidVariantChoice.NCS) @@ -319,6 +314,11 @@ func (obj *dhcpv6ClientOptionsDuidUuidVariant) Guid() { obj.setChoice(Dhcpv6ClientOptionsDuidUuidVariantChoice.GUID) } +// getter for VarReserved to set choice +func (obj *dhcpv6ClientOptionsDuidUuidVariant) VarReserved() { + obj.setChoice(Dhcpv6ClientOptionsDuidUuidVariantChoice.VAR_RESERVED) +} + // The current variants are ncs, dce,microsoft guid and reserved. // Choice returns a string func (obj *dhcpv6ClientOptionsDuidUuidVariant) HasChoice() bool { diff --git a/gosnappi/dhcpv6_client_options_duid_uuid_version.go b/gosnappi/dhcpv6_client_options_duid_uuid_version.go index e714fa92..e3ebde54 100644 --- a/gosnappi/dhcpv6_client_options_duid_uuid_version.go +++ b/gosnappi/dhcpv6_client_options_duid_uuid_version.go @@ -274,12 +274,12 @@ type Dhcpv6ClientOptionsDuidUuidVersion interface { V_2() // getter for V_5 to set choice. V_5() + // getter for V_3 to set choice. + V_3() // getter for V_1 to set choice. V_1() // getter for V_4 to set choice. V_4() - // getter for V_3 to set choice. - V_3() } type Dhcpv6ClientOptionsDuidUuidVersionChoiceEnum string @@ -313,6 +313,11 @@ func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_5() { obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_5) } +// getter for V_3 to set choice +func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_3() { + obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_3) +} + // getter for V_1 to set choice func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_1() { obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_1) @@ -323,11 +328,6 @@ func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_4() { obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_4) } -// getter for V_3 to set choice -func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_3() { - obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_3) -} - // The version values are from 1 to 5 in the most significant 4 bits of the timestamp (bits 4 through 7 of the time_hi_and_version field). // Choice returns a string func (obj *dhcpv6ClientOptionsDuidUuidVersion) HasChoice() bool { diff --git a/gosnappi/dhcpv6_client_options_message_type.go b/gosnappi/dhcpv6_client_options_message_type.go index 1ecd447d..39f87f03 100644 --- a/gosnappi/dhcpv6_client_options_message_type.go +++ b/gosnappi/dhcpv6_client_options_message_type.go @@ -270,18 +270,18 @@ type Dhcpv6ClientOptionsMessageType interface { setChoice(value Dhcpv6ClientOptionsMessageTypeChoiceEnum) Dhcpv6ClientOptionsMessageType // HasChoice checks if Choice has been set in Dhcpv6ClientOptionsMessageType HasChoice() bool - // getter for Renew to set choice. - Renew() - // getter for Release to set choice. - Release() + // getter for InformRequest to set choice. + InformRequest() // getter for Request to set choice. Request() - // getter for Rebind to set choice. - Rebind() // getter for Solicit to set choice. Solicit() - // getter for InformRequest to set choice. - InformRequest() + // getter for Rebind to set choice. + Rebind() + // getter for Release to set choice. + Release() + // getter for Renew to set choice. + Renew() } type Dhcpv6ClientOptionsMessageTypeChoiceEnum string @@ -307,14 +307,9 @@ func (obj *dhcpv6ClientOptionsMessageType) Choice() Dhcpv6ClientOptionsMessageTy return Dhcpv6ClientOptionsMessageTypeChoiceEnum(obj.obj.Choice.Enum().String()) } -// getter for Renew to set choice -func (obj *dhcpv6ClientOptionsMessageType) Renew() { - obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.RENEW) -} - -// getter for Release to set choice -func (obj *dhcpv6ClientOptionsMessageType) Release() { - obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.RELEASE) +// getter for InformRequest to set choice +func (obj *dhcpv6ClientOptionsMessageType) InformRequest() { + obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.INFORM_REQUEST) } // getter for Request to set choice @@ -322,19 +317,24 @@ func (obj *dhcpv6ClientOptionsMessageType) Request() { obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.REQUEST) } +// getter for Solicit to set choice +func (obj *dhcpv6ClientOptionsMessageType) Solicit() { + obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.SOLICIT) +} + // getter for Rebind to set choice func (obj *dhcpv6ClientOptionsMessageType) Rebind() { obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.REBIND) } -// getter for Solicit to set choice -func (obj *dhcpv6ClientOptionsMessageType) Solicit() { - obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.SOLICIT) +// getter for Release to set choice +func (obj *dhcpv6ClientOptionsMessageType) Release() { + obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.RELEASE) } -// getter for InformRequest to set choice -func (obj *dhcpv6ClientOptionsMessageType) InformRequest() { - obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.INFORM_REQUEST) +// getter for Renew to set choice +func (obj *dhcpv6ClientOptionsMessageType) Renew() { + obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.RENEW) } // The client message name where the option is included, by default it is all. diff --git a/gosnappi/dhcpv6_client_options_options_request.go b/gosnappi/dhcpv6_client_options_options_request.go index 631a9691..e0feaf92 100644 --- a/gosnappi/dhcpv6_client_options_options_request.go +++ b/gosnappi/dhcpv6_client_options_options_request.go @@ -278,14 +278,14 @@ type Dhcpv6ClientOptionsOptionsRequest interface { setChoice(value Dhcpv6ClientOptionsOptionsRequestChoiceEnum) Dhcpv6ClientOptionsOptionsRequest // HasChoice checks if Choice has been set in Dhcpv6ClientOptionsOptionsRequest HasChoice() bool - // getter for Sztp to set choice. - Sztp() + // getter for VendorInformation to set choice. + VendorInformation() // getter for Fqdn to set choice. Fqdn() + // getter for Sztp to set choice. + Sztp() // getter for NameServers to set choice. NameServers() - // getter for VendorInformation to set choice. - VendorInformation() // getter for BootfileUrl to set choice. BootfileUrl() // Custom returns Dhcpv6ClientOptionsCustom, set in Dhcpv6ClientOptionsOptionsRequest. @@ -322,9 +322,9 @@ func (obj *dhcpv6ClientOptionsOptionsRequest) Choice() Dhcpv6ClientOptionsOption return Dhcpv6ClientOptionsOptionsRequestChoiceEnum(obj.obj.Choice.Enum().String()) } -// getter for Sztp to set choice -func (obj *dhcpv6ClientOptionsOptionsRequest) Sztp() { - obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.SZTP) +// getter for VendorInformation to set choice +func (obj *dhcpv6ClientOptionsOptionsRequest) VendorInformation() { + obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.VENDOR_INFORMATION) } // getter for Fqdn to set choice @@ -332,16 +332,16 @@ func (obj *dhcpv6ClientOptionsOptionsRequest) Fqdn() { obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.FQDN) } +// getter for Sztp to set choice +func (obj *dhcpv6ClientOptionsOptionsRequest) Sztp() { + obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.SZTP) +} + // getter for NameServers to set choice func (obj *dhcpv6ClientOptionsOptionsRequest) NameServers() { obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.NAME_SERVERS) } -// getter for VendorInformation to set choice -func (obj *dhcpv6ClientOptionsOptionsRequest) VendorInformation() { - obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.VENDOR_INFORMATION) -} - // getter for BootfileUrl to set choice func (obj *dhcpv6ClientOptionsOptionsRequest) BootfileUrl() { obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.BOOTFILE_URL) diff --git a/gosnappi/dhcpv6_server_options_message_type.go b/gosnappi/dhcpv6_server_options_message_type.go index 1eb23b3a..404e5df0 100644 --- a/gosnappi/dhcpv6_server_options_message_type.go +++ b/gosnappi/dhcpv6_server_options_message_type.go @@ -270,12 +270,12 @@ type Dhcpv6ServerOptionsMessageType interface { setChoice(value Dhcpv6ServerOptionsMessageTypeChoiceEnum) Dhcpv6ServerOptionsMessageType // HasChoice checks if Choice has been set in Dhcpv6ServerOptionsMessageType HasChoice() bool + // getter for Reply to set choice. + Reply() // getter for ReConfigure to set choice. ReConfigure() // getter for Advertise to set choice. Advertise() - // getter for Reply to set choice. - Reply() } type Dhcpv6ServerOptionsMessageTypeChoiceEnum string @@ -295,6 +295,11 @@ func (obj *dhcpv6ServerOptionsMessageType) Choice() Dhcpv6ServerOptionsMessageTy return Dhcpv6ServerOptionsMessageTypeChoiceEnum(obj.obj.Choice.Enum().String()) } +// getter for Reply to set choice +func (obj *dhcpv6ServerOptionsMessageType) Reply() { + obj.setChoice(Dhcpv6ServerOptionsMessageTypeChoice.REPLY) +} + // getter for ReConfigure to set choice func (obj *dhcpv6ServerOptionsMessageType) ReConfigure() { obj.setChoice(Dhcpv6ServerOptionsMessageTypeChoice.RE_CONFIGURE) @@ -305,11 +310,6 @@ func (obj *dhcpv6ServerOptionsMessageType) Advertise() { obj.setChoice(Dhcpv6ServerOptionsMessageTypeChoice.ADVERTISE) } -// getter for Reply to set choice -func (obj *dhcpv6ServerOptionsMessageType) Reply() { - obj.setChoice(Dhcpv6ServerOptionsMessageTypeChoice.REPLY) -} - // The server message name where the option is included, by default it is all. // Choice returns a string func (obj *dhcpv6ServerOptionsMessageType) HasChoice() bool { diff --git a/gosnappi/flow_rsvp_lsp_tunnel_flag.go b/gosnappi/flow_rsvp_lsp_tunnel_flag.go index 5047737d..d2ddef91 100644 --- a/gosnappi/flow_rsvp_lsp_tunnel_flag.go +++ b/gosnappi/flow_rsvp_lsp_tunnel_flag.go @@ -270,12 +270,12 @@ type FlowRSVPLspTunnelFlag interface { setChoice(value FlowRSVPLspTunnelFlagChoiceEnum) FlowRSVPLspTunnelFlag // HasChoice checks if Choice has been set in FlowRSVPLspTunnelFlag HasChoice() bool - // getter for SeStyleDesired to set choice. - SeStyleDesired() - // getter for LocalProtectionDesired to set choice. - LocalProtectionDesired() // getter for LabelRecordingDesired to set choice. LabelRecordingDesired() + // getter for LocalProtectionDesired to set choice. + LocalProtectionDesired() + // getter for SeStyleDesired to set choice. + SeStyleDesired() } type FlowRSVPLspTunnelFlagChoiceEnum string @@ -295,9 +295,9 @@ func (obj *flowRSVPLspTunnelFlag) Choice() FlowRSVPLspTunnelFlagChoiceEnum { return FlowRSVPLspTunnelFlagChoiceEnum(obj.obj.Choice.Enum().String()) } -// getter for SeStyleDesired to set choice -func (obj *flowRSVPLspTunnelFlag) SeStyleDesired() { - obj.setChoice(FlowRSVPLspTunnelFlagChoice.SE_STYLE_DESIRED) +// getter for LabelRecordingDesired to set choice +func (obj *flowRSVPLspTunnelFlag) LabelRecordingDesired() { + obj.setChoice(FlowRSVPLspTunnelFlagChoice.LABEL_RECORDING_DESIRED) } // getter for LocalProtectionDesired to set choice @@ -305,9 +305,9 @@ func (obj *flowRSVPLspTunnelFlag) LocalProtectionDesired() { obj.setChoice(FlowRSVPLspTunnelFlagChoice.LOCAL_PROTECTION_DESIRED) } -// getter for LabelRecordingDesired to set choice -func (obj *flowRSVPLspTunnelFlag) LabelRecordingDesired() { - obj.setChoice(FlowRSVPLspTunnelFlagChoice.LABEL_RECORDING_DESIRED) +// getter for SeStyleDesired to set choice +func (obj *flowRSVPLspTunnelFlag) SeStyleDesired() { + obj.setChoice(FlowRSVPLspTunnelFlagChoice.SE_STYLE_DESIRED) } // description is TBD diff --git a/gosnappi/metrics_response.go b/gosnappi/metrics_response.go index 18ff43e5..c9e08e37 100644 --- a/gosnappi/metrics_response.go +++ b/gosnappi/metrics_response.go @@ -302,14 +302,14 @@ type MetricsResponse interface { setChoice(value MetricsResponseChoiceEnum) MetricsResponse // HasChoice checks if Choice has been set in MetricsResponse HasChoice() bool - // getter for Dhcpv6Client to set choice. - Dhcpv6Client() + // getter for Dhcpv4Client to set choice. + Dhcpv4Client() // getter for Dhcpv4Server to set choice. Dhcpv4Server() // getter for Dhcpv6Server to set choice. Dhcpv6Server() - // getter for Dhcpv4Client to set choice. - Dhcpv4Client() + // getter for Dhcpv6Client to set choice. + Dhcpv6Client() // PortMetrics returns MetricsResponsePortMetricIterIter, set in MetricsResponse PortMetrics() MetricsResponsePortMetricIter // FlowMetrics returns MetricsResponseFlowMetricIterIter, set in MetricsResponse @@ -376,9 +376,9 @@ func (obj *metricsResponse) Choice() MetricsResponseChoiceEnum { return MetricsResponseChoiceEnum(obj.obj.Choice.Enum().String()) } -// getter for Dhcpv6Client to set choice -func (obj *metricsResponse) Dhcpv6Client() { - obj.setChoice(MetricsResponseChoice.DHCPV6_CLIENT) +// getter for Dhcpv4Client to set choice +func (obj *metricsResponse) Dhcpv4Client() { + obj.setChoice(MetricsResponseChoice.DHCPV4_CLIENT) } // getter for Dhcpv4Server to set choice @@ -391,9 +391,9 @@ func (obj *metricsResponse) Dhcpv6Server() { obj.setChoice(MetricsResponseChoice.DHCPV6_SERVER) } -// getter for Dhcpv4Client to set choice -func (obj *metricsResponse) Dhcpv4Client() { - obj.setChoice(MetricsResponseChoice.DHCPV4_CLIENT) +// getter for Dhcpv6Client to set choice +func (obj *metricsResponse) Dhcpv6Client() { + obj.setChoice(MetricsResponseChoice.DHCPV6_CLIENT) } // description is TBD diff --git a/requirements.txt b/requirements.txt index ed9d0cd3..4f0ec130 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,11 +1,11 @@ --prefer-binary +grpcio~=1.44.0 ; python_version <= '3.6' +grpcio-tools~=1.59.0 ; python_version > '3.6' +grpcio-tools~=1.44.0 ; python_version <= '3.6' +grpcio~=1.59.0 ; python_version > '3.6' requests protobuf~=3.15.0 ; python_version <= '3.6' protobuf~=4.24.4 ; python_version > '3.6' -grpcio-tools~=1.44.0 ; python_version <= '3.6' -grpcio-tools~=1.59.0 ; python_version > '3.6' -grpcio~=1.59.0 ; python_version > '3.6' -grpcio~=1.44.0 ; python_version <= '3.6' PyYAML -semantic_version urllib3 +semantic_version From d9a9fec3a224871ef1ee8f6b1760c532e3d8d605 Mon Sep 17 00:00:00 2001 From: Github Actions Bot Date: Tue, 1 Oct 2024 05:22:58 +0000 Subject: [PATCH 4/6] Update auto generated go snappi --- gosnappi/bgp_attributes_community.go | 34 ++++++++--------- ...tributes_sr_policy_explicit_null_policy.go | 14 +++---- ...dhcpv6_client_options_duid_uuid_variant.go | 24 ++++++------ ...dhcpv6_client_options_duid_uuid_version.go | 38 +++++++++---------- .../dhcpv6_client_options_message_type.go | 34 ++++++++--------- .../dhcpv6_client_options_options_request.go | 28 +++++++------- .../dhcpv6_server_options_message_type.go | 14 +++---- gosnappi/metrics_response.go | 14 +++---- requirements.txt | 8 ++-- 9 files changed, 104 insertions(+), 104 deletions(-) diff --git a/gosnappi/bgp_attributes_community.go b/gosnappi/bgp_attributes_community.go index 2e20cb74..07e4326d 100644 --- a/gosnappi/bgp_attributes_community.go +++ b/gosnappi/bgp_attributes_community.go @@ -278,16 +278,16 @@ type BgpAttributesCommunity interface { Choice() BgpAttributesCommunityChoiceEnum // setChoice assigns BgpAttributesCommunityChoiceEnum provided by user to BgpAttributesCommunity setChoice(value BgpAttributesCommunityChoiceEnum) BgpAttributesCommunity - // getter for NoLlgr to set choice. - NoLlgr() - // getter for LlgrStale to set choice. - LlgrStale() - // getter for NoExportSubconfed to set choice. - NoExportSubconfed() // getter for NoAdvertised to set choice. NoAdvertised() + // getter for NoLlgr to set choice. + NoLlgr() // getter for NoExport to set choice. NoExport() + // getter for NoExportSubconfed to set choice. + NoExportSubconfed() + // getter for LlgrStale to set choice. + LlgrStale() // CustomCommunity returns BgpAttributesCustomCommunity, set in BgpAttributesCommunity. // BgpAttributesCustomCommunity is user defined COMMUNITY attribute containing 2 byte AS and custom 2 byte value defined by the administrator of the domain. CustomCommunity() BgpAttributesCustomCommunity @@ -322,14 +322,19 @@ func (obj *bgpAttributesCommunity) Choice() BgpAttributesCommunityChoiceEnum { return BgpAttributesCommunityChoiceEnum(obj.obj.Choice.Enum().String()) } +// getter for NoAdvertised to set choice +func (obj *bgpAttributesCommunity) NoAdvertised() { + obj.setChoice(BgpAttributesCommunityChoice.NO_ADVERTISED) +} + // getter for NoLlgr to set choice func (obj *bgpAttributesCommunity) NoLlgr() { obj.setChoice(BgpAttributesCommunityChoice.NO_LLGR) } -// getter for LlgrStale to set choice -func (obj *bgpAttributesCommunity) LlgrStale() { - obj.setChoice(BgpAttributesCommunityChoice.LLGR_STALE) +// getter for NoExport to set choice +func (obj *bgpAttributesCommunity) NoExport() { + obj.setChoice(BgpAttributesCommunityChoice.NO_EXPORT) } // getter for NoExportSubconfed to set choice @@ -337,14 +342,9 @@ func (obj *bgpAttributesCommunity) NoExportSubconfed() { obj.setChoice(BgpAttributesCommunityChoice.NO_EXPORT_SUBCONFED) } -// getter for NoAdvertised to set choice -func (obj *bgpAttributesCommunity) NoAdvertised() { - obj.setChoice(BgpAttributesCommunityChoice.NO_ADVERTISED) -} - -// getter for NoExport to set choice -func (obj *bgpAttributesCommunity) NoExport() { - obj.setChoice(BgpAttributesCommunityChoice.NO_EXPORT) +// getter for LlgrStale to set choice +func (obj *bgpAttributesCommunity) LlgrStale() { + obj.setChoice(BgpAttributesCommunityChoice.LLGR_STALE) } func (obj *bgpAttributesCommunity) setChoice(value BgpAttributesCommunityChoiceEnum) BgpAttributesCommunity { diff --git a/gosnappi/bgp_attributes_sr_policy_explicit_null_policy.go b/gosnappi/bgp_attributes_sr_policy_explicit_null_policy.go index b603f8d8..7322e756 100644 --- a/gosnappi/bgp_attributes_sr_policy_explicit_null_policy.go +++ b/gosnappi/bgp_attributes_sr_policy_explicit_null_policy.go @@ -272,14 +272,14 @@ type BgpAttributesSrPolicyExplicitNullPolicy interface { setChoice(value BgpAttributesSrPolicyExplicitNullPolicyChoiceEnum) BgpAttributesSrPolicyExplicitNullPolicy // HasChoice checks if Choice has been set in BgpAttributesSrPolicyExplicitNullPolicy HasChoice() bool + // getter for PushIpv4 to set choice. + PushIpv4() // getter for PushIpv4AndIpv6 to set choice. PushIpv4AndIpv6() // getter for Unknown to set choice. Unknown() // getter for PushIpv6 to set choice. PushIpv6() - // getter for PushIpv4 to set choice. - PushIpv4() // getter for DonotPush to set choice. DonotPush() } @@ -305,6 +305,11 @@ func (obj *bgpAttributesSrPolicyExplicitNullPolicy) Choice() BgpAttributesSrPoli return BgpAttributesSrPolicyExplicitNullPolicyChoiceEnum(obj.obj.Choice.Enum().String()) } +// getter for PushIpv4 to set choice +func (obj *bgpAttributesSrPolicyExplicitNullPolicy) PushIpv4() { + obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.PUSH_IPV4) +} + // getter for PushIpv4AndIpv6 to set choice func (obj *bgpAttributesSrPolicyExplicitNullPolicy) PushIpv4AndIpv6() { obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.PUSH_IPV4_AND_IPV6) @@ -320,11 +325,6 @@ func (obj *bgpAttributesSrPolicyExplicitNullPolicy) PushIpv6() { obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.PUSH_IPV6) } -// getter for PushIpv4 to set choice -func (obj *bgpAttributesSrPolicyExplicitNullPolicy) PushIpv4() { - obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.PUSH_IPV4) -} - // getter for DonotPush to set choice func (obj *bgpAttributesSrPolicyExplicitNullPolicy) DonotPush() { obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.DONOT_PUSH) diff --git a/gosnappi/dhcpv6_client_options_duid_uuid_variant.go b/gosnappi/dhcpv6_client_options_duid_uuid_variant.go index 46378976..b72e4d45 100644 --- a/gosnappi/dhcpv6_client_options_duid_uuid_variant.go +++ b/gosnappi/dhcpv6_client_options_duid_uuid_variant.go @@ -270,14 +270,14 @@ type Dhcpv6ClientOptionsDuidUuidVariant interface { setChoice(value Dhcpv6ClientOptionsDuidUuidVariantChoiceEnum) Dhcpv6ClientOptionsDuidUuidVariant // HasChoice checks if Choice has been set in Dhcpv6ClientOptionsDuidUuidVariant HasChoice() bool - // getter for Dce to set choice. - Dce() // getter for Ncs to set choice. Ncs() - // getter for Guid to set choice. - Guid() // getter for VarReserved to set choice. VarReserved() + // getter for Guid to set choice. + Guid() + // getter for Dce to set choice. + Dce() } type Dhcpv6ClientOptionsDuidUuidVariantChoiceEnum string @@ -299,24 +299,24 @@ func (obj *dhcpv6ClientOptionsDuidUuidVariant) Choice() Dhcpv6ClientOptionsDuidU return Dhcpv6ClientOptionsDuidUuidVariantChoiceEnum(obj.obj.Choice.Enum().String()) } -// getter for Dce to set choice -func (obj *dhcpv6ClientOptionsDuidUuidVariant) Dce() { - obj.setChoice(Dhcpv6ClientOptionsDuidUuidVariantChoice.DCE) -} - // getter for Ncs to set choice func (obj *dhcpv6ClientOptionsDuidUuidVariant) Ncs() { obj.setChoice(Dhcpv6ClientOptionsDuidUuidVariantChoice.NCS) } +// getter for VarReserved to set choice +func (obj *dhcpv6ClientOptionsDuidUuidVariant) VarReserved() { + obj.setChoice(Dhcpv6ClientOptionsDuidUuidVariantChoice.VAR_RESERVED) +} + // getter for Guid to set choice func (obj *dhcpv6ClientOptionsDuidUuidVariant) Guid() { obj.setChoice(Dhcpv6ClientOptionsDuidUuidVariantChoice.GUID) } -// getter for VarReserved to set choice -func (obj *dhcpv6ClientOptionsDuidUuidVariant) VarReserved() { - obj.setChoice(Dhcpv6ClientOptionsDuidUuidVariantChoice.VAR_RESERVED) +// getter for Dce to set choice +func (obj *dhcpv6ClientOptionsDuidUuidVariant) Dce() { + obj.setChoice(Dhcpv6ClientOptionsDuidUuidVariantChoice.DCE) } // The current variants are ncs, dce,microsoft guid and reserved. diff --git a/gosnappi/dhcpv6_client_options_duid_uuid_version.go b/gosnappi/dhcpv6_client_options_duid_uuid_version.go index e3ebde54..280f0696 100644 --- a/gosnappi/dhcpv6_client_options_duid_uuid_version.go +++ b/gosnappi/dhcpv6_client_options_duid_uuid_version.go @@ -270,16 +270,16 @@ type Dhcpv6ClientOptionsDuidUuidVersion interface { setChoice(value Dhcpv6ClientOptionsDuidUuidVersionChoiceEnum) Dhcpv6ClientOptionsDuidUuidVersion // HasChoice checks if Choice has been set in Dhcpv6ClientOptionsDuidUuidVersion HasChoice() bool - // getter for V_2 to set choice. - V_2() - // getter for V_5 to set choice. - V_5() - // getter for V_3 to set choice. - V_3() // getter for V_1 to set choice. V_1() // getter for V_4 to set choice. V_4() + // getter for V_5 to set choice. + V_5() + // getter for V_2 to set choice. + V_2() + // getter for V_3 to set choice. + V_3() } type Dhcpv6ClientOptionsDuidUuidVersionChoiceEnum string @@ -303,9 +303,14 @@ func (obj *dhcpv6ClientOptionsDuidUuidVersion) Choice() Dhcpv6ClientOptionsDuidU return Dhcpv6ClientOptionsDuidUuidVersionChoiceEnum(obj.obj.Choice.Enum().String()) } -// getter for V_2 to set choice -func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_2() { - obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_2) +// getter for V_1 to set choice +func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_1() { + obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_1) +} + +// getter for V_4 to set choice +func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_4() { + obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_4) } // getter for V_5 to set choice @@ -313,21 +318,16 @@ func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_5() { obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_5) } +// getter for V_2 to set choice +func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_2() { + obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_2) +} + // getter for V_3 to set choice func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_3() { obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_3) } -// getter for V_1 to set choice -func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_1() { - obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_1) -} - -// getter for V_4 to set choice -func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_4() { - obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_4) -} - // The version values are from 1 to 5 in the most significant 4 bits of the timestamp (bits 4 through 7 of the time_hi_and_version field). // Choice returns a string func (obj *dhcpv6ClientOptionsDuidUuidVersion) HasChoice() bool { diff --git a/gosnappi/dhcpv6_client_options_message_type.go b/gosnappi/dhcpv6_client_options_message_type.go index 39f87f03..749649bb 100644 --- a/gosnappi/dhcpv6_client_options_message_type.go +++ b/gosnappi/dhcpv6_client_options_message_type.go @@ -270,14 +270,14 @@ type Dhcpv6ClientOptionsMessageType interface { setChoice(value Dhcpv6ClientOptionsMessageTypeChoiceEnum) Dhcpv6ClientOptionsMessageType // HasChoice checks if Choice has been set in Dhcpv6ClientOptionsMessageType HasChoice() bool - // getter for InformRequest to set choice. - InformRequest() - // getter for Request to set choice. - Request() - // getter for Solicit to set choice. - Solicit() // getter for Rebind to set choice. Rebind() + // getter for Solicit to set choice. + Solicit() + // getter for Request to set choice. + Request() + // getter for InformRequest to set choice. + InformRequest() // getter for Release to set choice. Release() // getter for Renew to set choice. @@ -307,14 +307,9 @@ func (obj *dhcpv6ClientOptionsMessageType) Choice() Dhcpv6ClientOptionsMessageTy return Dhcpv6ClientOptionsMessageTypeChoiceEnum(obj.obj.Choice.Enum().String()) } -// getter for InformRequest to set choice -func (obj *dhcpv6ClientOptionsMessageType) InformRequest() { - obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.INFORM_REQUEST) -} - -// getter for Request to set choice -func (obj *dhcpv6ClientOptionsMessageType) Request() { - obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.REQUEST) +// getter for Rebind to set choice +func (obj *dhcpv6ClientOptionsMessageType) Rebind() { + obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.REBIND) } // getter for Solicit to set choice @@ -322,9 +317,14 @@ func (obj *dhcpv6ClientOptionsMessageType) Solicit() { obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.SOLICIT) } -// getter for Rebind to set choice -func (obj *dhcpv6ClientOptionsMessageType) Rebind() { - obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.REBIND) +// getter for Request to set choice +func (obj *dhcpv6ClientOptionsMessageType) Request() { + obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.REQUEST) +} + +// getter for InformRequest to set choice +func (obj *dhcpv6ClientOptionsMessageType) InformRequest() { + obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.INFORM_REQUEST) } // getter for Release to set choice diff --git a/gosnappi/dhcpv6_client_options_options_request.go b/gosnappi/dhcpv6_client_options_options_request.go index e0feaf92..bd02e782 100644 --- a/gosnappi/dhcpv6_client_options_options_request.go +++ b/gosnappi/dhcpv6_client_options_options_request.go @@ -278,16 +278,16 @@ type Dhcpv6ClientOptionsOptionsRequest interface { setChoice(value Dhcpv6ClientOptionsOptionsRequestChoiceEnum) Dhcpv6ClientOptionsOptionsRequest // HasChoice checks if Choice has been set in Dhcpv6ClientOptionsOptionsRequest HasChoice() bool + // getter for BootfileUrl to set choice. + BootfileUrl() + // getter for NameServers to set choice. + NameServers() // getter for VendorInformation to set choice. VendorInformation() // getter for Fqdn to set choice. Fqdn() // getter for Sztp to set choice. Sztp() - // getter for NameServers to set choice. - NameServers() - // getter for BootfileUrl to set choice. - BootfileUrl() // Custom returns Dhcpv6ClientOptionsCustom, set in Dhcpv6ClientOptionsOptionsRequest. // Dhcpv6ClientOptionsCustom is the Custom option is used to provide a not so well known option in the message between a client and a server. Custom() Dhcpv6ClientOptionsCustom @@ -322,6 +322,16 @@ func (obj *dhcpv6ClientOptionsOptionsRequest) Choice() Dhcpv6ClientOptionsOption return Dhcpv6ClientOptionsOptionsRequestChoiceEnum(obj.obj.Choice.Enum().String()) } +// getter for BootfileUrl to set choice +func (obj *dhcpv6ClientOptionsOptionsRequest) BootfileUrl() { + obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.BOOTFILE_URL) +} + +// getter for NameServers to set choice +func (obj *dhcpv6ClientOptionsOptionsRequest) NameServers() { + obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.NAME_SERVERS) +} + // getter for VendorInformation to set choice func (obj *dhcpv6ClientOptionsOptionsRequest) VendorInformation() { obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.VENDOR_INFORMATION) @@ -337,16 +347,6 @@ func (obj *dhcpv6ClientOptionsOptionsRequest) Sztp() { obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.SZTP) } -// getter for NameServers to set choice -func (obj *dhcpv6ClientOptionsOptionsRequest) NameServers() { - obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.NAME_SERVERS) -} - -// getter for BootfileUrl to set choice -func (obj *dhcpv6ClientOptionsOptionsRequest) BootfileUrl() { - obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.BOOTFILE_URL) -} - // The Option Request option is used to identify a list of options in a message between a client and a server. The option code is 6. - Vendor_specific information option, requested by clients for vendor-specific informations from servers. - DNS Recursive Name Server Option, requested by clients to get the list ofIPv6 addresses of DNS recursive name // servers to which DNS queries may be sent by the client resolver in order of preference. // - Client FQDN option - indicates whether the client or the DHCP server should update DNS with the AAAA record diff --git a/gosnappi/dhcpv6_server_options_message_type.go b/gosnappi/dhcpv6_server_options_message_type.go index 404e5df0..fb9162ea 100644 --- a/gosnappi/dhcpv6_server_options_message_type.go +++ b/gosnappi/dhcpv6_server_options_message_type.go @@ -272,10 +272,10 @@ type Dhcpv6ServerOptionsMessageType interface { HasChoice() bool // getter for Reply to set choice. Reply() - // getter for ReConfigure to set choice. - ReConfigure() // getter for Advertise to set choice. Advertise() + // getter for ReConfigure to set choice. + ReConfigure() } type Dhcpv6ServerOptionsMessageTypeChoiceEnum string @@ -300,16 +300,16 @@ func (obj *dhcpv6ServerOptionsMessageType) Reply() { obj.setChoice(Dhcpv6ServerOptionsMessageTypeChoice.REPLY) } -// getter for ReConfigure to set choice -func (obj *dhcpv6ServerOptionsMessageType) ReConfigure() { - obj.setChoice(Dhcpv6ServerOptionsMessageTypeChoice.RE_CONFIGURE) -} - // getter for Advertise to set choice func (obj *dhcpv6ServerOptionsMessageType) Advertise() { obj.setChoice(Dhcpv6ServerOptionsMessageTypeChoice.ADVERTISE) } +// getter for ReConfigure to set choice +func (obj *dhcpv6ServerOptionsMessageType) ReConfigure() { + obj.setChoice(Dhcpv6ServerOptionsMessageTypeChoice.RE_CONFIGURE) +} + // The server message name where the option is included, by default it is all. // Choice returns a string func (obj *dhcpv6ServerOptionsMessageType) HasChoice() bool { diff --git a/gosnappi/metrics_response.go b/gosnappi/metrics_response.go index c9e08e37..b8f191ff 100644 --- a/gosnappi/metrics_response.go +++ b/gosnappi/metrics_response.go @@ -306,10 +306,10 @@ type MetricsResponse interface { Dhcpv4Client() // getter for Dhcpv4Server to set choice. Dhcpv4Server() - // getter for Dhcpv6Server to set choice. - Dhcpv6Server() // getter for Dhcpv6Client to set choice. Dhcpv6Client() + // getter for Dhcpv6Server to set choice. + Dhcpv6Server() // PortMetrics returns MetricsResponsePortMetricIterIter, set in MetricsResponse PortMetrics() MetricsResponsePortMetricIter // FlowMetrics returns MetricsResponseFlowMetricIterIter, set in MetricsResponse @@ -386,16 +386,16 @@ func (obj *metricsResponse) Dhcpv4Server() { obj.setChoice(MetricsResponseChoice.DHCPV4_SERVER) } -// getter for Dhcpv6Server to set choice -func (obj *metricsResponse) Dhcpv6Server() { - obj.setChoice(MetricsResponseChoice.DHCPV6_SERVER) -} - // getter for Dhcpv6Client to set choice func (obj *metricsResponse) Dhcpv6Client() { obj.setChoice(MetricsResponseChoice.DHCPV6_CLIENT) } +// getter for Dhcpv6Server to set choice +func (obj *metricsResponse) Dhcpv6Server() { + obj.setChoice(MetricsResponseChoice.DHCPV6_SERVER) +} + // description is TBD // Choice returns a string func (obj *metricsResponse) HasChoice() bool { diff --git a/requirements.txt b/requirements.txt index 4f0ec130..35a6a959 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,11 +1,11 @@ --prefer-binary +PyYAML grpcio~=1.44.0 ; python_version <= '3.6' grpcio-tools~=1.59.0 ; python_version > '3.6' -grpcio-tools~=1.44.0 ; python_version <= '3.6' grpcio~=1.59.0 ; python_version > '3.6' +grpcio-tools~=1.44.0 ; python_version <= '3.6' requests -protobuf~=3.15.0 ; python_version <= '3.6' protobuf~=4.24.4 ; python_version > '3.6' -PyYAML -urllib3 +protobuf~=3.15.0 ; python_version <= '3.6' semantic_version +urllib3 From 3e94017b18dd8aa8318e90fc89160306fa5b21ec Mon Sep 17 00:00:00 2001 From: Indrani Bhattacharya <70219648+indraniBh@users.noreply.github.com> Date: Tue, 1 Oct 2024 11:06:06 +0530 Subject: [PATCH 5/6] V1.13.1 Update snappi-ixnetwork version. --- version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.py b/version.py index 3e7e2771..528d29df 100644 --- a/version.py +++ b/version.py @@ -3,7 +3,7 @@ class Version: models_version = "1.13.0" - version = "1.13.0" + version = "1.13.1" package_name = "snappi" protobuf_name = "otg" go_package_name = "gosnappi" From 233a1760af7f3f7d0af3e57752a30b7a6da62196 Mon Sep 17 00:00:00 2001 From: Github Actions Bot Date: Tue, 1 Oct 2024 05:49:37 +0000 Subject: [PATCH 6/6] Update auto generated go snappi --- gosnappi/bgp_attributes_community.go | 24 ++++++------ ...tributes_sr_policy_explicit_null_policy.go | 14 +++---- ...dhcpv6_client_options_duid_uuid_variant.go | 14 +++---- ...dhcpv6_client_options_duid_uuid_version.go | 36 +++++++++--------- .../dhcpv6_client_options_message_type.go | 38 +++++++++---------- .../dhcpv6_client_options_options_request.go | 34 ++++++++--------- .../dhcpv6_server_options_message_type.go | 14 +++---- gosnappi/flow_rsvp_lsp_tunnel_flag.go | 14 +++---- gosnappi/go.mod | 2 +- gosnappi/go.sum | 4 +- gosnappi/gosnappi.go | 2 +- gosnappi/metrics_response.go | 20 +++++----- requirements.txt | 10 ++--- snappi/snappi.py | 2 +- 14 files changed, 114 insertions(+), 114 deletions(-) diff --git a/gosnappi/bgp_attributes_community.go b/gosnappi/bgp_attributes_community.go index 07e4326d..3486c6c7 100644 --- a/gosnappi/bgp_attributes_community.go +++ b/gosnappi/bgp_attributes_community.go @@ -278,16 +278,16 @@ type BgpAttributesCommunity interface { Choice() BgpAttributesCommunityChoiceEnum // setChoice assigns BgpAttributesCommunityChoiceEnum provided by user to BgpAttributesCommunity setChoice(value BgpAttributesCommunityChoiceEnum) BgpAttributesCommunity - // getter for NoAdvertised to set choice. - NoAdvertised() // getter for NoLlgr to set choice. NoLlgr() - // getter for NoExport to set choice. - NoExport() + // getter for NoAdvertised to set choice. + NoAdvertised() // getter for NoExportSubconfed to set choice. NoExportSubconfed() // getter for LlgrStale to set choice. LlgrStale() + // getter for NoExport to set choice. + NoExport() // CustomCommunity returns BgpAttributesCustomCommunity, set in BgpAttributesCommunity. // BgpAttributesCustomCommunity is user defined COMMUNITY attribute containing 2 byte AS and custom 2 byte value defined by the administrator of the domain. CustomCommunity() BgpAttributesCustomCommunity @@ -322,19 +322,14 @@ func (obj *bgpAttributesCommunity) Choice() BgpAttributesCommunityChoiceEnum { return BgpAttributesCommunityChoiceEnum(obj.obj.Choice.Enum().String()) } -// getter for NoAdvertised to set choice -func (obj *bgpAttributesCommunity) NoAdvertised() { - obj.setChoice(BgpAttributesCommunityChoice.NO_ADVERTISED) -} - // getter for NoLlgr to set choice func (obj *bgpAttributesCommunity) NoLlgr() { obj.setChoice(BgpAttributesCommunityChoice.NO_LLGR) } -// getter for NoExport to set choice -func (obj *bgpAttributesCommunity) NoExport() { - obj.setChoice(BgpAttributesCommunityChoice.NO_EXPORT) +// getter for NoAdvertised to set choice +func (obj *bgpAttributesCommunity) NoAdvertised() { + obj.setChoice(BgpAttributesCommunityChoice.NO_ADVERTISED) } // getter for NoExportSubconfed to set choice @@ -347,6 +342,11 @@ func (obj *bgpAttributesCommunity) LlgrStale() { obj.setChoice(BgpAttributesCommunityChoice.LLGR_STALE) } +// getter for NoExport to set choice +func (obj *bgpAttributesCommunity) NoExport() { + obj.setChoice(BgpAttributesCommunityChoice.NO_EXPORT) +} + func (obj *bgpAttributesCommunity) setChoice(value BgpAttributesCommunityChoiceEnum) BgpAttributesCommunity { intValue, ok := otg.BgpAttributesCommunity_Choice_Enum_value[string(value)] if !ok { diff --git a/gosnappi/bgp_attributes_sr_policy_explicit_null_policy.go b/gosnappi/bgp_attributes_sr_policy_explicit_null_policy.go index 7322e756..4f9a5529 100644 --- a/gosnappi/bgp_attributes_sr_policy_explicit_null_policy.go +++ b/gosnappi/bgp_attributes_sr_policy_explicit_null_policy.go @@ -272,14 +272,14 @@ type BgpAttributesSrPolicyExplicitNullPolicy interface { setChoice(value BgpAttributesSrPolicyExplicitNullPolicyChoiceEnum) BgpAttributesSrPolicyExplicitNullPolicy // HasChoice checks if Choice has been set in BgpAttributesSrPolicyExplicitNullPolicy HasChoice() bool + // getter for PushIpv6 to set choice. + PushIpv6() // getter for PushIpv4 to set choice. PushIpv4() // getter for PushIpv4AndIpv6 to set choice. PushIpv4AndIpv6() // getter for Unknown to set choice. Unknown() - // getter for PushIpv6 to set choice. - PushIpv6() // getter for DonotPush to set choice. DonotPush() } @@ -305,6 +305,11 @@ func (obj *bgpAttributesSrPolicyExplicitNullPolicy) Choice() BgpAttributesSrPoli return BgpAttributesSrPolicyExplicitNullPolicyChoiceEnum(obj.obj.Choice.Enum().String()) } +// getter for PushIpv6 to set choice +func (obj *bgpAttributesSrPolicyExplicitNullPolicy) PushIpv6() { + obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.PUSH_IPV6) +} + // getter for PushIpv4 to set choice func (obj *bgpAttributesSrPolicyExplicitNullPolicy) PushIpv4() { obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.PUSH_IPV4) @@ -320,11 +325,6 @@ func (obj *bgpAttributesSrPolicyExplicitNullPolicy) Unknown() { obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.UNKNOWN) } -// getter for PushIpv6 to set choice -func (obj *bgpAttributesSrPolicyExplicitNullPolicy) PushIpv6() { - obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.PUSH_IPV6) -} - // getter for DonotPush to set choice func (obj *bgpAttributesSrPolicyExplicitNullPolicy) DonotPush() { obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.DONOT_PUSH) diff --git a/gosnappi/dhcpv6_client_options_duid_uuid_variant.go b/gosnappi/dhcpv6_client_options_duid_uuid_variant.go index b72e4d45..5880589a 100644 --- a/gosnappi/dhcpv6_client_options_duid_uuid_variant.go +++ b/gosnappi/dhcpv6_client_options_duid_uuid_variant.go @@ -270,12 +270,12 @@ type Dhcpv6ClientOptionsDuidUuidVariant interface { setChoice(value Dhcpv6ClientOptionsDuidUuidVariantChoiceEnum) Dhcpv6ClientOptionsDuidUuidVariant // HasChoice checks if Choice has been set in Dhcpv6ClientOptionsDuidUuidVariant HasChoice() bool - // getter for Ncs to set choice. - Ncs() // getter for VarReserved to set choice. VarReserved() // getter for Guid to set choice. Guid() + // getter for Ncs to set choice. + Ncs() // getter for Dce to set choice. Dce() } @@ -299,11 +299,6 @@ func (obj *dhcpv6ClientOptionsDuidUuidVariant) Choice() Dhcpv6ClientOptionsDuidU return Dhcpv6ClientOptionsDuidUuidVariantChoiceEnum(obj.obj.Choice.Enum().String()) } -// getter for Ncs to set choice -func (obj *dhcpv6ClientOptionsDuidUuidVariant) Ncs() { - obj.setChoice(Dhcpv6ClientOptionsDuidUuidVariantChoice.NCS) -} - // getter for VarReserved to set choice func (obj *dhcpv6ClientOptionsDuidUuidVariant) VarReserved() { obj.setChoice(Dhcpv6ClientOptionsDuidUuidVariantChoice.VAR_RESERVED) @@ -314,6 +309,11 @@ func (obj *dhcpv6ClientOptionsDuidUuidVariant) Guid() { obj.setChoice(Dhcpv6ClientOptionsDuidUuidVariantChoice.GUID) } +// getter for Ncs to set choice +func (obj *dhcpv6ClientOptionsDuidUuidVariant) Ncs() { + obj.setChoice(Dhcpv6ClientOptionsDuidUuidVariantChoice.NCS) +} + // getter for Dce to set choice func (obj *dhcpv6ClientOptionsDuidUuidVariant) Dce() { obj.setChoice(Dhcpv6ClientOptionsDuidUuidVariantChoice.DCE) diff --git a/gosnappi/dhcpv6_client_options_duid_uuid_version.go b/gosnappi/dhcpv6_client_options_duid_uuid_version.go index 280f0696..f71b24aa 100644 --- a/gosnappi/dhcpv6_client_options_duid_uuid_version.go +++ b/gosnappi/dhcpv6_client_options_duid_uuid_version.go @@ -270,16 +270,16 @@ type Dhcpv6ClientOptionsDuidUuidVersion interface { setChoice(value Dhcpv6ClientOptionsDuidUuidVersionChoiceEnum) Dhcpv6ClientOptionsDuidUuidVersion // HasChoice checks if Choice has been set in Dhcpv6ClientOptionsDuidUuidVersion HasChoice() bool - // getter for V_1 to set choice. - V_1() - // getter for V_4 to set choice. - V_4() - // getter for V_5 to set choice. - V_5() // getter for V_2 to set choice. V_2() // getter for V_3 to set choice. V_3() + // getter for V_5 to set choice. + V_5() + // getter for V_4 to set choice. + V_4() + // getter for V_1 to set choice. + V_1() } type Dhcpv6ClientOptionsDuidUuidVersionChoiceEnum string @@ -303,14 +303,14 @@ func (obj *dhcpv6ClientOptionsDuidUuidVersion) Choice() Dhcpv6ClientOptionsDuidU return Dhcpv6ClientOptionsDuidUuidVersionChoiceEnum(obj.obj.Choice.Enum().String()) } -// getter for V_1 to set choice -func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_1() { - obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_1) +// getter for V_2 to set choice +func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_2() { + obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_2) } -// getter for V_4 to set choice -func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_4() { - obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_4) +// getter for V_3 to set choice +func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_3() { + obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_3) } // getter for V_5 to set choice @@ -318,14 +318,14 @@ func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_5() { obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_5) } -// getter for V_2 to set choice -func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_2() { - obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_2) +// getter for V_4 to set choice +func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_4() { + obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_4) } -// getter for V_3 to set choice -func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_3() { - obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_3) +// getter for V_1 to set choice +func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_1() { + obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_1) } // The version values are from 1 to 5 in the most significant 4 bits of the timestamp (bits 4 through 7 of the time_hi_and_version field). diff --git a/gosnappi/dhcpv6_client_options_message_type.go b/gosnappi/dhcpv6_client_options_message_type.go index 749649bb..02496b63 100644 --- a/gosnappi/dhcpv6_client_options_message_type.go +++ b/gosnappi/dhcpv6_client_options_message_type.go @@ -270,18 +270,18 @@ type Dhcpv6ClientOptionsMessageType interface { setChoice(value Dhcpv6ClientOptionsMessageTypeChoiceEnum) Dhcpv6ClientOptionsMessageType // HasChoice checks if Choice has been set in Dhcpv6ClientOptionsMessageType HasChoice() bool - // getter for Rebind to set choice. - Rebind() // getter for Solicit to set choice. Solicit() + // getter for Renew to set choice. + Renew() // getter for Request to set choice. Request() - // getter for InformRequest to set choice. - InformRequest() // getter for Release to set choice. Release() - // getter for Renew to set choice. - Renew() + // getter for Rebind to set choice. + Rebind() + // getter for InformRequest to set choice. + InformRequest() } type Dhcpv6ClientOptionsMessageTypeChoiceEnum string @@ -307,34 +307,34 @@ func (obj *dhcpv6ClientOptionsMessageType) Choice() Dhcpv6ClientOptionsMessageTy return Dhcpv6ClientOptionsMessageTypeChoiceEnum(obj.obj.Choice.Enum().String()) } -// getter for Rebind to set choice -func (obj *dhcpv6ClientOptionsMessageType) Rebind() { - obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.REBIND) -} - // getter for Solicit to set choice func (obj *dhcpv6ClientOptionsMessageType) Solicit() { obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.SOLICIT) } +// getter for Renew to set choice +func (obj *dhcpv6ClientOptionsMessageType) Renew() { + obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.RENEW) +} + // getter for Request to set choice func (obj *dhcpv6ClientOptionsMessageType) Request() { obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.REQUEST) } -// getter for InformRequest to set choice -func (obj *dhcpv6ClientOptionsMessageType) InformRequest() { - obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.INFORM_REQUEST) -} - // getter for Release to set choice func (obj *dhcpv6ClientOptionsMessageType) Release() { obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.RELEASE) } -// getter for Renew to set choice -func (obj *dhcpv6ClientOptionsMessageType) Renew() { - obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.RENEW) +// getter for Rebind to set choice +func (obj *dhcpv6ClientOptionsMessageType) Rebind() { + obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.REBIND) +} + +// getter for InformRequest to set choice +func (obj *dhcpv6ClientOptionsMessageType) InformRequest() { + obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.INFORM_REQUEST) } // The client message name where the option is included, by default it is all. diff --git a/gosnappi/dhcpv6_client_options_options_request.go b/gosnappi/dhcpv6_client_options_options_request.go index bd02e782..2de43d54 100644 --- a/gosnappi/dhcpv6_client_options_options_request.go +++ b/gosnappi/dhcpv6_client_options_options_request.go @@ -278,16 +278,16 @@ type Dhcpv6ClientOptionsOptionsRequest interface { setChoice(value Dhcpv6ClientOptionsOptionsRequestChoiceEnum) Dhcpv6ClientOptionsOptionsRequest // HasChoice checks if Choice has been set in Dhcpv6ClientOptionsOptionsRequest HasChoice() bool - // getter for BootfileUrl to set choice. - BootfileUrl() - // getter for NameServers to set choice. - NameServers() + // getter for Sztp to set choice. + Sztp() // getter for VendorInformation to set choice. VendorInformation() + // getter for NameServers to set choice. + NameServers() // getter for Fqdn to set choice. Fqdn() - // getter for Sztp to set choice. - Sztp() + // getter for BootfileUrl to set choice. + BootfileUrl() // Custom returns Dhcpv6ClientOptionsCustom, set in Dhcpv6ClientOptionsOptionsRequest. // Dhcpv6ClientOptionsCustom is the Custom option is used to provide a not so well known option in the message between a client and a server. Custom() Dhcpv6ClientOptionsCustom @@ -322,14 +322,9 @@ func (obj *dhcpv6ClientOptionsOptionsRequest) Choice() Dhcpv6ClientOptionsOption return Dhcpv6ClientOptionsOptionsRequestChoiceEnum(obj.obj.Choice.Enum().String()) } -// getter for BootfileUrl to set choice -func (obj *dhcpv6ClientOptionsOptionsRequest) BootfileUrl() { - obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.BOOTFILE_URL) -} - -// getter for NameServers to set choice -func (obj *dhcpv6ClientOptionsOptionsRequest) NameServers() { - obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.NAME_SERVERS) +// getter for Sztp to set choice +func (obj *dhcpv6ClientOptionsOptionsRequest) Sztp() { + obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.SZTP) } // getter for VendorInformation to set choice @@ -337,14 +332,19 @@ func (obj *dhcpv6ClientOptionsOptionsRequest) VendorInformation() { obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.VENDOR_INFORMATION) } +// getter for NameServers to set choice +func (obj *dhcpv6ClientOptionsOptionsRequest) NameServers() { + obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.NAME_SERVERS) +} + // getter for Fqdn to set choice func (obj *dhcpv6ClientOptionsOptionsRequest) Fqdn() { obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.FQDN) } -// getter for Sztp to set choice -func (obj *dhcpv6ClientOptionsOptionsRequest) Sztp() { - obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.SZTP) +// getter for BootfileUrl to set choice +func (obj *dhcpv6ClientOptionsOptionsRequest) BootfileUrl() { + obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.BOOTFILE_URL) } // The Option Request option is used to identify a list of options in a message between a client and a server. The option code is 6. - Vendor_specific information option, requested by clients for vendor-specific informations from servers. - DNS Recursive Name Server Option, requested by clients to get the list ofIPv6 addresses of DNS recursive name diff --git a/gosnappi/dhcpv6_server_options_message_type.go b/gosnappi/dhcpv6_server_options_message_type.go index fb9162ea..404e5df0 100644 --- a/gosnappi/dhcpv6_server_options_message_type.go +++ b/gosnappi/dhcpv6_server_options_message_type.go @@ -272,10 +272,10 @@ type Dhcpv6ServerOptionsMessageType interface { HasChoice() bool // getter for Reply to set choice. Reply() - // getter for Advertise to set choice. - Advertise() // getter for ReConfigure to set choice. ReConfigure() + // getter for Advertise to set choice. + Advertise() } type Dhcpv6ServerOptionsMessageTypeChoiceEnum string @@ -300,16 +300,16 @@ func (obj *dhcpv6ServerOptionsMessageType) Reply() { obj.setChoice(Dhcpv6ServerOptionsMessageTypeChoice.REPLY) } -// getter for Advertise to set choice -func (obj *dhcpv6ServerOptionsMessageType) Advertise() { - obj.setChoice(Dhcpv6ServerOptionsMessageTypeChoice.ADVERTISE) -} - // getter for ReConfigure to set choice func (obj *dhcpv6ServerOptionsMessageType) ReConfigure() { obj.setChoice(Dhcpv6ServerOptionsMessageTypeChoice.RE_CONFIGURE) } +// getter for Advertise to set choice +func (obj *dhcpv6ServerOptionsMessageType) Advertise() { + obj.setChoice(Dhcpv6ServerOptionsMessageTypeChoice.ADVERTISE) +} + // The server message name where the option is included, by default it is all. // Choice returns a string func (obj *dhcpv6ServerOptionsMessageType) HasChoice() bool { diff --git a/gosnappi/flow_rsvp_lsp_tunnel_flag.go b/gosnappi/flow_rsvp_lsp_tunnel_flag.go index d2ddef91..98f008f7 100644 --- a/gosnappi/flow_rsvp_lsp_tunnel_flag.go +++ b/gosnappi/flow_rsvp_lsp_tunnel_flag.go @@ -270,10 +270,10 @@ type FlowRSVPLspTunnelFlag interface { setChoice(value FlowRSVPLspTunnelFlagChoiceEnum) FlowRSVPLspTunnelFlag // HasChoice checks if Choice has been set in FlowRSVPLspTunnelFlag HasChoice() bool - // getter for LabelRecordingDesired to set choice. - LabelRecordingDesired() // getter for LocalProtectionDesired to set choice. LocalProtectionDesired() + // getter for LabelRecordingDesired to set choice. + LabelRecordingDesired() // getter for SeStyleDesired to set choice. SeStyleDesired() } @@ -295,16 +295,16 @@ func (obj *flowRSVPLspTunnelFlag) Choice() FlowRSVPLspTunnelFlagChoiceEnum { return FlowRSVPLspTunnelFlagChoiceEnum(obj.obj.Choice.Enum().String()) } -// getter for LabelRecordingDesired to set choice -func (obj *flowRSVPLspTunnelFlag) LabelRecordingDesired() { - obj.setChoice(FlowRSVPLspTunnelFlagChoice.LABEL_RECORDING_DESIRED) -} - // getter for LocalProtectionDesired to set choice func (obj *flowRSVPLspTunnelFlag) LocalProtectionDesired() { obj.setChoice(FlowRSVPLspTunnelFlagChoice.LOCAL_PROTECTION_DESIRED) } +// getter for LabelRecordingDesired to set choice +func (obj *flowRSVPLspTunnelFlag) LabelRecordingDesired() { + obj.setChoice(FlowRSVPLspTunnelFlagChoice.LABEL_RECORDING_DESIRED) +} + // getter for SeStyleDesired to set choice func (obj *flowRSVPLspTunnelFlag) SeStyleDesired() { obj.setChoice(FlowRSVPLspTunnelFlagChoice.SE_STYLE_DESIRED) diff --git a/gosnappi/go.mod b/gosnappi/go.mod index 4346afbb..af7658ee 100644 --- a/gosnappi/go.mod +++ b/gosnappi/go.mod @@ -9,7 +9,7 @@ require ( github.com/ghodss/yaml v1.0.0 github.com/gorilla/mux v1.8.1 github.com/stretchr/testify v1.9.0 - google.golang.org/grpc v1.67.0 + google.golang.org/grpc v1.67.1 google.golang.org/protobuf v1.34.2 ) diff --git a/gosnappi/go.sum b/gosnappi/go.sum index 3c279b8f..5875eda4 100644 --- a/gosnappi/go.sum +++ b/gosnappi/go.sum @@ -31,8 +31,8 @@ golang.org/x/text v0.17.0 h1:XtiM5bkSOt+ewxlOE/aE/AKEHibwj/6gvWMl9Rsh0Qc= golang.org/x/text v0.17.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 h1:e7S5W7MGGLaSu8j3YjdezkZ+m1/Nm0uRVRMEMGk26Xs= google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142/go.mod h1:UqMtugtsSgubUsoxbuAoiCXvqvErP7Gf0so0mK9tHxU= -google.golang.org/grpc v1.67.0 h1:IdH9y6PF5MPSdAntIcpjQ+tXO41pcQsfZV2RxtQgVcw= -google.golang.org/grpc v1.67.0/go.mod h1:1gLDyUQU7CTLJI90u3nXZ9ekeghjeM7pTDZlqFNg2AA= +google.golang.org/grpc v1.67.1 h1:zWnc1Vrcno+lHZCOofnIMvycFcc0QRGIzm9dhnDX68E= +google.golang.org/grpc v1.67.1/go.mod h1:1gLDyUQU7CTLJI90u3nXZ9ekeghjeM7pTDZlqFNg2AA= google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= diff --git a/gosnappi/gosnappi.go b/gosnappi/gosnappi.go index 1e8aa34e..dd160ab3 100644 --- a/gosnappi/gosnappi.go +++ b/gosnappi/gosnappi.go @@ -251,7 +251,7 @@ type Api interface { func (api *gosnappiApi) GetLocalVersion() Version { if api.versionMeta.localVersion == nil { - api.versionMeta.localVersion = NewVersion().SetApiSpecVersion("1.13.0").SetSdkVersion("1.13.0") + api.versionMeta.localVersion = NewVersion().SetApiSpecVersion("1.13.0").SetSdkVersion("1.13.1") } return api.versionMeta.localVersion diff --git a/gosnappi/metrics_response.go b/gosnappi/metrics_response.go index b8f191ff..179b9416 100644 --- a/gosnappi/metrics_response.go +++ b/gosnappi/metrics_response.go @@ -302,12 +302,12 @@ type MetricsResponse interface { setChoice(value MetricsResponseChoiceEnum) MetricsResponse // HasChoice checks if Choice has been set in MetricsResponse HasChoice() bool - // getter for Dhcpv4Client to set choice. - Dhcpv4Client() - // getter for Dhcpv4Server to set choice. - Dhcpv4Server() // getter for Dhcpv6Client to set choice. Dhcpv6Client() + // getter for Dhcpv4Server to set choice. + Dhcpv4Server() + // getter for Dhcpv4Client to set choice. + Dhcpv4Client() // getter for Dhcpv6Server to set choice. Dhcpv6Server() // PortMetrics returns MetricsResponsePortMetricIterIter, set in MetricsResponse @@ -376,9 +376,9 @@ func (obj *metricsResponse) Choice() MetricsResponseChoiceEnum { return MetricsResponseChoiceEnum(obj.obj.Choice.Enum().String()) } -// getter for Dhcpv4Client to set choice -func (obj *metricsResponse) Dhcpv4Client() { - obj.setChoice(MetricsResponseChoice.DHCPV4_CLIENT) +// getter for Dhcpv6Client to set choice +func (obj *metricsResponse) Dhcpv6Client() { + obj.setChoice(MetricsResponseChoice.DHCPV6_CLIENT) } // getter for Dhcpv4Server to set choice @@ -386,9 +386,9 @@ func (obj *metricsResponse) Dhcpv4Server() { obj.setChoice(MetricsResponseChoice.DHCPV4_SERVER) } -// getter for Dhcpv6Client to set choice -func (obj *metricsResponse) Dhcpv6Client() { - obj.setChoice(MetricsResponseChoice.DHCPV6_CLIENT) +// getter for Dhcpv4Client to set choice +func (obj *metricsResponse) Dhcpv4Client() { + obj.setChoice(MetricsResponseChoice.DHCPV4_CLIENT) } // getter for Dhcpv6Server to set choice diff --git a/requirements.txt b/requirements.txt index 35a6a959..f9575ad3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,11 +1,11 @@ --prefer-binary PyYAML -grpcio~=1.44.0 ; python_version <= '3.6' -grpcio-tools~=1.59.0 ; python_version > '3.6' -grpcio~=1.59.0 ; python_version > '3.6' -grpcio-tools~=1.44.0 ; python_version <= '3.6' requests protobuf~=4.24.4 ; python_version > '3.6' protobuf~=3.15.0 ; python_version <= '3.6' -semantic_version +grpcio~=1.59.0 ; python_version > '3.6' +grpcio-tools~=1.59.0 ; python_version > '3.6' +grpcio~=1.44.0 ; python_version <= '3.6' +grpcio-tools~=1.44.0 ; python_version <= '3.6' urllib3 +semantic_version diff --git a/snappi/snappi.py b/snappi/snappi.py index 5d4ac99c..49c71f48 100644 --- a/snappi/snappi.py +++ b/snappi/snappi.py @@ -149364,7 +149364,7 @@ class Api(object): def __init__(self, **kwargs): self._version_meta = self.version() self._version_meta.api_spec_version = "1.13.0" - self._version_meta.sdk_version = "1.13.0" + self._version_meta.sdk_version = "1.13.1" self._version_check = kwargs.get("version_check") if self._version_check is None: self._version_check = False