Setting tag sliver-openvswitch-2.2.90-1
[sliver-openvswitch.git] / tests / ovsdb-macros.at
1 dnl OVSDB_INIT([$1])
2 dnl
3 dnl Creates an empty database named $1.
4 m4_define([OVSDB_INIT],
5   [OVS_RUNDIR=`pwd`; export OVS_RUNDIR
6    AT_CHECK(
7      [ovsdb-tool create $1 $abs_top_srcdir/vswitchd/vswitch.ovsschema],
8      [0], [stdout], [ignore])
9    AT_CHECK(
10      [[ovsdb-tool transact $1 \
11         '["Open_vSwitch",
12           {"op": "insert",
13            "table": "Open_vSwitch",
14            "row": {}}]']],
15      [0], [ignore], [ignore])])