summaryrefslogtreecommitdiff
path: root/tests/netdev-type.at
blob: c62a81f9cda5452d96d1589bf782a06493bc0368 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
AT_BANNER([netdev-type])

dnl Setting MAC address of netdev internal port fails
AT_SETUP([bridge - set MAC address of internal port])
OVS_VSWITCHD_START

# Add an internal port and make sure that it shows up in the datapath.
add_of_ports br0 1
AT_CHECK([ovs-appctl dpif/show], [0], [dnl
dummy@ovs-dummy: hit:0 missed:0
  br0:
    br0 65534/100: (dummy-internal)
    p1 1/1: (dummy)
])
#
# Set MAC address of dummy device and check that it has been set
AT_CHECK([ovs-vsctl set Interface p1 type=internal mac=\"aa:55:c0:ff:ee:00\"])
AT_CHECK([ovs-vsctl get Interface p1 mac_in_use], [0], [dnl
"aa:55:c0:ff:ee:00"
])

OVS_APP_EXIT_AND_WAIT([ovs-vswitchd])
OVS_APP_EXIT_AND_WAIT([ovsdb-server])
AT_CLEANUP