address fix

This commit is contained in:
Tomas Kloda
2025-12-18 11:32:20 +01:00
parent f975547220
commit 8fd8e05255
7 changed files with 14 additions and 14 deletions
+4 -4
View File
@@ -14,7 +14,7 @@ This collection provides comprehensive management of NetBird resources:
- **Setup Keys** - Create enrollment keys for new peers
- **Policies** - Define network access rules between groups
- **Networks** - Configure network routing with routers and resources
- IP/CIDR routing (`10.0.0.0/8`, `192.168.1.0/24`)
- IP/CIDR routing (`172.16.0.0/16`, `192.168.1.0/24`)
- Domain-based routing (`example.com`, `*.corp.example.com`)
- High availability with multiple routers and metrics
- **Routes** - Manage legacy routes (deprecated, use Networks instead)
@@ -235,7 +235,7 @@ Manage NetBird networks with routers and resources. This module provides full ro
metric: 100
masquerade: true
resources:
- address: "10.0.0.0/8"
- address: "172.16.0.0/16"
name: "internal-range"
description: "All internal IPs"
groups:
@@ -316,7 +316,7 @@ Manage NetBird routes (deprecated API, prefer `netbird_network` with routers/res
api_url: "{{ netbird_api_url }}"
api_token: "{{ netbird_api_token }}"
network_id: "internal-route"
network: "10.0.0.0/8"
network: "172.16.0.0/16"
description: "Route to internal network"
peer_id: "gateway-peer-id"
metric: 100
@@ -501,7 +501,7 @@ The collection includes a role for declarative configuration:
metric: 100
masquerade: true
resources:
- address: "10.0.0.0/8"
- address: "172.16.0.0/16"
name: "internal-range"
groups: ["developers-group-id"]
- address: "*.internal.example.com"
+2 -2
View File
@@ -82,7 +82,7 @@ netbird_networks: []
# metric: 200
# masquerade: true
# resources:
# - address: "10.0.0.0/8" # Network CIDR
# - address: "172.16.0.0/16" # Network CIDR
# name: "internal-range"
# description: "All internal IPs"
# groups: # Who can access this resource
@@ -119,7 +119,7 @@ netbird_routes: []
# Example:
# netbird_routes:
# - network_id: "internal-route"
# network: "10.0.0.0/8"
# network: "172.16.0.0/16"
# description: "Route to internal network"
# peer_id: "gateway-peer-id"
# metric: 100
+1 -1
View File
@@ -91,7 +91,7 @@
metric: 100
masquerade: true
resources:
- address: "10.0.0.0/8"
- address: "172.16.0.0/16"
name: "internal-range"
description: "All internal IP addresses"
groups:
+2 -2
View File
@@ -114,7 +114,7 @@
checks:
peer_network_range_check:
ranges:
- "10.0.0.0/8"
- "172.16.0.0/16"
- "192.168.0.0/16"
- "172.16.0.0/12"
action: "allow"
@@ -133,7 +133,7 @@
metric: 200
masquerade: true
resources:
- address: "10.0.0.0/8"
- address: "172.16.0.0/16"
name: "internal-networks"
description: "All internal IP ranges"
groups: [] # Will be updated with group IDs
+3 -3
View File
@@ -85,7 +85,7 @@ options:
address:
description:
- Network address, CIDR, or domain name.
- Supports direct hosts (1.1.1.1), subnets (10.0.0.0/8), domains (example.com), and wildcards (*.example.com).
- Supports direct hosts (1.1.1.1), subnets (172.16.0.0/16), domains (example.com), and wildcards (*.example.com).
type: str
required: true
name:
@@ -135,7 +135,7 @@ EXAMPLES = r'''
metric: 100
masquerade: true
resources:
- address: "10.0.0.0/8"
- address: "172.16.0.0/16"
name: "internal-range"
description: "All internal IPs"
groups:
@@ -208,7 +208,7 @@ EXAMPLES = r'''
metric: 100
masquerade: true
resources:
- address: "10.0.0.0/8"
- address: "172.16.0.0/16"
name: "internal-range"
groups:
- "all-users-group-id"
+1 -1
View File
@@ -160,7 +160,7 @@ EXAMPLES = r'''
checks:
peer_network_range_check:
ranges:
- "10.0.0.0/8"
- "172.16.0.0/16"
- "192.168.0.0/16"
action: "allow"
state: present
+1 -1
View File
@@ -97,7 +97,7 @@ EXAMPLES = r'''
api_url: "https://netbird.example.com"
api_token: "{{ netbird_token }}"
network_id: "internal-route"
network: "10.0.0.0/8"
network: "172.16.0.0/16"
description: "Route to internal network"
peer_id: "gateway-peer-id"
metric: 100