Page MenuHomeVyOS Platform

Container network name with hyphen fail
Closed, ResolvedPublicBUG

Description

Container network name with hyphen creates a wrong name for the network.
foo-bar => foo_bar

vyos@r1-roll# set container network foo-bar prefix 192.168.99.0/24
[edit]
vyos@r1-roll# commit
[edit]
vyos@r1-roll:~$ show container network 
NAME     VERSION  PLUGINS
foo_bar  0.4.0    bridge,portmap,firewall,tuning

We shouldn't mangle tagnodes.

Details

Difficulty level
Easy (less than an hour)
Version
VyOS 1.4-rolling-202106080835
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible

Event Timeline

PR https://github.com/vyos/vyos-1x/pull/873

vyos@r1-roll# set container network foo-bar prefix 192.168.99.0/24
[edit]
vyos@r1-roll# commit
[edit]
vyos@r1-roll# run show container network 
NAME     VERSION  PLUGINS
foo-bar  0.4.0    bridge,portmap,firewall,tuning
[edit]
vyos@r1-roll#