diff options
Diffstat (limited to 'examples/ospf-unnumbered')
| -rw-r--r-- | examples/ospf-unnumbered/group_vars/fabric.yml | 4 | ||||
| -rw-r--r-- | examples/ospf-unnumbered/host_vars/routerA.yml | 5 | ||||
| -rw-r--r-- | examples/ospf-unnumbered/host_vars/routerB.yml | 4 | ||||
| -rw-r--r-- | examples/ospf-unnumbered/inventory.yml | 15 | ||||
| -rw-r--r-- | examples/ospf-unnumbered/site.yml | 12 | ||||
| -rw-r--r-- | examples/ospf-unnumbered/topology.clab.yml | 25 | ||||
| -rw-r--r-- | examples/ospf-unnumbered/verify.yml | 9 |
7 files changed, 74 insertions, 0 deletions
diff --git a/examples/ospf-unnumbered/group_vars/fabric.yml b/examples/ospf-unnumbered/group_vars/fabric.yml new file mode 100644 index 0000000..9fa7a6c --- /dev/null +++ b/examples/ospf-unnumbered/group_vars/fabric.yml @@ -0,0 +1,4 @@ +--- +ospf_unnumbered_interfaces: [eth1, eth2] +ospf_unnumbered_md5_key: yourpassword # use ansible-vault for real devices +ospf_unnumbered_group: fabric diff --git a/examples/ospf-unnumbered/host_vars/routerA.yml b/examples/ospf-unnumbered/host_vars/routerA.yml new file mode 100644 index 0000000..e3803e6 --- /dev/null +++ b/examples/ospf-unnumbered/host_vars/routerA.yml @@ -0,0 +1,5 @@ +--- +ospf_unnumbered_router_id: 192.168.0.1 +# LAN address; eth0 on the docs page, eth3 here because containerlab uses eth0 for management +base_interfaces: + - {name: eth3, addresses: [10.0.0.1/24]} diff --git a/examples/ospf-unnumbered/host_vars/routerB.yml b/examples/ospf-unnumbered/host_vars/routerB.yml new file mode 100644 index 0000000..b2aac66 --- /dev/null +++ b/examples/ospf-unnumbered/host_vars/routerB.yml @@ -0,0 +1,4 @@ +--- +ospf_unnumbered_router_id: 192.168.0.2 +base_interfaces: + - {name: eth3, addresses: [10.0.0.2/24]} diff --git a/examples/ospf-unnumbered/inventory.yml b/examples/ospf-unnumbered/inventory.yml new file mode 100644 index 0000000..97bc8d4 --- /dev/null +++ b/examples/ospf-unnumbered/inventory.yml @@ -0,0 +1,15 @@ +--- +# docs.vyos.io/en/1.5/configexamples/ospf-unnumbered.html +all: + children: + fabric: + hosts: + routerA: + ansible_host: clab-ospf-unnumbered-routerA # your router's address + routerB: + ansible_host: clab-ospf-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/ospf-unnumbered/site.yml b/examples/ospf-unnumbered/site.yml new file mode 100644 index 0000000..ad9bd0a --- /dev/null +++ b/examples/ospf-unnumbered/site.yml @@ -0,0 +1,12 @@ +--- +- name: OSPF unnumbered with ECMP + hosts: fabric + gather_facts: false + roles: + - vyos.blueprints.base + - vyos.blueprints.ospf_unnumbered + post_tasks: + - name: Show rendered commands + ansible.builtin.debug: + var: vyos_blueprints_rendered + when: show_rendered | default(false) | bool diff --git a/examples/ospf-unnumbered/topology.clab.yml b/examples/ospf-unnumbered/topology.clab.yml new file mode 100644 index 0000000..4b2ae23 --- /dev/null +++ b/examples/ospf-unnumbered/topology.clab.yml @@ -0,0 +1,25 @@ +name: ospf-unnumbered +topology: + kinds: + vyosnetworks_vyos: + image: ${VYOS_IMAGE:=vyos:latest} + nodes: + routerA: + kind: vyosnetworks_vyos + routerB: + kind: vyosnetworks_vyos + # shared 10.0.0.0/24 LAN, as on the docs page: a Linux bridge plus a test host + lan: + kind: linux + image: alpine:3 + exec: + - ip link add br0 type bridge + - ip link set eth1 master br0 + - ip link set eth2 master br0 + - ip link set br0 up + - ip addr add 10.0.0.10/24 dev br0 + links: + - endpoints: ["routerA:eth1", "routerB:eth1"] + - endpoints: ["routerA:eth2", "routerB:eth2"] + - endpoints: ["routerA:eth3", "lan:eth1"] + - endpoints: ["routerB:eth3", "lan:eth2"] diff --git a/examples/ospf-unnumbered/verify.yml b/examples/ospf-unnumbered/verify.yml new file mode 100644 index 0000000..f5b7b6f --- /dev/null +++ b/examples/ospf-unnumbered/verify.yml @@ -0,0 +1,9 @@ +--- +- name: Check the OSPF fabric + hosts: fabric + gather_facts: false + tasks: + - name: OSPF checks (all routers in one play for the route checks) + ansible.builtin.include_role: + name: vyos.blueprints.ospf_unnumbered + tasks_from: verify |
