Page MenuHomeVyOS Platform

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

Description

 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/configtree.py", 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

Details

Difficulty level
Easy (less than an hour)
Version
1.3-20210221
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)