|
34 | 34 | import org.apache.cloudstack.api.command.user.network.UpdateNetworkCmd; |
35 | 35 | import org.apache.cloudstack.api.command.user.vm.ListNicsCmd; |
36 | 36 | import org.apache.cloudstack.api.response.AcquirePodIpCmdResponse; |
| 37 | +import org.apache.cloudstack.framework.config.ConfigKey; |
37 | 38 |
|
38 | 39 | import com.cloud.exception.ConcurrentOperationException; |
39 | 40 | import com.cloud.exception.InsufficientAddressCapacityException; |
|
59 | 60 | */ |
60 | 61 | public interface NetworkService { |
61 | 62 |
|
| 63 | + public static final Integer DEFAULT_MTU = 1500; |
| 64 | + public static final Integer MINIMUM_MTU = 68; |
| 65 | + |
| 66 | + public static final ConfigKey<Integer> VRPublicInterfaceMtu = new ConfigKey<>("VirtualRouter", Integer.class, |
| 67 | + "vr.public.interface.max.mtu", "1500", "The maximum value the MTU can have on the VR's public interfaces", |
| 68 | + true, ConfigKey.Scope.Zone); |
| 69 | + |
| 70 | + public static final ConfigKey<Integer> VRPrivateInterfaceMtu = new ConfigKey<>("VirtualRouter", Integer.class, |
| 71 | + "vr.private.interface.max.mtu", "1500", "The maximum value the MTU can have on the VR's private interfaces", |
| 72 | + true, ConfigKey.Scope.Zone); |
| 73 | + |
| 74 | + public static final ConfigKey<Boolean> AllowUsersToSpecifyVRMtu = new ConfigKey<>("Advanced", Boolean.class, |
| 75 | + "allow.end.users.to.specify.vr.mtu", "false", "Allow end users to specify VR MTU", |
| 76 | + true, ConfigKey.Scope.Zone); |
| 77 | + |
62 | 78 | List<? extends Network> getIsolatedNetworksOwnedByAccountInZone(long zoneId, Account owner); |
63 | 79 |
|
64 | 80 | IpAddress allocateIP(Account ipOwner, long zoneId, Long networkId, Boolean displayIp, String ipaddress) throws ResourceAllocationException, InsufficientAddressCapacityException, |
|
0 commit comments