Ñò
+z2Wc @ sˆ d d k Z d d k l Z l Z l Z d e f d „ ƒ YZ e i d ƒ Z e i d ƒ Z d „ Z d „ Z
d e f d
„ ƒ YZ d S( iÿÿÿÿN( t Gdtstructt gdtstruct_propertiest Gdtstrt
Route_basec B sK e Z e d e d f d e d f d e d f d e d f g ƒ d „ Z RS( t Addresss Test doc stringt Netmaskt Gatewayt
GatewayDevicec C s; t t | ƒ i ƒ d | _ d | _ d | _ d | _ d S( N( t superR t __init__t NoneR R R R ( t self( ( s6 /usr/share/system-config-network/netconfpkg/NCRoute.pyR s
( t __name__t
__module__R R R ( ( ( s6 /usr/share/system-config-network/netconfpkg/NCRoute.pyR s sU ^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$s' ^([0-9a-fA-F]{2}[-:]){5}[0-9a-fA-F]{2}$c C s t i | ƒ o t St Sd S( N( t _ip_patternt matcht Truet False( t value( ( s6 /usr/share/system-config-network/netconfpkg/NCRoute.pyt testIP s c C s t i | ƒ o t St Sd S( N( t _mac_patternR R R ( R ( ( s6 /usr/share/system-config-network/netconfpkg/NCRoute.pyt testMAC# s t Routec B s, e Z d „ Z d „ Z d „ Z d „ Z RS( c C s* t t | ƒ i ƒ } | p
t ‚ n t S( N( R R t testt
ValueErrorR ( R t all_ok( ( s6 /usr/share/system-config-network/netconfpkg/NCRoute.pyR * s
c C s
t | i ƒ S( N( R R ( R ( ( s6 /usr/share/system-config-network/netconfpkg/NCRoute.pyt testAddress0 s c C s | i p t St | i ƒ Sd S( s check for consistencyN( R R R ( R ( ( s6 /usr/share/system-config-network/netconfpkg/NCRoute.pyt testGateway3 s
c C s | i p t St | i ƒ Sd S( s check for consistencyN( R R R ( R ( ( s6 /usr/share/system-config-network/netconfpkg/NCRoute.pyt testNetmask> s
( R R
R R R R ( ( ( s6 /usr/share/system-config-network/netconfpkg/NCRoute.pyR ) s ( t ret netconfpkg.gdtR R R R t compileR R R R R ( ( ( s6 /usr/share/system-config-network/netconfpkg/NCRoute.pyt