Page MenuHomeVyOS Platform

Python error when deleting nat rule
Closed, ResolvedPublicBUG

Description

Hello,

I'm evaluating Equuleus version and it seems to throw a nasty error when I'm deleting a NAT rule. Below is the relevant config and error.

vyos@vgw1# sh | comp
No changes between working and active configurations
[edit]
vyos@vgw1# del nat destination rule 1001
[edit]
vyos@vgw1# sh | comp
Possible completions:

[edit]
vyos@vgw1# sh | comp
[edit nat destination]
-rule 1001 {

  • destination {
  • address 105.18.13.200
  • }
  • inbound-interface eth0
  • protocol all
  • translation {
  • address 10.100.100.201
  • }

-}
[edit]
vyos@vgw1# commit
[ nat ]
VyOS had an issue completing a command.

We are sorry that you encountered a problem while using VyOS.
There are a few things you can do to help us (and yourself):

When reporting problems, please include as much information as possible:

  • do not obfuscate any data (feel free to contact us privately if your business policy requires it)
  • and include all the information presented below

Report Time: 2020-12-07 22:35:28
Image Version: VyOS 1.3-rolling-202012070217
Release Train: equuleus

Built by: [email protected]
Built on: Mon 07 Dec 2020 02:17 UTC
Build UUID: ae56b005-3d8f-4baf-8f55-2c8883134b73
Build Commit ID: 04b14e52b77bb7

Architecture: x86_64
Boot via: installed image
System type: KVM guest

Hardware vendor: QEMU
Hardware model: Standard PC (i440FX + PIIX, 1996)
Hardware S/N:
Hardware UUID: fa15ec52-8604-49bc-9756-7cf905b130e9

Traceback (most recent call last):

File "/usr/libexec/vyos/conf_mode/nat.py", line 198, in <module>
  c = get_config()
File "/usr/libexec/vyos/conf_mode/nat.py", line 91, in get_config
  for rule in nat[direction]['rule']:

KeyError: 'rule'

nat failed
Commit failed
[edit]

Details

Difficulty level
Unknown (require assessment)
Version
1.3-rolling-202012070217
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

mandrei05 claimed this task.

some corruption. I redeployed the instance and copied the config over and now it works.

erkin renamed this task from 1.3-rolling-202012070217 python error when deleting nat rule to Python error when deleting nat rule.Aug 29 2021, 12:03 PM
erkin set Issue type to Bug (incorrect behavior).
erkin removed a subscriber: Active contributors.