Ejemplo n.º 1
0
    def print_ofps_stats_request_vendor(msg):
        """

        Args:
            msg: OpenFlow message unpacked by python-openflow
        """
        vendor_id = dissector.get_ofp_vendor(msg.body[0].vendor.value)
        print('StatReq Type: Vendor(%s): Vendor_ID: %s' %
              (hex(msg.body_type.value), vendor_id))
        print("StatReq Vendor Data:")
        hexdump(msg.body[0].body.value)
Ejemplo n.º 2
0
def print_ofpt_vendor(msg):
    """ Prints OFPT_VENDOR messages. Any vendor can extend the OpenFlow
    specification with new messages. OVS/NICIRA uses this message a lot.
    We do not dissect vendor-specific messages but it would be great to have
    such support (which means we are looking for volunteers!).

    Args:
        msg: OpenFlow message unpacked by python-openflow
    """
    vendor = dissector.get_ofp_vendor(msg.vendor.value)
    print('OpenFlow Vendor: %s' % vendor)