Page MenuHomeVyOS Platform

Exception when configuring unavailable ethernet interface
Closed, ResolvedPublicBUG

Description

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):
- Make sure you are running the latest version of the code available at
  https://downloads.vyos.io/rolling/current/amd64/vyos-rolling-latest.iso
- Consult the forum to see how to handle this issue
  https://forum.vyos.io
- Join our community on slack where our users exchange help and advice
  https://vyos.slack.com

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-08-01 08:39:48
Image Version:    VyOS 1.3-rolling-202007300117
Release Train:    equuleus

Built by:         [email protected]
Built on:         Thu 30 Jul 2020 01:18 UTC
Build UUID:       e88082fc-8564-4571-8aba-94210d4c32ad
Build Commit ID:  09eedb0dccf687

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:    22ea4e2a-4560-4efd-bd48-3422cb958952

Traceback (most recent call last):
  File "/usr/libexec/vyos/conf_mode/interfaces-ethernet.py", line 84, in <module>
    verify(c)
  File "/usr/libexec/vyos/conf_mode/interfaces-ethernet.py", line 47, in verify
    verify_interface_exists(ethernet)
  File "/usr/lib/python3/dist-packages/vyos/configverify.py", line 72, in verify_interface_exists
    raise ConfigError(f'Interface "{ifname}" does not exist!'
NameError: name 'ifname' is not defined

Details

Difficulty level
Easy (less than an hour)
Version
1.3-rolling-202007300117
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Stricter validation
Issue type
Bug (incorrect behavior)

Event Timeline

c-po changed the task status from Open to In progress.Aug 1 2020, 8:41 AM
c-po claimed this task.
c-po created this task.
erkin set Issue type to Bug (incorrect behavior).Aug 29 2021, 1:36 PM
erkin removed a subscriber: Active contributors.