summaryrefslogtreecommitdiff
path: root/src/migration-scripts/interfaces
diff options
context:
space:
mode:
authorRobert Navarro <crshman@gmail.com>2026-10-08 19:10:20 -0700
committerRobert Navarro <crshman@gmail.com>2026-10-09 09:25:23 -0700
commit104791f05d493f4001ff092717f24bafbfae28e3 (patch)
treeb64dc46f39cd7fa8ee9ed7e6f4da868822a13fe8 /src/migration-scripts/interfaces
parent4b022646b7657416b3429202784ffb280eac9c80 (diff)
downloadvyos-1x-104791f05d493f4001ff092717f24bafbfae28e3.tar.gz
vyos-1x-104791f05d493f4001ff092717f24bafbfae28e3.zip
ospf: T9448: do not render metric-type when it is the default
With metric-type 2 (the CLI default), every FRR reload deletes and re-adds "default-information originate" and every "redistribute" line under "router ospf". ospfd flushes the Type-5 LSAs on the delete and re-originates them right after, so neighbours can briefly lose the external routes on commits that do not touch OSPF. ospfd and ospf6d (for redistribute) write "metric-type 1" back to the running config and print nothing for type 2, their default. The templates render "metric-type 2", so frr-reload sees a different line on every reload. frrender now adds the XML default of metric-type to the OSPF and OSPFv3 dicts as xml_default_metric_type, for the default and every VRF instance. The templates render metric-type only when it differs from that default, so the generated config matches what FRR prints back. OSPFv3 default-information keeps rendering metric-type, as ospf6d prints it for both types. Add smoketests that read the generated config and vtysh for types 2, 1 and back to 2. Rename the "ptotocol" loop variable in test_protocols_ospf.py to "protocol", which the typos check flags on any change to this file.
Diffstat (limited to 'src/migration-scripts/interfaces')
0 files changed, 0 insertions, 0 deletions