mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
This feature enables adding of guest ip ranges (public ips) form different subnets. In order to provide the dhcp service to a different subnet we create an ipalias on the router. This allows the router to listen to the dhcp request from the guest vms and respond accordingly. Every time a vm is deployed in the new subnet we configure an ip alias on the router. Cloudstack uses dnsmasq to provide dhcp service. We need to configure the dnsmasq to issue ips on the new subnets. Added a new class dnsmasqconfigurator which generates the dnsmasq confg file, this file replaces the old config in the router. The details of the alias ips are stored in db in the nic_ip_alias table. Every time a new subnet is added one of the ip from the subnet is used to configure the ip alias. I have pushed the code to https://github.com/bvbharatk/cloud-stack/tree/Cloudstack-702 , also rebased the code with master. I need to test the code for advanced sg enabled network using kvm. I have added the unit test Marvin tests are at https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=53e4965 Also accomodated some of the changes suggested by koushik. corrected the import statements. renamed the IpAlias command to createIpAlias command. This feature supports only ipv4
69 lines
3.3 KiB
Plaintext
69 lines
3.3 KiB
Plaintext
# Licensed to the Apache Software Foundation (ASF) under one
|
|
# or more contributor license agreements. See the NOTICE file
|
|
# distributed with this work for additional information
|
|
# regarding copyright ownership. The ASF licenses this file
|
|
# to you under the Apache License, Version 2.0 (the
|
|
# "License"); you may not use this file except in compliance
|
|
# with the License. You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing,
|
|
# software distributed under the License is distributed on an
|
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
# KIND, either express or implied. See the License for the
|
|
# specific language governing permissions and limitations
|
|
# under the License.
|
|
|
|
# This file specifies the files that need
|
|
# to be transferred over to the XenServer.
|
|
# The format of this file is as follows:
|
|
# [Name of file]=[source path],[file permission],[destination path]
|
|
# [destination path] is required.
|
|
# If [file permission] is missing, 755 is assumed.
|
|
# If [source path] is missing, it looks in the same
|
|
# directory as the patch file.
|
|
# If [source path] starts with '/', then it is absolute path.
|
|
# If [source path] starts with '~', then it is path relative to management server home directory.
|
|
# If [source path] does not start with '/' or '~', then it is relative path to the location of the patch file.
|
|
NFSSR.py=/opt/xensource/sm
|
|
vmops=..,0755,/etc/xapi.d/plugins
|
|
vmopsSnapshot=..,0755,/etc/xapi.d/plugins
|
|
hostvmstats.py=..,0755,/opt/xensource/sm
|
|
systemvm.iso=../../../../../vms,0644,/opt/xensource/packages/iso
|
|
id_rsa.cloud=../../../systemvm,0600,/root/.ssh
|
|
network_info.sh=..,0755,/opt/xensource/bin
|
|
setupxenserver.sh=..,0755,/opt/xensource/bin
|
|
make_migratable.sh=..,0755,/opt/xensource/bin
|
|
setup_iscsi.sh=..,0755,/opt/xensource/bin
|
|
cloud-setup-bonding.sh=..,0755,/opt/xensource/bin
|
|
pingtest.sh=../../..,0755,/opt/xensource/bin
|
|
createipAlias.sh=../../..,0755,/opt/xensource/bin
|
|
deleteipAlias.sh=../../..,0755,/opt/xensource/bin
|
|
dhcp_entry.sh=../../../../network/domr/,0755,/opt/xensource/bin
|
|
vm_data.sh=../../../../network/domr/,0755,/opt/xensource/bin
|
|
save_password_to_domr.sh=../../../../network/domr/,0755,/opt/xensource/bin
|
|
call_firewall.sh=../../../../network/domr/,0755,/opt/xensource/bin
|
|
call_loadbalancer.sh=../../../../network/domr/,0755,/opt/xensource/bin
|
|
router_proxy.sh=../../../../network/domr/,0755,/opt/xensource/bin
|
|
copy_vhd_to_secondarystorage.sh=..,0755,/opt/xensource/bin
|
|
copy_vhd_from_secondarystorage.sh=..,0755,/opt/xensource/bin
|
|
kill_copy_process.sh=..,0755,/opt/xensource/bin
|
|
setup_heartbeat_sr.sh=..,0755,/opt/xensource/bin
|
|
setup_heartbeat_file.sh=..,0755,/opt/xensource/bin
|
|
check_heartbeat.sh=..,0755,/opt/xensource/bin
|
|
xenheartbeat.sh=..,0755,/opt/xensource/bin
|
|
launch_hb.sh=..,0755,/opt/xensource/bin
|
|
vhd-util=..,0755,/opt/xensource/bin
|
|
vmopspremium=..,0755,/etc/xapi.d/plugins
|
|
InterfaceReconfigure.py=.,0755,/opt/xensource/libexec
|
|
create_privatetemplate_from_snapshot.sh=..,0755,/opt/xensource/bin
|
|
upgrade_snapshot.sh=..,0755,/opt/xensource/bin
|
|
cloud-clean-vlan.sh=..,0755,/opt/xensource/bin
|
|
cloud-prepare-upgrade.sh=..,0755,/opt/xensource/bin
|
|
bumpUpPriority.sh=../../../../network/domr/,0755,/opt/xensource/bin
|
|
swift=..,0755,/opt/xensource/bin
|
|
swiftxen=..,0755,/etc/xapi.d/plugins
|
|
s3xen=..,0755,/etc/xapi.d/plugins
|
|
|