• Aaron Conole's avatar
    ovs-tcpdump: Add a tcpdump wrapper utility · 314ce647
    Aaron Conole authored
    Currently, there is some documentation which describes setting up and
    using port mirrors for bridges. This documentation is helpful to setup
    a packet capture for specific ports.
    
    However, a utility to do such packet capture would be valuable, both
    as an exercise in documenting the steps an additional time, and as a way
    of providing an out-of-the-box experience for running a capture.
    
    This commit adds a tcpdump-wrapper utility for such purpose. It uses the
    Open vSwitch python library to add/remove ports and mirrors to/from the
    Open vSwitch database. It will create a tcpdump instance listening on
    the mirror port (allowing the user to specify additional arguments), and
    dump data to the screen (or otherwise).
    Signed-off-by: default avatarAaron Conole <aconole@redhat.com>
    Signed-off-by: default avatarBen Pfaff <blp@ovn.org>
    Acked-by: default avatarFlavio Leitner <fbl@sysclose.org>
    314ce647