You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2021/09/16 04:19:11 UTC

[GitHub] [cloudstack] nvazquez commented on a change in pull request #4678: Support mutiple management networks in systemvms

nvazquez commented on a change in pull request #4678:
URL: https://github.com/apache/cloudstack/pull/4678#discussion_r709743251



##########
File path: systemvm/debian/opt/cloud/bin/setup/common.sh
##########
@@ -322,7 +322,12 @@ setup_common() {
 
   if [ -n "$MGMTNET"  -a -n "$LOCAL_GW" ]
   then
-    ip route add $MGMTNET via $LOCAL_GW dev eth1
+    log_it "Received mgmt cidr : $MGMTNET"
+    cidrs=(${MGMTNET//,/ })
+    for cidr in ${cidrs[@]}
+    do
+      ip route add $cidr dev eth1

Review comment:
       @ravening the original line contained it (`ip route add $MGMTNET via $LOCAL_GW dev eth1`), can you explain why is removed?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org