diff options
Diffstat (limited to 'tests/integration/targets/vyos_ospfv2')
12 files changed, 245 insertions, 273 deletions
diff --git a/tests/integration/targets/vyos_ospfv2/tests/cli/_populate.yaml b/tests/integration/targets/vyos_ospfv2/tests/cli/_populate.yaml index f17c5cb..872d330 100644 --- a/tests/integration/targets/vyos_ospfv2/tests/cli/_populate.yaml +++ b/tests/integration/targets/vyos_ospfv2/tests/cli/_populate.yaml @@ -3,35 +3,35 @@ - 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'" - + 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 }}" diff --git a/tests/integration/targets/vyos_ospfv2/tests/cli/deleted.yaml b/tests/integration/targets/vyos_ospfv2/tests/cli/deleted.yaml index 553bb9f..6a24aae 100644 --- a/tests/integration/targets/vyos_ospfv2/tests/cli/deleted.yaml +++ b/tests/integration/targets/vyos_ospfv2/tests/cli/deleted.yaml @@ -1,7 +1,6 @@ --- - debug: - msg: START vyos_ospfv2 deleted integration tests ansible_connection={{ - ansible_connection }} + msg: START vyos_ospfv2 deleted integration tests ansible_connection={{ ansible_connection }} - include_tasks: _populate.yaml @@ -20,8 +19,7 @@ - name: Assert that the correct set of commands were generated assert: that: - - "{{ deleted['commands'] | symmetric_difference(result['commands']) |length\ - \ == 0 }}" + - "{{ deleted['commands'] | symmetric_difference(result['commands']) |length == 0 }}" - name: Assert that the after dicts were correctly generated assert: diff --git a/tests/integration/targets/vyos_ospfv2/tests/cli/empty_config.yaml b/tests/integration/targets/vyos_ospfv2/tests/cli/empty_config.yaml index 4566bf4..5c5d42c 100644 --- a/tests/integration/targets/vyos_ospfv2/tests/cli/empty_config.yaml +++ b/tests/integration/targets/vyos_ospfv2/tests/cli/empty_config.yaml @@ -1,7 +1,6 @@ --- - debug: - msg: START vyos_ospfv2 empty_config integration tests on connection={{ - ansible_connection }} + msg: START vyos_ospfv2 empty_config integration tests on connection={{ ansible_connection }} - name: Merged with empty config should give appropriate error message register: result @@ -34,8 +33,7 @@ - assert: that: - - result.msg == 'value of running_config parameter must not be empty for state - parsed' + - result.msg == 'value of running_config parameter must not be empty for state parsed' - name: Rendered with empty config should give appropriate error message register: result diff --git a/tests/integration/targets/vyos_ospfv2/tests/cli/gathered.yaml b/tests/integration/targets/vyos_ospfv2/tests/cli/gathered.yaml index a8e3149..239d2e0 100644 --- a/tests/integration/targets/vyos_ospfv2/tests/cli/gathered.yaml +++ b/tests/integration/targets/vyos_ospfv2/tests/cli/gathered.yaml @@ -1,7 +1,6 @@ --- - debug: - msg: START vyos_ospfv2 gathered integration tests on connection={{ - ansible_connection }} + msg: START vyos_ospfv2 gathered integration tests on connection={{ ansible_connection }} - include_tasks: _populate.yaml diff --git a/tests/integration/targets/vyos_ospfv2/tests/cli/merged.yaml b/tests/integration/targets/vyos_ospfv2/tests/cli/merged.yaml index 8aced96..67f688d 100644 --- a/tests/integration/targets/vyos_ospfv2/tests/cli/merged.yaml +++ b/tests/integration/targets/vyos_ospfv2/tests/cli/merged.yaml @@ -1,8 +1,6 @@ --- - debug: - msg: - START vyos_ospfv2 merged integration tests on connection={{ ansible_connection - }} + msg: START vyos_ospfv2 merged integration tests on connection={{ ansible_connection }} - include_tasks: _remove_config.yaml @@ -11,7 +9,7 @@ register: result vyos.vyos.vyos_ospfv2: &id001 config: - log_adjacency_changes: "detail" + log_adjacency_changes: detail max_metric: router_lsa: administrative: true @@ -22,34 +20,34 @@ 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_type: normal: true - authentication: "plaintext-password" - shortcut: "enable" + authentication: plaintext-password + shortcut: enable - area_id: "3" area_type: nssa: @@ -59,11 +57,11 @@ 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 @@ -74,17 +72,14 @@ - name: Assert that correct set of commands were generated assert: that: - - "{{ merged['commands'] | symmetric_difference(result['commands']) |length\ - \ == 0 }}" + - "{{ merged['commands'] | symmetric_difference(result['commands']) |length == 0 }}" - name: Assert that after dicts was correctly generated assert: that: - "{{ merged['after'] == result['after'] }}" - - name: - Merge the provided configuration with the existing running configuration - (IDEMPOTENT) + - name: Merge the provided configuration with the existing running configuration (IDEMPOTENT) register: result vyos.vyos.vyos_ospfv2: *id001 diff --git a/tests/integration/targets/vyos_ospfv2/tests/cli/merged_update.yaml b/tests/integration/targets/vyos_ospfv2/tests/cli/merged_update.yaml index bc82146..60243c3 100644 --- a/tests/integration/targets/vyos_ospfv2/tests/cli/merged_update.yaml +++ b/tests/integration/targets/vyos_ospfv2/tests/cli/merged_update.yaml @@ -1,8 +1,6 @@ --- - debug: - msg: - START vyos_ospfv2 merged integration tests on connection={{ ansible_connection - }} + msg: START vyos_ospfv2 merged integration tests on connection={{ ansible_connection }} - include_tasks: _populate.yaml @@ -11,14 +9,14 @@ register: result vyos.vyos.vyos_ospfv2: &id001 config: - log_adjacency_changes: "detail" + log_adjacency_changes: detail max_metric: router_lsa: administrative: true on_shutdown: 10 on_startup: 10 passive_interface: - - "eth1" + - eth1 areas: - area_id: "3" area_type: @@ -29,9 +27,9 @@ stub: set: false 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 state: merged - name: Assert that before dicts were correctly generated @@ -41,17 +39,14 @@ - name: Assert that correct set of commands were generated assert: that: - - "{{ merged_update['commands'] | symmetric_difference(result['commands']) |length\ - \ == 0 }}" + - "{{ merged_update['commands'] | symmetric_difference(result['commands']) |length == 0 }}" - name: Assert that after dicts was correctly generated assert: that: - "{{ merged_update['after'] == result['after'] }}" - - name: - Merge the provided configuration with the existing running configuration - (IDEMPOTENT) + - name: Merge the provided configuration with the existing running configuration (IDEMPOTENT) register: result vyos.vyos.vyos_ospfv2: *id001 diff --git a/tests/integration/targets/vyos_ospfv2/tests/cli/parsed.yaml b/tests/integration/targets/vyos_ospfv2/tests/cli/parsed.yaml index ac5c203..ad5b005 100644 --- a/tests/integration/targets/vyos_ospfv2/tests/cli/parsed.yaml +++ b/tests/integration/targets/vyos_ospfv2/tests/cli/parsed.yaml @@ -1,8 +1,6 @@ --- - 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 register: result diff --git a/tests/integration/targets/vyos_ospfv2/tests/cli/rendered.yaml b/tests/integration/targets/vyos_ospfv2/tests/cli/rendered.yaml index e11aa6a..2372300 100644 --- a/tests/integration/targets/vyos_ospfv2/tests/cli/rendered.yaml +++ b/tests/integration/targets/vyos_ospfv2/tests/cli/rendered.yaml @@ -1,7 +1,6 @@ --- - debug: - msg: START vyos_ospfv2 rendered integration tests on connection={{ - ansible_connection }} + msg: START vyos_ospfv2 rendered integration tests on connection={{ ansible_connection }} - include_tasks: _remove_config.yaml @@ -10,7 +9,7 @@ register: result vyos.vyos.vyos_ospfv2: config: - log_adjacency_changes: "detail" + log_adjacency_changes: detail max_metric: router_lsa: administrative: true @@ -21,34 +20,34 @@ 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_type: normal: true - authentication: "plaintext-password" - shortcut: "enable" + authentication: plaintext-password + shortcut: enable - area_id: "3" area_type: nssa: @@ -58,18 +57,17 @@ 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 - name: Assert that correct set of commands were generated assert: that: - - "{{ rendered['commands'] | symmetric_difference(result['rendered'])\ - \ |length == 0 }}" + - "{{ rendered['commands'] | symmetric_difference(result['rendered']) |length == 0 }}" - debug: msg: END vyos_ospfv2 rendered integration tests on connection={{ ansible_connection }} diff --git a/tests/integration/targets/vyos_ospfv2/tests/cli/replaced.yaml b/tests/integration/targets/vyos_ospfv2/tests/cli/replaced.yaml index b348484..93d7efe 100644 --- a/tests/integration/targets/vyos_ospfv2/tests/cli/replaced.yaml +++ b/tests/integration/targets/vyos_ospfv2/tests/cli/replaced.yaml @@ -1,7 +1,6 @@ --- - debug: - msg: START vyos_ospfv2 replaced integration tests on connection={{ - ansible_connection }} + msg: START vyos_ospfv2 replaced integration tests on connection={{ ansible_connection }} - include_tasks: _populate.yaml @@ -10,7 +9,7 @@ register: result vyos.vyos.vyos_ospfv2: &id001 config: - log_adjacency_changes: "detail" + log_adjacency_changes: detail max_metric: router_lsa: administrative: true @@ -21,52 +20,51 @@ 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_type: normal: true - authentication: "plaintext-password" - shortcut: "enable" + authentication: plaintext-password + 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 - name: Assert that correct set of commands were generated assert: that: - - "{{ replaced['commands'] | symmetric_difference(result['commands'])\ - \ |length == 0 }}" + - "{{ replaced['commands'] | symmetric_difference(result['commands']) |length == 0 }}" - name: Assert that before dicts are correctly generated assert: @@ -78,9 +76,7 @@ that: - "{{ replaced['after'] == result['after'] }}" - - name: - Replace device configurations of listed ospfv2 routes with provided configurarions - (IDEMPOTENT) + - name: Replace device configurations of listed ospfv2 routes with provided configurarions (IDEMPOTENT) register: result vyos.vyos.vyos_ospfv2: *id001 diff --git a/tests/integration/targets/vyos_ospfv2/tests/cli/rtt.yaml b/tests/integration/targets/vyos_ospfv2/tests/cli/rtt.yaml index 9407ffa..60f96f5 100644 --- a/tests/integration/targets/vyos_ospfv2/tests/cli/rtt.yaml +++ b/tests/integration/targets/vyos_ospfv2/tests/cli/rtt.yaml @@ -1,7 +1,6 @@ --- - debug: - msg: START vyos_ospfv2 round trip integration tests on connection={{ - ansible_connection }} + msg: START vyos_ospfv2 round trip integration tests on connection={{ ansible_connection }} - include_tasks: _remove_config.yaml @@ -10,7 +9,7 @@ register: base_config vyos.vyos.vyos_ospfv2: config: - log_adjacency_changes: "detail" + log_adjacency_changes: detail max_metric: router_lsa: administrative: true @@ -21,34 +20,34 @@ 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_type: normal: true - authentication: "plaintext-password" - shortcut: "enable" + authentication: plaintext-password + shortcut: enable - area_id: "3" area_type: nssa: @@ -58,11 +57,11 @@ 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 @@ -81,20 +80,20 @@ - area_id: "2" area_type: normal: true - authentication: "plaintext-password" - shortcut: "enable" + authentication: plaintext-password + 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 @@ -103,8 +102,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 @@ -112,22 +111,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 diff --git a/tests/integration/targets/vyos_ospfv2/tests/redirection/cli/shortname.yaml b/tests/integration/targets/vyos_ospfv2/tests/redirection/cli/shortname.yaml index 15295d1..89f734e 100644 --- a/tests/integration/targets/vyos_ospfv2/tests/redirection/cli/shortname.yaml +++ b/tests/integration/targets/vyos_ospfv2/tests/redirection/cli/shortname.yaml @@ -1,7 +1,6 @@ --- - debug: - msg: START shortname integration tests on connection={{ ansible_connection - }} + msg: START shortname integration tests on connection={{ ansible_connection }} - include_tasks: _remove_config.yaml @@ -10,7 +9,7 @@ register: result vyos.vyos.ospfv2: &id001 config: - log_adjacency_changes: "detail" + log_adjacency_changes: detail max_metric: router_lsa: administrative: true @@ -21,34 +20,34 @@ 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_type: normal: true - authentication: "plaintext-password" - shortcut: "enable" + authentication: plaintext-password + shortcut: enable - area_id: "3" area_type: nssa: @@ -58,11 +57,11 @@ 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 @@ -73,17 +72,14 @@ - name: Assert that correct set of commands were generated assert: that: - - "{{ merged['commands'] | symmetric_difference(result['commands']) |length\ - \ == 0 }}" + - "{{ merged['commands'] | symmetric_difference(result['commands']) |length == 0 }}" - name: Assert that after dicts was correctly generated assert: that: - "{{ merged['after'] == result['after'] }}" - - name: - Merge the provided configuration with the existing running configuration - (IDEMPOTENT) + - name: Merge the provided configuration with the existing running configuration (IDEMPOTENT) register: result vyos.vyos.ospfv2: *id001 diff --git a/tests/integration/targets/vyos_ospfv2/vars/main.yaml b/tests/integration/targets/vyos_ospfv2/vars/main.yaml index da81c19..70d25fc 100644 --- a/tests/integration/targets/vyos_ospfv2/vars/main.yaml +++ b/tests/integration/targets/vyos_ospfv2/vars/main.yaml @@ -43,8 +43,8 @@ merged: - area_id: "2" area_type: normal: true - authentication: "plaintext-password" - shortcut: "enable" + authentication: plaintext-password + shortcut: enable - area_id: "3" area_type: nssa: @@ -55,11 +55,11 @@ merged: 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,31 +77,31 @@ 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_type: normal: true - authentication: "plaintext-password" - shortcut: "enable" + authentication: plaintext-password + shortcut: enable - area_id: "3" area_type: nssa: @@ -112,11 +112,11 @@ merged_update: 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_type: normal: true - authentication: "plaintext-password" - shortcut: "enable" + authentication: plaintext-password + shortcut: enable - area_id: "3" area_type: nssa: set: true - 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,23 +188,23 @@ 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 @@ -214,8 +214,8 @@ populate: - area_id: "2" area_type: normal: true - authentication: "plaintext-password" - shortcut: "enable" + authentication: plaintext-password + shortcut: enable - area_id: "3" area_type: nssa: @@ -226,11 +226,11 @@ populate: 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 @@ -284,20 +284,20 @@ replaced: - area_id: "2" area_type: normal: true - authentication: "plaintext-password" - shortcut: "enable" + authentication: plaintext-password + 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 @@ -375,8 +375,8 @@ parsed: - area_id: "2" area_type: normal: true - authentication: "plaintext-password" - shortcut: "enable" + authentication: plaintext-password + shortcut: enable - area_id: "3" area_type: nssa: @@ -387,11 +387,11 @@ parsed: 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,26 +409,26 @@ 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: @@ -436,20 +436,20 @@ round_trip: - area_id: "2" area_type: normal: true - authentication: "plaintext-password" - shortcut: "enable" + authentication: plaintext-password + 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 |