This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack-installer.git

commit 3b113185cd0b972abbe7e729a8cf73aeee117965
Author: Rohit Yadav <[email protected]>
AuthorDate: Mon May 13 15:09:47 2024 +0000

    use nmap to discover free ip range blocks in the host's cidr
    
    Signed-off-by: Rohit Yadav <[email protected]>
---
 install.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/install.sh b/install.sh
index 6ef3314..80c7bb6 100644
--- a/install.sh
+++ b/install.sh
@@ -259,9 +259,11 @@ deploy_zone() {
   cmk update networkserviceprovider state=Enabled id=$nsp_id
   info "Configured VPC VR Network Service Provider for zone"
 
+  # TODO: use nmap to scan for free IPs in the range
+  # sudo nmap -v -sn -n 192.168.1.0/24 -oG - | awk '/Status: Down/{print $2}'
   RANGE=$(echo $GATEWAY | sed 's/\..$//g')
-
   pod_id=$(cmk create pod name=AdvPod1 zoneid=$zone_id gateway=$GATEWAY 
netmask=255.255.255.0 startip=$pod_start endip=$pod_end | jq '.pod.id')
+
 }
 
 display_url() {

Reply via email to