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
2 changes: 1 addition & 1 deletion do.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

# supported values - branch name or None
USE_OPENAPIART_BRANCH = None
USE_MODELS_BRANCH = None
USE_MODELS_BRANCH = "isis-otf-st-link"

OPENAPIART_REPO = "https://github.com/open-traffic-generator/openapiart.git"
MODELS_REPO = "https://github.com/open-traffic-generator/models.git"
Expand Down
6 changes: 0 additions & 6 deletions gosnappi/action_port_reboot.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,6 @@ type ActionPortReboot interface {
// x-constraint:
// - /components/schemas/Port/properties/name
//
// x-constraint:
// - /components/schemas/Port/properties/name
//
// PortNames returns a []string
func (obj *actionPortReboot) PortNames() []string {
if obj.obj.PortNames == nil {
Expand All @@ -291,9 +288,6 @@ func (obj *actionPortReboot) PortNames() []string {
// x-constraint:
// - /components/schemas/Port/properties/name
//
// x-constraint:
// - /components/schemas/Port/properties/name
//
// SetPortNames sets the []string value in the ActionPortReboot object
func (obj *actionPortReboot) SetPortNames(value []string) ActionPortReboot {

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
56 changes: 48 additions & 8 deletions gosnappi/action_protocol_bgp_notification.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,12 @@ type ActionProtocolBgpNotification interface {
SetCustom(value DeviceBgpCustomError) ActionProtocolBgpNotification
// HasCustom checks if Custom has been set in ActionProtocolBgpNotification
HasCustom() bool
// FinDelay returns uint32, set in ActionProtocolBgpNotification.
FinDelay() uint32
// SetFinDelay assigns uint32 provided by user to ActionProtocolBgpNotification
SetFinDelay(value uint32) ActionProtocolBgpNotification
// HasFinDelay checks if FinDelay has been set in ActionProtocolBgpNotification
HasFinDelay() bool
setNil()
}

Expand All @@ -359,10 +365,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 +379,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 Expand Up @@ -674,6 +672,34 @@ func (obj *actionProtocolBgpNotification) SetCustom(value DeviceBgpCustomError)
return obj
}

// Delay (in milliseconds) between generation of the Notification and transmission of FIN to close the
// TCP socket by the implementation. This is useful to ensure that the remote end has received and processed
// the Notification before closing the BGP session.
// FinDelay returns a uint32
func (obj *actionProtocolBgpNotification) FinDelay() uint32 {

return *obj.obj.FinDelay

}

// Delay (in milliseconds) between generation of the Notification and transmission of FIN to close the
// TCP socket by the implementation. This is useful to ensure that the remote end has received and processed
// the Notification before closing the BGP session.
// FinDelay returns a uint32
func (obj *actionProtocolBgpNotification) HasFinDelay() bool {
return obj.obj.FinDelay != nil
}

// Delay (in milliseconds) between generation of the Notification and transmission of FIN to close the
// TCP socket by the implementation. This is useful to ensure that the remote end has received and processed
// the Notification before closing the BGP session.
// SetFinDelay sets the uint32 value in the ActionProtocolBgpNotification object
func (obj *actionProtocolBgpNotification) SetFinDelay(value uint32) ActionProtocolBgpNotification {

obj.obj.FinDelay = &value
return obj
}

func (obj *actionProtocolBgpNotification) validateObj(vObj *validation, set_default bool) {
if set_default {
obj.setDefault()
Expand Down Expand Up @@ -714,6 +740,16 @@ func (obj *actionProtocolBgpNotification) validateObj(vObj *validation, set_defa
obj.Custom().validateObj(vObj, set_default)
}

if obj.obj.FinDelay != nil {

if *obj.obj.FinDelay > 10000 {
vObj.validationErrors = append(
vObj.validationErrors,
fmt.Sprintf("0 <= ActionProtocolBgpNotification.FinDelay <= 10000 but Got %d", *obj.obj.FinDelay))
}

}

}

func (obj *actionProtocolBgpNotification) setDefault() {
Expand Down Expand Up @@ -772,4 +808,8 @@ func (obj *actionProtocolBgpNotification) setDefault() {
}
}

if obj.obj.FinDelay == nil {
obj.SetFinDelay(0)
}

}
12 changes: 0 additions & 12 deletions gosnappi/action_protocol_ipv4_ping_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,10 +285,6 @@ type ActionProtocolIpv4PingRequest interface {
// - /components/schemas/Device.Ipv4/properties/name
// - /components/schemas/Device.Ipv4Loopback/properties/name
//
// x-constraint:
// - /components/schemas/Device.Ipv4/properties/name
// - /components/schemas/Device.Ipv4Loopback/properties/name
//
// SrcName returns a string
func (obj *actionProtocolIpv4PingRequest) SrcName() string {

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

Expand Down
12 changes: 0 additions & 12 deletions gosnappi/action_protocol_ipv6_ping_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,10 +285,6 @@ type ActionProtocolIpv6PingRequest interface {
// - /components/schemas/Device.Ipv6/properties/name
// - /components/schemas/Device.Ipv6Loopback/properties/name
//
// x-constraint:
// - /components/schemas/Device.Ipv6/properties/name
// - /components/schemas/Device.Ipv6Loopback/properties/name
//
// SrcName returns a string
func (obj *actionProtocolIpv6PingRequest) SrcName() string {

Expand All @@ -302,10 +298,6 @@ func (obj *actionProtocolIpv6PingRequest) SrcName() string {
// - /components/schemas/Device.Ipv6/properties/name
// - /components/schemas/Device.Ipv6Loopback/properties/name
//
// x-constraint:
// - /components/schemas/Device.Ipv6/properties/name
// - /components/schemas/Device.Ipv6Loopback/properties/name
//
// SrcName returns a string
func (obj *actionProtocolIpv6PingRequest) HasSrcName() bool {
return obj.obj.SrcName != nil
Expand All @@ -317,10 +309,6 @@ func (obj *actionProtocolIpv6PingRequest) HasSrcName() bool {
// - /components/schemas/Device.Ipv6/properties/name
// - /components/schemas/Device.Ipv6Loopback/properties/name
//
// x-constraint:
// - /components/schemas/Device.Ipv6/properties/name
// - /components/schemas/Device.Ipv6Loopback/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
8 changes: 0 additions & 8 deletions gosnappi/action_response_protocol_ipv4_ping_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,6 @@ type ActionResponseProtocolIpv4PingResponse interface {
// - /components/schemas/Device.Ipv4/properties/name
// - /components/schemas/Device.Ipv4Loopback/properties/name
//
// x-constraint:
// - /components/schemas/Device.Ipv4/properties/name
// - /components/schemas/Device.Ipv4Loopback/properties/name
//
// SrcName returns a string
func (obj *actionResponseProtocolIpv4PingResponse) SrcName() string {

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

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

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

Expand Down
38 changes: 19 additions & 19 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 NoExport to set choice.
NoExport()
// getter for NoLlgr to set choice.
NoLlgr()
// getter for NoAdvertised to set choice.
NoAdvertised()
// getter for LlgrStale to set choice.
LlgrStale()
// getter for NoAdvertised to set choice.
NoAdvertised()
// getter for NoExportSubconfed to set choice.
NoExportSubconfed()
// getter for NoLlgr to set choice.
NoLlgr()
// 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
Expand Down Expand Up @@ -322,31 +322,31 @@ func (obj *bgpAttributesCommunity) Choice() BgpAttributesCommunityChoiceEnum {
return BgpAttributesCommunityChoiceEnum(obj.obj.Choice.Enum().String())
}

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

// 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 {
intValue, ok := otg.BgpAttributesCommunity_Choice_Enum_value[string(value)]
if !ok {
Expand Down
Loading