summaryrefslogtreecommitdiff
path: root/examples/bgp-unnumbered
diff options
context:
space:
mode:
authoromnom62 <omnom62@outlook.com>2026-10-05 20:56:05 +1000
committeromnom62 <omnom62@outlook.com>2026-10-05 20:56:05 +1000
commit8ee802e41374942965b6b93cfb4534725ef45145 (patch)
treeef3e5579bd767422caa6fe77cea6a7b5d2d8562c /examples/bgp-unnumbered
parent748df2bc1d35fa285dd3fe46916e1230408778c7 (diff)
downloadvyos.blueprints-main.tar.gz
vyos.blueprints-main.zip
T9393: new rolesmain
Diffstat (limited to 'examples/bgp-unnumbered')
-rw-r--r--examples/bgp-unnumbered/group_vars/fabric.yml3
-rw-r--r--examples/bgp-unnumbered/host_vars/routerA.yml3
-rw-r--r--examples/bgp-unnumbered/host_vars/routerB.yml3
-rw-r--r--examples/bgp-unnumbered/inventory.yml15
-rw-r--r--examples/bgp-unnumbered/site.yml11
-rw-r--r--examples/bgp-unnumbered/topology.clab.yml13
-rw-r--r--examples/bgp-unnumbered/verify.yml9
7 files changed, 57 insertions, 0 deletions
diff --git a/examples/bgp-unnumbered/group_vars/fabric.yml b/examples/bgp-unnumbered/group_vars/fabric.yml
new file mode 100644
index 0000000..34617ff
--- /dev/null
+++ b/examples/bgp-unnumbered/group_vars/fabric.yml
@@ -0,0 +1,3 @@
+---
+bgp_unnumbered_interfaces: [eth1, eth2]
+bgp_unnumbered_group: fabric
diff --git a/examples/bgp-unnumbered/host_vars/routerA.yml b/examples/bgp-unnumbered/host_vars/routerA.yml
new file mode 100644
index 0000000..e538109
--- /dev/null
+++ b/examples/bgp-unnumbered/host_vars/routerA.yml
@@ -0,0 +1,3 @@
+---
+bgp_unnumbered_asn: 64496
+bgp_unnumbered_router_id: 192.168.0.1
diff --git a/examples/bgp-unnumbered/host_vars/routerB.yml b/examples/bgp-unnumbered/host_vars/routerB.yml
new file mode 100644
index 0000000..e9e9e62
--- /dev/null
+++ b/examples/bgp-unnumbered/host_vars/routerB.yml
@@ -0,0 +1,3 @@
+---
+bgp_unnumbered_asn: 64499
+bgp_unnumbered_router_id: 192.168.0.2
diff --git a/examples/bgp-unnumbered/inventory.yml b/examples/bgp-unnumbered/inventory.yml
new file mode 100644
index 0000000..30bdaba
--- /dev/null
+++ b/examples/bgp-unnumbered/inventory.yml
@@ -0,0 +1,15 @@
+---
+# docs.vyos.io/en/1.5/configexamples/bgp-ipv6-unnumbered.html
+all:
+ children:
+ fabric:
+ hosts:
+ routerA:
+ ansible_host: clab-bgp-unnumbered-routerA # your router's address
+ routerB:
+ ansible_host: clab-bgp-unnumbered-routerB
+ vars:
+ ansible_network_os: vyos.vyos.vyos
+ ansible_connection: ansible.netcommon.network_cli
+ ansible_user: admin
+ ansible_password: admin # use ansible-vault for real devices
diff --git a/examples/bgp-unnumbered/site.yml b/examples/bgp-unnumbered/site.yml
new file mode 100644
index 0000000..a314bc9
--- /dev/null
+++ b/examples/bgp-unnumbered/site.yml
@@ -0,0 +1,11 @@
+---
+- name: BGP IPv6 unnumbered with extended next-hop
+ hosts: fabric
+ gather_facts: false
+ roles:
+ - vyos.blueprints.bgp_unnumbered
+ post_tasks:
+ - name: Show rendered commands
+ ansible.builtin.debug:
+ var: vyos_blueprints_rendered
+ when: show_rendered | default(false) | bool
diff --git a/examples/bgp-unnumbered/topology.clab.yml b/examples/bgp-unnumbered/topology.clab.yml
new file mode 100644
index 0000000..004cd54
--- /dev/null
+++ b/examples/bgp-unnumbered/topology.clab.yml
@@ -0,0 +1,13 @@
+name: bgp-unnumbered
+topology:
+ kinds:
+ vyosnetworks_vyos:
+ image: ${VYOS_IMAGE:=vyos:latest}
+ nodes:
+ routerA:
+ kind: vyosnetworks_vyos
+ routerB:
+ kind: vyosnetworks_vyos
+ links:
+ - endpoints: ["routerA:eth1", "routerB:eth1"]
+ - endpoints: ["routerA:eth2", "routerB:eth2"]
diff --git a/examples/bgp-unnumbered/verify.yml b/examples/bgp-unnumbered/verify.yml
new file mode 100644
index 0000000..07004ac
--- /dev/null
+++ b/examples/bgp-unnumbered/verify.yml
@@ -0,0 +1,9 @@
+---
+- name: Check the BGP fabric
+ hosts: fabric
+ gather_facts: false
+ tasks:
+ - name: BGP checks (all routers in one play for the route checks)
+ ansible.builtin.include_role:
+ name: vyos.blueprints.bgp_unnumbered
+ tasks_from: verify