You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
Alena Prokharchyk
committed
1) Added new element - VpcVirtualRouterElement. Extends VirtualRouter + has plug/unplug nics support
2) Added services api support for plugging/unplugging the nics to VpcElement
Conflicts:
api/src/com/cloud/network/NetworkService.java
core/src/com/cloud/vm/VMInstanceVO.java
server/src/com/cloud/network/NetworkManagerImpl.java
server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
server/test/com/cloud/network/MockNetworkManagerImpl.java
Copy file name to clipboardExpand all lines: api/src/com/cloud/api/commands/CreateNetworkCmd.java
+20-7Lines changed: 20 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -62,16 +62,19 @@ public class CreateNetworkCmd extends BaseCmd {
62
62
@Parameter(name=ApiConstants.PHYSICAL_NETWORK_ID, type=CommandType.LONG, description="the Physical Network ID the network belongs to")
63
63
privateLongphysicalNetworkId;
64
64
65
-
@Parameter(name=ApiConstants.GATEWAY, type=CommandType.STRING, description="the gateway of the network")
65
+
@Parameter(name=ApiConstants.GATEWAY, type=CommandType.STRING, description="the gateway of the network. Required " +
66
+
"for Shared networks and Isolated networks when it belongs to VPC")
66
67
privateStringgateway;
67
68
68
-
@Parameter(name=ApiConstants.NETMASK, type=CommandType.STRING, description="the netmask of the network")
69
+
@Parameter(name=ApiConstants.NETMASK, type=CommandType.STRING, description="the netmask of the network. Required " +
70
+
"for Shared networks and Isolated networks when it belongs to VPC")
69
71
privateStringnetmask;
70
72
71
73
@Parameter(name=ApiConstants.START_IP, type=CommandType.STRING, description="the beginning IP address in the network IP range")
72
74
privateStringstartIp;
73
75
74
-
@Parameter(name=ApiConstants.END_IP, type=CommandType.STRING, description="the ending IP address in the network IP range. If not specified, will be defaulted to startIP")
76
+
@Parameter(name=ApiConstants.END_IP, type=CommandType.STRING, description="the ending IP address in the network IP" +
77
+
" range. If not specified, will be defaulted to startIP")
75
78
privateStringendIp;
76
79
77
80
@Parameter(name=ApiConstants.VLAN, type=CommandType.STRING, description="the ID or VID of the network")
@@ -80,7 +83,9 @@ public class CreateNetworkCmd extends BaseCmd {
@Parameter(name=ApiConstants.ACL_TYPE, type=CommandType.STRING, description="Access control type; supported values are account and domain. In 3.0 all shared networks should have aclType=Domain, and all Isolated networks - Account. Account means that only the account owner can use the network, domain - all accouns in the domain can use the network")
86
+
@Parameter(name=ApiConstants.ACL_TYPE, type=CommandType.STRING, description="Access control type; supported values" +
87
+
" are account and domain. In 3.0 all shared networks should have aclType=Domain, and all Isolated networks" +
88
+
" - Account. Account means that only the account owner can use the network, domain - all accouns in the domain can use the network")
84
89
privateStringaclType;
85
90
86
91
@Parameter(name=ApiConstants.ACCOUNT, type=CommandType.STRING, description="account who will own the network")
@@ -94,9 +99,13 @@ public class CreateNetworkCmd extends BaseCmd {
94
99
@Parameter(name=ApiConstants.DOMAIN_ID, type=CommandType.LONG, description="domain ID of the account owning a network")
95
100
privateLongdomainId;
96
101
97
-
@Parameter(name=ApiConstants.SUBDOMAIN_ACCESS, type=CommandType.BOOLEAN, description="Defines whether to allow subdomains to use networks dedicated to their parent domain(s). Should be used with aclType=Domain, defaulted to allow.subdomain.network.access global config if not specified")
102
+
@Parameter(name=ApiConstants.SUBDOMAIN_ACCESS, type=CommandType.BOOLEAN, description="Defines whether to allow" +
103
+
" subdomains to use networks dedicated to their parent domain(s). Should be used with aclType=Domain, defaulted to allow.subdomain.network.access global config if not specified")
Copy file name to clipboardExpand all lines: api/src/com/cloud/api/commands/UpdateNetworkOfferingCmd.java
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,8 @@ public class UpdateNetworkOfferingCmd extends BaseCmd {
47
47
@Parameter(name=ApiConstants.DISPLAY_TEXT, type=CommandType.STRING, description="the display text of the network offering")
48
48
privateStringdisplayText;
49
49
50
-
@Parameter(name=ApiConstants.AVAILABILITY, type=CommandType.STRING, description="the availability of network offering. Default value is Required for Guest Virtual network offering; Optional for Guest Direct network offering")
50
+
@Parameter(name=ApiConstants.AVAILABILITY, type=CommandType.STRING, description="the availability of network offering." +
51
+
" Default value is Required for Guest Virtual network offering; Optional for Guest Direct network offering")
51
52
privateStringavailability;
52
53
53
54
@Parameter(name=ApiConstants.SORT_KEY, type=CommandType.INTEGER, description="sort key of the network offering, integer")
0 commit comments