Skip to content

Instantly share code, notes, and snippets.

@rohitthakur2590
Created August 17, 2020 08:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rohitthakur2590/0e18173ee73a07a050d5b02ec6777c3d to your computer and use it in GitHub Desktop.
Save rohitthakur2590/0e18173ee73a07a050d5b02ec6777c3d to your computer and use it in GitHub Desktop.
VyOS running_config_to_structured_data
$ cat nw_inventory/host_vars/vyos/ospfv2.yaml
ospfv2:
areas:
- area_id: '2'
area_type:
normal: true
authentication: plaintext-password
shortcut: enable
- area_id: '4'
area_type:
stub:
default_cost: 20
set: true
network:
- address: 192.0.2.0/24
range:
- address: 192.0.3.0/24
cost: 10
- address: 192.0.4.0/24
cost: 12
auto_cost:
reference_bandwidth: 2
default_information:
originate:
always: true
metric: 10
metric_type: 2
route_map: ingress
log_adjacency_changes: detail
max_metric:
router_lsa:
administrative: true
on_shutdown: 10
on_startup: 10
mpls_te:
enabled: true
router_address: 192.0.11.11
neighbor:
- neighbor_id: 192.0.11.12
poll_interval: 10
priority: 2
parameters:
opaque_lsa: true
rfc1583_compatibility: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment