/[soft]/drakx-net/trunk/lib/network/connection.pm
ViewVC logotype

Diff of /drakx-net/trunk/lib/network/connection.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 408 by dmorgan, Thu Feb 3 19:54:25 2011 UTC revision 409 by dmorgan, Thu Feb 3 20:01:53 2011 UTC
# Line 151  sub load_interface_settings { Line 151  sub load_interface_settings {
151      $self->{control}{mtu} = $self->{ifcfg}{MTU};      $self->{control}{mtu} = $self->{ifcfg}{MTU};
152      $self->{control}{accounting} = $self->{ifcfg}{ACCOUNTING};      $self->{control}{accounting} = $self->{ifcfg}{ACCOUNTING};
153      $self->{control}{nm_controlled} = $self->{ifcfg}{NM_CONTROLLED};      $self->{control}{nm_controlled} = $self->{ifcfg}{NM_CONTROLLED};
154        $self->{control}{uuid} = $self->{ifcfg}{UUID};
155        $self->{control}{name} = $self->{ifcfg}{NAME};
156        $self->{control}{last_connect} = $self->{ifcfg}{LAST_CONNECT};
157  }  }
158    
159  #- override to return 1 if the connection network scan is slow  #- override to return 1 if the connection network scan is slow
# Line 261  sub build_ifcfg_settings { Line 264  sub build_ifcfg_settings {
264          USERCTL => bool2yesno($self->{control}{userctl}),          USERCTL => bool2yesno($self->{control}{userctl}),
265          METRIC => $self->{control}{metric},          METRIC => $self->{control}{metric},
266          MTU => $self->{control}{mtu},          MTU => $self->{control}{mtu},
267            UUID => $self->{control}{uuid},
268            NAME => $self->{control}{name},
269            LAST_CONNECT => $self->{control}{last_connect},
270          VPN_TYPE => defined $self->{control}{vpn} && $self->{control}{vpn}->get_type,          VPN_TYPE => defined $self->{control}{vpn} && $self->{control}{vpn}->get_type,
271          VPN_NAME => defined $self->{control}{vpn} && $self->{control}{vpn}->get_name,          VPN_NAME => defined $self->{control}{vpn} && $self->{control}{vpn}->get_name,
272          #- FIXME: add MS_DNSx variables if DNS servers are specified          #- FIXME: add MS_DNSx variables if DNS servers are specified

Legend:
Removed from v.408  
changed lines
  Added in v.409

  ViewVC Help
Powered by ViewVC 1.1.30