Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions do.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
USE_MODELS_DIR = None

# supported values - branch name or None
USE_OPENAPIART_BRANCH = None
USE_MODELS_BRANCH = None
USE_OPENAPIART_BRANCH = "fix_go_grpc_version"
USE_MODELS_BRANCH = "bgp-labeled-unicast"

OPENAPIART_REPO = "https://github.com/open-traffic-generator/openapiart.git"
MODELS_REPO = "https://github.com/open-traffic-generator/models.git"
Expand Down
8 changes: 0 additions & 8 deletions gosnappi/action_protocol_bgp_initiate_graceful_restart.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,6 @@ type ActionProtocolBgpInitiateGracefulRestart 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
//
// PeerNames returns a []string
func (obj *actionProtocolBgpInitiateGracefulRestart) PeerNames() []string {
if obj.obj.PeerNames == nil {
Expand All @@ -317,10 +313,6 @@ func (obj *actionProtocolBgpInitiateGracefulRestart) PeerNames() []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
//
// SetPeerNames sets the []string value in the ActionProtocolBgpInitiateGracefulRestart object
func (obj *actionProtocolBgpInitiateGracefulRestart) SetPeerNames(value []string) ActionProtocolBgpInitiateGracefulRestart {

Expand Down
8 changes: 0 additions & 8 deletions gosnappi/action_protocol_bgp_notification.go
Original file line number Diff line number Diff line change
Expand Up @@ -359,10 +359,6 @@ type ActionProtocolBgpNotification 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
//
// Names returns a []string
func (obj *actionProtocolBgpNotification) Names() []string {
if obj.obj.Names == nil {
Expand All @@ -377,10 +373,6 @@ func (obj *actionProtocolBgpNotification) Names() []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
//
// 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_protocol_isis_initiate_restart.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,6 @@ type ActionProtocolIsisInitiateRestart interface {
// x-constraint:
// - /components/schemas/Device.IsisRouter/properties/name
//
// x-constraint:
// - /components/schemas/Device.IsisRouter/properties/name
//
// RouterNames returns a []string
func (obj *actionProtocolIsisInitiateRestart) RouterNames() []string {
if obj.obj.RouterNames == nil {
Expand All @@ -330,9 +327,6 @@ func (obj *actionProtocolIsisInitiateRestart) RouterNames() []string {
// x-constraint:
// - /components/schemas/Device.IsisRouter/properties/name
//
// x-constraint:
// - /components/schemas/Device.IsisRouter/properties/name
//
// SetRouterNames sets the []string value in the ActionProtocolIsisInitiateRestart object
func (obj *actionProtocolIsisInitiateRestart) SetRouterNames(value []string) ActionProtocolIsisInitiateRestart {

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
28 changes: 14 additions & 14 deletions gosnappi/bgp_attributes_community.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 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
Expand Down Expand Up @@ -322,21 +322,16 @@ func (obj *bgpAttributesCommunity) Choice() BgpAttributesCommunityChoiceEnum {
return BgpAttributesCommunityChoiceEnum(obj.obj.Choice.Enum().String())
}

// 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 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)
Expand All @@ -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 {
Expand Down
34 changes: 17 additions & 17 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 Unknown to set choice.
Unknown()
// getter for DonotPush to set choice.
DonotPush()
// getter for PushIpv4 to set choice.
PushIpv4()
// getter for PushIpv4AndIpv6 to set choice.
PushIpv4AndIpv6()
// getter for PushIpv6 to set choice.
PushIpv6()
// getter for DonotPush to set choice.
DonotPush()
// getter for PushIpv4AndIpv6 to set choice.
PushIpv4AndIpv6()
// getter for Unknown to set choice.
Unknown()
}

type BgpAttributesSrPolicyExplicitNullPolicyChoiceEnum string
Expand All @@ -305,29 +305,29 @@ 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 PushIpv4 to set choice
func (obj *bgpAttributesSrPolicyExplicitNullPolicy) PushIpv4() {
obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.PUSH_IPV4)
}

// 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)
}

// 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)
// getter for Unknown to set choice
func (obj *bgpAttributesSrPolicyExplicitNullPolicy) Unknown() {
obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.UNKNOWN)
}

// The Explicit NULL Label policy.
Expand Down
Loading