File: netdev-type.at

package info (click to toggle)
openvswitch 3.1.0-2%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 74,132 kB
  • sloc: sh: 1,075,572; ansic: 303,476; python: 22,274; xml: 21,185; makefile: 553; javascript: 191
file content (24 lines) | stat: -rw-r--r-- 702 bytes parent folder | download | duplicates (7)
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