Skip to content

Commit

Permalink
Auto generated from API Specifications for 20.10.13
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and Jenkins committed May 12, 2023
1 parent a1012e5 commit 5001cfd
Show file tree
Hide file tree
Showing 9 changed files with 57 additions and 0 deletions.
1 change: 1 addition & 0 deletions vspk/dhcpv6option.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ type DHCPv6Option struct {
EmbeddedMetadata []interface{} `json:"embeddedMetadata,omitempty"`
EntityScope string `json:"entityScope,omitempty"`
CreationDate string `json:"creationDate,omitempty"`
SubOptionType string `json:"subOptionType,omitempty"`
Owner string `json:"owner,omitempty"`
ExternalID string `json:"externalID,omitempty"`
Type string `json:"type,omitempty"`
Expand Down
2 changes: 2 additions & 0 deletions vspk/domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ type Domain struct {
AssociatedPATMapperID string `json:"associatedPATMapperID,omitempty"`
AssociatedSharedPATMapperID string `json:"associatedSharedPATMapperID,omitempty"`
AssociatedUnderlayID string `json:"associatedUnderlayID,omitempty"`
StatefulMode string `json:"statefulMode,omitempty"`
Stretched bool `json:"stretched"`
Multicast string `json:"multicast,omitempty"`
TunnelType string `json:"tunnelType,omitempty"`
Expand Down Expand Up @@ -171,6 +172,7 @@ func NewDomain() *Domain {
LoopbackIntfEnabled: false,
CreateBackHaulSubnet: true,
IsSecondaryFIPDomain: false,
StatefulMode: "STATEFUL",
TunnelType: "DC_DEFAULT",
}
}
Expand Down
3 changes: 3 additions & 0 deletions vspk/infrastructuregatewayprofile.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ type InfrastructureGatewayProfile struct {
DeadTimerEnabled bool `json:"deadTimerEnabled"`
WebFilterDownloadPort int `json:"webFilterDownloadPort,omitempty"`
WebFilterQueryPort int `json:"webFilterQueryPort,omitempty"`
SecondaryRemoteLogServerAddress string `json:"secondaryRemoteLogServerAddress,omitempty"`
SecondaryRemoteLogServerPort int `json:"secondaryRemoteLogServerPort,omitempty"`
RemoteLogMode string `json:"remoteLogMode,omitempty"`
RemoteLogServerAddress string `json:"remoteLogServerAddress,omitempty"`
RemoteLogServerPort int `json:"remoteLogServerPort,omitempty"`
Expand Down Expand Up @@ -109,6 +111,7 @@ func NewInfrastructureGatewayProfile() *InfrastructureGatewayProfile {
DeadTimerEnabled: false,
WebFilterDownloadPort: 8080,
WebFilterQueryPort: 9090,
SecondaryRemoteLogServerPort: 0,
RemoteLogMode: "DISABLED",
RemoteLogServerPort: 514,
FlowEvictionThreshold: 2500,
Expand Down
4 changes: 4 additions & 0 deletions vspk/l2domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ type L2Domain struct {
LastUpdatedDate string `json:"lastUpdatedDate,omitempty"`
Gateway string `json:"gateway,omitempty"`
GatewayMACAddress string `json:"gatewayMACAddress,omitempty"`
WbxDisableMacMove bool `json:"wbxDisableMacMove"`
Address string `json:"address,omitempty"`
TemplateID string `json:"templateID,omitempty"`
ServiceID int `json:"serviceID,omitempty"`
Expand Down Expand Up @@ -101,6 +102,7 @@ type L2Domain struct {
AssociatedMulticastChannelMapID string `json:"associatedMulticastChannelMapID,omitempty"`
AssociatedSharedNetworkResourceID string `json:"associatedSharedNetworkResourceID,omitempty"`
AssociatedUnderlayID string `json:"associatedUnderlayID,omitempty"`
StatefulMode string `json:"statefulMode,omitempty"`
Stretched bool `json:"stretched"`
DualStackDynamicIPAllocation bool `json:"dualStackDynamicIPAllocation"`
Multicast string `json:"multicast,omitempty"`
Expand All @@ -118,13 +120,15 @@ func NewL2Domain() *L2Domain {
DPI: "DISABLED",
VXLANECMPEnabled: false,
MaintenanceMode: "DISABLED",
WbxDisableMacMove: false,
ThreatIntelligenceEnabled: "INHERITED",
FlowCollectionEnabled: "INHERITED",
FlowLimitEnabled: "DISABLED",
IngressReplicationEnabled: false,
Color: 0,
RoutedVPLSEnabled: false,
UseGlobalMAC: "DISABLED",
StatefulMode: "STATEFUL",
}
}

Expand Down
34 changes: 34 additions & 0 deletions vspk/me.go
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,23 @@ func (o *Me) NetworkLayouts(info *bambou.FetchingInfo) (NetworkLayoutsList, *bam



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

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



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

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


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

Expand Down Expand Up @@ -1046,6 +1063,23 @@ func (o *Me) CreateEnterprise(child *Enterprise) *bambou.Error {
}


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

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



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

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


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

Expand Down
2 changes: 2 additions & 0 deletions vspk/nsgateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ type NSGateway struct {
GatewayConfigRawVersion string `json:"gatewayConfigRawVersion,omitempty"`
GatewayConfigVersion string `json:"gatewayConfigVersion,omitempty"`
GatewayConnected bool `json:"gatewayConnected"`
PathMTUDiscovery bool `json:"pathMTUDiscovery"`
RedundancyGroupID string `json:"redundancyGroupID,omitempty"`
TemplateID string `json:"templateID,omitempty"`
Pending bool `json:"pending"`
Expand Down Expand Up @@ -146,6 +147,7 @@ func NewNSGateway() *NSGateway {
SSHService: "INHERITED",
LastConfigurationReloadTimestamp: -1,
GatewayConnected: false,
PathMTUDiscovery: true,
NetworkAcceleration: "NONE",
ThreatPreventionEnabled: false,
InheritedSSHServiceState: "ENABLED",
Expand Down
1 change: 1 addition & 0 deletions vspk/statisticsprofile.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ type Statisticsprofile struct {
Owner string `json:"owner,omitempty"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
CloneFrom string `json:"cloneFrom,omitempty"`
FlowStatsAggregationEnabled bool `json:"flowStatsAggregationEnabled"`

}
Expand Down
2 changes: 2 additions & 0 deletions vspk/subnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ type Subnet struct {
LastUpdatedDate string `json:"lastUpdatedDate,omitempty"`
Gateway string `json:"gateway,omitempty"`
GatewayMACAddress string `json:"gatewayMACAddress,omitempty"`
WbxDisableMacMove bool `json:"wbxDisableMacMove"`
AccessRestrictionEnabled bool `json:"accessRestrictionEnabled"`
Address string `json:"address,omitempty"`
Advertise bool `json:"advertise"`
Expand Down Expand Up @@ -135,6 +136,7 @@ func NewSubnet() *Subnet {
IPType: "IPV4",
EVPNEnabled: true,
MaintenanceMode: "DISABLED",
WbxDisableMacMove: false,
AccessRestrictionEnabled: false,
Advertise: true,
ResourceType: "STANDARD",
Expand Down
8 changes: 8 additions & 0 deletions vspk/systemconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ type SystemConfig struct {
SecondaryASNumber int `json:"secondaryASNumber,omitempty"`
SecondaryRTLowerLimit int `json:"secondaryRTLowerLimit,omitempty"`
SecondaryRTUpperLimit int `json:"secondaryRTUpperLimit,omitempty"`
ReflexiveACLICMPTimeout int `json:"reflexiveACLICMPTimeout,omitempty"`
ReflexiveACLNonTCPTimeout int `json:"reflexiveACLNonTCPTimeout,omitempty"`
ReflexiveACLTCPTimeout int `json:"reflexiveACLTCPTimeout,omitempty"`
DeniedFlowCollectionEnabled bool `json:"deniedFlowCollectionEnabled"`
PerDomainVlanIdEnabled bool `json:"perDomainVlanIdEnabled"`
ServiceIDUpperLimit int `json:"serviceIDUpperLimit,omitempty"`
Expand Down Expand Up @@ -181,6 +184,7 @@ type SystemConfig struct {
LoopbackIntfUpperLimit int `json:"loopbackIntfUpperLimit,omitempty"`
PostProcessorThreadsCount int `json:"postProcessorThreadsCount,omitempty"`
CreationDate string `json:"creationDate,omitempty"`
SrlYangValidationEnabled bool `json:"srlYangValidationEnabled"`
GroupKeyDefaultSEKGenerationInterval int `json:"groupKeyDefaultSEKGenerationInterval,omitempty"`
GroupKeyDefaultSEKLifetime int `json:"groupKeyDefaultSEKLifetime,omitempty"`
GroupKeyDefaultSEKPayloadEncryptionAlgorithm string `json:"groupKeyDefaultSEKPayloadEncryptionAlgorithm,omitempty"`
Expand Down Expand Up @@ -324,6 +328,9 @@ func NewSystemConfig() *SystemConfig {
SecondaryASNumber: 65533,
SecondaryRTLowerLimit: 0,
SecondaryRTUpperLimit: 65533,
ReflexiveACLICMPTimeout: 10,
ReflexiveACLNonTCPTimeout: 10,
ReflexiveACLTCPTimeout: 10,
DeniedFlowCollectionEnabled: false,
PerDomainVlanIdEnabled: false,
ServiceIDUpperLimit: 2147483648,
Expand Down Expand Up @@ -361,6 +368,7 @@ func NewSystemConfig() *SystemConfig {
LoopbackIntfLowerLimit: 600,
LoopbackIntfUpperLimit: 1023,
PostProcessorThreadsCount: 10,
SrlYangValidationEnabled: true,
GroupKeyDefaultSEKGenerationInterval: 1200,
GroupKeyDefaultSEKLifetime: 86400,
GroupKeyDefaultSEKPayloadEncryptionAlgorithm: "RSA_1024",
Expand Down

0 comments on commit 5001cfd

Please sign in to comment.