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

[email protected]# set container network foo-bar prefix 192.168.99.0/24
[edit]
[email protected]# commit
[edit]
[email protected]:~$ 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

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