Skip to content

Instantly share code, notes, and snippets.

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/0698d6defba6ef7099e934df463c1fd2 to your computer and use it in GitHub Desktop.
Save rohitthakur2590/0698d6defba6ef7099e934df463c1fd2 to your computer and use it in GitHub Desktop.
sample Input config :
so for a config like
router ospf 2
router-id 2.2.2.2
summary-in enable
external-out enable
bfd minimum-interval 55
bfd fast-detect strict-mode
bfd multiplier 4
cost 2
authentication-key encrypted 14161C180506262E302D2021
authentication message-digest keychain ansibleiosxr
packet-size 577
weight 2
passive disable
database-filter all out enable
priority 1
mtu-ignore enable
flood-reduction enable
dead-interval 2
retransmit-interval 2
demand-circuit enable
hello-interval 1
transmit-delay 2
default-metric 10
area 10
cost 11
authentication message-digest keychain myarea10
nssa no-redistribution no-summary
default-cost 10
!
area 20
cost 20
authentication keychain myarea
stub no-summary
default-cost 20
!
area 30
bfd minimum-interval 60
bfd fast-detect strict-mode
bfd multiplier 10
authentication-key encrypted 12180B041B090001
mpls ldp sync
mtu-ignore enable
dead-interval 30
hello-interval 20
transmit-delay 30
mpls ldp sync-igp-shortcuts disable
range 192.0.20.0/24 advertise
range 192.0.21.0/24 advertise
mpls traffic-eng
!
vrf blue
area 20
cost 90
!
!
!
router ospf 3
cost 20
authentication message-digest keychain ansibletest
adjacency stagger 1 100
auto-cost reference-bandwidth 2
capability type7 prefer
capability opaque disable
apply-weight bandwidth 22
address-family ipv4 unicast
!
router ospf 30
!
router ospf Trial
area 12
multi-area-interface BVI12
authentication
!
!
!
Output by IOSXR flat config generator
router ospf 2
router ospf 2 router-id 2.2.2.2
router ospf 2 summary-in enable
router ospf 2 external-out enable
router ospf 2 bfd minimum-interval 55
router ospf 2 bfd fast-detect strict-mode
router ospf 2 bfd multiplier 4
router ospf 2 cost 2
router ospf 2 authentication-key encrypted 14161C180506262E302D2021
router ospf 2 authentication message-digest keychain ansibleiosxr
router ospf 2 packet-size 577
router ospf 2 weight 2
router ospf 2 passive disable
router ospf 2 database-filter all out enable
router ospf 2 priority 1
router ospf 2 mtu-ignore enable
router ospf 2 flood-reduction enable
router ospf 2 dead-interval 2
router ospf 2 retransmit-interval 2
router ospf 2 demand-circuit enable
router ospf 2 hello-interval 1
router ospf 2 transmit-delay 2
router ospf 2 default-metric 10
router ospf 2 area 10
router ospf 2 area 10 cost 11
router ospf 2 area 10 authentication message-digest keychain myarea10
router ospf 2 area 10 nssa no-redistribution no-summary
router ospf 2 area 10 default-cost 10
router ospf 2 area 20
router ospf 2 area 20 cost 20
router ospf 2 area 20 authentication keychain myarea
router ospf 2 area 20 stub no-summary
router ospf 2 area 20 default-cost 20
router ospf 2 area 30
router ospf 2 area 30 bfd minimum-interval 60
router ospf 2 area 30 bfd fast-detect strict-mode
router ospf 2 area 30 bfd multiplier 10
router ospf 2 area 30 authentication-key encrypted 12180B041B090001
router ospf 2 area 30 mpls ldp sync
router ospf 2 area 30 mtu-ignore enable
router ospf 2 area 30 dead-interval 30
router ospf 2 area 30 hello-interval 20
router ospf 2 area 30 transmit-delay 30
router ospf 2 area 30 mpls ldp sync-igp-shortcuts disable
router ospf 2 area 30 range 192.0.20.0/24 advertise
router ospf 2 area 30 range 192.0.21.0/24 advertise
router ospf 2 area 30 mpls traffic-eng
router ospf 2 vrf blue
router ospf 2 vrf blue area 20
router ospf 2 vrf blue cost 90
router ospf 3
router ospf 3 cost 20
router ospf 3 authentication message-digest keychain ansibletest
router ospf 3 adjacency stagger 1 100
router ospf 3 auto-cost reference-bandwidth 2
router ospf 3 capability type7 prefer
router ospf 3 capability opaque disable
router ospf 3 apply-weight bandwidth 22
router ospf 3 address-family ipv4 unicast
router ospf 30
router ospf Trial
router ospf Trial area 12
router ospf Trial area 12 multi-area-interface BVI12
router ospf Trial area 12 authentication
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment