Page MenuHomeVyOS Platform

nat 4-to-5 migration script fails when a 'source' or 'destination' node exists but there are no rules
Closed, ResolvedPublicBUG


 destination {
 source {
     rule 1 {

dmbaturin@reki# load config.boot
Loading configuration from 'config.boot'
Traceback (most recent call last):
  File "/opt/vyatta/etc/config-migrate/migrate/nat/4-to-5", line 42, in <module>
    for rule in config.list_nodes(['nat', direction, 'rule']):
  File "/usr/lib/python3/dist-packages/vyos/", line 236, in list_nodes
    raise ConfigTreeError("Path [{}] doesn't exist".format(path_str))
vyos.configtree.ConfigTreeError: Path [b'nat destination rule'] doesn't exist


Difficulty level
Easy (less than an hour)
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Internal change (not visible to end users)