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

problem with the auto-disclosure of leafref values #495

Open
khromenokroman opened this issue Feb 19, 2024 · 1 comment
Open

problem with the auto-disclosure of leafref values #495

khromenokroman opened this issue Feb 19, 2024 · 1 comment
Labels

Comments

@khromenokroman
Copy link

khromenokroman commented Feb 19, 2024

Good afternoon/night

I have a problem with the auto-disclosure of leafref values when leafref is in the union type.

Example:

That's how it works

leaf-list src-address { 
        type union { 
         type leafref {
          path "../../../../../address/ipv4/ipv4-address/address-group/group-name";
         }
        }
        }
root@pc/> set context sample firewall access-policy acl_ipv4 acl-entry 1 src-address
 INTERNAL_SERVER_NETWORK 
 NAT-DYNAMIC             
 NAT-STATIC           
 <dst-address>   

root@pc/> set context sample firewall access-policy acl_ipv4 acl-entry 1 dst-address

It does not work with this setting

leaf-list src-address { 
       type union { 
        type leafref {
         path "../../../../../address/ipv4/ipv4-address/address-group/group-name";
        }
        type enumeration{
        enum ANY;
        }
       }
       }
root@pc/> set context sample firewall access-policy acl_ipv4 acl-entry 1 src-address
  ANY
  INTERNAL_SERVER_NETWORK
  <src-address>
root@pc/> set context sample firewall access-policy acl_ipv4 acl-entry 1 src-address

Can you help me solve this problem?

@olofhagsand
Copy link
Member

Can you please include the yang for the leafref path, ie: /address/ipv4/ipv4-address/address-group/group-name ?

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

2 participants