From 8fe071a088905a080210a0459aee18f69889eae7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D7=A0=CF=85=CE=B1=CE=B7=20=D7=A0=CF=85=CE=B1=CE=B7=D1=95?= =?UTF-8?q?=CF=83=CE=B7?= Date: Tue, 7 Apr 2026 17:30:11 -0700 Subject: [PATCH] fix(examples): remove managed field from interface and route output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Managed field is no longer available on interface and route list result types. Update print statements to omit it. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- examples/operations/interface.go | 4 ++-- examples/operations/route.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/operations/interface.go b/examples/operations/interface.go index 365bb56..f3d3e15 100644 --- a/examples/operations/interface.go +++ b/examples/operations/interface.go @@ -83,8 +83,8 @@ func main() { if err := report.Decode("list-interface", &ifaces); err == nil { fmt.Printf("Network interfaces (%d):\n", len(ifaces.Interfaces)) for _, i := range ifaces.Interfaces { - fmt.Printf(" %s: ipv4=%s, state=%s, managed=%v\n", - i.Name, i.IPv4, i.State, i.Managed) + fmt.Printf(" %s: ipv4=%s, state=%s\n", + i.Name, i.IPv4, i.State) } } else { fmt.Println("Interface management requires Netplan (Debian-family only)") diff --git a/examples/operations/route.go b/examples/operations/route.go index ed4cf49..5658305 100644 --- a/examples/operations/route.go +++ b/examples/operations/route.go @@ -83,8 +83,8 @@ func main() { if err := report.Decode("list-route", &routes); err == nil { fmt.Printf("Routes on %s (%d):\n", iface, len(routes.Routes)) for _, r := range routes.Routes { - fmt.Printf(" %s via %s (metric: %d, managed: %v)\n", - r.Destination, r.Gateway, r.Metric, r.Managed) + fmt.Printf(" %s via %s (metric: %d)\n", + r.Destination, r.Gateway, r.Metric) } } else { fmt.Println("Route management requires Netplan (Debian-family only)")