Changeset 62 for trunk/tool

Show
Ignore:
Timestamp:
01/08/08 11:16:42 (15 years ago)
Author:
andreu
Message:

Flow selection from AS number (source or destination)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/tool/renetcolGUI.py

    r58 r62  
    11 
    2 ##  File: renetcolGUI_0_0_7.py 
     2##  File: renetcolGUI.py 
    33   
    44##  Authors: ANDREU Francois-Xavier  
     
    616616            coll_pbbox = gtk.HButtonBox() 
    617617            coll_hbox.pack_start(coll_pbbox, False, True, 5) 
    618             prefix_entry(45, "Required Format : \n <field> <operation> <address>\nlike 8 = 10.0.0.1 \nor 8 = 10.0.1.0/24 \nor 27 = 2001::1 \nor 27 = 2001::/64 (IPv6 address only on Linux system)\nonly '=' operator for the moment\n------------------------------\nIn this version 0.0.7, you can compare the following fields:\nROUTER_SRC_ADDR: 0\nIN_BYTES: 1\nL4_SRC_PORT: 7\nIPV4_SRC_ADDR: 8\nINPUT_SNMP: 10\nL4_DST_PORT: 11\nIPV4_DST_ADDR: 12\nOUTPUT_SNMP: 14\nIPV4_NEXT_HOP: 15\nBGP_IPV4_NEXT_HOP: 18\nIPV6_SRC_ADDR: 27\nIPV6_DST_ADDR: 28\nIPV6_NEXT_HOP: 62\nBPG_IPV6_NEXT_HOP: 63\nIP_PROTOCOL_VERSION: 60\n---------------------------", coll_pbbox, "", 0) 
     618            prefix_entry(45, "Required Format : \n <field> <operation> <address>\nlike 8 = 10.0.0.1 \nor 8 = 10.0.1.0/24 \nor 27 = 2001::1 \nor 27 = 2001::/64 (IPv6 address only on Linux system)\nonly '=' operator for the moment\n------------------------------\nIn this version 0.0.7, you can compare the following fields:\nROUTER_SRC_ADDR: 0\nIN_BYTES: 1\nL4_SRC_PORT: 7\nIPV4_SRC_ADDR: 8\nINPUT_SNMP: 10\nL4_DST_PORT: 11\nIPV4_DST_ADDR: 12\nOUTPUT_SNMP: 14\nIPV4_NEXT_HOP: 15\nSRC_AS: 16\nDST_AS: 17\nBGP_IPV4_NEXT_HOP: 18\nIPV6_SRC_ADDR: 27\nIPV6_DST_ADDR: 28\nIPV6_NEXT_HOP: 62\nBPG_IPV6_NEXT_HOP: 63\nIP_PROTOCOL_VERSION: 60\n---------------------------", coll_pbbox, "", 0) 
    619619            coll_frame2 = gtk.Frame("Disable rules") 
    620620            coll_vbox.pack_start(coll_frame2, False, False, 5) 
     
    796796                    check_dialog( widget, None, "Wrong value, must be < 65536 !") 
    797797                    is_good = 0 
    798             if (field=='10' or field=='14'): 
     798            if (field=='10' or field=='14' or field=='16' or field=='17'): 
    799799                if (int(value) < 65536): 
    800800                    is_good = 1 
     
    10541054    print "OUTPUT_SNMP: 14," 
    10551055    print "IPV4_NEXT_HOP: 15," 
     1056    print "SRC_AS: 16," 
     1057    print "DST_AS: 17," 
    10561058    print "BGP_IPV4_NEXT_HOP: 18," 
    10571059    print "IPV6_SRC_ADDR: 27,"