Changeset 27 for trunk/tool/renetcolGUI_0_0_3.py
- Timestamp:
- 04/05/07 18:10:36 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/tool/renetcolGUI_0_0_3.py
r18 r27 589 589 coll_hbox.set_border_width(5) 590 590 coll_frame.add(coll_hbox) 591 button = gtk.CheckButton(" router ")591 ## button = gtk.CheckButton(" router ") 592 592 button.connect("toggled", callback_check_rule, None) 593 593 coll_hbox.pack_start(button, False, False, 0) 594 mainTT.set_tip(button, "Check it to capture all flows from one router and enter the IPv4 address of this router. NOT SUPPORTED IN THIS RELEASE")595 button.show()594 mainTT.set_tip(button, "Check it to capture all flows from one router and enter the IPv4 address of this router. IN TEST") 595 ## button.show() 596 596 coll_pbbox = gtk.HButtonBox() 597 597 coll_hbox.pack_start(coll_pbbox, False, True, 5) 598 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. 2, you can compare the following fields:\nIPV4_SRC_ADDR: 8\nIPV4_DST_ADDR: 12\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)598 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\nIPV4_SRC_ADDR: 8\nIPV4_DST_ADDR: 12\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) 599 599 coll_frame2 = gtk.Frame("Disable rules") 600 600 coll_vbox.pack_start(coll_frame2, False, False, 5) … … 724 724 operator = rule[1] 725 725 value = rule[2] 726 if (field==' 8' or field=='12' or field=='15' or field=='18' or field=='47'):726 if (field=='0' or field=='8' or field=='12' or field=='15' or field=='18' or field=='47'): 727 727 if (re.match('^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(/\d{1,2})?$',value)): 728 728 splitter = value.split('/') … … 992 992 993 993 print "---------------------------------------------------------------" 994 print "In this version 0.0. 3, you can apply rules on the collector based on the following fields:"994 print "In this version 0.0.7, you can apply rules on the collector based on the following fields:" 995 995 print "IPV4_SRC_ADDR: 8," 996 996 print "IPV4_DST_ADDR: 12," … … 1002 1002 print "IPV6_NEXT_HOP: 62," 1003 1003 print "BPG_IPV6_NEXT_HOP: 63," 1004 print "IP_PROTOCOL_VERSION: 60" 1004 print "IP_PROTOCOL_VERSION: 60, please note that the IPv4 template don't have this field" 1005 print "ROUTER_SRC_ADDR: 0, here it's not a real number for a field" 1005 1006 print "----------------------------------------------------------------" 1006 1007