Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VLAN interface without encapsulation is accepted by YANG model #162

Closed
mattiaswal opened this issue Oct 10, 2023 · 1 comment · Fixed by #165
Closed

VLAN interface without encapsulation is accepted by YANG model #162

mattiaswal opened this issue Oct 10, 2023 · 1 comment · Fixed by #165
Labels
bug Something isn't working
Milestone

Comments

@mattiaswal
Copy link
Contributor

mattiaswal commented Oct 10, 2023

root@infix-00-00-00:/config/> edit interfaces interface vlan1
root@infix-00-00-00:/config/interfaces/interface/vlan1/> set  parent-interface brygga
root@infix-00-00-00:/config/interfaces/interface/vlan1/> leave 
root@infix-00-00-00:/> show interfaces 
INTERFACE       PROTOCOL   STATE       DATA                                     
brygga          ethernet   UP          02:00:00:00:00:00                        
└ e0            ethernet   UP          02:00:00:00:00:00                        
lo              ethernet   UP          00:00:00:00:00:00                        
                ipv4                   127.0.0.1/8 (static)
                ipv6                   ::1/128 (static)
Traceback (most recent call last):
  File "/lib/infix/cli-pretty", line 241, in <module>
    sys.exit(ietf_interfaces(json, args.name))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/lib/infix/cli-pretty", line 229, in ietf_interfaces
    return pr_interface_list(json)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/lib/infix/cli-pretty", line 209, in pr_interface_list
    iface.pr_vlan(ifaces)
  File "/lib/infix/cli-pretty", line 127, in pr_vlan
    self.pr_proto_eth()
  File "/lib/infix/cli-pretty", line 98, in pr_proto_eth
    dec = Decore.green if self.data['oper-status'] == "up" else Decore.red
                          ~~~~~~~~~^^^^^^^^^^^^^^^
KeyError: 'oper-status'
vlan1           
@troglobit
Copy link
Contributor

troglobit commented Oct 11, 2023

@mattiaswal Interesting, did not know the parent-inteface setting could cause this. The proper way to set up a bridge is described here: doc/networking.md

@rical could you have a look at this to help classify it for v23.10?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants