Changeset 4990 in /cluster/svnroot


Ignore:
Timestamp:
Feb 21, 2015 3:01:38 PM (6 years ago)
Author:
skylar
Message:

testing in bccd-nic-setup re #893

Location:
bccd-ng/branches/skylar/bccd-3.4.0/trees/bin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • bccd-ng/branches/skylar/bccd-3.4.0/trees/bin/bccd-nic-setup

    r4841 r4990  
    4949        $Bccd->config_dhcp($nic_conf);
    5050
     51    ($out,$rc) = $Bccd->run_test(
     52        'system',
     53        '',
     54        'Testing DHCP after config_dhcp',
     55        [
     56            '/usr/sbin/invoke-rc.d',
     57            'isc-dhcp-server',
     58            'status',
     59        ],
     60    );
     61
     62    if($rc) {
     63        $Bccd->log_and_cont('INFO','main','dhcpd is running after config_dhcp');
     64    }
     65    else {
     66        $Bccd->log_and_cont('WARN','main','dhcpd is not running after config_dhcp');
     67    }
     68
     69    sleep 15;
     70
    5171        ($out,$rc) = $Bccd->run_test(
    5272        "system",
     
    6080        }
    6181
     82    if($rc) {
     83        $Bccd->log_and_cont('INFO','main','dhcpd is running after networking');
     84    }
     85    else {
     86        $Bccd->log_and_cont('WARN','main','dhcpd is not running after networking');
     87    }
     88
     89    sleep 15;
     90
    6291        $Bccd->config_nat($nic_conf);
     92
     93    if($rc) {
     94        $Bccd->log_and_cont('INFO','main','dhcpd is running after NAT');
     95    }
     96    else {
     97        $Bccd->log_and_cont('WARN','main','dhcpd is not running after NAT');
     98    }
     99
     100    sleep 15;
    63101
    64102        $rc = touch($LOCK_FILE);
  • bccd-ng/branches/skylar/bccd-3.4.0/trees/bin/bccd-reset-network

    r4986 r4990  
    120120        fatal -m "TFTP server start failed" -r ${RC}
    121121fi
    122 
    123 ${LOGCMD} -p info "Testing DHCP server"
    124 /usr/sbin/invoke-rc.d isc-dhcp-server status
    125 RC=$?
    126 if [ ${RC} -ne 0 ]; then
    127     sleep 15
    128     fatal -m "ISC DHCP server not running!" -r ${RC}
    129 fi
Note: See TracChangeset for help on using the changeset viewer.