Skip to content

Commit c613189

Browse files
avijenkinsavijenkins
andauthored
Auto updated assets for vro eng (#310)
* Updated assets for vro Signed-off-by: avijenkins <svc.avi-jenkins@broadcom.com> * Updated assets for vro Signed-off-by: avijenkins <svc.avi-jenkins@broadcom.com> --------- Signed-off-by: avijenkins <svc.avi-jenkins@broadcom.com> Co-authored-by: avijenkins <svc.avi-jenkins@broadcom.com>
1 parent 1d842ad commit c613189

File tree

6 files changed

+397
-150
lines changed

6 files changed

+397
-150
lines changed

o11nplugin-vro-core/src/main/java/com/vmware/avi/vro/Constants.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,8 @@ public class Constants {
587587
public static final String FINDER_VRO_IPADDRPORT = "IpAddrPort";
588588
public static final String FINDER_VRO_IPADDRPREFIX = "IpAddrPrefix";
589589
public static final String FINDER_VRO_IPADDRRANGE = "IpAddrRange";
590+
public static final String FINDER_VRO_IPADDRTYPECONFIG = "IpAddrTypeConfig";
591+
public static final String FINDER_VRO_IPADVERTISEMENTPROFILE = "IpAdvertisementProfile";
590592
public static final String FINDER_VRO_IPALLOCINFO = "IpAllocInfo";
591593
public static final String FINDER_VRO_IPCOMMUNITY = "IpCommunity";
592594
public static final String FINDER_VRO_IPREPUTATIONCONFIG = "IpReputationConfig";

o11nplugin-vro-core/src/main/java/com/vmware/avi/vro/model/ControllerLimits.java

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ public class ControllerLimits extends AviRestResource {
6464
@JsonInclude(Include.NON_NULL)
6565
private L7limits l7Limits;
6666

67+
@JsonProperty("num_tenant_bindings")
68+
@JsonInclude(Include.NON_NULL)
69+
private Integer numTenantBindings = 20000;
70+
6771
@JsonProperty("poolgroups_per_virtualservice")
6872
@JsonInclude(Include.NON_NULL)
6973
private Integer poolgroupsPerVirtualservice;
@@ -391,6 +395,32 @@ public void setL7Limits(L7limits l7Limits) {
391395
this.l7Limits = l7Limits;
392396
}
393397

398+
/**
399+
* This is the getter method this will return the attribute value.
400+
* Maximum number of tenant bindings.
401+
* Field introduced in 32.2.1.
402+
* Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
403+
* Default value when not specified in API or module is interpreted by Avi Controller as 20000.
404+
* @return numTenantBindings
405+
*/
406+
@VsoMethod
407+
public Integer getNumTenantBindings() {
408+
return numTenantBindings;
409+
}
410+
411+
/**
412+
* This is the setter method to the attribute.
413+
* Maximum number of tenant bindings.
414+
* Field introduced in 32.2.1.
415+
* Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
416+
* Default value when not specified in API or module is interpreted by Avi Controller as 20000.
417+
* @param numTenantBindings set the numTenantBindings.
418+
*/
419+
@VsoMethod
420+
public void setNumTenantBindings(Integer numTenantBindings) {
421+
this.numTenantBindings = numTenantBindings;
422+
}
423+
394424
/**
395425
* This is the getter method this will return the attribute value.
396426
* Maximum number of poolgroups per virtualservice.
@@ -759,6 +789,7 @@ public boolean equals(java.lang.Object o) {
759789
Objects.equals(this.ipaddressLimits, objControllerLimits.ipaddressLimits)&&
760790
Objects.equals(this.botLimits, objControllerLimits.botLimits)&&
761791
Objects.equals(this.wafRuleMetricsEnabledVs, objControllerLimits.wafRuleMetricsEnabledVs)&&
792+
Objects.equals(this.numTenantBindings, objControllerLimits.numTenantBindings)&&
762793
Objects.equals(this.l7Limits, objControllerLimits.l7Limits)&&
763794
Objects.equals(this.controllerSizingLimits, objControllerLimits.controllerSizingLimits)&&
764795
Objects.equals(this.controllerCloudLimits, objControllerLimits.controllerCloudLimits);
@@ -777,6 +808,7 @@ public String toString() {
777808
sb.append(" ipaddressLimits: ").append(toIndentedString(ipaddressLimits)).append("\n");
778809
sb.append(" ipsPerIpgroup: ").append(toIndentedString(ipsPerIpgroup)).append("\n");
779810
sb.append(" l7Limits: ").append(toIndentedString(l7Limits)).append("\n");
811+
sb.append(" numTenantBindings: ").append(toIndentedString(numTenantBindings)).append("\n");
780812
sb.append(" poolgroupsPerVirtualservice: ").append(toIndentedString(poolgroupsPerVirtualservice)).append("\n");
781813
sb.append(" poolsPerPoolgroup: ").append(toIndentedString(poolsPerPoolgroup)).append("\n");
782814
sb.append(" poolsPerVirtualservice: ").append(toIndentedString(poolsPerVirtualservice)).append("\n");
Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
package com.vmware.avi.vro.model;
2+
3+
import java.util.*;
4+
import com.fasterxml.jackson.annotation.JsonProperty;
5+
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
6+
import com.fasterxml.jackson.annotation.JsonInclude;
7+
import com.fasterxml.jackson.annotation.JsonInclude.Include;
8+
import com.vmware.o11n.plugin.sdk.annotation.VsoFinder;
9+
import com.vmware.o11n.plugin.sdk.annotation.VsoMethod;
10+
import com.vmware.o11n.plugin.sdk.annotation.VsoObject;
11+
import com.vmware.avi.vro.Constants;
12+
import org.springframework.stereotype.Service;
13+
14+
/**
15+
* The IpAddrTypeConfig is a POJO class extends AviRestResource that used for creating
16+
* IpAddrTypeConfig.
17+
*
18+
* @version 1.0
19+
* @since
20+
*
21+
*/
22+
@VsoObject(create = false, name = "IpAddrTypeConfig")
23+
@VsoFinder(name = Constants.FINDER_VRO_IPADDRTYPECONFIG)
24+
@JsonIgnoreProperties(ignoreUnknown = true)
25+
@Service
26+
public class IpAddrTypeConfig extends AviRestResource {
27+
@JsonProperty("ip_type")
28+
@JsonInclude(Include.NON_NULL)
29+
private String ipType;
30+
31+
@JsonProperty("periodicity")
32+
@JsonInclude(Include.NON_NULL)
33+
private Integer periodicity;
34+
35+
36+
37+
/**
38+
* This is the getter method this will return the attribute value.
39+
* Ip address type for which periodic ip advertisement (gratarp/na) is enabled.
40+
* Supported values are vip_ip, snat_ip, floating_intf_ip, and primary_intf_ip.
41+
* Enum options - NAT_IP, VIP_IP, SNAT_IP, FLOATING_INTF_IP, PRIMARY_INTF_IP.
42+
* Field introduced in 32.2.1.
43+
* Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
44+
* Default value when not specified in API or module is interpreted by Avi Controller as null.
45+
* @return ipType
46+
*/
47+
@VsoMethod
48+
public String getIpType() {
49+
return ipType;
50+
}
51+
52+
/**
53+
* This is the setter method to the attribute.
54+
* Ip address type for which periodic ip advertisement (gratarp/na) is enabled.
55+
* Supported values are vip_ip, snat_ip, floating_intf_ip, and primary_intf_ip.
56+
* Enum options - NAT_IP, VIP_IP, SNAT_IP, FLOATING_INTF_IP, PRIMARY_INTF_IP.
57+
* Field introduced in 32.2.1.
58+
* Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
59+
* Default value when not specified in API or module is interpreted by Avi Controller as null.
60+
* @param ipType set the ipType.
61+
*/
62+
@VsoMethod
63+
public void setIpType(String ipType) {
64+
this.ipType = ipType;
65+
}
66+
67+
/**
68+
* This is the getter method this will return the attribute value.
69+
* Periodicity override for this ip type in minutes.
70+
* If not set, uses ip_advertisement_profile.default_periodicity.
71+
* Allowed values are 5-30.
72+
* Field introduced in 32.2.1.
73+
* Unit is min.
74+
* Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
75+
* Default value when not specified in API or module is interpreted by Avi Controller as null.
76+
* @return periodicity
77+
*/
78+
@VsoMethod
79+
public Integer getPeriodicity() {
80+
return periodicity;
81+
}
82+
83+
/**
84+
* This is the setter method to the attribute.
85+
* Periodicity override for this ip type in minutes.
86+
* If not set, uses ip_advertisement_profile.default_periodicity.
87+
* Allowed values are 5-30.
88+
* Field introduced in 32.2.1.
89+
* Unit is min.
90+
* Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
91+
* Default value when not specified in API or module is interpreted by Avi Controller as null.
92+
* @param periodicity set the periodicity.
93+
*/
94+
@VsoMethod
95+
public void setPeriodicity(Integer periodicity) {
96+
this.periodicity = periodicity;
97+
}
98+
99+
100+
101+
@Override
102+
public boolean equals(java.lang.Object o) {
103+
if (this == o) {
104+
return true;
105+
}
106+
if (o == null || getClass() != o.getClass()) {
107+
return false;
108+
}
109+
IpAddrTypeConfig objIpAddrTypeConfig = (IpAddrTypeConfig) o;
110+
return Objects.equals(this.ipType, objIpAddrTypeConfig.ipType)&&
111+
Objects.equals(this.periodicity, objIpAddrTypeConfig.periodicity);
112+
}
113+
114+
@Override
115+
public String toString() {
116+
StringBuilder sb = new StringBuilder();
117+
sb.append("class IpAddrTypeConfig {\n");
118+
sb.append(" ipType: ").append(toIndentedString(ipType)).append("\n");
119+
sb.append(" periodicity: ").append(toIndentedString(periodicity)).append("\n");
120+
sb.append("}");
121+
return sb.toString();
122+
}
123+
124+
/**
125+
* Convert the given object to string with each line indented by 4 spaces
126+
* (except the first line).
127+
*/
128+
private String toIndentedString(java.lang.Object o) {
129+
if (o == null) {
130+
return "null";
131+
}
132+
return o.toString().replace("\n", "\n ");
133+
}
134+
}
135+
Lines changed: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
package com.vmware.avi.vro.model;
2+
3+
import java.util.*;
4+
import com.fasterxml.jackson.annotation.JsonProperty;
5+
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
6+
import com.fasterxml.jackson.annotation.JsonInclude;
7+
import com.fasterxml.jackson.annotation.JsonInclude.Include;
8+
import com.vmware.o11n.plugin.sdk.annotation.VsoFinder;
9+
import com.vmware.o11n.plugin.sdk.annotation.VsoMethod;
10+
import com.vmware.o11n.plugin.sdk.annotation.VsoObject;
11+
import com.vmware.avi.vro.Constants;
12+
import org.springframework.stereotype.Service;
13+
14+
/**
15+
* The IpAdvertisementProfile is a POJO class extends AviRestResource that used for creating
16+
* IpAdvertisementProfile.
17+
*
18+
* @version 1.0
19+
* @since
20+
*
21+
*/
22+
@VsoObject(create = false, name = "IpAdvertisementProfile")
23+
@VsoFinder(name = Constants.FINDER_VRO_IPADVERTISEMENTPROFILE)
24+
@JsonIgnoreProperties(ignoreUnknown = true)
25+
@Service
26+
public class IpAdvertisementProfile extends AviRestResource {
27+
@JsonProperty("default_periodicity")
28+
@JsonInclude(Include.NON_NULL)
29+
private Integer defaultPeriodicity = 10;
30+
31+
@JsonProperty("ip_types")
32+
@JsonInclude(Include.NON_NULL)
33+
private List<IpAddrTypeConfig> ipTypes;
34+
35+
36+
37+
/**
38+
* This is the getter method this will return the attribute value.
39+
* Default periodicity for periodic ip advertisement (gratarp/na) in minutes.
40+
* Used when a per-type periodicity is not specified.
41+
* Allowed values are 5-30.
42+
* Field introduced in 32.2.1.
43+
* Unit is min.
44+
* Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
45+
* Default value when not specified in API or module is interpreted by Avi Controller as 10.
46+
* @return defaultPeriodicity
47+
*/
48+
@VsoMethod
49+
public Integer getDefaultPeriodicity() {
50+
return defaultPeriodicity;
51+
}
52+
53+
/**
54+
* This is the setter method to the attribute.
55+
* Default periodicity for periodic ip advertisement (gratarp/na) in minutes.
56+
* Used when a per-type periodicity is not specified.
57+
* Allowed values are 5-30.
58+
* Field introduced in 32.2.1.
59+
* Unit is min.
60+
* Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
61+
* Default value when not specified in API or module is interpreted by Avi Controller as 10.
62+
* @param defaultPeriodicity set the defaultPeriodicity.
63+
*/
64+
@VsoMethod
65+
public void setDefaultPeriodicity(Integer defaultPeriodicity) {
66+
this.defaultPeriodicity = defaultPeriodicity;
67+
}
68+
69+
/**
70+
* This is the getter method this will return the attribute value.
71+
* List of ip address types for which periodic ip advertisement (gratarp/na) is enabled.
72+
* Supported ip_type values are vip_ip, snat_ip, floating_intf_ip, and primary_intf_ip.
73+
* Applied uniformly to all vrfs in this serviceenginegroup.
74+
* Field introduced in 32.2.1.
75+
* Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
76+
* Default value when not specified in API or module is interpreted by Avi Controller as null.
77+
* @return ipTypes
78+
*/
79+
@VsoMethod
80+
public List<IpAddrTypeConfig> getIpTypes() {
81+
return ipTypes;
82+
}
83+
84+
/**
85+
* This is the setter method. this will set the ipTypes
86+
* List of ip address types for which periodic ip advertisement (gratarp/na) is enabled.
87+
* Supported ip_type values are vip_ip, snat_ip, floating_intf_ip, and primary_intf_ip.
88+
* Applied uniformly to all vrfs in this serviceenginegroup.
89+
* Field introduced in 32.2.1.
90+
* Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
91+
* Default value when not specified in API or module is interpreted by Avi Controller as null.
92+
* @return ipTypes
93+
*/
94+
@VsoMethod
95+
public void setIpTypes(List<IpAddrTypeConfig> ipTypes) {
96+
this.ipTypes = ipTypes;
97+
}
98+
99+
/**
100+
* This is the setter method this will set the ipTypes
101+
* List of ip address types for which periodic ip advertisement (gratarp/na) is enabled.
102+
* Supported ip_type values are vip_ip, snat_ip, floating_intf_ip, and primary_intf_ip.
103+
* Applied uniformly to all vrfs in this serviceenginegroup.
104+
* Field introduced in 32.2.1.
105+
* Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
106+
* Default value when not specified in API or module is interpreted by Avi Controller as null.
107+
* @return ipTypes
108+
*/
109+
@VsoMethod
110+
public IpAdvertisementProfile addIpTypesItem(IpAddrTypeConfig ipTypesItem) {
111+
if (this.ipTypes == null) {
112+
this.ipTypes = new ArrayList<IpAddrTypeConfig>();
113+
}
114+
this.ipTypes.add(ipTypesItem);
115+
return this;
116+
}
117+
118+
119+
120+
121+
@Override
122+
public boolean equals(java.lang.Object o) {
123+
if (this == o) {
124+
return true;
125+
}
126+
if (o == null || getClass() != o.getClass()) {
127+
return false;
128+
}
129+
IpAdvertisementProfile objIpAdvertisementProfile = (IpAdvertisementProfile) o;
130+
return Objects.equals(this.defaultPeriodicity, objIpAdvertisementProfile.defaultPeriodicity)&&
131+
Objects.equals(this.ipTypes, objIpAdvertisementProfile.ipTypes);
132+
}
133+
134+
@Override
135+
public String toString() {
136+
StringBuilder sb = new StringBuilder();
137+
sb.append("class IpAdvertisementProfile {\n");
138+
sb.append(" defaultPeriodicity: ").append(toIndentedString(defaultPeriodicity)).append("\n");
139+
sb.append(" ipTypes: ").append(toIndentedString(ipTypes)).append("\n");
140+
sb.append("}");
141+
return sb.toString();
142+
}
143+
144+
/**
145+
* Convert the given object to string with each line indented by 4 spaces
146+
* (except the first line).
147+
*/
148+
private String toIndentedString(java.lang.Object o) {
149+
if (o == null) {
150+
return "null";
151+
}
152+
return o.toString().replace("\n", "\n ");
153+
}
154+
}
155+

0 commit comments

Comments
 (0)