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

AUTOEXPAND: union with leafref #527

Open
temabeloglinski opened this issue Jun 3, 2024 · 1 comment
Open

AUTOEXPAND: union with leafref #527

temabeloglinski opened this issue Jun 3, 2024 · 1 comment
Labels

Comments

@temabeloglinski
Copy link

Hi Olof!
I have a question about union wth leafref.
I have a structure in which I specify several types of interfaces - loopback and Ethernet.
While the network zone element is being filled, autoexpand does not work.
If I leave only one element without a union, then the autoexpand works without problems.
How to solve this problem?

    grouping interfaces-with-subs
    {

    list interface  {  
      key "name";
      description
        "interface name";

    leaf name {
      description "interface name";     
      type union {
      type leafref {
        path "../../../../interface/ethernet/name";
      }

      type leafref {
        path "../../../../interface/loopback/name";
      }      

    }

    }

    }

    }
root@device/> set context 1 network-zone INSIDE interface ?
  <name>                interface name
root@device/> set context 1 network-zone INSIDE interface
@khromenokroman
Copy link
Contributor

@olofhagsand I have the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants