From d783cb02cdd02f1b07d8100117eb3ee3a48ab84c Mon Sep 17 00:00:00 2001 From: Ilja Rotar Date: Mon, 2 Feb 2026 11:22:01 +0100 Subject: [PATCH 1/6] Add switch connected-machines endpoint --- doc/index.html | 140 +++++++++++ .../admin/v2/adminv2connect/switch.connect.go | 47 +++- go/metalstack/admin/v2/switch.pb.go | 227 +++++++++++++----- go/metalstack/api/v2/switch.pb.go | 99 ++++++-- go/permissions/servicepermissions.go | 93 +++---- .../v2/adminv2connect/SwitchServiceClient.go | 68 ++++++ .../v2/adminv2connect/SwitchServiceHandler.go | 68 ++++++ go/tests/testproto/wrongproject.proto | 29 ++- proto/metalstack/admin/v2/switch.proto | 21 ++ proto/metalstack/api/v2/switch.proto | 9 + python/metalstack/admin/v2/switch_connect.py | 65 +++++ python/metalstack/admin/v2/switch_pb2.py | 61 ++--- python/metalstack/admin/v2/switch_pb2.pyi | 15 ++ python/metalstack/api/v2/switch_pb2.py | 65 ++--- python/metalstack/api/v2/switch_pb2.pyi | 16 ++ 15 files changed, 831 insertions(+), 192 deletions(-) diff --git a/doc/index.html b/doc/index.html index 625d5d2e..0c99af2a 100644 --- a/doc/index.html +++ b/doc/index.html @@ -1484,6 +1484,14 @@

Table of Contents

MSwitchSync +
  • + MSwitchWithMachines +
  • + +
  • + MSwitchWithMachines.ConnectionsEntry +
  • +
  • EBGPState @@ -1511,6 +1519,14 @@

    Table of Contents

    metalstack/admin/v2/switch.proto