diff options
Diffstat (limited to 'examples/bgp-unnumbered')
| -rw-r--r-- | examples/bgp-unnumbered/group_vars/fabric.yml | 3 | ||||
| -rw-r--r-- | examples/bgp-unnumbered/host_vars/routerA.yml | 3 | ||||
| -rw-r--r-- | examples/bgp-unnumbered/host_vars/routerB.yml | 3 | ||||
| -rw-r--r-- | examples/bgp-unnumbered/inventory.yml | 15 | ||||
| -rw-r--r-- | examples/bgp-unnumbered/site.yml | 11 | ||||
| -rw-r--r-- | examples/bgp-unnumbered/topology.clab.yml | 13 | ||||
| -rw-r--r-- | examples/bgp-unnumbered/verify.yml | 9 |
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 |
