Revert "[management] allow local routing peer resource (#5814)" (#5847)

This commit is contained in:
Pascal Fischer
2026-04-10 14:53:47 +02:00
committed by GitHub
parent 2a8aacc5c9
commit ee588e1536
7 changed files with 50 additions and 134 deletions

View File

@@ -1980,10 +1980,6 @@ components:
description: Network resource status
type: boolean
example: true
on_routing_peer:
description: Indicate if the resource is on a routing peer or not. It is needed if the resource is targeting the IP of the routing peer itself
type: boolean
example: true
required:
- name
- address

View File

@@ -2728,9 +2728,6 @@ type NetworkResource struct {
// Name Network resource name
Name string `json:"name"`
// OnRoutingPeer Indicate if the resource is on a routing peer or not. It is needed if the resource is targeting the IP of the routing peer itself
OnRoutingPeer *bool `json:"on_routing_peer,omitempty"`
// Type Network resource type based of the address
Type NetworkResourceType `json:"type"`
}
@@ -2748,9 +2745,6 @@ type NetworkResourceMinimum struct {
// Name Network resource name
Name string `json:"name"`
// OnRoutingPeer Indicate if the resource is on a routing peer or not. It is needed if the resource is targeting the IP of the routing peer itself
OnRoutingPeer *bool `json:"on_routing_peer,omitempty"`
}
// NetworkResourceRequest defines model for NetworkResourceRequest.
@@ -2769,9 +2763,6 @@ type NetworkResourceRequest struct {
// Name Network resource name
Name string `json:"name"`
// OnRoutingPeer Indicate if the resource is on a routing peer or not. It is needed if the resource is targeting the IP of the routing peer itself
OnRoutingPeer *bool `json:"on_routing_peer,omitempty"`
}
// NetworkResourceType Network resource type based of the address