From f5fb1cb52b483d6c53a55f753124063ed25abbf0 Mon Sep 17 00:00:00 2001 From: Indrani Bhattacharya <70219648+indraniBh@users.noreply.github.com> Date: Tue, 17 Sep 2024 12:13:23 +0530 Subject: [PATCH 1/4] Update generate.yml with upload action version v4 --- .github/workflows/generate.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml index b27d7651..badd40af 100644 --- a/.github/workflows/generate.yml +++ b/.github/workflows/generate.yml @@ -55,7 +55,7 @@ jobs: run: | echo "${{ steps.get_sha.outputs.sha }}" > store_sha_file - name: Archive generated artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: generated-artifacts path: | From 4f3a99f73624888656feb85657377312aa57d6eb Mon Sep 17 00:00:00 2001 From: Github Actions Bot Date: Tue, 17 Sep 2024 06:57:07 +0000 Subject: [PATCH 2/4] Update auto generated go snappi --- gosnappi/bgp_attributes_community.go | 34 +++++++++--------- ...dhcpv6_client_options_duid_uuid_variant.go | 34 +++++++++--------- ...dhcpv6_client_options_duid_uuid_version.go | 14 ++++---- .../dhcpv6_client_options_message_type.go | 28 +++++++-------- .../dhcpv6_client_options_options_request.go | 36 +++++++++---------- .../dhcpv6_server_options_message_type.go | 14 ++++---- gosnappi/flow_rsvp_lsp_tunnel_flag.go | 14 ++++---- gosnappi/flow_rsvp_record_route_i_pv4_flag.go | 14 ++++---- gosnappi/go.mod | 2 +- gosnappi/go.sum | 4 +-- gosnappi/metrics_response.go | 34 +++++++++--------- requirements.txt | 8 ++--- 12 files changed, 118 insertions(+), 118 deletions(-) diff --git a/gosnappi/bgp_attributes_community.go b/gosnappi/bgp_attributes_community.go index 5ff19041..6121cba8 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 NoExport to set choice. - NoExport() - // getter for NoExportSubconfed to set choice. - NoExportSubconfed() - // getter for NoLlgr to set choice. - NoLlgr() // getter for NoAdvertised to set choice. NoAdvertised() + // getter for NoExport to set choice. + NoExport() // getter for LlgrStale to set choice. LlgrStale() + // getter for NoLlgr to set choice. + NoLlgr() + // getter for NoExportSubconfed to set choice. + NoExportSubconfed() // 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 NoExport to set choice func (obj *bgpAttributesCommunity) NoExport() { obj.setChoice(BgpAttributesCommunityChoice.NO_EXPORT) } -// getter for NoExportSubconfed to set choice -func (obj *bgpAttributesCommunity) NoExportSubconfed() { - obj.setChoice(BgpAttributesCommunityChoice.NO_EXPORT_SUBCONFED) +// getter for LlgrStale to set choice +func (obj *bgpAttributesCommunity) LlgrStale() { + obj.setChoice(BgpAttributesCommunityChoice.LLGR_STALE) } // getter for NoLlgr to set choice @@ -337,14 +342,9 @@ func (obj *bgpAttributesCommunity) NoLlgr() { obj.setChoice(BgpAttributesCommunityChoice.NO_LLGR) } -// getter for NoAdvertised to set choice -func (obj *bgpAttributesCommunity) NoAdvertised() { - obj.setChoice(BgpAttributesCommunityChoice.NO_ADVERTISED) -} - -// getter for LlgrStale to set choice -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) } func (obj *bgpAttributesCommunity) setChoice(value BgpAttributesCommunityChoiceEnum) BgpAttributesCommunity { diff --git a/gosnappi/dhcpv6_client_options_duid_uuid_variant.go b/gosnappi/dhcpv6_client_options_duid_uuid_variant.go index cf2f3594..3fc8bc1e 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 Ncs to set choice. - Ncs() - // getter for Dce to set choice. - Dce() - // getter for VarReserved to set choice. - VarReserved() // getter for Guid to set choice. Guid() + // getter for VarReserved to set choice. + VarReserved() + // getter for Dce to set choice. + Dce() + // getter for Ncs to set choice. + Ncs() } type Dhcpv6ClientOptionsDuidUuidVariantChoiceEnum string @@ -299,14 +299,9 @@ 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 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) } // getter for VarReserved to set choice @@ -314,9 +309,14 @@ 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 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) } // 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 b45b7421..667045d9 100644 --- a/gosnappi/dhcpv6_client_options_duid_uuid_version.go +++ b/gosnappi/dhcpv6_client_options_duid_uuid_version.go @@ -270,10 +270,10 @@ type Dhcpv6ClientOptionsDuidUuidVersion interface { setChoice(value Dhcpv6ClientOptionsDuidUuidVersionChoiceEnum) Dhcpv6ClientOptionsDuidUuidVersion // HasChoice checks if Choice has been set in Dhcpv6ClientOptionsDuidUuidVersion HasChoice() bool - // getter for V_5 to set choice. - V_5() // getter for V_1 to set choice. V_1() + // getter for V_5 to set choice. + V_5() // getter for V_4 to set choice. V_4() // getter for V_3 to set choice. @@ -303,16 +303,16 @@ func (obj *dhcpv6ClientOptionsDuidUuidVersion) Choice() Dhcpv6ClientOptionsDuidU return Dhcpv6ClientOptionsDuidUuidVersionChoiceEnum(obj.obj.Choice.Enum().String()) } -// getter for V_5 to set choice -func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_5() { - obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_5) -} - // getter for V_1 to set choice func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_1() { obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_1) } +// getter for V_5 to set choice +func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_5() { + obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_5) +} + // getter for V_4 to set choice func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_4() { obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_4) diff --git a/gosnappi/dhcpv6_client_options_message_type.go b/gosnappi/dhcpv6_client_options_message_type.go index 9cc9cdc0..9c3c424f 100644 --- a/gosnappi/dhcpv6_client_options_message_type.go +++ b/gosnappi/dhcpv6_client_options_message_type.go @@ -270,6 +270,10 @@ type Dhcpv6ClientOptionsMessageType interface { setChoice(value Dhcpv6ClientOptionsMessageTypeChoiceEnum) Dhcpv6ClientOptionsMessageType // HasChoice checks if Choice has been set in Dhcpv6ClientOptionsMessageType HasChoice() bool + // getter for Release to set choice. + Release() + // getter for Renew to set choice. + Renew() // getter for Request to set choice. Request() // getter for Rebind to set choice. @@ -278,10 +282,6 @@ type Dhcpv6ClientOptionsMessageType interface { InformRequest() // getter for Solicit to set choice. Solicit() - // getter for Release to set choice. - Release() - // getter for Renew to set choice. - Renew() } type Dhcpv6ClientOptionsMessageTypeChoiceEnum string @@ -307,6 +307,16 @@ func (obj *dhcpv6ClientOptionsMessageType) Choice() Dhcpv6ClientOptionsMessageTy return Dhcpv6ClientOptionsMessageTypeChoiceEnum(obj.obj.Choice.Enum().String()) } +// 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 Request to set choice func (obj *dhcpv6ClientOptionsMessageType) Request() { obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.REQUEST) @@ -327,16 +337,6 @@ func (obj *dhcpv6ClientOptionsMessageType) Solicit() { obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.SOLICIT) } -// 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) -} - // The client message name where the option is included, by default it is all. // Choice returns a string func (obj *dhcpv6ClientOptionsMessageType) HasChoice() bool { diff --git a/gosnappi/dhcpv6_client_options_options_request.go b/gosnappi/dhcpv6_client_options_options_request.go index 43f49a04..5cec1e72 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 BootfileUrl to set choice. - BootfileUrl() // 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 Fqdn to set choice. + Fqdn() + // 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,19 +322,19 @@ 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 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) +// 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 NameServers to set choice +func (obj *dhcpv6ClientOptionsOptionsRequest) NameServers() { + obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.NAME_SERVERS) } // getter for Fqdn to set choice @@ -342,9 +342,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) } // 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 fbc1b852..fb9162ea 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 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 Advertise to set choice func (obj *dhcpv6ServerOptionsMessageType) Advertise() { obj.setChoice(Dhcpv6ServerOptionsMessageTypeChoice.ADVERTISE) @@ -305,11 +310,6 @@ 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. // 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 98f008f7..724bbb14 100644 --- a/gosnappi/flow_rsvp_lsp_tunnel_flag.go +++ b/gosnappi/flow_rsvp_lsp_tunnel_flag.go @@ -272,10 +272,10 @@ type FlowRSVPLspTunnelFlag interface { HasChoice() bool // getter for LocalProtectionDesired to set choice. LocalProtectionDesired() - // getter for LabelRecordingDesired to set choice. - LabelRecordingDesired() // getter for SeStyleDesired to set choice. SeStyleDesired() + // getter for LabelRecordingDesired to set choice. + LabelRecordingDesired() } type FlowRSVPLspTunnelFlagChoiceEnum string @@ -300,16 +300,16 @@ 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) } +// getter for LabelRecordingDesired to set choice +func (obj *flowRSVPLspTunnelFlag) LabelRecordingDesired() { + obj.setChoice(FlowRSVPLspTunnelFlagChoice.LABEL_RECORDING_DESIRED) +} + // description is TBD // Choice returns a string func (obj *flowRSVPLspTunnelFlag) HasChoice() bool { diff --git a/gosnappi/flow_rsvp_record_route_i_pv4_flag.go b/gosnappi/flow_rsvp_record_route_i_pv4_flag.go index ae4873ee..8ec9fad0 100644 --- a/gosnappi/flow_rsvp_record_route_i_pv4_flag.go +++ b/gosnappi/flow_rsvp_record_route_i_pv4_flag.go @@ -270,10 +270,10 @@ type FlowRSVPRecordRouteIPv4Flag interface { setChoice(value FlowRSVPRecordRouteIPv4FlagChoiceEnum) FlowRSVPRecordRouteIPv4Flag // HasChoice checks if Choice has been set in FlowRSVPRecordRouteIPv4Flag HasChoice() bool - // getter for LocalProtectionInUse to set choice. - LocalProtectionInUse() // getter for LocalProtectionAvailable to set choice. LocalProtectionAvailable() + // getter for LocalProtectionInUse to set choice. + LocalProtectionInUse() } type FlowRSVPRecordRouteIPv4FlagChoiceEnum string @@ -291,16 +291,16 @@ func (obj *flowRSVPRecordRouteIPv4Flag) Choice() FlowRSVPRecordRouteIPv4FlagChoi return FlowRSVPRecordRouteIPv4FlagChoiceEnum(obj.obj.Choice.Enum().String()) } -// getter for LocalProtectionInUse to set choice -func (obj *flowRSVPRecordRouteIPv4Flag) LocalProtectionInUse() { - obj.setChoice(FlowRSVPRecordRouteIPv4FlagChoice.LOCAL_PROTECTION_IN_USE) -} - // getter for LocalProtectionAvailable to set choice func (obj *flowRSVPRecordRouteIPv4Flag) LocalProtectionAvailable() { obj.setChoice(FlowRSVPRecordRouteIPv4FlagChoice.LOCAL_PROTECTION_AVAILABLE) } +// getter for LocalProtectionInUse to set choice +func (obj *flowRSVPRecordRouteIPv4Flag) LocalProtectionInUse() { + obj.setChoice(FlowRSVPRecordRouteIPv4FlagChoice.LOCAL_PROTECTION_IN_USE) +} + // description is TBD // Choice returns a string func (obj *flowRSVPRecordRouteIPv4Flag) HasChoice() bool { diff --git a/gosnappi/go.mod b/gosnappi/go.mod index 59f048a6..8c20411c 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.0 + google.golang.org/grpc v1.66.2 google.golang.org/protobuf v1.34.2 ) diff --git a/gosnappi/go.sum b/gosnappi/go.sum index 4e3d3891..89e4da0e 100644 --- a/gosnappi/go.sum +++ b/gosnappi/go.sum @@ -31,8 +31,8 @@ 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.0 h1:DibZuoBznOxbDQxRINckZcUvnCEvrW9pcWIE2yF9r1c= -google.golang.org/grpc v1.66.0/go.mod h1:s3/l6xSSCURdVfAnL+TqCNMyTDAGN6+lZeVxnZR128Y= +google.golang.org/grpc v1.66.2 h1:3QdXkuq3Bkh7w+ywLdLvM56cmGvQHUMZpiCzt6Rqaoo= +google.golang.org/grpc v1.66.2/go.mod h1:s3/l6xSSCURdVfAnL+TqCNMyTDAGN6+lZeVxnZR128Y= 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 264aa8ce..58599912 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 Dhcpv6Server to set choice. - Dhcpv6Server() - // getter for Dhcpv6Client to set choice. - Dhcpv6Client() // getter for Dhcpv4Client to set choice. Dhcpv4Client() + // getter for Dhcpv6Client to set choice. + Dhcpv6Client() + // getter for Dhcpv6Server to set choice. + Dhcpv6Server() + // getter for Dhcpv4Server to set choice. + Dhcpv4Server() // PortMetrics returns MetricsResponsePortMetricIterIter, set in MetricsResponse PortMetrics() MetricsResponsePortMetricIter // FlowMetrics returns MetricsResponseFlowMetricIterIter, set in MetricsResponse @@ -376,14 +376,9 @@ 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 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) } // getter for Dhcpv6Client to set choice @@ -391,9 +386,14 @@ 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 +func (obj *metricsResponse) Dhcpv6Server() { + obj.setChoice(MetricsResponseChoice.DHCPV6_SERVER) +} + +// getter for Dhcpv4Server to set choice +func (obj *metricsResponse) Dhcpv4Server() { + obj.setChoice(MetricsResponseChoice.DHCPV4_SERVER) } // description is TBD diff --git a/requirements.txt b/requirements.txt index e8c81030..e2f85c09 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,11 +1,11 @@ --prefer-binary -protobuf~=3.15.0 ; python_version <= '3.6' -protobuf~=4.24.4 ; python_version > '3.6' grpcio~=1.59.0 ; python_version > '3.6' -grpcio-tools~=1.59.0 ; python_version > '3.6' grpcio-tools~=1.44.0 ; python_version <= '3.6' +grpcio-tools~=1.59.0 ; python_version > '3.6' grpcio~=1.44.0 ; python_version <= '3.6' PyYAML requests -semantic_version +protobuf~=3.15.0 ; python_version <= '3.6' +protobuf~=4.24.4 ; python_version > '3.6' urllib3 +semantic_version From 728a8565bcc476150e20acf2ad968bae5f24bcad Mon Sep 17 00:00:00 2001 From: Indrani Bhattacharya <70219648+indraniBh@users.noreply.github.com> Date: Tue, 17 Sep 2024 12:33:19 +0530 Subject: [PATCH 3/4] Update generate.yml with download-action v4 --- .github/workflows/generate.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml index badd40af..276217dd 100644 --- a/.github/workflows/generate.yml +++ b/.github/workflows/generate.yml @@ -82,7 +82,7 @@ jobs: uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - - uses: actions/download-artifact@v2 + - uses: actions/download-artifact@v4 with: name: generated-artifacts - name: Install dependencies @@ -103,7 +103,7 @@ jobs: uses: actions/checkout@v2 with: ref: ${{ github.head_ref }} - - uses: actions/download-artifact@v2 + - uses: actions/download-artifact@v4 with: name: generated-artifacts - name: Display structure of downloaded files @@ -125,7 +125,7 @@ jobs: uses: actions/setup-python@v2 with: python-version: 3.6 - - uses: actions/download-artifact@v2 + - uses: actions/download-artifact@v4 with: name: generated-artifacts - name: Display structure of downloaded files From 9a3a8609cd4925acc020a74d543c1c2fdb894964 Mon Sep 17 00:00:00 2001 From: Github Actions Bot Date: Tue, 17 Sep 2024 07:18:51 +0000 Subject: [PATCH 4/4] Update auto generated go snappi --- gosnappi/bgp_attributes_community.go | 34 +++++++++---------- ...tributes_sr_policy_explicit_null_policy.go | 30 ++++++++-------- ...dhcpv6_client_options_duid_uuid_version.go | 14 ++++---- .../dhcpv6_client_options_message_type.go | 34 +++++++++---------- .../dhcpv6_client_options_options_request.go | 34 +++++++++---------- .../dhcpv6_server_options_message_type.go | 14 ++++---- gosnappi/flow_rsvp_record_route_i_pv4_flag.go | 14 ++++---- gosnappi/metrics_response.go | 28 +++++++-------- requirements.txt | 8 ++--- 9 files changed, 105 insertions(+), 105 deletions(-) diff --git a/gosnappi/bgp_attributes_community.go b/gosnappi/bgp_attributes_community.go index 6121cba8..eb0e4ba7 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 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() // 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,9 +322,9 @@ 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 @@ -332,14 +332,9 @@ func (obj *bgpAttributesCommunity) NoExport() { obj.setChoice(BgpAttributesCommunityChoice.NO_EXPORT) } -// getter for LlgrStale to set choice -func (obj *bgpAttributesCommunity) LlgrStale() { - obj.setChoice(BgpAttributesCommunityChoice.LLGR_STALE) -} - -// getter for NoLlgr to set choice -func (obj *bgpAttributesCommunity) NoLlgr() { - obj.setChoice(BgpAttributesCommunityChoice.NO_LLGR) +// 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) NoExportSubconfed() { obj.setChoice(BgpAttributesCommunityChoice.NO_EXPORT_SUBCONFED) } +// getter for LlgrStale to set choice +func (obj *bgpAttributesCommunity) LlgrStale() { + obj.setChoice(BgpAttributesCommunityChoice.LLGR_STALE) +} + 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 12d08270..c25fa73d 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 PushIpv4 to set choice. - PushIpv4() + // getter for PushIpv4AndIpv6 to set choice. + PushIpv4AndIpv6() // getter for DonotPush to set choice. DonotPush() - // getter for PushIpv6 to set choice. - PushIpv6() + // getter for PushIpv4 to set choice. + PushIpv4() // getter for Unknown to set choice. Unknown() - // getter for PushIpv4AndIpv6 to set choice. - PushIpv4AndIpv6() + // getter for PushIpv6 to set choice. + PushIpv6() } type BgpAttributesSrPolicyExplicitNullPolicyChoiceEnum string @@ -305,9 +305,9 @@ 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) } // getter for DonotPush to set choice @@ -315,9 +315,9 @@ func (obj *bgpAttributesSrPolicyExplicitNullPolicy) DonotPush() { obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.DONOT_PUSH) } -// 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) } // getter for Unknown to set choice @@ -325,9 +325,9 @@ 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 PushIpv6 to set choice +func (obj *bgpAttributesSrPolicyExplicitNullPolicy) PushIpv6() { + obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.PUSH_IPV6) } // The Explicit NULL Label policy. diff --git a/gosnappi/dhcpv6_client_options_duid_uuid_version.go b/gosnappi/dhcpv6_client_options_duid_uuid_version.go index 667045d9..402148e5 100644 --- a/gosnappi/dhcpv6_client_options_duid_uuid_version.go +++ b/gosnappi/dhcpv6_client_options_duid_uuid_version.go @@ -272,10 +272,10 @@ type Dhcpv6ClientOptionsDuidUuidVersion interface { HasChoice() bool // getter for V_1 to set choice. V_1() - // getter for V_5 to set choice. - V_5() // getter for V_4 to set choice. V_4() + // getter for V_5 to set choice. + V_5() // getter for V_3 to set choice. V_3() // getter for V_2 to set choice. @@ -308,16 +308,16 @@ func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_1() { obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_1) } -// getter for V_5 to set choice -func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_5() { - obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_5) -} - // getter for V_4 to set choice func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_4() { obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_4) } +// getter for V_5 to set choice +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) diff --git a/gosnappi/dhcpv6_client_options_message_type.go b/gosnappi/dhcpv6_client_options_message_type.go index 9c3c424f..d414ae42 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 Release to set choice. - Release() + // getter for Solicit to set choice. + Solicit() + // getter for Rebind to set choice. + Rebind() // getter for Renew to set choice. Renew() // getter for Request to set choice. Request() - // getter for Rebind to set choice. - Rebind() // getter for InformRequest to set choice. InformRequest() - // getter for Solicit to set choice. - Solicit() + // getter for Release to set choice. + Release() } type Dhcpv6ClientOptionsMessageTypeChoiceEnum string @@ -307,9 +307,14 @@ func (obj *dhcpv6ClientOptionsMessageType) Choice() Dhcpv6ClientOptionsMessageTy return Dhcpv6ClientOptionsMessageTypeChoiceEnum(obj.obj.Choice.Enum().String()) } -// getter for Release to set choice -func (obj *dhcpv6ClientOptionsMessageType) Release() { - obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.RELEASE) +// 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 Renew to set choice @@ -322,19 +327,14 @@ func (obj *dhcpv6ClientOptionsMessageType) Request() { obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.REQUEST) } -// 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) } -// 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) } // 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 5cec1e72..807e905f 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 VendorInformation to set choice. - VendorInformation() // getter for Sztp to set choice. Sztp() - // getter for NameServers to set choice. - NameServers() - // getter for Fqdn to set choice. - Fqdn() // getter for BootfileUrl to set choice. BootfileUrl() + // getter for VendorInformation to set choice. + VendorInformation() + // getter for Fqdn to set choice. + Fqdn() + // getter for NameServers to set choice. + NameServers() // 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,19 +322,19 @@ func (obj *dhcpv6ClientOptionsOptionsRequest) Choice() Dhcpv6ClientOptionsOption return Dhcpv6ClientOptionsOptionsRequestChoiceEnum(obj.obj.Choice.Enum().String()) } -// getter for VendorInformation to set choice -func (obj *dhcpv6ClientOptionsOptionsRequest) VendorInformation() { - obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.VENDOR_INFORMATION) -} - // 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 BootfileUrl to set choice +func (obj *dhcpv6ClientOptionsOptionsRequest) BootfileUrl() { + obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.BOOTFILE_URL) +} + +// getter for VendorInformation to set choice +func (obj *dhcpv6ClientOptionsOptionsRequest) VendorInformation() { + obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.VENDOR_INFORMATION) } // getter for Fqdn to set choice @@ -342,9 +342,9 @@ func (obj *dhcpv6ClientOptionsOptionsRequest) Fqdn() { obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.FQDN) } -// 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) } // 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..e706b7c6 100644 --- a/gosnappi/dhcpv6_server_options_message_type.go +++ b/gosnappi/dhcpv6_server_options_message_type.go @@ -270,10 +270,10 @@ 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 Reply to set choice. + Reply() // getter for ReConfigure to set choice. ReConfigure() } @@ -295,16 +295,16 @@ 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 Advertise to set choice func (obj *dhcpv6ServerOptionsMessageType) Advertise() { obj.setChoice(Dhcpv6ServerOptionsMessageTypeChoice.ADVERTISE) } +// 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) diff --git a/gosnappi/flow_rsvp_record_route_i_pv4_flag.go b/gosnappi/flow_rsvp_record_route_i_pv4_flag.go index 8ec9fad0..ae4873ee 100644 --- a/gosnappi/flow_rsvp_record_route_i_pv4_flag.go +++ b/gosnappi/flow_rsvp_record_route_i_pv4_flag.go @@ -270,10 +270,10 @@ type FlowRSVPRecordRouteIPv4Flag interface { setChoice(value FlowRSVPRecordRouteIPv4FlagChoiceEnum) FlowRSVPRecordRouteIPv4Flag // HasChoice checks if Choice has been set in FlowRSVPRecordRouteIPv4Flag HasChoice() bool - // getter for LocalProtectionAvailable to set choice. - LocalProtectionAvailable() // getter for LocalProtectionInUse to set choice. LocalProtectionInUse() + // getter for LocalProtectionAvailable to set choice. + LocalProtectionAvailable() } type FlowRSVPRecordRouteIPv4FlagChoiceEnum string @@ -291,16 +291,16 @@ func (obj *flowRSVPRecordRouteIPv4Flag) Choice() FlowRSVPRecordRouteIPv4FlagChoi return FlowRSVPRecordRouteIPv4FlagChoiceEnum(obj.obj.Choice.Enum().String()) } -// getter for LocalProtectionAvailable to set choice -func (obj *flowRSVPRecordRouteIPv4Flag) LocalProtectionAvailable() { - obj.setChoice(FlowRSVPRecordRouteIPv4FlagChoice.LOCAL_PROTECTION_AVAILABLE) -} - // getter for LocalProtectionInUse to set choice func (obj *flowRSVPRecordRouteIPv4Flag) LocalProtectionInUse() { obj.setChoice(FlowRSVPRecordRouteIPv4FlagChoice.LOCAL_PROTECTION_IN_USE) } +// getter for LocalProtectionAvailable to set choice +func (obj *flowRSVPRecordRouteIPv4Flag) LocalProtectionAvailable() { + obj.setChoice(FlowRSVPRecordRouteIPv4FlagChoice.LOCAL_PROTECTION_AVAILABLE) +} + // description is TBD // Choice returns a string func (obj *flowRSVPRecordRouteIPv4Flag) HasChoice() bool { diff --git a/gosnappi/metrics_response.go b/gosnappi/metrics_response.go index 58599912..e9509e09 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 Dhcpv4Client to set choice. - Dhcpv4Client() - // getter for Dhcpv6Client to set choice. - Dhcpv6Client() // getter for Dhcpv6Server to set choice. Dhcpv6Server() + // getter for Dhcpv4Client to set choice. + Dhcpv4Client() // getter for Dhcpv4Server to set choice. Dhcpv4Server() + // getter for Dhcpv6Client to set choice. + Dhcpv6Client() // 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 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 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) +} + // getter for Dhcpv4Server to set choice func (obj *metricsResponse) Dhcpv4Server() { obj.setChoice(MetricsResponseChoice.DHCPV4_SERVER) } +// getter for Dhcpv6Client to set choice +func (obj *metricsResponse) Dhcpv6Client() { + obj.setChoice(MetricsResponseChoice.DHCPV6_CLIENT) +} + // description is TBD // Choice returns a string func (obj *metricsResponse) HasChoice() bool { diff --git a/requirements.txt b/requirements.txt index e2f85c09..78de1446 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,11 +1,11 @@ --prefer-binary -grpcio~=1.59.0 ; python_version > '3.6' -grpcio-tools~=1.44.0 ; python_version <= '3.6' +protobuf~=3.15.0 ; python_version <= '3.6' +protobuf~=4.24.4 ; 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~=1.44.0 ; python_version <= '3.6' PyYAML requests -protobuf~=3.15.0 ; python_version <= '3.6' -protobuf~=4.24.4 ; python_version > '3.6' urllib3 semantic_version