Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

Commit

Permalink
scripts/xen-guest: Remove deprecated netmapfront option
Browse files Browse the repository at this point in the history
Removes the ability to attach a `netmapfront` network device.
This is a non-upstream feature and uncommon on most Xen
deployments.

Signed-off-by: Simon Kuenzer <[email protected]>
  • Loading branch information
skuenzer authored and nderjung committed Mar 21, 2022
1 parent 3f1feb7 commit b9893d7
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions scripts/xen-guest
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,6 @@ usage()
echo " Note: An 172.62.<random>.0/30 network is created, no DNS is provided"
echo " -b [BRIDGE] Attach a virtual NIC (netfront) to an existing Linux bridge BRIDGE"
echo " -o [OVS] Attach a virtual NIC (netfront) to an existing Open vSwitch SWITCH"
echo " -V [BRIDGE] Attach a virtual NIC (netmapfront) to a vale bridge BRIDGE"
echo " -d [IMAGE/DEVICE] Attach a block storage device based on a raw IMAGE/DEVICE"
echo " -k [KERNEL] KERNEL image to boot directly"
echo " -i [INITRD] Init-ramdisk INITRD for -k"
Expand All @@ -305,7 +304,7 @@ usage()
echo " $0 -c 2 -m 2048 -b virbr0 -b virbr1 -k vmlinuz -d root.raw -d /dev/sdb -d /dev/sdc"
}

while getopts :h:nb:o:V:d:k:i:a:c:m:p:xDG:g:P OPT; do
while getopts :h:nb:o:d:k:i:a:c:m:p:xDG:g:P OPT; do
case ${OPT} in
n)
if [ "$HAS_NATVIF" -ne 0 -a "$NICID" -ne 0 ]; then
Expand All @@ -322,10 +321,6 @@ while getopts :h:nb:o:V:d:k:i:a:c:m:p:xDG:g:P OPT; do
VIFS_CFG+="'bridge=${OPTARG},mac=$( _netdev_hwaddr ${NICID} ),script=vif-openvswitch', "
(( NICID++ ))
;;
V)
VIFS_CFG+="'type=nmif,bridge=${OPTARG},mac=$( _netdev_hwaddr ${NICID} ),script=nmif-vale', "
(( NICID++ ))
;;
d)
if [ -b "$OPTARG" ]; then
DISKS_CFG+="'phy:${OPTARG},$( diskid2xvd $DISKID ),rw', "
Expand Down

0 comments on commit b9893d7

Please sign in to comment.