Skip to content

Commit a9ab42d

Browse files
committed
api: Extend to infra. interface entities that are not associated with any account
Includes, datacenter, pod, sotragenetworkiprange,vlan,diskoffering,networkoffering, serviceoffering. Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
1 parent e51bc8b commit a9ab42d

7 files changed

Lines changed: 14 additions & 7 deletions

File tree

api/src/com/cloud/dc/DataCenter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@
1919
import java.util.Map;
2020

2121
import com.cloud.org.Grouping;
22+
import org.apache.cloudstack.acl.InfrastructureEntity;
2223
import org.apache.cloudstack.api.Identity;
2324
import org.apache.cloudstack.api.InternalIdentity;
2425

2526
/**
2627
*
2728
*/
28-
public interface DataCenter extends Grouping, Identity, InternalIdentity {
29+
public interface DataCenter extends InfrastructureEntity, Grouping, Identity, InternalIdentity {
2930
public enum NetworkType {
3031
Basic,
3132
Advanced,

api/src/com/cloud/dc/Pod.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@
1717
package com.cloud.dc;
1818

1919
import com.cloud.org.Grouping;
20+
import org.apache.cloudstack.acl.InfrastructureEntity;
2021
import org.apache.cloudstack.api.Identity;
2122
import org.apache.cloudstack.api.InternalIdentity;
2223

2324
/**
2425
* Represents one pod in the cloud stack.
2526
*
2627
*/
27-
public interface Pod extends Grouping, Identity, InternalIdentity {
28+
public interface Pod extends InfrastructureEntity, Grouping, Identity, InternalIdentity {
2829

2930
String getCidrAddress();
3031

api/src/com/cloud/dc/StorageNetworkIpRange.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@
1616
// under the License.
1717
package com.cloud.dc;
1818

19+
import org.apache.cloudstack.acl.InfrastructureEntity;
1920
import org.apache.cloudstack.api.Identity;
2021
import org.apache.cloudstack.api.InternalIdentity;
2122

22-
public interface StorageNetworkIpRange extends InternalIdentity, Identity {
23+
public interface StorageNetworkIpRange extends InfrastructureEntity, InternalIdentity, Identity {
2324

2425
Integer getVlan();
2526

api/src/com/cloud/dc/Vlan.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@
1616
// under the License.
1717
package com.cloud.dc;
1818

19+
import org.apache.cloudstack.acl.InfrastructureEntity;
1920
import org.apache.cloudstack.api.Identity;
2021
import org.apache.cloudstack.api.InternalIdentity;
2122

22-
public interface Vlan extends InternalIdentity, Identity {
23+
public interface Vlan extends InfrastructureEntity, InternalIdentity, Identity {
2324
public enum VlanType {
2425
DirectAttached,
2526
VirtualNetwork

api/src/com/cloud/offering/DiskOffering.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
// under the License.
1717
package com.cloud.offering;
1818

19+
import org.apache.cloudstack.acl.InfrastructureEntity;
1920
import org.apache.cloudstack.api.Identity;
2021
import org.apache.cloudstack.api.InternalIdentity;
2122

@@ -26,7 +27,7 @@
2627
* the disk offering.
2728
*
2829
*/
29-
public interface DiskOffering extends Identity, InternalIdentity {
30+
public interface DiskOffering extends InfrastructureEntity, Identity, InternalIdentity {
3031

3132
String getUniqueName();
3233

api/src/com/cloud/offering/NetworkOffering.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,15 @@
1818

1919
import com.cloud.network.Network.GuestType;
2020
import com.cloud.network.Networks.TrafficType;
21+
import org.apache.cloudstack.acl.InfrastructureEntity;
2122
import org.apache.cloudstack.api.Identity;
2223
import org.apache.cloudstack.api.InternalIdentity;
2324

2425
/**
2526
* Describes network offering
2627
*
2728
*/
28-
public interface NetworkOffering extends InternalIdentity, Identity {
29+
public interface NetworkOffering extends InfrastructureEntity, InternalIdentity, Identity {
2930

3031
public enum Availability {
3132
Required,

api/src/com/cloud/offering/ServiceOffering.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
// under the License.
1717
package com.cloud.offering;
1818

19+
import org.apache.cloudstack.acl.InfrastructureEntity;
1920
import org.apache.cloudstack.api.Identity;
2021
import org.apache.cloudstack.api.InternalIdentity;
2122

@@ -24,7 +25,7 @@
2425
/**
2526
* offered.
2627
*/
27-
public interface ServiceOffering extends InternalIdentity, Identity {
28+
public interface ServiceOffering extends InfrastructureEntity, InternalIdentity, Identity {
2829
public static final String consoleProxyDefaultOffUniqueName = "Cloud.com-ConsoleProxy";
2930
public static final String ssvmDefaultOffUniqueName = "Cloud.com-SecondaryStorage";
3031
public static final String routerDefaultOffUniqueName = "Cloud.Com-SoftwareRouter";

0 commit comments

Comments
 (0)