OSPF area-type nssa translate 'never'

Hello,
I probably found a bug when i try to “set translate ‘never’” and no-summary in an nssa area, what i see on vyos it’s different from what is setted on frr…

sh conf commands, show it correctly:

set protocols ospf area 0.0.0.10 area-type nssa no-summary
set protocols ospf area 0.0.0.10 area-type nssa translate ‘never’

But if i check on frr:

router ospf
ospf router-id X.X.X.X
auto-cost reference-bandwidth 100
timers throttle spf 200 1000 10000
redistribute nhrp
network X.X.X.X/32 area 0
network Y.Y.Y.Y/28 area 0
network Y.Y.Y.Z/28 area 0.0.0.10
area 0.0.0.10 nssa
exit
!

I can set it from vtysh in this way:

area 0.0.0.10 nssa translate-never no-summary

Version: VyOS 2025.05.13-0019-rolling

What do you see in the FRR with this command or incomplete?
If nothing it could indicate there is a default behaviour for FRR

Hi from frr, using vtysh, chen i change something from vyos conf , all data after "area 0.0.0.10 nssa " are wiped…

I would like to simulate on GNS3 to create a case… is a GNS3 image available or i need to build a current with QEMU and virtual support? because all support for virtual env was removed from night build----

I use this instruction
Never had any issues to start in GNS3

1 Like

Hi (I don’t know if I’m off topic),
I did some test during the weekend…

I’m trying to understand how xml.i, jinja, protocol_ospf.py work…

Because summary for LSA 5/7 are not aggretate from frr, because aggretate syntax is different for LSA3 and 5/7

There is some info to how modify live / installed vyos , instead to build every time to test mods ?

You need to build if you’re making changes to the XML files, but you can do live updates to the conf files on the system without needing to build every time. The files you’ll likely need are:

/usr/libexec/vyos/conf_mode/protocols_ospf.py
/usr/share/vyos/templates/frr/ospfd.frr.j2

After making changes to them, you can run this to load the changes into the config module:
sudo systemctl restart vyos-configd.service

So you could make this change in the jinja file:

area {{ area_id }} {{ type }} {{ 'translate-' + type_config.translate if type_config.translate is vyos_defined }} {{ 'no-summary' if type_config.no_summary is vyos_defined }}

Run:

sudo systemctl restart vyos-configd.service

And then make a change:

set protocols ospf area 10 area-type nssa translate never
set protocols ospf area 10 area-type nssa no-summary

That should now update the FRR config correctly:

cli-dev# show running-config ospfd
Building configuration...

Current configuration:
!
frr version 10.2.2
frr defaults traditional
hostname cli-dev
service integrated-vtysh-config
!
router ospf
 auto-cost reference-bandwidth 100
 timers throttle spf 200 1000 10000
 area 10 nssa translate-never no-summary
exit
!
end

1 Like

Great it’s working :partying_face:

Can create an issue and post your solution on https://vyos.dev/ ?

Or i need to fork vyos-1x on github, create my branch, ecc… ?

You’ll want to do both.

  1. Create a task for a bug on https://vyos.dev
  2. Create a pull request on Github. You need to link the URL for the task on vyos.dev in the PR. There’s a section in the PR template for it.
  3. After you create the PR, you’ll want to link the PR in the vyos.dev task. Just add a comment with the URL for the PR.

Hi I’m trying to build vyos-1x with patched file…

I used the docker I used to build my ISO:

docker run --rm -it --privileged -v $(pwd):/vyos -w /vyos vyos/vyos-build:current bash

I setted env VYOS1X_REPO_URL, but i cannot set branch my branch, i tested using flavour but if i set branch test, it is used also for other repos…

After building an ISO successfully, I tried to build deb packages with my patch, doing checkout of my branch in /vyos/build/vyos-1x, I used dpkg-buildpackage as i saw on forum…

I had some trouble with testing on ipv6, i commented them… but now i have this error

I searched online without success…

I build all successfully, and i pushed the patch:

and the pull request

Thanks to all :slight_smile: