def print_ofpt_multipart_request_port_desc(msg): """ Args: msg: OpenFlow message unpacked by python-openflow """ flags = green(dissector.get_multipart_request_flags(msg.flags.value)) print(' Port_Desc(13): Flags: %s Pad: %s' % (flags, msg.pad))
def print_ofpt_multipart_request_meter_features(msg): """ Args: msg: OpenFlow message unpacked by python-openflow """ flags = green(dissector.get_multipart_request_flags(msg.flags.value)) print(' Meter_Features(11): Flags: %s Pad: %s' % (flags, msg.pad))
def print_ofpt_multipart_request_meter_config(msg): """ Args: msg: OpenFlow message unpacked by python-openflow """ flags = green(dissector.get_multipart_request_flags(msg.flags.value)) print(' Meter_Config(10): Flags: %s Pad: %s Meter_ID: %s Pad: %s' % (flags, msg.pad, msg.meter_id, msg.pad))
def print_ofpt_multipart_request_group(msg): """ Args: msg: OpenFlow message unpacked by python-openflow """ flags = green(dissector.get_multipart_request_flags(msg.flags.value)) print(' Group(6): Flags: %s Pad: %s Group_ID: %s Pad: %s' % (flags, msg.pad, msg.group_id, msg.pad))
def print_ofpt_multipart_request(msg): # Print main multipart_request options string = 'Body - Type: %s Flags: %s Pad: %s' flags = green(dissector.get_multipart_request_flags(msg.flags.value)) print(string % (msg.multipart_type, flags, msg.pad)) return 0
def print_print_ofpt_multipart_request_queue(msg): """ Args: msg: OpenFlow message unpacked by python-openflow """ port_number = dissector.get_phy_port_no(msg.port_no.value) flags = green(dissector.get_multipart_request_flags(msg.flags.value)) print(' Queue(5): Flags: %s Pad: %s Port_Number: %s Queue_id: %s' % (flags, msg.pad, green(port_number), msg.queue_id))
def print_ofps_multipart_request_experimenter(msg): """ Args: msg: OpenFlow message unpacked by python-openflow """ flags = green(dissector.get_multipart_request_flags(msg.flags.value)) print( ' Experimenter(65535): Flags: %s Pad: %s Experimenter_ID: %s Experimenter_Type: %s' % (flags, msg.pad, msg.experimenter_id.value, msg.experimenter_type))
def print_ofpt_multipart_request_table_features(msg): """ Args: msg: OpenFlow message unpacked by python-openflow """ flags = green(dissector.get_multipart_request_flags(msg.flags.value)) print( ' Table_Features(12): Flags: %s Pad: %s Lenght: %s Table_ID: %s Pad: %s' 'Name: %s Metadata_Match: %s Metadata_Write: %s Config: %s Max_entries: %s' % (flags, msg.pad, msg.lenght, msg.table_id, msg.pad, msg.name, msg.metadata_match, msg.metadata_write, msg.config, msg.max_entries))
def print_ofpt_multipart_request_flow_aggregate(msg): """ Args: msg: OpenFlow message unpacked by python-openflow """ out_port = dissector.get_phy_port_no(msg.out_port.value) flags = green(dissector.get_multipart_request_flags(msg.flags.value)) if msg.multipart_type.value == 1: print(' Flow(1): ', end='') else: print(' Aggregate(2): ', end='') print( 'Flags: % s Pad: % s Table_id: % s Pad: % s Out_Port: % s Out_group: % s Pad: %s Cookie: %s ' 'Cookie_Mask: %s' % (flags, msg.pad, msg.table_id.value, msg.pad, out_port, msg.out_group, msg.pad, msg.cookie, msg.cookie_mask)) print_match_type(msg.match)