Skip to content

Commit

Permalink
Auto generated from API Specifications for 20.10.8
Browse files Browse the repository at this point in the history
  • Loading branch information
pdellaert committed Mar 24, 2022
1 parent 1cef1f1 commit 5c05254
Show file tree
Hide file tree
Showing 10 changed files with 460 additions and 23 deletions.
70 changes: 48 additions & 22 deletions vspk/domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ type Domain struct {
ParentID string `json:"parentID,omitempty"`
ParentType string `json:"parentType,omitempty"`
Owner string `json:"owner,omitempty"`
L2DomainAggregationEnabled bool `json:"l2DomainAggregationEnabled"`
PATEnabled string `json:"PATEnabled,omitempty"`
ECMPCount int `json:"ECMPCount,omitempty"`
BGPEnabled bool `json:"BGPEnabled"`
Expand All @@ -67,6 +68,8 @@ type Domain struct {
FIPIgnoreDefaultRoute string `json:"FIPIgnoreDefaultRoute,omitempty"`
FIPUnderlay bool `json:"FIPUnderlay"`
DPI string `json:"DPI,omitempty"`
IPv4IBGPMaxPaths int `json:"IPv4IBGPMaxPaths,omitempty"`
IPv6IBGPMaxPaths int `json:"IPv6IBGPMaxPaths,omitempty"`
GRTEnabled bool `json:"GRTEnabled"`
EVPNRT5Type string `json:"EVPNRT5Type,omitempty"`
VXLANECMPEnabled bool `json:"VXLANECMPEnabled"`
Expand Down Expand Up @@ -110,6 +113,11 @@ type Domain struct {
DomainAggregationEnabled bool `json:"domainAggregationEnabled"`
DomainID int `json:"domainID,omitempty"`
DomainVLANID int `json:"domainVLANID,omitempty"`
LoopbackIntfDescription string `json:"loopbackIntfDescription,omitempty"`
LoopbackIntfEnabled bool `json:"loopbackIntfEnabled"`
LoopbackIntfIPv4Address string `json:"loopbackIntfIPv4Address,omitempty"`
LoopbackIntfIPv6Address string `json:"loopbackIntfIPv6Address,omitempty"`
LoopbackIntfId int `json:"loopbackIntfId,omitempty"`
RouteDistinguisher string `json:"routeDistinguisher,omitempty"`
RouteTarget string `json:"routeTarget,omitempty"`
UplinkPreference string `json:"uplinkPreference,omitempty"`
Expand All @@ -135,28 +143,32 @@ type Domain struct {
func NewDomain() *Domain {

return &Domain{
PATEnabled: "DISABLED",
DHCPBehavior: "CONSUME",
FIPIgnoreDefaultRoute: "DISABLED",
FIPUnderlay: false,
DPI: "DISABLED",
GRTEnabled: false,
EVPNRT5Type: "IP",
VXLANECMPEnabled: false,
MaintenanceMode: "DISABLED",
FecEnabled: false,
AggregateFlowsEnabled: false,
ThreatIntelligenceEnabled: "INHERITED",
FlowCollectionEnabled: "INHERITED",
FlowLimitEnabled: "DISABLED",
FlowSetupRate: 1000,
FlowSetupRateLimitEnabled: "DISABLED",
Encryption: "DISABLED",
UnderlayEnabled: "DISABLED",
Color: 0,
DomainAggregationEnabled: false,
CreateBackHaulSubnet: true,
TunnelType: "DC_DEFAULT",
L2DomainAggregationEnabled: false,
PATEnabled: "DISABLED",
DHCPBehavior: "CONSUME",
FIPIgnoreDefaultRoute: "DISABLED",
FIPUnderlay: false,
DPI: "DISABLED",
IPv4IBGPMaxPaths: 1,
IPv6IBGPMaxPaths: 1,
GRTEnabled: false,
EVPNRT5Type: "IP",
VXLANECMPEnabled: false,
MaintenanceMode: "DISABLED",
FecEnabled: false,
AggregateFlowsEnabled: false,
ThreatIntelligenceEnabled: "INHERITED",
FlowCollectionEnabled: "INHERITED",
FlowLimitEnabled: "DISABLED",
FlowSetupRate: 1000,
FlowSetupRateLimitEnabled: "DISABLED",
Encryption: "DISABLED",
UnderlayEnabled: "DISABLED",
Color: 0,
DomainAggregationEnabled: false,
LoopbackIntfEnabled: false,
CreateBackHaulSubnet: true,
TunnelType: "DC_DEFAULT",
}
}

Expand Down Expand Up @@ -768,6 +780,20 @@ func (o *Domain) CreateRoutingPolicy(child *RoutingPolicy) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
}

// RoutingPolicyAssociations retrieves the list of child RoutingPolicyAssociations of the Domain
func (o *Domain) RoutingPolicyAssociations(info *bambou.FetchingInfo) (RoutingPolicyAssociationsList, *bambou.Error) {

var list RoutingPolicyAssociationsList
err := bambou.CurrentSession().FetchChildren(o, RoutingPolicyAssociationIdentity, &list, info)
return list, err
}

// CreateRoutingPolicyAssociation creates a new child RoutingPolicyAssociation under the Domain
func (o *Domain) CreateRoutingPolicyAssociation(child *RoutingPolicyAssociation) *bambou.Error {

return bambou.CurrentSession().CreateChild(o, child)
}

// RoutingPolicyBindings retrieves the list of child RoutingPolicyBindings of the Domain
func (o *Domain) RoutingPolicyBindings(info *bambou.FetchingInfo) (RoutingPolicyBindingsList, *bambou.Error) {

Expand Down
14 changes: 14 additions & 0 deletions vspk/enterprise.go
Original file line number Diff line number Diff line change
Expand Up @@ -1198,6 +1198,20 @@ func (o *Enterprise) CreateNSRedundantGatewayGroup(child *NSRedundantGatewayGrou
return bambou.CurrentSession().CreateChild(o, child)
}

// EthernetSegmentGWGroups retrieves the list of child EthernetSegmentGWGroups of the Enterprise
func (o *Enterprise) EthernetSegmentGWGroups(info *bambou.FetchingInfo) (EthernetSegmentGWGroupsList, *bambou.Error) {

var list EthernetSegmentGWGroupsList
err := bambou.CurrentSession().FetchChildren(o, EthernetSegmentGWGroupIdentity, &list, info)
return list, err
}

// CreateEthernetSegmentGWGroup creates a new child EthernetSegmentGWGroup under the Enterprise
func (o *Enterprise) CreateEthernetSegmentGWGroup(child *EthernetSegmentGWGroup) *bambou.Error {

return bambou.CurrentSession().CreateChild(o, child)
}

// PublicNetworkMacros retrieves the list of child PublicNetworkMacros of the Enterprise
func (o *Enterprise) PublicNetworkMacros(info *bambou.FetchingInfo) (PublicNetworkMacrosList, *bambou.Error) {

Expand Down
14 changes: 14 additions & 0 deletions vspk/me.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,20 @@ func (o *Me) Metadatas(info *bambou.FetchingInfo) (MetadatasList, *bambou.Error)
return list, err
}

// NetconfGlobalConfigurations retrieves the list of child NetconfGlobalConfigurations of the Me
func (o *Me) NetconfGlobalConfigurations(info *bambou.FetchingInfo) (NetconfGlobalConfigurationsList, *bambou.Error) {

var list NetconfGlobalConfigurationsList
err := bambou.CurrentSession().FetchChildren(o, NetconfGlobalConfigurationIdentity, &list, info)
return list, err
}

// CreateNetconfGlobalConfiguration creates a new child NetconfGlobalConfiguration under the Me
func (o *Me) CreateNetconfGlobalConfiguration(child *NetconfGlobalConfiguration) *bambou.Error {

return bambou.CurrentSession().CreateChild(o, child)
}

// NetconfProfiles retrieves the list of child NetconfProfiles of the Me
func (o *Me) NetconfProfiles(info *bambou.FetchingInfo) (NetconfProfilesList, *bambou.Error) {

Expand Down
165 changes: 165 additions & 0 deletions vspk/netconfglobalconfiguration.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
/*
Copyright (c) 2015, Alcatel-Lucent Inc
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

package vspk

import "github.com/nuagenetworks/go-bambou/bambou"

// NetconfGlobalConfigurationIdentity represents the Identity of the object
var NetconfGlobalConfigurationIdentity = bambou.Identity{
Name: "netconfglobalconfiguration",
Category: "netconfglobalconfigurations",
}

// NetconfGlobalConfigurationsList represents a list of NetconfGlobalConfigurations
type NetconfGlobalConfigurationsList []*NetconfGlobalConfiguration

// NetconfGlobalConfigurationsAncestor is the interface that an ancestor of a NetconfGlobalConfiguration must implement.
// An Ancestor is defined as an entity that has NetconfGlobalConfiguration as a descendant.
// An Ancestor can get a list of its child NetconfGlobalConfigurations, but not necessarily create one.
type NetconfGlobalConfigurationsAncestor interface {
NetconfGlobalConfigurations(*bambou.FetchingInfo) (NetconfGlobalConfigurationsList, *bambou.Error)
}

// NetconfGlobalConfigurationsParent is the interface that a parent of a NetconfGlobalConfiguration must implement.
// A Parent is defined as an entity that has NetconfGlobalConfiguration as a child.
// A Parent is an Ancestor which can create a NetconfGlobalConfiguration.
type NetconfGlobalConfigurationsParent interface {
NetconfGlobalConfigurationsAncestor
CreateNetconfGlobalConfiguration(*NetconfGlobalConfiguration) *bambou.Error
}

// NetconfGlobalConfiguration represents the model of a netconfglobalconfiguration
type NetconfGlobalConfiguration struct {
ID string `json:"ID,omitempty"`
ParentID string `json:"parentID,omitempty"`
ParentType string `json:"parentType,omitempty"`
Owner string `json:"owner,omitempty"`
Name string `json:"name,omitempty"`
LastUpdatedBy string `json:"lastUpdatedBy,omitempty"`
LastUpdatedDate string `json:"lastUpdatedDate,omitempty"`
Description string `json:"description,omitempty"`
NetconfGatewayIDs []interface{} `json:"netconfGatewayIDs,omitempty"`
EmbeddedMetadata []interface{} `json:"embeddedMetadata,omitempty"`
EntityScope string `json:"entityScope,omitempty"`
ConfigDefinition string `json:"configDefinition,omitempty"`
CreationDate string `json:"creationDate,omitempty"`
Owner string `json:"owner,omitempty"`
ExternalID string `json:"externalID,omitempty"`
}

// NewNetconfGlobalConfiguration returns a new *NetconfGlobalConfiguration
func NewNetconfGlobalConfiguration() *NetconfGlobalConfiguration {

return &NetconfGlobalConfiguration{}
}

// Identity returns the Identity of the object.
func (o *NetconfGlobalConfiguration) Identity() bambou.Identity {

return NetconfGlobalConfigurationIdentity
}

// Identifier returns the value of the object's unique identifier.
func (o *NetconfGlobalConfiguration) Identifier() string {

return o.ID
}

// SetIdentifier sets the value of the object's unique identifier.
func (o *NetconfGlobalConfiguration) SetIdentifier(ID string) {

o.ID = ID
}

// Fetch retrieves the NetconfGlobalConfiguration from the server
func (o *NetconfGlobalConfiguration) Fetch() *bambou.Error {

return bambou.CurrentSession().FetchEntity(o)
}

// Save saves the NetconfGlobalConfiguration into the server
func (o *NetconfGlobalConfiguration) Save() *bambou.Error {

return bambou.CurrentSession().SaveEntity(o)
}

// Delete deletes the NetconfGlobalConfiguration from the server
func (o *NetconfGlobalConfiguration) Delete() *bambou.Error {

return bambou.CurrentSession().DeleteEntity(o)
}

// DeploymentFailures retrieves the list of child DeploymentFailures of the NetconfGlobalConfiguration
func (o *NetconfGlobalConfiguration) DeploymentFailures(info *bambou.FetchingInfo) (DeploymentFailuresList, *bambou.Error) {

var list DeploymentFailuresList
err := bambou.CurrentSession().FetchChildren(o, DeploymentFailureIdentity, &list, info)
return list, err
}

// Permissions retrieves the list of child Permissions of the NetconfGlobalConfiguration
func (o *NetconfGlobalConfiguration) Permissions(info *bambou.FetchingInfo) (PermissionsList, *bambou.Error) {

var list PermissionsList
err := bambou.CurrentSession().FetchChildren(o, PermissionIdentity, &list, info)
return list, err
}

// CreatePermission creates a new child Permission under the NetconfGlobalConfiguration
func (o *NetconfGlobalConfiguration) CreatePermission(child *Permission) *bambou.Error {

return bambou.CurrentSession().CreateChild(o, child)
}

// Metadatas retrieves the list of child Metadatas of the NetconfGlobalConfiguration
func (o *NetconfGlobalConfiguration) Metadatas(info *bambou.FetchingInfo) (MetadatasList, *bambou.Error) {

var list MetadatasList
err := bambou.CurrentSession().FetchChildren(o, MetadataIdentity, &list, info)
return list, err
}

// CreateMetadata creates a new child Metadata under the NetconfGlobalConfiguration
func (o *NetconfGlobalConfiguration) CreateMetadata(child *Metadata) *bambou.Error {

return bambou.CurrentSession().CreateChild(o, child)
}

// GlobalMetadatas retrieves the list of child GlobalMetadatas of the NetconfGlobalConfiguration
func (o *NetconfGlobalConfiguration) GlobalMetadatas(info *bambou.FetchingInfo) (GlobalMetadatasList, *bambou.Error) {

var list GlobalMetadatasList
err := bambou.CurrentSession().FetchChildren(o, GlobalMetadataIdentity, &list, info)
return list, err
}

// CreateGlobalMetadata creates a new child GlobalMetadata under the NetconfGlobalConfiguration
func (o *NetconfGlobalConfiguration) CreateGlobalMetadata(child *GlobalMetadata) *bambou.Error {

return bambou.CurrentSession().CreateChild(o, child)
}
2 changes: 2 additions & 0 deletions vspk/nsgateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ type NSGateway struct {
TCPMaximumSegmentSize int `json:"TCPMaximumSegmentSize,omitempty"`
ZFBMatchAttribute string `json:"ZFBMatchAttribute,omitempty"`
ZFBMatchValue string `json:"ZFBMatchValue,omitempty"`
SGTPropagationEnabled bool `json:"SGTPropagationEnabled"`
BIOSReleaseDate string `json:"BIOSReleaseDate,omitempty"`
BIOSVersion string `json:"BIOSVersion,omitempty"`
SKU string `json:"SKU,omitempty"`
Expand Down Expand Up @@ -138,6 +139,7 @@ func NewNSGateway() *NSGateway {
TCPMSSEnabled: false,
TCPMaximumSegmentSize: 1330,
ZFBMatchAttribute: "NONE",
SGTPropagationEnabled: false,
TPMStatus: "UNKNOWN",
SSHService: "INHERITED",
LastConfigurationReloadTimestamp: -1,
Expand Down
5 changes: 4 additions & 1 deletion vspk/patnatpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ type PATNATPool struct {
EndSourceAddress string `json:"endSourceAddress,omitempty"`
EntityScope string `json:"entityScope,omitempty"`
CreationDate string `json:"creationDate,omitempty"`
UseUplinkIP bool `json:"useUplinkIP"`
AssociatedGatewayId string `json:"associatedGatewayId,omitempty"`
AssociatedGatewayType string `json:"associatedGatewayType,omitempty"`
AssociatedSubnetId string `json:"associatedSubnetId,omitempty"`
Expand All @@ -86,7 +87,9 @@ type PATNATPool struct {
// NewPATNATPool returns a new *PATNATPool
func NewPATNATPool() *PATNATPool {

return &PATNATPool{}
return &PATNATPool{
UseUplinkIP: false,
}
}

// Identity returns the Identity of the object.
Expand Down
Loading

0 comments on commit 5c05254

Please sign in to comment.