| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/system-config-network/netconfpkg/conf/ |
Upload File : |
Ńň
:ŽJc @ s6 d Z d d k l Z l Z d e f d YZ d S( s% /etc/sysconfig/static-routes handlingi ( t Conft WrongMethodt ConfESStaticRoutesc B sq e Z d Z d Z d Z d Z d Z d Z d Z d Z d Z
d Z d
Z d Z
RS( s` Yet another dictionary, this one for /etc/sysconfig/static-routes
This file has a syntax similar to that of /etc/gateways;
the interface name is added and active/passive is deleted:
<interface> net <netaddr> netmask <netmask> gw <gateway>
The key is the interface, the value is a list of
[<netaddr>, <netmask>, <gateway>] lists
c C s t i | d d d d d S( Ns /etc/sysconfig/static-routest #s t ( R t __init__( t self( ( sF /usr/share/system-config-network/netconfpkg/conf/ConfESStaticRoutes.pyR
s c C s t i | | i d S( N( R t readt initvars( R ( ( sF /usr/share/system-config-network/netconfpkg/conf/ConfESStaticRoutes.pyR s
c C sT h | _ | i x0| i o"| i } t | d j ou | i i | d p- | d | d | d g g | i | d <q7| i | d i | d | d | d g n t | d j om | i i | d p) | d | d d g g | i | d <q7| i | d i | d | d d g n | i q W| i d S( Ni i i i i i t ( t varst rewindt findnextcodelinet getfieldst lent has_keyt appendt nextline( R t var( ( sF /usr/share/system-config-network/netconfpkg/conf/ConfESStaticRoutes.pyR s
-1)-c C s* | i i | o | i | Sg g Sd S( N( R
R ( R t varname( ( sF /usr/share/system-config-network/netconfpkg/conf/ConfESStaticRoutes.pyt __getitem__$ s c C s
t d d S( Ns Delete or call addroute instead( R ( R R t value( ( sF /usr/share/system-config-network/netconfpkg/conf/ConfESStaticRoutes.pyt __setitem__) s c C s | i | =d S( N( R
( R R ( ( sF /usr/share/system-config-network/netconfpkg/conf/ConfESStaticRoutes.pyt __delitem__+ s c C sš | i i | o˘ x t t | i | D] } | t | i | j o` t | i | | | oD g | i | | | d +t | i | d j o | i | =q q- q- Wn d S( Ni i ( R
R t rangeR t cmp( R t devicet routet i( ( sF /usr/share/system-config-network/netconfpkg/conf/ConfESStaticRoutes.pyt delroute/ s c C sO | i | | | i i | o | i | i | n | g | i | <d S( N( R R
R R ( R R R ( ( sF /usr/share/system-config-network/netconfpkg/conf/ConfESStaticRoutes.pyt addroute@ s c C sÔ | i g | _ x | i i D] } x | i | D] } t | d j ok t | d o2 | i | d | d d | d d | d f qť | i | d | d d | d f q7 q7 Wq# Wt i | d S( Ni i t neti t netmaski t gw( R t linesR
t keysR t insertlinelistR t write( R R R ( ( sF /usr/share/system-config-network/netconfpkg/conf/ConfESStaticRoutes.pyR% G s
c C s
| i i S( N( R
R# ( R ( ( sF /usr/share/system-config-network/netconfpkg/conf/ConfESStaticRoutes.pyR# V s c C s | i i | S( N( R
R ( R t key( ( sF /usr/share/system-config-network/netconfpkg/conf/ConfESStaticRoutes.pyR Y s ( t __name__t
__module__t __doc__R R R R R R R R R% R# R ( ( ( sF /usr/share/system-config-network/netconfpkg/conf/ConfESStaticRoutes.pyR s N( R) R R R ( ( ( sF /usr/share/system-config-network/netconfpkg/conf/ConfESStaticRoutes.pyt <module> s