summaryrefslogtreecommitdiff
path: root/tests/ovsdb-macros.at
blob: c1aa619c3a951a79794c50633c5012dedbea722b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
dnl OVSDB_INIT([$1])
dnl
dnl Creates an empty database named $1.
m4_define([OVSDB_INIT],
  [AT_CHECK(
     [ovsdb-tool create $1 $abs_top_srcdir/vswitchd/vswitch.ovsschema],
     [0], [stdout], [ignore])
   AT_CHECK(
     [[ovsdb-tool transact $1 \
        '["Open_vSwitch",
          {"op": "insert",
           "table": "Open_vSwitch",
           "row": {}}]']],
     [0], [ignore], [ignore])])