Merge pull request #27598 from shiavm006/remove-deprecated-macvlan-flag

Remove deprecated --macvlan flag from network create
This commit is contained in:
openshift-merge-bot[bot]
2025-11-26 10:48:46 +00:00
committed by GitHub
3 changed files with 1 additions and 27 deletions

View File

@@ -550,19 +550,6 @@ var _ = Describe("Podman network", func() {
Expect(c3).Should(ExitCleanly())
})
It("podman network create/remove macvlan", func() {
net := "macvlan" + stringid.GenerateRandomID()
nc := podmanTest.Podman([]string{"network", "create", "--macvlan", "lo", net})
nc.WaitWithDefaultTimeout()
defer podmanTest.removeNetwork(net)
// Cannot ExitCleanly(): "The --macvlan option is deprecated..."
Expect(nc).Should(Exit(0))
nc = podmanTest.Podman([]string{"network", "rm", net})
nc.WaitWithDefaultTimeout()
Expect(nc).Should(ExitCleanly())
})
It("podman network create/remove macvlan as driver (-d) no device name", func() {
net := "macvlan" + stringid.GenerateRandomID()
nc := podmanTest.Podman([]string{"network", "create", "-d", "macvlan", net})