Skip to content

yang(sonic-interface): name of value "Ethernet0.666" points to a non-existing leaf #21631

@tomvil

Description

@tomvil

After enabling use-link-local-only on subinterface config override-config-table starts to generate yang error:

libyang[0]: Leafref "/sonic-port:sonic-port/sonic-port:PORT/sonic-port:PORT_LIST/sonic-port:name" of value "Ethernet0.666" points to a non-existing leaf. (path: /sonic-interface:sonic-interface/INTERFACE/INTERFACE_LIST[name='Ethernet0.666']/name)

How to reproduce:

  1. Add subinterface Ethernet0.666
  2. config interface ipv6 enable use-link-local-only Ethernet0.666
  3. config override-config-table /etc/sonic/random_config.json
  4. See the error the was mentioned above.
SONiC Software Version: SONiC.202405.0-dirty-20240916.120509
SONiC OS Version: 12
Distribution: Debian 12.7
Kernel: 6.1.0-11-2-amd64
Build commit: ee93bc7bd
Build date: Mon Sep 16 09:11:13 UTC 2024
Built by: netop@netop

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions