| Server IP : 210.245.233.93 / Your IP : 216.73.216.226 Web Server : Apache/2.2.15 (CentOS) System : Linux webserver2.onesolution.com.hk 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64 User : apache ( 48) PHP Version : 5.3.3 Disable Function : exec, shell_exec, system, passthru, popen, proc_open, pcntl_exec MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/system-config-network/netconfpkg/ |
Upload File : |
Ñò
+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>