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

FRR 7.5 YANG validation error with libyang 1.0.215 #8521

Closed
vifino opened this issue Apr 20, 2021 · 1 comment
Closed

FRR 7.5 YANG validation error with libyang 1.0.215 #8521

vifino opened this issue Apr 20, 2021 · 1 comment
Assignees
Labels
triage Needs further investigation

Comments

@vifino
Copy link

vifino commented Apr 20, 2021

Describe the bug

  1. Download Alpine 3.13
  2. Install FRR 7.5 (apk add frr)
  3. Upgrade to Alpine Edge or fetch libyang-1.0.215-r0.apk from edge/community.
  4. Start FRR.
  5. Open vtysh in config mode, create a route-map with set src statement.
host# configure
host(config)# route-map SET-SRC permit 1
host(config-route-map)# set src 2a0e:9b42:dead::
% Configuration failed.

Error type: validation
Error description: YANG error(s):
 When condition "./action = 'source'" not satisfied.
 YANG path: /frr-route-map:lib/route-map[name='SET-SRC']/entry[sequence='1']/set-action[action='source']/frr-zebra:source-v4

Expected behavior

No validation errors, config should work exactly as with libyang 1.0.184.

Versions

  • OS Version: Alpine Edge
  • Kernel: 5.10.31
  • FRR Version: 7.5
@vifino vifino added the triage Needs further investigation label Apr 20, 2021
idryzhov added a commit to idryzhov/frr that referenced this issue Apr 22, 2021
Fixes: FRRouting#8521
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
@idryzhov
Copy link
Contributor

Fixed in #8533

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

No branches or pull requests

2 participants