Changeset 936
- Timestamp:
- May 20, 2022, 5:25:39 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/NetworkConfigRouterOS/Generators/DHCP.php
r887 r936 28 28 $Name = $Interface['DeviceName']; 29 29 if ($Interface['Name'] != '') $Name .= '-'.$Interface['Name']; 30 $Items[] = array('mac-address' => $Interface['MAC'], 'address' => $Interface['LocalIP'], 'server' => $Server, 'comment' => $Name, 'lease-time' => '1d ');30 $Items[] = array('mac-address' => $Interface['MAC'], 'address' => $Interface['LocalIP'], 'server' => $Server, 'comment' => $Name, 'lease-time' => '1d00:00:00'); 31 31 } 32 32 33 print_r($Routerboard->ListUpdate($Path, array('mac-address', 'address', 'server', 'comment' ), $Items, array('server' => $Server, 'dynamic' => 'no')));33 print_r($Routerboard->ListUpdate($Path, array('mac-address', 'address', 'server', 'comment', 'lease-time'), $Items, array('server' => $Server, 'dynamic' => 'no'))); 34 34 echo("\n"); 35 35 }
Note:
See TracChangeset
for help on using the changeset viewer.