weizhouapache commented on code in PR #11518:
URL: https://github.com/apache/cloudstack/pull/11518#discussion_r2303005108


##########
systemvm/debian/opt/cloud/bin/checkrouter.sh:
##########
@@ -18,13 +18,29 @@
 
 STATUS=UNKNOWN
 
+ROUTER_TYPE=$(cat /etc/cloudstack/cmdline.json | grep type | awk '{print $2;}' 
| sed -e 's/[,\"]//g')
+if [ "$ROUTER_TYPE" = "vpcrouter" ];then
+    GUEST_NICS=$(python3 -c "
+import json
+data = json.load(open('/etc/cloudstack/ips.json'))
+for nic, objs in data.items():
+   if isinstance(objs, list):
+       for obj in objs:
+           if obj.get('nw_type') == 'guest' and obj.get('add'):
+               print(nic)
+                     ")

Review Comment:
   done. thanks @DaanHoogland for the review



-- 
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-unsubscr...@cloudstack.apache.org

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

Reply via email to