Page MenuHomeVyOS Platform

ISIS incorrect hostname and LSP ID
Open, NormalPublicBUG

Description

The ISIS hostname and LSP ID displays incorrectly


It should be the same as system hostname.
The command set protocols isis <name> dynamic-hostname the command has no effect. This is expected since the feature is enabled by default.

Details

Difficulty level
Normal (likely a few hours)
Version
1.4-rolling-202101171022
Why the issue appeared?
Issues in third-party code
Is it a breaking change?
Behavior change

Event Timeline

A possible reason, in the FRR hostname, declares 2 times.

hostname debian
log syslog
log facility local7
hostname r5-roll

I can say that after testing here's what I found.

Turn on ISIS and here's how it is by default:

vyos@vyos:~$ show isis hostname
Level  System ID      Dynamic Hostname
     * 0000.0000.0123 debian

Make change:

vyos@TEST3# compare
[edit system]
>host-name booooo
[edit]
vyos@TEST3# commit
[edit]
vyos@TEST3# exit

But ISIS still doesn't show it:

vyos@vyos:~$ show isis hostname
Level  System ID      Dynamic Hostname
     * 0000.0000.0123 debian

Restart FRR and:

vyos@vyos:~$ restart frr
WARNING: This is a potentially unsafe function! You may lose the connection to the router or active configuration after running this command. Use it at your own risk! Continue? [y/N]: y
vyos@vyos:~$ show isis hostname
Level  System ID      Dynamic Hostname
     * 0000.0000.0123 booooo

This seems to be a behavior of FRR. I don't know for sure but, it seems FRR only checks /etc/hostname on startup and takes that value and ONLY that value on startup. It doesn't check it on change.....so for it to work (as in the hostname to change) then FRR must be restarted.I checked it again:

vyos@booooo# set system host-name vyos
[edit]
vyos@booooo# compare
[edit system]
>host-name vyos
[edit]
vyos@booooo# commit
[edit]
vyos@booooo# exit
Warning: configuration changes have not been saved.
exit
vyos@vyos:~$ show isis hostname
Level  System ID      Dynamic Hostname
     * 0000.0000.0123 booooo
vyos@vyos:~$ restart frr
WARNING: This is a potentially unsafe function! You may lose the connection to the router or active configuration after running this command. Use it at your own risk! Continue? [y/N]: y
vyos@vyos:~$ show isis hostname
Level  System ID      Dynamic Hostname
     * 0000.0000.0123 vyos
Viacheslav triaged this task as Normal priority.Mon, Feb 22, 9:34 AM
Viacheslav changed Difficulty level from Unknown (require assessment) to Normal (likely a few hours).
Viacheslav changed Why the issue appeared? from Will be filled on close to Issues in third-party code.