Changeset 11587 for trunk

Show
Ignore:
Timestamp:
11/06/08 08:56:29 (2 months ago)
Author:
ejhernandez@…
Message:

Two wrong calls to EBox::Model::Row API fixed

Location:
trunk/client/dhcp
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/client/dhcp/ChangeLog

    r11490 r11587  
     10.12.100 
     2        + Bugfix: two wrong calls to EBox::Model::Row API fixed 
    130.12.99 
    24        + New release 
    350.12.1 
    4         + Bug fix: use the new EBox::Model::Row api for DHCP options 
     6        + Bug fix: use the new EBox::Model::Row API for DHCP options 
    570.12 
    68        + Make default and max leasing time mandatory fields 
  • trunk/client/dhcp/src/EBox/Model/RangeTable.pm

    r10728 r11587  
    164164                                                     . "with range '{range}': {oldFrom}-{oldTo}", 
    165165                                                     newFrom => $from, newTo => $to, 
    166                                                      range   => $row->valueByElement('name'), 
     166                                                     range   => $row->valueByName('name'), 
    167167                                                     oldFrom => $compareFrom, 
    168168                                                     oldTo   => $compareTo)); 
     
    176176                                                                             . $self->{interface}); 
    177177        foreach my $map ( @{$fixedAddressModel->rows()} ) { 
    178             my $fixedIP = new Net::IP($map->valueByElement('ip')); 
     178            my $fixedIP = new Net::IP($map->valueByName('ip')); 
    179179            unless ( $fixedIP->overlaps($range) == $IP_NO_OVERLAP ) { 
    180180                throw EBox::Exceptions::External(__x('Range {from}-{to} includes fixed ' 
     
    182182                                                     from => $from, 
    183183                                                     to   => $to, 
    184                                                      name => $map->valueByElement('name'), 
    185                                                      fixedIP => $map->valueByElement('ip'), 
     184                                                     name => $map->valueByName('name'), 
     185                                                     fixedIP => $map->valueByName('ip'), 
    186186                                                     )); 
    187187            }