Skip to content

Commit 37597ad

Browse files
committed
clean orphaned namespaces
Signed-off-by: Ashraf Fouda <ashraf.m.fouda@gmail.com>
1 parent 12f87d9 commit 37597ad

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

cmds/modules/networkd/main.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ func action(cli *cli.Context) error {
7272
return errors.Wrap(err, "failed to cleanupUnusedLinks")
7373
}
7474

75+
if err := network.CleanupOrphanedNamespaces(); err != nil {
76+
return errors.Wrap(err, "failed to CleanupOrphanedNamespaces")
77+
}
78+
7579
if err := bootstrap.DefaultBridgeValid(); err != nil {
7680
return errors.Wrap(err, "invalid setup")
7781
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ require (
1717
github.com/threefoldtech/tfchain/clients/tfchain-client-go v0.0.0-20250901133903-8d32a808fb79
1818
github.com/threefoldtech/tfgrid-sdk-go/rmb-sdk-go v0.17.0
1919
github.com/threefoldtech/zbus v1.0.1
20-
github.com/threefoldtech/zosbase v0.1.11-0.20250922095337-a7471b585e7c
20+
github.com/threefoldtech/zosbase v0.1.11-0.20250928142545-9494db6add08
2121
github.com/urfave/cli/v2 v2.17.2-0.20221006022127-8f469abc00aa
2222
gopkg.in/yaml.v2 v2.4.0
2323
)

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -562,8 +562,8 @@ github.com/threefoldtech/tfgrid-sdk-go/rmb-sdk-go v0.17.0 h1:qlc7VPBbtEAL82QXNeT
562562
github.com/threefoldtech/tfgrid-sdk-go/rmb-sdk-go v0.17.0/go.mod h1:3+lkMhIwj1pmgcDSVKNDsbiF4DJE5ewWkWE6na5iEj4=
563563
github.com/threefoldtech/zbus v1.0.1 h1:3KaEpyOiDYAw+lrAyoQUGIvY9BcjVRXlQ1beBRqhRNk=
564564
github.com/threefoldtech/zbus v1.0.1/go.mod h1:E/v/xEvG/l6z/Oj0aDkuSUXFm/1RVJkhKBwDTAIdsHo=
565-
github.com/threefoldtech/zosbase v0.1.11-0.20250922095337-a7471b585e7c h1:m/MaWlVSJ7097CkrkW7Eqzlfl24eMV4PlYbkXoMafnM=
566-
github.com/threefoldtech/zosbase v0.1.11-0.20250922095337-a7471b585e7c/go.mod h1:Gz2af8Y35gqplt5dTIOqoRUpDI1mNal1hKzD2BoqWpU=
565+
github.com/threefoldtech/zosbase v0.1.11-0.20250928142545-9494db6add08 h1:UNihG1KtQlD7npGeViWxR2UoZymRsH/l041R+Ucq8zo=
566+
github.com/threefoldtech/zosbase v0.1.11-0.20250928142545-9494db6add08/go.mod h1:Gz2af8Y35gqplt5dTIOqoRUpDI1mNal1hKzD2BoqWpU=
567567
github.com/tinylib/msgp v1.1.5 h1:2gXmtWueD2HefZHQe1QOy9HVzmFrLOVvsXwXBQ0ayy0=
568568
github.com/tinylib/msgp v1.1.5/go.mod h1:eQsjooMTnV42mHu917E26IogZ2930nFyBQdofk10Udg=
569569
github.com/tklauser/go-sysconf v0.3.12 h1:0QaGUFOdQaIVdPgfITYzaTegZvdCjmYO52cSFAEVmqU=

0 commit comments

Comments
 (0)