This is a cleaned-up version of the code being used in this thread: http://openvswitch.org/pipermail/dev/2015-June/056241.html
Many of the details have changed, so the sample scripts there will not work unchanged. Please see the examples in the ovs-sim(1) manpage. This doesn't include the ovn-trace program that I've been working on. That takes more invasive OVS changes than I'm ready to propose yet. Ben Pfaff (11): netdev-dummy: Report EADDRNOTAVAIL when no IPv4 address is configured. packets: Generalize compose_arp(). netdev-dummy: Implement ARP responder. ofproto-dpif: Allow translation reports to include formatted data. ofproto-dpif-xlate: Add native tunnel information to ofproto/trace. dpif: Generalize test for dummy dpifs beyond the name. netdev: Initialize at the beginning of netdev_unregister_provider(). dummy: Introduce new --enable-dummy=system option. xml2nroff: Add support for variable substitutions. ovn-nbctl: Take default database target from OVN_NB_DB in environment. ovs-sim: New utility for multi-node OVS and OVN simulation. Makefile.am | 1 + NEWS | 2 + build-aux/xml2nroff | 30 +++- lib/dpif-netdev.c | 27 +++- lib/dpif-netdev.h | 4 +- lib/dpif.c | 6 +- lib/dummy.c | 28 +++- lib/dummy.h | 19 ++- lib/netdev-dummy.c | 64 +++++--- lib/netdev.c | 2 + lib/packets.c | 28 ++-- lib/packets.h | 11 +- ofproto/ofproto-dpif-xlate.c | 31 +++- ofproto/ofproto-dpif-xlate.h | 5 +- ofproto/ofproto-dpif.c | 36 +++-- ovn/automake.mk | 17 +- ovn/ovn-nbctl.8.xml | 38 +++-- ovn/ovn-nbctl.c | 5 +- python/build/nroff.py | 2 +- utilities/automake.mk | 4 + utilities/ovs-sim.1.xml | 323 +++++++++++++++++++++++++++++++++++++ utilities/ovs-sim.in | 368 +++++++++++++++++++++++++++++++++++++++++++ vswitchd/ovs-vswitchd.c | 4 +- 23 files changed, 961 insertions(+), 94 deletions(-) create mode 100644 utilities/ovs-sim.1.xml create mode 100755 utilities/ovs-sim.in -- 2.1.3 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev