From b8ff7474c35405eb91daaffa6fee5e324238a75f Mon Sep 17 00:00:00 2001 From: Fedor Korotkov Date: Sun, 5 Feb 2023 12:56:23 -0500 Subject: [PATCH] Removed `--with-softnet` flag (#401) Fixes #276 --- Sources/tart/Commands/Run.swift | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Sources/tart/Commands/Run.swift b/Sources/tart/Commands/Run.swift index f7bbedb..2ab472c 100644 --- a/Sources/tart/Commands/Run.swift +++ b/Sources/tart/Commands/Run.swift @@ -38,9 +38,6 @@ struct Run: AsyncParsableCommand { + "Note that this feature is experimental and there may be bugs present when using VNC.")) var vncExperimental: Bool = false - @Flag(help: ArgumentHelp(visibility: .private)) - var withSoftnet: Bool = false - @Option(help: ArgumentHelp(""" Additional disk attachments with an optional read-only specifier\n(e.g. --disk=\"disk.bin\" --disk=\"ubuntu.iso:ro\") """, discussion: """ @@ -88,11 +85,6 @@ struct Run: AsyncParsableCommand { if vnc && vncExperimental { throw ValidationError("--vnc and --vnc-experimental are mutually exclusive") } - - if withSoftnet && netBridged != nil { - throw ValidationError("--with-softnet and --net-bridged are mutually exclusive") - } - if netBridged != nil && netSoftnet { throw ValidationError("--net-bridged and --net-softnet are mutually exclusive") } @@ -203,7 +195,7 @@ struct Run: AsyncParsableCommand { } func userSpecifiedNetwork(vmDir: VMDirectory) throws -> Network? { - if withSoftnet || netSoftnet { + if netSoftnet { let config = try VMConfig.init(fromURL: vmDir.configURL) return try Softnet(vmMACAddress: config.macAddress.string)