|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /usr/share/system-config-network/netconfpkg/tui/ |
Upload File : |
mň
[Tc @ s+ d k Td k l Z d f d YZ d S( ( t *( s ethtoolt
NCTcpIpDialogc B s8 t Z d Z d d Z d Z d Z d Z RS( Nc C sv | | _ t d d | _ t d d | _ t d | _ t d d | _ t d d | _ t d d | _ d S( s
The constructor
@screen A snack screen instance
@devicelist A NCDeviceList
@dev The devernet device. If none given, the first
devernetdevice in devicelist will be used.
If none are there, one will be added.
i t N(
t devt selft Entryt namet hwdevt Checkboxt dynipt statipt netmaskt gw( R R ( ( t: /usr/share/system-config-network/netconfpkg/tui/NCTcpIp.pyt __init__ s c C s | p
| i } n | o÷ | i o | i i | i n | i o | i i | i n | i oD t i | i } | d j p
| d j o | i i d qŤ n | i
o | i i | i
n | i o | i i | i n | i o | i i | i qn d S( s
Set the default values of the fields
according to the given device
@dev The NCDevice (type devernet) to use as default values
t dhcpt bootpR N( R R t DeviceIdR t sett DeviceR t BootProtot stringt lowert bpR t setValuet IPR
t NetmaskR t GatewayR ( R R R ( ( R
t setState s$
c C sW | i i o
t } n t } x0 | i | i | i f D] } | i
t | q9 Wd S( sh
Set the static IP field to enabled/disabled
determined by the dynamic IP field
N( R R t selectedt FLAGS_SETt statet FLAGS_RESETR
R R t it setFlagst
FLAG_DISABLED( R R! R ( ( R
t useDynamicCheckBox1 s
c C sú | i i | i _ | i i | i _ | i i o4 d | i _ d | i _
d | i _ d | i _ nL | i
i | i _
| i i | i _ | i i | i _ d | i _ y t i | i i } Wn t j
o } n X| | i _ d S( sQ
Extracts info from the screen, and puts it into a device object
R N( R R t valueR R R R R R t NoneR R R R
R R t ethtoolt
get_hwaddrt hwaddrt IOErrort errt HardwareAddress( R R+ R) ( ( R
t processInfo>