mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-16 07:16:38 +00:00
[management] allow local routing peer resource (#5814)
This commit is contained in:
@@ -1980,6 +1980,10 @@ 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
|
||||
|
||||
@@ -2728,6 +2728,9 @@ 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"`
|
||||
}
|
||||
@@ -2745,6 +2748,9 @@ 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.
|
||||
@@ -2763,6 +2769,9 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user