This is an automated email from the ASF dual-hosted git repository.
shwstppr pushed a commit to branch 4.17
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.17 by this push:
new d3bfdacffd systemvm,vr: disable radvd for non-applicable VRs (#6706)
d3bfdacffd is described below
commit d3bfdacffd1223dbc721f6f006cac26dbe9f98e3
Author: Abhishek Kumar <[email protected]>
AuthorDate: Wed Sep 7 13:42:57 2022 +0530
systemvm,vr: disable radvd for non-applicable VRs (#6706)
Fixes #6700
When VR is a DHCP server system VM type then stop radvd.
---
systemvm/debian/opt/cloud/bin/setup/dhcpsrvr.sh | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/systemvm/debian/opt/cloud/bin/setup/dhcpsrvr.sh
b/systemvm/debian/opt/cloud/bin/setup/dhcpsrvr.sh
index 27dbf3e8f6..0f65f304f3 100755
--- a/systemvm/debian/opt/cloud/bin/setup/dhcpsrvr.sh
+++ b/systemvm/debian/opt/cloud/bin/setup/dhcpsrvr.sh
@@ -39,6 +39,10 @@ setup_dhcpsrvr() {
sed -i "s/-A INPUT -i eth0 -p udp -m udp --dport 53 -j ACCEPT/-A INPUT -i
eth0 -p udp -m udp --dport 53 -s $DHCP_RANGE\/$CIDR_SIZE -j ACCEPT/g"
/etc/iptables/rules.v4
sed -i "s/-A INPUT -i eth0 -p tcp -m tcp --dport 53 -j ACCEPT/-A INPUT -i
eth0 -p tcp -m tcp --dport 53 -s $DHCP_RANGE\/$CIDR_SIZE -j ACCEPT/g"
/etc/iptables/rules.v4
+ log_it "Disable radvd for dhcp server system vm"
+ rm -rf /etc/radvd.conf
+ systemctl stop radvd
+ systemctl disable radvd
}
dhcpsrvr_svcs