Changeset 4991 in /cluster/svnroot


Ignore:
Timestamp:
Feb 21, 2015 8:23:05 PM (6 years ago)
Author:
skylar
Message:

testing in bccd-nat 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-nat

    r4714 r4991  
    3030my($rc,$out);
    3131
     32($rc,$out) = $Bccd->exec_system([
     33    '/usr/sbin/invoke-rc.d',
     34    'isc-dhcp-server',
     35    'status',
     36]);
     37
     38if($rc == 0) {
     39    $Bccd->log_and_cont('INFO','main','dhcpd is running initially');
     40}
     41else {
     42    $Bccd->log_and_cont('WARN','main','dhcpd is not running initially');
     43}
     44
     45sleep 15;
     46
    3247$rc = $Bccd->config_nat();
    3348if(defined($rc)) {
     49
     50    ($rc,$out) = $Bccd->exec_system([
     51            '/usr/sbin/invoke-rc.d',
     52            'isc-dhcp-server',
     53            'status',
     54        ]);
     55
     56    if($rc == 0) {
     57        $Bccd->log_and_cont('INFO','main','dhcpd is running after config_nat');
     58    }
     59    else {
     60        $Bccd->log_and_cont('WARN','main','dhcpd is not running after config_nat');
     61    }
     62    sleep 15;
    3463        ($rc,$out) = $Bccd->exec_system([
    3564            '/usr/sbin/invoke-rc.d',
     
    4372                $Bccd->log_and_cont("INFO",$0,"$out, RC $rc\n");
    4473        }
     74
     75    ($rc,$out) = $Bccd->exec_system([
     76            '/usr/sbin/invoke-rc.d',
     77            'isc-dhcp-server',
     78            'status',
     79        ]);
     80
     81    if($rc == 0) {
     82        $Bccd->log_and_cont('INFO','main','dhcpd is running after networking');
     83    }
     84    else {
     85        $Bccd->log_and_cont('WARN','main','dhcpd is not running after networking');
     86    }
     87    sleep 15;
    4588}
    4689else {
  • bccd-ng/branches/skylar/bccd-3.4.0/trees/bin/bccd-nic-setup

    r4990 r4991  
    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 
    7151        ($out,$rc) = $Bccd->run_test(
    7252        "system",
     
    8060        }
    8161
    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 
    9162        $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;
    10163
    10264        $rc = touch($LOCK_FILE);
Note: See TracChangeset for help on using the changeset viewer.