Skip to content

Commit d5287d6

Browse files
author
Fernando Alvarez
committed
Rename macvlan/vtap devices to kvm-macvlan/vtap
This way they are easier to indentify and delete in a net=host network
1 parent 1cd5db1 commit d5287d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

startvm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ configureNetworks () {
148148
fi
149149

150150
local CIDR=$(ip address show dev $iface | awk "/inet $IP/ { print \$2 }" | cut -f2 -d/)
151-
local vtapdev="macvtap$i"
152-
local vlandev="macvlan$i"
151+
local vtapdev="kvm-macvtap$i"
152+
local vlandev="kvm-macvlan$i"
153153

154154
# macvtap device creation for the VM
155155
ip link add link $iface name $vtapdev type macvtap mode bridge

0 commit comments

Comments
 (0)