Skip to content

Commit

Permalink
Update auto generated go snappi
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Aug 26, 2024
1 parent e2a98b4 commit 018bd3b
Show file tree
Hide file tree
Showing 102 changed files with 46,962 additions and 24,841 deletions.
6 changes: 0 additions & 6 deletions gosnappi/action_protocol_bgp_initiate_graceful_restart.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,6 @@ type ActionProtocolBgpInitiateGracefulRestart interface {
// x-constraint:
// - /components/schemas/Device.Bgp/properties/name
//
// x-constraint:
// - /components/schemas/Device.Bgp/properties/name
//
// PeerNames returns a []string
func (obj *actionProtocolBgpInitiateGracefulRestart) PeerNames() []string {
if obj.obj.PeerNames == nil {
Expand All @@ -297,9 +294,6 @@ func (obj *actionProtocolBgpInitiateGracefulRestart) PeerNames() []string {
// x-constraint:
// - /components/schemas/Device.Bgp/properties/name
//
// x-constraint:
// - /components/schemas/Device.Bgp/properties/name
//
// SetPeerNames sets the []string value in the ActionProtocolBgpInitiateGracefulRestart object
func (obj *actionProtocolBgpInitiateGracefulRestart) SetPeerNames(value []string) ActionProtocolBgpInitiateGracefulRestart {

Expand Down
6 changes: 0 additions & 6 deletions gosnappi/action_protocol_bgp_notification.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,6 @@ type ActionProtocolBgpNotification interface {
// x-constraint:
// - /components/schemas/Device.Bgp/properties/name
//
// x-constraint:
// - /components/schemas/Device.Bgp/properties/name
//
// Names returns a []string
func (obj *actionProtocolBgpNotification) Names() []string {
if obj.obj.Names == nil {
Expand All @@ -374,9 +371,6 @@ func (obj *actionProtocolBgpNotification) Names() []string {
// x-constraint:
// - /components/schemas/Device.Bgp/properties/name
//
// x-constraint:
// - /components/schemas/Device.Bgp/properties/name
//
// SetNames sets the []string value in the ActionProtocolBgpNotification object
func (obj *actionProtocolBgpNotification) SetNames(value []string) ActionProtocolBgpNotification {

Expand Down
11 changes: 0 additions & 11 deletions gosnappi/action_protocol_ipv4_ping_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,6 @@ func (obj *actionProtocolIpv4PingRequest) Clone() (ActionProtocolIpv4PingRequest

// ActionProtocolIpv4PingRequest is under Review: Most ping request parameters are still TBD.
//
// Under Review: Most ping request parameters are still TBD.
//
// Request for initiating ping between a single source and destination pair.
// For ping request, 1 IPv4 ICMP Echo Request shall be sent and wait for ping response to either succeed or time out. The API wait timeout for each request shall be 300ms.
type ActionProtocolIpv4PingRequest interface {
Expand Down Expand Up @@ -288,9 +286,6 @@ type ActionProtocolIpv4PingRequest interface {
// x-constraint:
// - /components/schemas/Device.Ipv4/properties/name
//
// x-constraint:
// - /components/schemas/Device.Ipv4/properties/name
//
// SrcName returns a string
func (obj *actionProtocolIpv4PingRequest) SrcName() string {

Expand All @@ -303,9 +298,6 @@ func (obj *actionProtocolIpv4PingRequest) SrcName() string {
// x-constraint:
// - /components/schemas/Device.Ipv4/properties/name
//
// x-constraint:
// - /components/schemas/Device.Ipv4/properties/name
//
// SrcName returns a string
func (obj *actionProtocolIpv4PingRequest) HasSrcName() bool {
return obj.obj.SrcName != nil
Expand All @@ -316,9 +308,6 @@ func (obj *actionProtocolIpv4PingRequest) HasSrcName() bool {
// x-constraint:
// - /components/schemas/Device.Ipv4/properties/name
//
// x-constraint:
// - /components/schemas/Device.Ipv4/properties/name
//
// SetSrcName sets the string value in the ActionProtocolIpv4PingRequest object
func (obj *actionProtocolIpv4PingRequest) SetSrcName(value string) ActionProtocolIpv4PingRequest {

Expand Down
11 changes: 0 additions & 11 deletions gosnappi/action_protocol_ipv6_ping_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,6 @@ func (obj *actionProtocolIpv6PingRequest) Clone() (ActionProtocolIpv6PingRequest

// ActionProtocolIpv6PingRequest is under Review: Most ping request parameters are still TBD.
//
// Under Review: Most ping request parameters are still TBD.
//
// Request for initiating ping between a single source and destination pair.
// For ping request, 1 IPv6 ICMP Echo Request shall be sent and wait for ping response to either succeed or time out. The API wait timeout for each request shall be 300ms.
type ActionProtocolIpv6PingRequest interface {
Expand Down Expand Up @@ -288,9 +286,6 @@ type ActionProtocolIpv6PingRequest interface {
// x-constraint:
// - /components/schemas/Device.Ipv6/properties/name
//
// x-constraint:
// - /components/schemas/Device.Ipv6/properties/name
//
// SrcName returns a string
func (obj *actionProtocolIpv6PingRequest) SrcName() string {

Expand All @@ -303,9 +298,6 @@ func (obj *actionProtocolIpv6PingRequest) SrcName() string {
// x-constraint:
// - /components/schemas/Device.Ipv6/properties/name
//
// x-constraint:
// - /components/schemas/Device.Ipv6/properties/name
//
// SrcName returns a string
func (obj *actionProtocolIpv6PingRequest) HasSrcName() bool {
return obj.obj.SrcName != nil
Expand All @@ -316,9 +308,6 @@ func (obj *actionProtocolIpv6PingRequest) HasSrcName() bool {
// x-constraint:
// - /components/schemas/Device.Ipv6/properties/name
//
// x-constraint:
// - /components/schemas/Device.Ipv6/properties/name
//
// SetSrcName sets the string value in the ActionProtocolIpv6PingRequest object
func (obj *actionProtocolIpv6PingRequest) SetSrcName(value string) ActionProtocolIpv6PingRequest {

Expand Down
6 changes: 0 additions & 6 deletions gosnappi/action_response_protocol_ipv4_ping_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,6 @@ type ActionResponseProtocolIpv4PingResponse interface {
// x-constraint:
// - /components/schemas/Device.Ipv4/properties/name
//
// x-constraint:
// - /components/schemas/Device.Ipv4/properties/name
//
// SrcName returns a string
func (obj *actionResponseProtocolIpv4PingResponse) SrcName() string {

Expand All @@ -298,9 +295,6 @@ func (obj *actionResponseProtocolIpv4PingResponse) SrcName() string {
// x-constraint:
// - /components/schemas/Device.Ipv4/properties/name
//
// x-constraint:
// - /components/schemas/Device.Ipv4/properties/name
//
// SetSrcName sets the string value in the ActionResponseProtocolIpv4PingResponse object
func (obj *actionResponseProtocolIpv4PingResponse) SetSrcName(value string) ActionResponseProtocolIpv4PingResponse {

Expand Down
6 changes: 0 additions & 6 deletions gosnappi/action_response_protocol_ipv6_ping_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,6 @@ type ActionResponseProtocolIpv6PingResponse interface {
// x-constraint:
// - /components/schemas/Device.Ipv6/properties/name
//
// x-constraint:
// - /components/schemas/Device.Ipv6/properties/name
//
// SrcName returns a string
func (obj *actionResponseProtocolIpv6PingResponse) SrcName() string {

Expand All @@ -298,9 +295,6 @@ func (obj *actionResponseProtocolIpv6PingResponse) SrcName() string {
// x-constraint:
// - /components/schemas/Device.Ipv6/properties/name
//
// x-constraint:
// - /components/schemas/Device.Ipv6/properties/name
//
// SetSrcName sets the string value in the ActionResponseProtocolIpv6PingResponse object
func (obj *actionResponseProtocolIpv6PingResponse) SetSrcName(value string) ActionResponseProtocolIpv6PingResponse {

Expand Down
14 changes: 7 additions & 7 deletions gosnappi/bgp_attributes_community.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,14 +280,14 @@ type BgpAttributesCommunity interface {
setChoice(value BgpAttributesCommunityChoiceEnum) BgpAttributesCommunity
// getter for NoExport to set choice.
NoExport()
// getter for NoLlgr to set choice.
NoLlgr()
// getter for NoExportSubconfed to set choice.
NoExportSubconfed()
// getter for NoAdvertised to set choice.
NoAdvertised()
// getter for LlgrStale to set choice.
LlgrStale()
// getter for NoLlgr to set choice.
NoLlgr()
// 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
Expand Down Expand Up @@ -327,11 +327,6 @@ 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 NoExportSubconfed to set choice
func (obj *bgpAttributesCommunity) NoExportSubconfed() {
obj.setChoice(BgpAttributesCommunityChoice.NO_EXPORT_SUBCONFED)
Expand All @@ -347,6 +342,11 @@ func (obj *bgpAttributesCommunity) LlgrStale() {
obj.setChoice(BgpAttributesCommunityChoice.LLGR_STALE)
}

// getter for NoLlgr to set choice
func (obj *bgpAttributesCommunity) NoLlgr() {
obj.setChoice(BgpAttributesCommunityChoice.NO_LLGR)
}

func (obj *bgpAttributesCommunity) setChoice(value BgpAttributesCommunityChoiceEnum) BgpAttributesCommunity {
intValue, ok := otg.BgpAttributesCommunity_Choice_Enum_value[string(value)]
if !ok {
Expand Down
28 changes: 14 additions & 14 deletions gosnappi/bgp_attributes_sr_policy_explicit_null_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 PushIpv6 to set choice.
PushIpv6()
// getter for Unknown to set choice.
Unknown()
// getter for PushIpv4AndIpv6 to set choice.
PushIpv4AndIpv6()
// getter for DonotPush to set choice.
DonotPush()
// getter for PushIpv4 to set choice.
PushIpv4()
}

type BgpAttributesSrPolicyExplicitNullPolicyChoiceEnum string
Expand All @@ -305,16 +305,6 @@ 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 PushIpv6 to set choice
func (obj *bgpAttributesSrPolicyExplicitNullPolicy) PushIpv6() {
obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.PUSH_IPV6)
Expand All @@ -325,11 +315,21 @@ 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 DonotPush to set choice
func (obj *bgpAttributesSrPolicyExplicitNullPolicy) DonotPush() {
obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.DONOT_PUSH)
}

// 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 {
Expand Down
8 changes: 0 additions & 8 deletions gosnappi/bgp_prefix_state_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,10 +295,6 @@ type BgpPrefixStateRequest interface {
// - /components/schemas/Bgp.V4Peer/properties/name
// - /components/schemas/Bgp.V6Peer/properties/name
//
// x-constraint:
// - /components/schemas/Bgp.V4Peer/properties/name
// - /components/schemas/Bgp.V6Peer/properties/name
//
// BgpPeerNames returns a []string
func (obj *bgpPrefixStateRequest) BgpPeerNames() []string {
if obj.obj.BgpPeerNames == nil {
Expand All @@ -313,10 +309,6 @@ func (obj *bgpPrefixStateRequest) BgpPeerNames() []string {
// - /components/schemas/Bgp.V4Peer/properties/name
// - /components/schemas/Bgp.V6Peer/properties/name
//
// x-constraint:
// - /components/schemas/Bgp.V4Peer/properties/name
// - /components/schemas/Bgp.V6Peer/properties/name
//
// SetBgpPeerNames sets the []string value in the BgpPrefixStateRequest object
func (obj *bgpPrefixStateRequest) SetBgpPeerNames(value []string) BgpPrefixStateRequest {

Expand Down
10 changes: 0 additions & 10 deletions gosnappi/bgp_v4_interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,11 +288,6 @@ type BgpV4Interface interface {
// - /components/schemas/Device.Ipv4Loopback/properties/name
// - /components/schemas/Device.Dhcpv4client/properties/name
//
// x-constraint:
// - /components/schemas/Device.Ipv4/properties/name
// - /components/schemas/Device.Ipv4Loopback/properties/name
// - /components/schemas/Device.Dhcpv4client/properties/name
//
// Ipv4Name returns a string
func (obj *bgpV4Interface) Ipv4Name() string {

Expand All @@ -307,11 +302,6 @@ func (obj *bgpV4Interface) Ipv4Name() string {
// - /components/schemas/Device.Ipv4Loopback/properties/name
// - /components/schemas/Device.Dhcpv4client/properties/name
//
// x-constraint:
// - /components/schemas/Device.Ipv4/properties/name
// - /components/schemas/Device.Ipv4Loopback/properties/name
// - /components/schemas/Device.Dhcpv4client/properties/name
//
// SetIpv4Name sets the string value in the BgpV4Interface object
func (obj *bgpV4Interface) SetIpv4Name(value string) BgpV4Interface {

Expand Down
2 changes: 0 additions & 2 deletions gosnappi/bgp_v4_route_range.go
Original file line number Diff line number Diff line change
Expand Up @@ -737,8 +737,6 @@ func (obj *bgpV4RouteRange) SetName(value string) BgpV4RouteRange {
return obj
}

// Deprecated: This property is deprecated in favor of property extended_communities
//
// Deprecated: This property is deprecated in favor of property extended_communities
//
// Optional Extended Community settings. The Extended Communities Attribute is a transitive optional BGP attribute, with the Type Code 16. Community and Extended Communities attributes are utilized to trigger routing decisions, such as acceptance, rejection, preference, or redistribution. An extended community is an 8-Bytes value. It is divided into two main parts. The first 2 Bytes of the community encode a type and sub-type fields and the last 6 Bytes carry a unique set of data in a format defined by the type and sub-type field. Extended communities provide a larger range for grouping or categorizing communities. When type is administrator_as_2octet or administrator_as_4octet, the valid sub types are route target and origin. The valid value for administrator_as_2octet and administrator_as_4octet type is either two byte AS followed by four byte local administrator id or four byte AS followed by two byte local administrator id. When type is administrator_ipv4_address the valid sub types are route target and origin. The valid value for administrator_ipv4_address is a four byte IPv4 address followed by a two byte local administrator id. When type is opaque, valid sub types are color and encapsulation. When sub type is color, first two bytes of the value field contain flags and last four bytes contains the value of the color. When sub type is encapsulation the first four bytes of value field are reserved and last two bytes carries the tunnel type from IANA's "ETHER TYPES" registry e.g IPv4 (protocol type = 0x0800), IPv6 (protocol type = 0x86dd), and MPLS (protocol type = 0x8847). When type is administrator_as_2octet_link_bandwidth the valid sub type is extended_bandwidth. The first two bytes of the value field contains the AS number and the last four bytes contains the bandwidth in IEEE floating point format. When type is evpn the valid subtype is mac_address. In the value field the low-order bit of the first byte(Flags) is defined as the "Sticky/static" flag and may be set to 1, indicating the MAC address is static and cannot move. The second byte is reserved and the last four bytes contain the sequence number which is used to ensure that PEs retain the correct MAC/IP Advertisement route when multiple updates occur for the same MAC address. Note evpn type is defined mainly for use with evpn route updates and not for IPv4 and IPv6 route updates.
Expand Down
10 changes: 0 additions & 10 deletions gosnappi/bgp_v6_interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,11 +288,6 @@ type BgpV6Interface interface {
// - /components/schemas/Device.Ipv6Loopback/properties/name
// - /components/schemas/Device.Dhcpv6client/properties/name
//
// x-constraint:
// - /components/schemas/Device.Ipv6/properties/name
// - /components/schemas/Device.Ipv6Loopback/properties/name
// - /components/schemas/Device.Dhcpv6client/properties/name
//
// Ipv6Name returns a string
func (obj *bgpV6Interface) Ipv6Name() string {

Expand All @@ -307,11 +302,6 @@ func (obj *bgpV6Interface) Ipv6Name() string {
// - /components/schemas/Device.Ipv6Loopback/properties/name
// - /components/schemas/Device.Dhcpv6client/properties/name
//
// x-constraint:
// - /components/schemas/Device.Ipv6/properties/name
// - /components/schemas/Device.Ipv6Loopback/properties/name
// - /components/schemas/Device.Dhcpv6client/properties/name
//
// SetIpv6Name sets the string value in the BgpV6Interface object
func (obj *bgpV6Interface) SetIpv6Name(value string) BgpV6Interface {

Expand Down
2 changes: 0 additions & 2 deletions gosnappi/bgp_v6_route_range.go
Original file line number Diff line number Diff line change
Expand Up @@ -737,8 +737,6 @@ func (obj *bgpV6RouteRange) SetName(value string) BgpV6RouteRange {
return obj
}

// Deprecated: This property is deprecated in favor of property extended_communities
//
// Deprecated: This property is deprecated in favor of property extended_communities
//
// Optional Extended Community settings. The Extended Communities Attribute is a transitive optional BGP attribute, with the Type Code 16. Community and Extended Communities attributes are utilized to trigger routing decisions, such as acceptance, rejection, preference, or redistribution. An extended community is an 8-Bytes value. It is divided into two main parts. The first 2 Bytes of the community encode a type and sub-type fields and the last 6 Bytes carry a unique set of data in a format defined by the type and sub-type field. Extended communities provide a larger range for grouping or categorizing communities. When type is administrator_as_2octet or administrator_as_4octet, the valid sub types are route target and origin. The valid value for administrator_as_2octet and administrator_as_4octet type is either two byte AS followed by four byte local administrator id or four byte AS followed by two byte local administrator id. When type is administrator_ipv4_address the valid sub types are route target and origin. The valid value for administrator_ipv4_address is a four byte IPv4 address followed by a two byte local administrator id. When type is opaque, valid sub types are color and encapsulation. When sub type is color, first two bytes of the value field contain flags and last four bytes contains the value of the color. When sub type is encapsulation the first four bytes of value field are reserved and last two bytes carries the tunnel type from IANA's "ETHER TYPES" registry e.g IPv4 (protocol type = 0x0800), IPv6 (protocol type = 0x86dd), and MPLS (protocol type = 0x8847). When type is administrator_as_2octet_link_bandwidth the valid sub type is extended_bandwidth. The first two bytes of the value field contains the AS number and the last four bytes contains the bandwidth in IEEE floating point format. When type is evpn the valid subtype is mac_address. In the value field the low-order bit of the first byte(Flags) is defined as the "Sticky/static" flag and may be set to 1, indicating the MAC address is static and cannot move. The second byte is reserved and the last four bytes contain the sequence number which is used to ensure that PEs retain the correct MAC/IP Advertisement route when multiple updates occur for the same MAC address. Note evpn type is defined mainly for use with evpn route updates and not for IPv4 and IPv6 route updates.
Expand Down
6 changes: 0 additions & 6 deletions gosnappi/bgpv4_metrics_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,6 @@ type Bgpv4MetricsRequest interface {
// x-constraint:
// - /components/schemas/Bgp.V4peer/properties/name
//
// x-constraint:
// - /components/schemas/Bgp.V4peer/properties/name
//
// PeerNames returns a []string
func (obj *bgpv4MetricsRequest) PeerNames() []string {
if obj.obj.PeerNames == nil {
Expand All @@ -295,9 +292,6 @@ func (obj *bgpv4MetricsRequest) PeerNames() []string {
// x-constraint:
// - /components/schemas/Bgp.V4peer/properties/name
//
// x-constraint:
// - /components/schemas/Bgp.V4peer/properties/name
//
// SetPeerNames sets the []string value in the Bgpv4MetricsRequest object
func (obj *bgpv4MetricsRequest) SetPeerNames(value []string) Bgpv4MetricsRequest {

Expand Down
6 changes: 0 additions & 6 deletions gosnappi/bgpv6_metrics_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,6 @@ type Bgpv6MetricsRequest interface {
// x-constraint:
// - /components/schemas/Bgp.V6peer/properties/name
//
// x-constraint:
// - /components/schemas/Bgp.V6peer/properties/name
//
// PeerNames returns a []string
func (obj *bgpv6MetricsRequest) PeerNames() []string {
if obj.obj.PeerNames == nil {
Expand All @@ -295,9 +292,6 @@ func (obj *bgpv6MetricsRequest) PeerNames() []string {
// x-constraint:
// - /components/schemas/Bgp.V6peer/properties/name
//
// x-constraint:
// - /components/schemas/Bgp.V6peer/properties/name
//
// SetPeerNames sets the []string value in the Bgpv6MetricsRequest object
func (obj *bgpv6MetricsRequest) SetPeerNames(value []string) Bgpv6MetricsRequest {

Expand Down
Loading

0 comments on commit 018bd3b

Please sign in to comment.