summaryrefslogtreecommitdiff
path: root/tests/integration/targets/vyos_ospfv2
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration/targets/vyos_ospfv2')
-rw-r--r--tests/integration/targets/vyos_ospfv2/defaults/main.yaml2
-rw-r--r--tests/integration/targets/vyos_ospfv2/tasks/cli.yaml8
-rw-r--r--tests/integration/targets/vyos_ospfv2/tasks/redirection.yaml8
-rw-r--r--tests/integration/targets/vyos_ospfv2/tests/cli/_populate.yaml58
-rw-r--r--tests/integration/targets/vyos_ospfv2/tests/cli/_remove_config.yaml2
-rw-r--r--tests/integration/targets/vyos_ospfv2/tests/cli/deleted.yaml2
-rw-r--r--tests/integration/targets/vyos_ospfv2/tests/cli/parsed.yaml3
-rw-r--r--tests/integration/targets/vyos_ospfv2/tests/cli/rendered.yaml33
-rw-r--r--tests/integration/targets/vyos_ospfv2/tests/cli/replaced.yaml37
-rw-r--r--tests/integration/targets/vyos_ospfv2/tests/cli/rtt.yaml66
-rw-r--r--tests/integration/targets/vyos_ospfv2/vars/main.yaml230
11 files changed, 222 insertions, 227 deletions
diff --git a/tests/integration/targets/vyos_ospfv2/defaults/main.yaml b/tests/integration/targets/vyos_ospfv2/defaults/main.yaml
index 852a6be..164afea 100644
--- a/tests/integration/targets/vyos_ospfv2/defaults/main.yaml
+++ b/tests/integration/targets/vyos_ospfv2/defaults/main.yaml
@@ -1,3 +1,3 @@
---
-testcase: '[^_].*'
+testcase: "[^_].*"
test_items: []
diff --git a/tests/integration/targets/vyos_ospfv2/tasks/cli.yaml b/tests/integration/targets/vyos_ospfv2/tasks/cli.yaml
index 93eb2fe..83496e0 100644
--- a/tests/integration/targets/vyos_ospfv2/tasks/cli.yaml
+++ b/tests/integration/targets/vyos_ospfv2/tasks/cli.yaml
@@ -1,8 +1,8 @@
---
- name: Collect all cli test cases
find:
- paths: '{{ role_path }}/tests/cli'
- patterns: '{{ testcase }}.yaml'
+ paths: "{{ role_path }}/tests/cli"
+ patterns: "{{ testcase }}.yaml"
use_regex: true
register: test_cases
delegate_to: localhost
@@ -11,9 +11,9 @@
set_fact: test_items="{{ test_cases.files | map(attribute='path') | list }}"
- name: Run test case (connection=ansible.netcommon.network_cli)
- include: '{{ test_case_to_run }}'
+ include: "{{ test_case_to_run }}"
vars:
ansible_connection: ansible.netcommon.network_cli
- with_items: '{{ test_items }}'
+ with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
diff --git a/tests/integration/targets/vyos_ospfv2/tasks/redirection.yaml b/tests/integration/targets/vyos_ospfv2/tasks/redirection.yaml
index 5564a3e..48ad53a 100644
--- a/tests/integration/targets/vyos_ospfv2/tasks/redirection.yaml
+++ b/tests/integration/targets/vyos_ospfv2/tasks/redirection.yaml
@@ -1,8 +1,8 @@
---
- name: collect all redirection cli test cases
find:
- paths: '{{ role_path }}/tests/redirection/cli'
- patterns: '{{ testcase }}.yaml'
+ paths: "{{ role_path }}/tests/redirection/cli"
+ patterns: "{{ testcase }}.yaml"
register: shortname_test_cases
delegate_to: localhost
@@ -10,7 +10,7 @@
set_fact: test_items="{{ shortname_test_cases.files | map(attribute='path') | list }}"
- name: run test case (connection=ansible.netcommon.network_cli)
- include: '{{ test_case_to_run }} ansible_connection=ansible.netcommon.network_cli'
- with_items: '{{ test_items }}'
+ include: "{{ test_case_to_run }} ansible_connection=ansible.netcommon.network_cli"
+ with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
diff --git a/tests/integration/targets/vyos_ospfv2/tests/cli/_populate.yaml b/tests/integration/targets/vyos_ospfv2/tests/cli/_populate.yaml
index 9f358d5..a445375 100644
--- a/tests/integration/targets/vyos_ospfv2/tests/cli/_populate.yaml
+++ b/tests/integration/targets/vyos_ospfv2/tests/cli/_populate.yaml
@@ -2,34 +2,34 @@
- name: Setup
vars:
lines: "set protocols ospf mpls-te 'enable' \n
- set protocols ospf mpls-te router-address '192.0.11.11' \n
- set protocols ospf redistribute bgp metric-type '2' \n
- set protocols ospf redistribute bgp metric '10'\n
- set protocols ospf default-information originate metric-type '2' \n
- set protocols ospf default-information originate 'always' \n
- set protocols ospf default-information originate metric '10' \n
- set protocols ospf default-information originate route-map 'ingress' \n
- set protocols ospf auto-cost reference-bandwidth '2' \n
- set protocols ospf parameters router-id '192.0.1.1' \n
- set protocols ospf parameters 'opaque-lsa' \n
- set protocols ospf parameters abr-type 'cisco' \n
- set protocols ospf parameters 'rfc1583-compatibility' \n
- set protocols ospf passive-interface 'eth1' \n
- set protocols ospf passive-interface 'eth2' \n
- set protocols ospf max-metric router-lsa on-shutdown '10' \n
- set protocols ospf max-metric router-lsa 'administrative' \n
- set protocols ospf max-metric router-lsa on-startup '10' \n
- set protocols ospf log-adjacency-changes 'detail' \n
- set protocols ospf neighbor 192.0.11.12 priority '2' \n
- set protocols ospf neighbor 192.0.11.12 poll-interval '10' \n
- set protocols ospf area 2 authentication 'plaintext-password' \n
- set protocols ospf area 2 shortcut 'enable' \n
- set protocols ospf area 2 area-type 'normal' \n
- set protocols ospf area 3 area-type 'nssa' \n
- set protocols ospf area 4 range 192.0.3.0/24 cost '10' \n
- set protocols ospf area 4 range 192.0.4.0/24 cost '12' \n
- set protocols ospf area 4 area-type stub default-cost '20' \n
- set protocols ospf area 4 network '192.0.2.0/24'"
+ set protocols ospf mpls-te router-address '192.0.11.11' \n
+ set protocols ospf redistribute bgp metric-type '2' \n
+ set protocols ospf redistribute bgp metric '10'\n
+ set protocols ospf default-information originate metric-type '2' \n
+ set protocols ospf default-information originate 'always' \n
+ set protocols ospf default-information originate metric '10' \n
+ set protocols ospf default-information originate route-map 'ingress' \n
+ set protocols ospf auto-cost reference-bandwidth '2' \n
+ set protocols ospf parameters router-id '192.0.1.1' \n
+ set protocols ospf parameters 'opaque-lsa' \n
+ set protocols ospf parameters abr-type 'cisco' \n
+ set protocols ospf parameters 'rfc1583-compatibility' \n
+ set protocols ospf passive-interface 'eth1' \n
+ set protocols ospf passive-interface 'eth2' \n
+ set protocols ospf max-metric router-lsa on-shutdown '10' \n
+ set protocols ospf max-metric router-lsa 'administrative' \n
+ set protocols ospf max-metric router-lsa on-startup '10' \n
+ set protocols ospf log-adjacency-changes 'detail' \n
+ set protocols ospf neighbor 192.0.11.12 priority '2' \n
+ set protocols ospf neighbor 192.0.11.12 poll-interval '10' \n
+ set protocols ospf area 2 authentication 'plaintext-password' \n
+ set protocols ospf area 2 shortcut 'enable' \n
+ set protocols ospf area 2 area-type 'normal' \n
+ set protocols ospf area 3 area-type 'nssa' \n
+ set protocols ospf area 4 range 192.0.3.0/24 cost '10' \n
+ set protocols ospf area 4 range 192.0.4.0/24 cost '12' \n
+ set protocols ospf area 4 area-type stub default-cost '20' \n
+ set protocols ospf area 4 network '192.0.2.0/24'"
ansible.netcommon.cli_config:
- config: '{{ lines }}'
+ config: "{{ lines }}"
diff --git a/tests/integration/targets/vyos_ospfv2/tests/cli/_remove_config.yaml b/tests/integration/targets/vyos_ospfv2/tests/cli/_remove_config.yaml
index 7360870..9c963bc 100644
--- a/tests/integration/targets/vyos_ospfv2/tests/cli/_remove_config.yaml
+++ b/tests/integration/targets/vyos_ospfv2/tests/cli/_remove_config.yaml
@@ -3,4 +3,4 @@
vars:
lines: "delete protocols ospf\n"
ansible.netcommon.cli_config:
- config: '{{ lines }}'
+ config: "{{ lines }}"
diff --git a/tests/integration/targets/vyos_ospfv2/tests/cli/deleted.yaml b/tests/integration/targets/vyos_ospfv2/tests/cli/deleted.yaml
index a61f5a7..9fc0d70 100644
--- a/tests/integration/targets/vyos_ospfv2/tests/cli/deleted.yaml
+++ b/tests/integration/targets/vyos_ospfv2/tests/cli/deleted.yaml
@@ -6,7 +6,6 @@
- include_tasks: _populate.yaml
- block:
-
- name: Delete attributes of ospfv2.
register: result
vyos.vyos.vyos_ospfv2: &id001
@@ -44,5 +43,4 @@
that:
- "{{ deleted['after'] == result['before'] }}"
always:
-
- include_tasks: _remove_config.yaml
diff --git a/tests/integration/targets/vyos_ospfv2/tests/cli/parsed.yaml b/tests/integration/targets/vyos_ospfv2/tests/cli/parsed.yaml
index cfa29f9..ac5c203 100644
--- a/tests/integration/targets/vyos_ospfv2/tests/cli/parsed.yaml
+++ b/tests/integration/targets/vyos_ospfv2/tests/cli/parsed.yaml
@@ -1,6 +1,7 @@
---
- debug:
- msg: START vyos_ospfv2 parsed integration tests on connection={{ ansible_connection
+ msg:
+ START vyos_ospfv2 parsed integration tests on connection={{ ansible_connection
}}
- name: Parse externally provided ospfv2 config to agnostic model
diff --git a/tests/integration/targets/vyos_ospfv2/tests/cli/rendered.yaml b/tests/integration/targets/vyos_ospfv2/tests/cli/rendered.yaml
index 8a805a6..e11aa6a 100644
--- a/tests/integration/targets/vyos_ospfv2/tests/cli/rendered.yaml
+++ b/tests/integration/targets/vyos_ospfv2/tests/cli/rendered.yaml
@@ -6,12 +6,11 @@
- include_tasks: _remove_config.yaml
- block:
-
- name: Structure provided configuration into device specific commands
register: result
vyos.vyos.vyos_ospfv2:
config:
- log_adjacency_changes: 'detail'
+ log_adjacency_changes: "detail"
max_metric:
router_lsa:
administrative: true
@@ -22,48 +21,48 @@
always: true
metric: 10
metric_type: 2
- route_map: 'ingress'
+ route_map: "ingress"
mpls_te:
enabled: true
- router_address: '192.0.11.11'
+ router_address: "192.0.11.11"
auto_cost:
reference_bandwidth: 2
neighbor:
- - neighbor_id: '192.0.11.12'
+ - neighbor_id: "192.0.11.12"
poll_interval: 10
priority: 2
redistribute:
- - route_type: 'bgp'
+ - route_type: "bgp"
metric: 10
metric_type: 2
passive_interface:
- - 'eth1'
- - 'eth2'
+ - "eth1"
+ - "eth2"
parameters:
- router_id: '192.0.1.1'
+ router_id: "192.0.1.1"
opaque_lsa: true
rfc1583_compatibility: true
- abr_type: 'cisco'
+ abr_type: "cisco"
areas:
- - area_id: '2'
+ - area_id: "2"
area_type:
normal: true
authentication: "plaintext-password"
- shortcut: 'enable'
- - area_id: '3'
+ shortcut: "enable"
+ - area_id: "3"
area_type:
nssa:
set: true
- - area_id: '4'
+ - area_id: "4"
area_type:
stub:
default_cost: 20
network:
- - address: '192.0.2.0/24'
+ - address: "192.0.2.0/24"
range:
- - address: '192.0.3.0/24'
+ - address: "192.0.3.0/24"
cost: 10
- - address: '192.0.4.0/24'
+ - address: "192.0.4.0/24"
cost: 12
state: rendered
diff --git a/tests/integration/targets/vyos_ospfv2/tests/cli/replaced.yaml b/tests/integration/targets/vyos_ospfv2/tests/cli/replaced.yaml
index 07606f9..e1fc389 100644
--- a/tests/integration/targets/vyos_ospfv2/tests/cli/replaced.yaml
+++ b/tests/integration/targets/vyos_ospfv2/tests/cli/replaced.yaml
@@ -8,12 +8,11 @@
- include_tasks: _populate.yaml
- block:
-
- name: Replace device configurations of listed ospfv2 routes with provided configurations
register: result
vyos.vyos.vyos_ospfv2: &id001
config:
- log_adjacency_changes: 'detail'
+ log_adjacency_changes: "detail"
max_metric:
router_lsa:
administrative: true
@@ -24,44 +23,44 @@
always: true
metric: 10
metric_type: 2
- route_map: 'ingress'
+ route_map: "ingress"
mpls_te:
enabled: true
- router_address: '192.0.22.22'
+ router_address: "192.0.22.22"
auto_cost:
reference_bandwidth: 2
neighbor:
- - neighbor_id: '192.0.11.12'
+ - neighbor_id: "192.0.11.12"
poll_interval: 10
priority: 2
redistribute:
- - route_type: 'bgp'
+ - route_type: "bgp"
metric: 10
metric_type: 2
passive_interface:
- - 'eth1'
+ - "eth1"
parameters:
- router_id: '192.0.1.1'
+ router_id: "192.0.1.1"
opaque_lsa: true
rfc1583_compatibility: true
- abr_type: 'cisco'
+ abr_type: "cisco"
areas:
- - area_id: '2'
+ - area_id: "2"
area_type:
normal: true
authentication: "plaintext-password"
- shortcut: 'enable'
- - area_id: '4'
+ shortcut: "enable"
+ - area_id: "4"
area_type:
stub:
default_cost: 20
network:
- - address: '192.0.2.0/24'
- - address: '192.0.12.0/24'
- - address: '192.0.22.0/24'
- - address: '192.0.32.0/24'
+ - address: "192.0.2.0/24"
+ - address: "192.0.12.0/24"
+ - address: "192.0.22.0/24"
+ - address: "192.0.32.0/24"
range:
- - address: '1.1.2.0/24'
+ - address: "1.1.2.0/24"
cost: 10
state: replaced
@@ -81,7 +80,8 @@
that:
- "{{ replaced['after'] == result['after'] }}"
- - name: Replace device configurations of listed ospfv2 routes with provided configurarions
+ - name:
+ Replace device configurations of listed ospfv2 routes with provided configurarions
(IDEMPOTENT)
register: result
vyos.vyos.vyos_ospfv2: *id001
@@ -96,5 +96,4 @@
that:
- "{{ replaced['after'] == result['before'] }}"
always:
-
- include_tasks: _remove_config.yaml
diff --git a/tests/integration/targets/vyos_ospfv2/tests/cli/rtt.yaml b/tests/integration/targets/vyos_ospfv2/tests/cli/rtt.yaml
index 7efc2a7..9407ffa 100644
--- a/tests/integration/targets/vyos_ospfv2/tests/cli/rtt.yaml
+++ b/tests/integration/targets/vyos_ospfv2/tests/cli/rtt.yaml
@@ -6,12 +6,11 @@
- include_tasks: _remove_config.yaml
- block:
-
- name: Apply the provided configuration (base config)
register: base_config
vyos.vyos.vyos_ospfv2:
config:
- log_adjacency_changes: 'detail'
+ log_adjacency_changes: "detail"
max_metric:
router_lsa:
administrative: true
@@ -22,48 +21,48 @@
always: true
metric: 10
metric_type: 2
- route_map: 'ingress'
+ route_map: "ingress"
mpls_te:
enabled: true
- router_address: '192.0.11.11'
+ router_address: "192.0.11.11"
auto_cost:
reference_bandwidth: 2
neighbor:
- - neighbor_id: '192.0.11.12'
+ - neighbor_id: "192.0.11.12"
poll_interval: 10
priority: 2
redistribute:
- - route_type: 'bgp'
+ - route_type: "bgp"
metric: 10
metric_type: 2
passive_interface:
- - 'eth1'
- - 'eth2'
+ - "eth1"
+ - "eth2"
parameters:
- router_id: '192.0.1.1'
+ router_id: "192.0.1.1"
opaque_lsa: true
rfc1583_compatibility: true
- abr_type: 'cisco'
+ abr_type: "cisco"
areas:
- - area_id: '2'
+ - area_id: "2"
area_type:
normal: true
authentication: "plaintext-password"
- shortcut: 'enable'
- - area_id: '3'
+ shortcut: "enable"
+ - area_id: "3"
area_type:
nssa:
set: true
- - area_id: '4'
+ - area_id: "4"
area_type:
stub:
default_cost: 20
network:
- - address: '192.0.2.0/24'
+ - address: "192.0.2.0/24"
range:
- - address: '192.0.3.0/24'
+ - address: "192.0.3.0/24"
cost: 10
- - address: '192.0.4.0/24'
+ - address: "192.0.4.0/24"
cost: 12
state: merged
@@ -79,23 +78,23 @@
vyos.vyos.vyos_ospfv2:
config:
areas:
- - area_id: '2'
+ - area_id: "2"
area_type:
normal: true
authentication: "plaintext-password"
- shortcut: 'enable'
- - area_id: '4'
+ shortcut: "enable"
+ - area_id: "4"
area_type:
stub:
default_cost: 20
set: true
network:
- - address: '192.0.12.0/24'
- - address: '192.0.2.0/24'
- - address: '192.0.22.0/24'
- - address: '192.0.32.0/24'
+ - address: "192.0.12.0/24"
+ - address: "192.0.2.0/24"
+ - address: "192.0.22.0/24"
+ - address: "192.0.32.0/24"
range:
- - address: '1.1.2.0/24'
+ - address: "1.1.2.0/24"
cost: 10
auto_cost:
reference_bandwidth: 2
@@ -104,8 +103,8 @@
always: true
metric: 10
metric_type: 2
- route_map: 'ingress'
- log_adjacency_changes: 'detail'
+ route_map: "ingress"
+ log_adjacency_changes: "detail"
max_metric:
router_lsa:
administrative: true
@@ -113,22 +112,22 @@
on_startup: 10
mpls_te:
enabled: true
- router_address: '192.0.22.22'
+ router_address: "192.0.22.22"
neighbor:
- - neighbor_id: '192.0.11.12'
+ - neighbor_id: "192.0.11.12"
poll_interval: 10
priority: 2
parameters:
- abr_type: 'cisco'
+ abr_type: "cisco"
opaque_lsa: true
rfc1583_compatibility: true
- router_id: '192.0.1.1'
+ router_id: "192.0.1.1"
passive_interface:
- - 'eth1'
+ - "eth1"
redistribute:
- metric: 10
metric_type: 2
- route_type: 'bgp'
+ route_type: "bgp"
state: replaced
- name: Assert that changes were applied
@@ -145,5 +144,4 @@
assert:
that: "{{ base_config['after'] == revert['after']}}"
always:
-
- include_tasks: _remove_config.yaml
diff --git a/tests/integration/targets/vyos_ospfv2/vars/main.yaml b/tests/integration/targets/vyos_ospfv2/vars/main.yaml
index e55da20..da81c19 100644
--- a/tests/integration/targets/vyos_ospfv2/vars/main.yaml
+++ b/tests/integration/targets/vyos_ospfv2/vars/main.yaml
@@ -40,26 +40,26 @@ merged:
- set protocols ospf area 4 network 192.0.2.0/24
after:
areas:
- - area_id: '2'
+ - area_id: "2"
area_type:
normal: true
authentication: "plaintext-password"
- shortcut: 'enable'
- - area_id: '3'
+ shortcut: "enable"
+ - area_id: "3"
area_type:
nssa:
set: true
- - area_id: '4'
+ - area_id: "4"
area_type:
stub:
default_cost: 20
set: true
network:
- - address: '192.0.2.0/24'
+ - address: "192.0.2.0/24"
range:
- - address: '192.0.3.0/24'
+ - address: "192.0.3.0/24"
cost: 10
- - address: '192.0.4.0/24'
+ - address: "192.0.4.0/24"
cost: 12
auto_cost:
reference_bandwidth: 2
@@ -68,8 +68,8 @@ merged:
always: true
metric: 10
metric_type: 2
- route_map: 'ingress'
- log_adjacency_changes: 'detail'
+ route_map: "ingress"
+ log_adjacency_changes: "detail"
max_metric:
router_lsa:
administrative: true
@@ -77,46 +77,46 @@ merged:
on_startup: 10
mpls_te:
enabled: true
- router_address: '192.0.11.11'
+ router_address: "192.0.11.11"
neighbor:
- - neighbor_id: '192.0.11.12'
+ - neighbor_id: "192.0.11.12"
poll_interval: 10
priority: 2
parameters:
- abr_type: 'cisco'
+ abr_type: "cisco"
opaque_lsa: true
rfc1583_compatibility: true
- router_id: '192.0.1.1'
+ router_id: "192.0.1.1"
passive_interface:
- - 'eth1'
- - 'eth2'
+ - "eth1"
+ - "eth2"
redistribute:
- metric: 10
metric_type: 2
- route_type: 'bgp'
+ route_type: "bgp"
merged_update:
before:
areas:
- - area_id: '2'
+ - area_id: "2"
area_type:
normal: true
authentication: "plaintext-password"
- shortcut: 'enable'
- - area_id: '3'
+ shortcut: "enable"
+ - area_id: "3"
area_type:
nssa:
set: true
- - area_id: '4'
+ - area_id: "4"
area_type:
stub:
default_cost: 20
set: true
network:
- - address: '192.0.2.0/24'
+ - address: "192.0.2.0/24"
range:
- - address: '192.0.3.0/24'
+ - address: "192.0.3.0/24"
cost: 10
- - address: '192.0.4.0/24'
+ - address: "192.0.4.0/24"
cost: 12
auto_cost:
reference_bandwidth: 2
@@ -125,8 +125,8 @@ merged_update:
always: true
metric: 10
metric_type: 2
- route_map: 'ingress'
- log_adjacency_changes: 'detail'
+ route_map: "ingress"
+ log_adjacency_changes: "detail"
max_metric:
router_lsa:
administrative: true
@@ -134,43 +134,43 @@ merged_update:
on_startup: 10
mpls_te:
enabled: true
- router_address: '192.0.11.11'
+ router_address: "192.0.11.11"
neighbor:
- - neighbor_id: '192.0.11.12'
+ - neighbor_id: "192.0.11.12"
poll_interval: 10
priority: 2
parameters:
- abr_type: 'cisco'
+ abr_type: "cisco"
opaque_lsa: true
rfc1583_compatibility: true
- router_id: '192.0.1.1'
+ router_id: "192.0.1.1"
passive_interface:
- - 'eth1'
- - 'eth2'
+ - "eth1"
+ - "eth2"
redistribute:
- metric: 10
metric_type: 2
- route_type: 'bgp'
+ route_type: "bgp"
after:
areas:
- - area_id: '2'
+ - area_id: "2"
area_type:
normal: true
authentication: "plaintext-password"
- shortcut: 'enable'
- - area_id: '3'
+ shortcut: "enable"
+ - area_id: "3"
area_type:
nssa:
set: true
- - area_id: '4'
+ - area_id: "4"
network:
- - address: '192.0.2.0/24'
- - address: '192.0.22.0/24'
- - address: '192.0.32.0/24'
+ - address: "192.0.2.0/24"
+ - address: "192.0.22.0/24"
+ - address: "192.0.32.0/24"
range:
- - address: '192.0.3.0/24'
+ - address: "192.0.3.0/24"
cost: 10
- - address: '192.0.4.0/24'
+ - address: "192.0.4.0/24"
cost: 12
auto_cost:
reference_bandwidth: 2
@@ -179,8 +179,8 @@ merged_update:
always: true
metric: 10
metric_type: 2
- route_map: 'ingress'
- log_adjacency_changes: 'detail'
+ route_map: "ingress"
+ log_adjacency_changes: "detail"
max_metric:
router_lsa:
administrative: true
@@ -188,49 +188,49 @@ merged_update:
on_startup: 10
mpls_te:
enabled: true
- router_address: '192.0.11.11'
+ router_address: "192.0.11.11"
neighbor:
- - neighbor_id: '192.0.11.12'
+ - neighbor_id: "192.0.11.12"
poll_interval: 10
priority: 2
parameters:
- abr_type: 'cisco'
+ abr_type: "cisco"
opaque_lsa: true
rfc1583_compatibility: true
- router_id: '192.0.1.1'
+ router_id: "192.0.1.1"
passive_interface:
- - 'eth1'
- - 'eth2'
+ - "eth1"
+ - "eth2"
redistribute:
- metric: 10
metric_type: 2
- route_type: 'bgp'
+ route_type: "bgp"
commands:
- delete protocols ospf area 4 area-type stub
- set protocols ospf area 4 network 192.0.22.0/24
- set protocols ospf area 4 network 192.0.32.0/24
populate:
areas:
- - area_id: '2'
+ - area_id: "2"
area_type:
normal: true
authentication: "plaintext-password"
- shortcut: 'enable'
- - area_id: '3'
+ shortcut: "enable"
+ - area_id: "3"
area_type:
nssa:
set: true
- - area_id: '4'
+ - area_id: "4"
area_type:
stub:
default_cost: 20
set: true
network:
- - address: '192.0.2.0/24'
+ - address: "192.0.2.0/24"
range:
- - address: '192.0.3.0/24'
+ - address: "192.0.3.0/24"
cost: 10
- - address: '192.0.4.0/24'
+ - address: "192.0.4.0/24"
cost: 12
auto_cost:
reference_bandwidth: 2
@@ -239,8 +239,8 @@ populate:
always: true
metric: 10
metric_type: 2
- route_map: 'ingress'
- log_adjacency_changes: 'detail'
+ route_map: "ingress"
+ log_adjacency_changes: "detail"
max_metric:
router_lsa:
administrative: true
@@ -248,23 +248,23 @@ populate:
on_startup: 10
mpls_te:
enabled: true
- router_address: '192.0.11.11'
+ router_address: "192.0.11.11"
neighbor:
- - neighbor_id: '192.0.11.12'
+ - neighbor_id: "192.0.11.12"
poll_interval: 10
priority: 2
parameters:
- abr_type: 'cisco'
+ abr_type: "cisco"
opaque_lsa: true
rfc1583_compatibility: true
- router_id: '192.0.1.1'
+ router_id: "192.0.1.1"
passive_interface:
- - 'eth1'
- - 'eth2'
+ - "eth1"
+ - "eth2"
redistribute:
- metric: 10
metric_type: 2
- route_type: 'bgp'
+ route_type: "bgp"
replaced:
commands:
- delete protocols ospf passive-interface eth2
@@ -281,23 +281,23 @@ replaced:
- set protocols ospf area 4 network 192.0.32.0/24
after:
areas:
- - area_id: '2'
+ - area_id: "2"
area_type:
normal: true
authentication: "plaintext-password"
- shortcut: 'enable'
- - area_id: '4'
+ shortcut: "enable"
+ - area_id: "4"
area_type:
stub:
default_cost: 20
set: true
network:
- - address: '192.0.12.0/24'
- - address: '192.0.2.0/24'
- - address: '192.0.22.0/24'
- - address: '192.0.32.0/24'
+ - address: "192.0.12.0/24"
+ - address: "192.0.2.0/24"
+ - address: "192.0.22.0/24"
+ - address: "192.0.32.0/24"
range:
- - address: '1.1.2.0/24'
+ - address: "1.1.2.0/24"
cost: 10
auto_cost:
reference_bandwidth: 2
@@ -306,8 +306,8 @@ replaced:
always: true
metric: 10
metric_type: 2
- route_map: 'ingress'
- log_adjacency_changes: 'detail'
+ route_map: "ingress"
+ log_adjacency_changes: "detail"
max_metric:
router_lsa:
administrative: true
@@ -315,22 +315,22 @@ replaced:
on_startup: 10
mpls_te:
enabled: true
- router_address: '192.0.22.22'
+ router_address: "192.0.22.22"
neighbor:
- - neighbor_id: '192.0.11.12'
+ - neighbor_id: "192.0.11.12"
poll_interval: 10
priority: 2
parameters:
- abr_type: 'cisco'
+ abr_type: "cisco"
opaque_lsa: true
rfc1583_compatibility: true
- router_id: '192.0.1.1'
+ router_id: "192.0.1.1"
passive_interface:
- - 'eth1'
+ - "eth1"
redistribute:
- metric: 10
metric_type: 2
- route_type: 'bgp'
+ route_type: "bgp"
rendered:
commands:
- set protocols ospf mpls-te enable
@@ -372,26 +372,26 @@ rendered:
parsed:
after:
areas:
- - area_id: '2'
+ - area_id: "2"
area_type:
normal: true
authentication: "plaintext-password"
- shortcut: 'enable'
- - area_id: '3'
+ shortcut: "enable"
+ - area_id: "3"
area_type:
nssa:
set: true
- - area_id: '4'
+ - area_id: "4"
area_type:
stub:
default_cost: 20
set: true
network:
- - address: '192.0.2.0/24'
+ - address: "192.0.2.0/24"
range:
- - address: '192.0.3.0/24'
+ - address: "192.0.3.0/24"
cost: 10
- - address: '192.0.4.0/24'
+ - address: "192.0.4.0/24"
cost: 12
auto_cost:
reference_bandwidth: 2
@@ -400,8 +400,8 @@ parsed:
always: true
metric: 10
metric_type: 2
- route_map: 'ingress'
- log_adjacency_changes: 'detail'
+ route_map: "ingress"
+ log_adjacency_changes: "detail"
max_metric:
router_lsa:
administrative: true
@@ -409,47 +409,47 @@ parsed:
on_startup: 10
mpls_te:
enabled: true
- router_address: '192.0.11.11'
+ router_address: "192.0.11.11"
neighbor:
- - neighbor_id: '192.0.11.12'
+ - neighbor_id: "192.0.11.12"
poll_interval: 10
priority: 2
parameters:
- abr_type: 'cisco'
+ abr_type: "cisco"
opaque_lsa: true
rfc1583_compatibility: true
- router_id: '192.0.1.1'
+ router_id: "192.0.1.1"
passive_interface:
- - 'eth1'
- - 'eth2'
+ - "eth1"
+ - "eth2"
redistribute:
- metric: 10
metric_type: 2
- route_type: 'bgp'
+ route_type: "bgp"
deleted:
commands:
- - 'delete protocols ospf'
+ - "delete protocols ospf"
after: {}
round_trip:
after:
areas:
- - area_id: '2'
+ - area_id: "2"
area_type:
normal: true
authentication: "plaintext-password"
- shortcut: 'enable'
- - area_id: '4'
+ shortcut: "enable"
+ - area_id: "4"
area_type:
stub:
default_cost: 20
set: true
network:
- - address: '192.0.12.0/24'
- - address: '192.0.2.0/24'
- - address: '192.0.22.0/24'
- - address: '192.0.32.0/24'
+ - address: "192.0.12.0/24"
+ - address: "192.0.2.0/24"
+ - address: "192.0.22.0/24"
+ - address: "192.0.32.0/24"
range:
- - address: '1.1.2.0/24'
+ - address: "1.1.2.0/24"
cost: 10
auto_cost:
reference_bandwidth: 2
@@ -458,8 +458,8 @@ round_trip:
always: true
metric: 10
metric_type: 2
- route_map: 'ingress'
- log_adjacency_changes: 'detail'
+ route_map: "ingress"
+ log_adjacency_changes: "detail"
max_metric:
router_lsa:
administrative: true
@@ -467,19 +467,19 @@ round_trip:
on_startup: 10
mpls_te:
enabled: true
- router_address: '192.0.22.22'
+ router_address: "192.0.22.22"
neighbor:
- - neighbor_id: '192.0.11.12'
+ - neighbor_id: "192.0.11.12"
poll_interval: 10
priority: 2
parameters:
- abr_type: 'cisco'
+ abr_type: "cisco"
opaque_lsa: true
rfc1583_compatibility: true
- router_id: '192.0.1.1'
+ router_id: "192.0.1.1"
passive_interface:
- - 'eth1'
+ - "eth1"
redistribute:
- metric: 10
metric_type: 2
- route_type: 'bgp'
+ route_type: "bgp"