diff options
Diffstat (limited to 'tests/integration')
-rw-r--r-- | tests/integration/targets/vyos_ospfv2/tasks/main.yaml | 8 | ||||
-rw-r--r-- | tests/integration/targets/vyos_ospfv2/tasks/post_tasks.yaml | 7 | ||||
-rw-r--r-- | tests/integration/targets/vyos_ospfv2/tasks/pre_tasks.yaml | 7 | ||||
-rw-r--r-- | tests/integration/targets/vyos_ospfv2/tests/cli/_get_version.yaml | 30 | ||||
-rw-r--r-- | tests/integration/targets/vyos_ospfv2/tests/cli/_parsed_config_1_3.cfg (renamed from tests/integration/targets/vyos_ospfv2/tests/cli/_parsed_config.cfg) | 4 | ||||
-rw-r--r-- | tests/integration/targets/vyos_ospfv2/tests/cli/_parsed_config_1_4.cfg | 29 | ||||
-rw-r--r-- | tests/integration/targets/vyos_ospfv2/tests/cli/_populate.yaml | 38 | ||||
-rw-r--r-- | tests/integration/targets/vyos_ospfv2/tests/cli/parsed.yaml | 8 | ||||
-rw-r--r-- | tests/integration/targets/vyos_ospfv2/vars/main.yaml | 97 | ||||
-rw-r--r-- | tests/integration/targets/vyos_ospfv2/vars/pre-v1_4.yaml | 123 | ||||
-rw-r--r-- | tests/integration/targets/vyos_ospfv2/vars/v1_4.yaml | 123 |
11 files changed, 352 insertions, 122 deletions
diff --git a/tests/integration/targets/vyos_ospfv2/tasks/main.yaml b/tests/integration/targets/vyos_ospfv2/tasks/main.yaml index 9a3359ed..53afd6c2 100644 --- a/tests/integration/targets/vyos_ospfv2/tasks/main.yaml +++ b/tests/integration/targets/vyos_ospfv2/tasks/main.yaml @@ -1,4 +1,8 @@ --- +- name: Run preflight setup + ansible.builtin.import_tasks: pre_tasks.yaml + failed_when: false + - name: Run CLI tests ansible.builtin.include_tasks: cli.yaml tags: @@ -9,3 +13,7 @@ when: ansible_version.full is version('2.10.0', '>=') tags: - network_cli + +- name: Run post-test cleanup tasks + ansible.builtin.import_tasks: post_tasks.yaml + failed_when: false diff --git a/tests/integration/targets/vyos_ospfv2/tasks/post_tasks.yaml b/tests/integration/targets/vyos_ospfv2/tasks/post_tasks.yaml new file mode 100644 index 00000000..e172db2d --- /dev/null +++ b/tests/integration/targets/vyos_ospfv2/tasks/post_tasks.yaml @@ -0,0 +1,7 @@ +--- +- name: Remove pre-requisite configuration + vyos.vyos.vyos_config: + lines: |- + delete policy route-map ingress + vars: + ansible_connection: ansible.netcommon.network_cli diff --git a/tests/integration/targets/vyos_ospfv2/tasks/pre_tasks.yaml b/tests/integration/targets/vyos_ospfv2/tasks/pre_tasks.yaml new file mode 100644 index 00000000..bdca8772 --- /dev/null +++ b/tests/integration/targets/vyos_ospfv2/tasks/pre_tasks.yaml @@ -0,0 +1,7 @@ +--- +- name: Add pre-requisite configuration + vyos.vyos.vyos_config: + lines: |- + set policy route-map ingress + vars: + ansible_connection: ansible.netcommon.network_cli diff --git a/tests/integration/targets/vyos_ospfv2/tests/cli/_get_version.yaml b/tests/integration/targets/vyos_ospfv2/tests/cli/_get_version.yaml new file mode 100644 index 00000000..50b0ec61 --- /dev/null +++ b/tests/integration/targets/vyos_ospfv2/tests/cli/_get_version.yaml @@ -0,0 +1,30 @@ +- name: make sure to get facts + vyos.vyos.vyos_facts: + vars: + ansible_connection: ansible.netcommon.network_cli + register: vyos_facts + when: vyos_version is not defined + +- name: debug vyos_facts + debug: + var: vyos_facts + +- name: pull version from facts + set_fact: + vyos_version: "{{ vyos_facts.ansible_facts.ansible_net_version.split('-')[0].split(' ')[-1] }}" + when: vyos_version is not defined + +- name: fix '.0' versions + set_fact: + vyos_version: "{{ vyos_version }}.0" + when: vyos_version.count('.') == 1 + +- name: include correct vars + include_vars: pre-v1_4.yaml + when: vyos_version is version('1.4.0', '<', version_type='semver') + +- name: include correct vars + include_vars: v1_4.yaml + when: vyos_version is version('1.4.0', '>=', version_type='semver') +# - name: include common vars +# include_vars: main.yaml diff --git a/tests/integration/targets/vyos_ospfv2/tests/cli/_parsed_config.cfg b/tests/integration/targets/vyos_ospfv2/tests/cli/_parsed_config_1_3.cfg index 9cc720b4..0d8100d8 100644 --- a/tests/integration/targets/vyos_ospfv2/tests/cli/_parsed_config.cfg +++ b/tests/integration/targets/vyos_ospfv2/tests/cli/_parsed_config_1_3.cfg @@ -1,6 +1,6 @@ set protocols ospf area 2 area-type 'normal' set protocols ospf area 2 authentication 'plaintext-password' -set protocols ospf area 2 shortcut 'enable' +set protocols ospf area 2 shortcut enable set protocols ospf area 3 area-type 'nssa' set protocols ospf area 4 area-type stub default-cost '20' set protocols ospf area 4 network '192.0.2.0/24' @@ -15,7 +15,7 @@ set protocols ospf log-adjacency-changes 'detail' set protocols ospf max-metric router-lsa 'administrative' set protocols ospf max-metric router-lsa on-shutdown '10' set protocols ospf max-metric router-lsa on-startup '10' -set protocols ospf mpls-te 'enable' +set protocols ospf mpls-te enable set protocols ospf mpls-te router-address '192.0.11.11' set protocols ospf neighbor 192.0.11.12 poll-interval '10' set protocols ospf neighbor 192.0.11.12 priority '2' diff --git a/tests/integration/targets/vyos_ospfv2/tests/cli/_parsed_config_1_4.cfg b/tests/integration/targets/vyos_ospfv2/tests/cli/_parsed_config_1_4.cfg new file mode 100644 index 00000000..8e24ab69 --- /dev/null +++ b/tests/integration/targets/vyos_ospfv2/tests/cli/_parsed_config_1_4.cfg @@ -0,0 +1,29 @@ +set protocols ospf area 2 area-type 'normal' +set protocols ospf area 2 authentication 'plaintext-password' +set protocols ospf area 2 shortcut enable +set protocols ospf area 3 area-type 'nssa' +set protocols ospf area 4 area-type stub default-cost '20' +set protocols ospf area 4 network '192.0.2.0/24' +set protocols ospf area 4 range 192.0.3.0/24 cost '10' +set protocols ospf area 4 range 192.0.4.0/24 cost '12' +set protocols ospf auto-cost reference-bandwidth '2' +set protocols ospf default-information originate 'always' +set protocols ospf default-information originate metric '10' +set protocols ospf default-information originate metric-type '2' +set protocols ospf default-information originate route-map 'ingress' +set protocols ospf log-adjacency-changes 'detail' +set protocols ospf max-metric router-lsa 'administrative' +set protocols ospf max-metric router-lsa on-shutdown '10' +set protocols ospf max-metric router-lsa on-startup '10' +set protocols ospf mpls-te enable +set protocols ospf mpls-te router-address '192.0.11.11' +set protocols ospf neighbor 192.0.11.12 poll-interval '10' +set protocols ospf neighbor 192.0.11.12 priority '2' +set protocols ospf parameters abr-type 'cisco' +set protocols ospf parameters 'opaque-lsa' +set protocols ospf parameters 'rfc1583-compatibility' +set protocols ospf parameters router-id '192.0.1.1' +set protocols ospf interface 'eth1' passive +set protocols ospf interface 'eth2' passive +set protocols ospf redistribute bgp metric '10' +set protocols ospf redistribute bgp metric-type '2' diff --git a/tests/integration/targets/vyos_ospfv2/tests/cli/_populate.yaml b/tests/integration/targets/vyos_ospfv2/tests/cli/_populate.yaml index 872d3302..748dca70 100644 --- a/tests/integration/targets/vyos_ospfv2/tests/cli/_populate.yaml +++ b/tests/integration/targets/vyos_ospfv2/tests/cli/_populate.yaml @@ -1,37 +1,11 @@ --- - ansible.builtin.include_tasks: _remove_config.yaml +- name: ensure facts + include_tasks: _get_version.yaml + - name: Setup + vyos.vyos.vyos_config: + lines: "{{ populate_commands }}" 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'" - ansible.netcommon.cli_config: - config: "{{ lines }}" + ansible_connection: ansible.netcommon.network_cli diff --git a/tests/integration/targets/vyos_ospfv2/tests/cli/parsed.yaml b/tests/integration/targets/vyos_ospfv2/tests/cli/parsed.yaml index ad5b005d..4b6e0c5c 100644 --- a/tests/integration/targets/vyos_ospfv2/tests/cli/parsed.yaml +++ b/tests/integration/targets/vyos_ospfv2/tests/cli/parsed.yaml @@ -2,12 +2,18 @@ - debug: msg: START vyos_ospfv2 parsed integration tests on connection={{ ansible_connection }} +- name: ensure facts + include_tasks: _get_version.yaml + - name: Parse externally provided ospfv2 config to agnostic model register: result vyos.vyos.vyos_ospfv2: - running_config: "{{ lookup('file', '_parsed_config.cfg') }}" + running_config: "{{ lookup('file', parsed_config_file) }}" state: parsed +- debug: + msg: "{{ parsed['after'] }}" + - name: Assert that config was correctly parsed assert: that: diff --git a/tests/integration/targets/vyos_ospfv2/vars/main.yaml b/tests/integration/targets/vyos_ospfv2/vars/main.yaml index 70d25fc7..1f1b9ba8 100644 --- a/tests/integration/targets/vyos_ospfv2/vars/main.yaml +++ b/tests/integration/targets/vyos_ospfv2/vars/main.yaml @@ -1,43 +1,7 @@ --- merged: before: {} - commands: - - set protocols ospf mpls-te enable - - set protocols ospf mpls-te router-address '192.0.11.11' - - set protocols ospf redistribute bgp - - set protocols ospf redistribute bgp metric-type 2 - - set protocols ospf redistribute bgp metric 10 - - set protocols ospf default-information originate metric-type 2 - - set protocols ospf default-information originate always - - set protocols ospf default-information originate metric 10 - - set protocols ospf default-information originate route-map ingress - - set protocols ospf auto-cost reference-bandwidth '2' - - set protocols ospf parameters router-id '192.0.1.1' - - set protocols ospf parameters opaque-lsa - - set protocols ospf parameters abr-type 'cisco' - - set protocols ospf parameters rfc1583-compatibility - - set protocols ospf passive-interface eth1 - - set protocols ospf passive-interface eth2 - - set protocols ospf max-metric router-lsa on-shutdown 10 - - set protocols ospf max-metric router-lsa administrative - - set protocols ospf max-metric router-lsa on-startup 10 - - set protocols ospf log-adjacency-changes 'detail' - - set protocols ospf neighbor 192.0.11.12 priority 2 - - set protocols ospf neighbor 192.0.11.12 poll-interval 10 - - set protocols ospf neighbor 192.0.11.12 - - set protocols ospf area '2' - - set protocols ospf area 2 authentication plaintext-password - - set protocols ospf area 2 shortcut enable - - set protocols ospf area 2 area-type normal - - set protocols ospf area '3' - - set protocols ospf area 3 area-type nssa - - set protocols ospf area 4 range 192.0.3.0/24 cost 10 - - set protocols ospf area 4 range 192.0.3.0/24 - - set protocols ospf area 4 range 192.0.4.0/24 cost 12 - - set protocols ospf area 4 range 192.0.4.0/24 - - set protocols ospf area 4 area-type stub default-cost 20 - - set protocols ospf area '4' - - set protocols ospf area 4 network 192.0.2.0/24 + commands: "{{ merged_commands }}" after: areas: - area_id: "2" @@ -94,6 +58,7 @@ merged: - metric: 10 metric_type: 2 route_type: bgp + merged_update: before: areas: @@ -209,6 +174,7 @@ merged_update: - 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" @@ -265,20 +231,9 @@ populate: - metric: 10 metric_type: 2 route_type: bgp + replaced: - commands: - - delete protocols ospf passive-interface eth2 - - delete protocols ospf area 3 - - delete protocols ospf area 4 range 192.0.3.0/24 cost - - delete protocols ospf area 4 range 192.0.3.0/24 - - delete protocols ospf area 4 range 192.0.4.0/24 cost - - delete protocols ospf area 4 range 192.0.4.0/24 - - set protocols ospf mpls-te router-address '192.0.22.22' - - set protocols ospf area 4 range 1.1.2.0/24 cost 10 - - set protocols ospf area 4 range 1.1.2.0/24 - - set protocols ospf area 4 network 192.0.12.0/24 - - set protocols ospf area 4 network 192.0.22.0/24 - - set protocols ospf area 4 network 192.0.32.0/24 + commands: "{{ replaced_commands }}" after: areas: - area_id: "2" @@ -331,44 +286,10 @@ replaced: - metric: 10 metric_type: 2 route_type: bgp + rendered: - commands: - - set protocols ospf mpls-te enable - - set protocols ospf mpls-te router-address '192.0.11.11' - - set protocols ospf redistribute bgp - - set protocols ospf redistribute bgp metric-type 2 - - set protocols ospf redistribute bgp metric 10 - - set protocols ospf default-information originate metric-type 2 - - set protocols ospf default-information originate always - - set protocols ospf default-information originate metric 10 - - set protocols ospf default-information originate route-map ingress - - set protocols ospf auto-cost reference-bandwidth '2' - - set protocols ospf parameters router-id '192.0.1.1' - - set protocols ospf parameters opaque-lsa - - set protocols ospf parameters abr-type 'cisco' - - set protocols ospf parameters rfc1583-compatibility - - set protocols ospf passive-interface eth1 - - set protocols ospf passive-interface eth2 - - set protocols ospf max-metric router-lsa on-shutdown 10 - - set protocols ospf max-metric router-lsa administrative - - set protocols ospf max-metric router-lsa on-startup 10 - - set protocols ospf log-adjacency-changes 'detail' - - set protocols ospf neighbor 192.0.11.12 priority 2 - - set protocols ospf neighbor 192.0.11.12 poll-interval 10 - - set protocols ospf neighbor 192.0.11.12 - - set protocols ospf area '2' - - set protocols ospf area 2 authentication plaintext-password - - set protocols ospf area 2 shortcut enable - - set protocols ospf area 2 area-type normal - - set protocols ospf area '3' - - set protocols ospf area 3 area-type nssa - - set protocols ospf area 4 range 192.0.3.0/24 cost 10 - - set protocols ospf area 4 range 192.0.3.0/24 - - set protocols ospf area 4 range 192.0.4.0/24 cost 12 - - set protocols ospf area 4 range 192.0.4.0/24 - - set protocols ospf area 4 area-type stub default-cost 20 - - set protocols ospf area '4' - - set protocols ospf area 4 network 192.0.2.0/24 + commands: "{{ rendered_commands }}" + parsed: after: areas: @@ -426,10 +347,12 @@ parsed: - metric: 10 metric_type: 2 route_type: bgp + deleted: commands: - delete protocols ospf after: {} + round_trip: after: areas: diff --git a/tests/integration/targets/vyos_ospfv2/vars/pre-v1_4.yaml b/tests/integration/targets/vyos_ospfv2/vars/pre-v1_4.yaml new file mode 100644 index 00000000..a5e8a725 --- /dev/null +++ b/tests/integration/targets/vyos_ospfv2/vars/pre-v1_4.yaml @@ -0,0 +1,123 @@ +--- +merged_commands: + - set protocols ospf mpls-te enable + - set protocols ospf mpls-te router-address '192.0.11.11' + - set protocols ospf redistribute bgp + - set protocols ospf redistribute bgp metric-type 2 + - set protocols ospf redistribute bgp metric 10 + - set protocols ospf default-information originate metric-type 2 + - set protocols ospf default-information originate always + - set protocols ospf default-information originate metric 10 + - set protocols ospf default-information originate route-map ingress + - set protocols ospf auto-cost reference-bandwidth '2' + - set protocols ospf parameters router-id '192.0.1.1' + - set protocols ospf parameters opaque-lsa + - set protocols ospf parameters abr-type 'cisco' + - set protocols ospf parameters rfc1583-compatibility + - set protocols ospf passive-interface eth1 + - set protocols ospf passive-interface eth2 + - set protocols ospf max-metric router-lsa on-shutdown 10 + - set protocols ospf max-metric router-lsa administrative + - set protocols ospf max-metric router-lsa on-startup 10 + - set protocols ospf log-adjacency-changes 'detail' + - set protocols ospf neighbor 192.0.11.12 priority 2 + - set protocols ospf neighbor 192.0.11.12 poll-interval 10 + - set protocols ospf neighbor 192.0.11.12 + - set protocols ospf area '2' + - set protocols ospf area 2 authentication plaintext-password + - set protocols ospf area 2 shortcut enable + - set protocols ospf area 2 area-type normal + - set protocols ospf area '3' + - set protocols ospf area 3 area-type nssa + - set protocols ospf area 4 range 192.0.3.0/24 cost 10 + - set protocols ospf area 4 range 192.0.3.0/24 + - set protocols ospf area 4 range 192.0.4.0/24 cost 12 + - set protocols ospf area 4 range 192.0.4.0/24 + - set protocols ospf area 4 area-type stub default-cost 20 + - set protocols ospf area '4' + - set protocols ospf area 4 network 192.0.2.0/24 + +populate_commands: + - set protocols ospf mpls-te 'enable' + - set protocols ospf mpls-te router-address '192.0.11.11' + - set protocols ospf redistribute bgp metric-type '2' + - set protocols ospf redistribute bgp metric '10' + - set protocols ospf default-information originate metric-type '2' + - set protocols ospf default-information originate 'always' + - set protocols ospf default-information originate metric '10' + - set protocols ospf default-information originate route-map 'ingress' + - set protocols ospf auto-cost reference-bandwidth '2' + - set protocols ospf parameters router-id '192.0.1.1' + - set protocols ospf parameters 'opaque-lsa' + - set protocols ospf parameters abr-type 'cisco' + - set protocols ospf parameters 'rfc1583-compatibility' + - set protocols ospf passive-interface 'eth1' + - set protocols ospf passive-interface 'eth2' + - set protocols ospf max-metric router-lsa on-shutdown '10' + - set protocols ospf max-metric router-lsa 'administrative' + - set protocols ospf max-metric router-lsa on-startup '10' + - set protocols ospf log-adjacency-changes 'detail' + - set protocols ospf neighbor 192.0.11.12 priority '2' + - set protocols ospf neighbor 192.0.11.12 poll-interval '10' + - set protocols ospf area 2 authentication 'plaintext-password' + - set protocols ospf area 2 shortcut 'enable' + - set protocols ospf area 2 area-type 'normal' + - set protocols ospf area 3 area-type 'nssa' + - set protocols ospf area 4 range 192.0.3.0/24 cost '10' + - set protocols ospf area 4 range 192.0.4.0/24 cost '12' + - set protocols ospf area 4 area-type stub default-cost '20' + - set protocols ospf area 4 network '192.0.2.0/24' + +replaced_commands: + - delete protocols ospf passive-interface eth2 + - delete protocols ospf area 3 + - delete protocols ospf area 4 range 192.0.3.0/24 cost + - delete protocols ospf area 4 range 192.0.3.0/24 + - delete protocols ospf area 4 range 192.0.4.0/24 cost + - delete protocols ospf area 4 range 192.0.4.0/24 + - set protocols ospf mpls-te router-address '192.0.22.22' + - set protocols ospf area 4 range 1.1.2.0/24 cost 10 + - set protocols ospf area 4 range 1.1.2.0/24 + - set protocols ospf area 4 network 192.0.12.0/24 + - set protocols ospf area 4 network 192.0.22.0/24 + - set protocols ospf area 4 network 192.0.32.0/24 + +rendered_commands: + - set protocols ospf mpls-te enable + - set protocols ospf mpls-te router-address '192.0.11.11' + - set protocols ospf redistribute bgp + - set protocols ospf redistribute bgp metric-type 2 + - set protocols ospf redistribute bgp metric 10 + - set protocols ospf default-information originate metric-type 2 + - set protocols ospf default-information originate always + - set protocols ospf default-information originate metric 10 + - set protocols ospf default-information originate route-map ingress + - set protocols ospf auto-cost reference-bandwidth '2' + - set protocols ospf parameters router-id '192.0.1.1' + - set protocols ospf parameters opaque-lsa + - set protocols ospf parameters abr-type 'cisco' + - set protocols ospf parameters rfc1583-compatibility + - set protocols ospf passive-interface eth1 + - set protocols ospf passive-interface eth2 + - set protocols ospf max-metric router-lsa on-shutdown 10 + - set protocols ospf max-metric router-lsa administrative + - set protocols ospf max-metric router-lsa on-startup 10 + - set protocols ospf log-adjacency-changes 'detail' + - set protocols ospf neighbor 192.0.11.12 priority 2 + - set protocols ospf neighbor 192.0.11.12 poll-interval 10 + - set protocols ospf neighbor 192.0.11.12 + - set protocols ospf area '2' + - set protocols ospf area 2 authentication plaintext-password + - set protocols ospf area 2 shortcut enable + - set protocols ospf area 2 area-type normal + - set protocols ospf area '3' + - set protocols ospf area 3 area-type nssa + - set protocols ospf area 4 range 192.0.3.0/24 cost 10 + - set protocols ospf area 4 range 192.0.3.0/24 + - set protocols ospf area 4 range 192.0.4.0/24 cost 12 + - set protocols ospf area 4 range 192.0.4.0/24 + - set protocols ospf area 4 area-type stub default-cost 20 + - set protocols ospf area '4' + - set protocols ospf area 4 network 192.0.2.0/24 + +parsed_config_file: "_parsed_config_1_3.cfg" diff --git a/tests/integration/targets/vyos_ospfv2/vars/v1_4.yaml b/tests/integration/targets/vyos_ospfv2/vars/v1_4.yaml new file mode 100644 index 00000000..4b7d0ab1 --- /dev/null +++ b/tests/integration/targets/vyos_ospfv2/vars/v1_4.yaml @@ -0,0 +1,123 @@ +--- +merged_commands: + - set protocols ospf mpls-te enable + - set protocols ospf mpls-te router-address '192.0.11.11' + - set protocols ospf redistribute bgp + - set protocols ospf redistribute bgp metric-type 2 + - set protocols ospf redistribute bgp metric 10 + - set protocols ospf default-information originate metric-type 2 + - set protocols ospf default-information originate always + - set protocols ospf default-information originate metric 10 + - set protocols ospf default-information originate route-map ingress + - set protocols ospf auto-cost reference-bandwidth '2' + - set protocols ospf parameters router-id '192.0.1.1' + - set protocols ospf parameters opaque-lsa + - set protocols ospf parameters abr-type 'cisco' + - set protocols ospf parameters rfc1583-compatibility + - set protocols ospf interface eth1 passive + - set protocols ospf interface eth2 passive + - set protocols ospf max-metric router-lsa on-shutdown 10 + - set protocols ospf max-metric router-lsa administrative + - set protocols ospf max-metric router-lsa on-startup 10 + - set protocols ospf log-adjacency-changes 'detail' + - set protocols ospf neighbor 192.0.11.12 priority 2 + - set protocols ospf neighbor 192.0.11.12 poll-interval 10 + - set protocols ospf neighbor 192.0.11.12 + - set protocols ospf area '2' + - set protocols ospf area 2 authentication plaintext-password + - set protocols ospf area 2 shortcut enable + - set protocols ospf area 2 area-type normal + - set protocols ospf area '3' + - set protocols ospf area 3 area-type nssa + - set protocols ospf area 4 range 192.0.3.0/24 cost 10 + - set protocols ospf area 4 range 192.0.3.0/24 + - set protocols ospf area 4 range 192.0.4.0/24 cost 12 + - set protocols ospf area 4 range 192.0.4.0/24 + - set protocols ospf area 4 area-type stub default-cost 20 + - set protocols ospf area '4' + - set protocols ospf area 4 network 192.0.2.0/24 + +populate_commands: + - set protocols ospf mpls-te 'enable' + - set protocols ospf mpls-te router-address '192.0.11.11' + - set protocols ospf redistribute bgp metric-type '2' + - set protocols ospf redistribute bgp metric '10' + - set protocols ospf default-information originate metric-type '2' + - set protocols ospf default-information originate 'always' + - set protocols ospf default-information originate metric '10' + - set protocols ospf default-information originate route-map 'ingress' + - set protocols ospf auto-cost reference-bandwidth '2' + - set protocols ospf parameters router-id '192.0.1.1' + - set protocols ospf parameters 'opaque-lsa' + - set protocols ospf parameters abr-type 'cisco' + - set protocols ospf parameters 'rfc1583-compatibility' + - set protocols ospf interface 'eth1' passive + - set protocols ospf interface 'eth2' passive + - set protocols ospf max-metric router-lsa on-shutdown '10' + - set protocols ospf max-metric router-lsa 'administrative' + - set protocols ospf max-metric router-lsa on-startup '10' + - set protocols ospf log-adjacency-changes 'detail' + - set protocols ospf neighbor 192.0.11.12 priority '2' + - set protocols ospf neighbor 192.0.11.12 poll-interval '10' + - set protocols ospf area 2 authentication 'plaintext-password' + - set protocols ospf area 2 shortcut 'enable' + - set protocols ospf area 2 area-type 'normal' + - set protocols ospf area 3 area-type 'nssa' + - set protocols ospf area 4 range 192.0.3.0/24 cost '10' + - set protocols ospf area 4 range 192.0.4.0/24 cost '12' + - set protocols ospf area 4 area-type stub default-cost '20' + - set protocols ospf area 4 network '192.0.2.0/24' + +replaced_commands: + - delete protocols ospf interface eth2 passive + - delete protocols ospf area 3 + - delete protocols ospf area 4 range 192.0.3.0/24 cost + - delete protocols ospf area 4 range 192.0.3.0/24 + - delete protocols ospf area 4 range 192.0.4.0/24 cost + - delete protocols ospf area 4 range 192.0.4.0/24 + - set protocols ospf mpls-te router-address '192.0.22.22' + - set protocols ospf area 4 range 1.1.2.0/24 cost 10 + - set protocols ospf area 4 range 1.1.2.0/24 + - set protocols ospf area 4 network 192.0.12.0/24 + - set protocols ospf area 4 network 192.0.22.0/24 + - set protocols ospf area 4 network 192.0.32.0/24 + +rendered_commands: + - set protocols ospf mpls-te enable + - set protocols ospf mpls-te router-address '192.0.11.11' + - set protocols ospf redistribute bgp + - set protocols ospf redistribute bgp metric-type 2 + - set protocols ospf redistribute bgp metric 10 + - set protocols ospf default-information originate metric-type 2 + - set protocols ospf default-information originate always + - set protocols ospf default-information originate metric 10 + - set protocols ospf default-information originate route-map ingress + - set protocols ospf auto-cost reference-bandwidth '2' + - set protocols ospf parameters router-id '192.0.1.1' + - set protocols ospf parameters opaque-lsa + - set protocols ospf parameters abr-type 'cisco' + - set protocols ospf parameters rfc1583-compatibility + - set protocols ospf interface eth1 passive + - set protocols ospf interface eth2 passive + - set protocols ospf max-metric router-lsa on-shutdown 10 + - set protocols ospf max-metric router-lsa administrative + - set protocols ospf max-metric router-lsa on-startup 10 + - set protocols ospf log-adjacency-changes 'detail' + - set protocols ospf neighbor 192.0.11.12 priority 2 + - set protocols ospf neighbor 192.0.11.12 poll-interval 10 + - set protocols ospf neighbor 192.0.11.12 + - set protocols ospf area '2' + - set protocols ospf area 2 authentication plaintext-password + - set protocols ospf area 2 shortcut enable + - set protocols ospf area 2 area-type normal + - set protocols ospf area '3' + - set protocols ospf area 3 area-type nssa + - set protocols ospf area 4 range 192.0.3.0/24 cost 10 + - set protocols ospf area 4 range 192.0.3.0/24 + - set protocols ospf area 4 range 192.0.4.0/24 cost 12 + - set protocols ospf area 4 range 192.0.4.0/24 + - set protocols ospf area 4 area-type stub default-cost 20 + - set protocols ospf area '4' + - set protocols ospf area 4 network 192.0.2.0/24 + +parsed_config_file: "_parsed_config_1_4.cfg" |