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

yang error messages associated with every vrf creation #18269

Open
2 tasks done
donaldsharp opened this issue Feb 26, 2025 · 1 comment
Open
2 tasks done

yang error messages associated with every vrf creation #18269

donaldsharp opened this issue Feb 26, 2025 · 1 comment
Assignees
Labels
triage Needs further investigation

Comments

@donaldsharp
Copy link
Member

Description

Creating a vrf and establishing it always generates these yang error messages:

2025/02/26 16:45:04 ZEBRA: libyang: Invalid type uint32 empty value. (Schema location "/frr-vrf:lib/vrf/state/id".)
2025/02/26 16:45:04 ZEBRA: libyang: Invalid boolean value "". (Schema location "/frr-vrf:lib/vrf/state/active".)
2025/02/26 16:45:04 ZEBRA: libyang: Invalid type uint32 empty value. (Schema location "/frr-vrf:lib/vrf/state/id".)
2025/02/26 16:45:04 ZEBRA: libyang: Invalid boolean value "". (Schema location "/frr-vrf:lib/vrf/state/active".)
2025/02/26 16:45:04 ZEBRA: libyang: Invalid type uint32 empty value. (Schema location "/frr-vrf:lib/vrf/state/id".)
2025/02/26 16:45:04 ZEBRA: libyang: Invalid boolean value "". (Schema location "/frr-vrf:lib/vrf/state/active".)
2025/02/26 16:45:04 ZEBRA: libyang: Invalid type uint32 empty value. (Schema location "/frr-vrf:lib/vrf/state/id".)
2025/02/26 16:45:04 ZEBRA: libyang: Invalid boolean value "". (Schema location "/frr-vrf:lib/vrf/state/active".)
2025/02/26 16:45:04 ZEBRA: libyang: Invalid type uint32 empty value. (Schema location "/frr-vrf:lib/vrf/state/id".)

When I comment out the nb_op_update calls in vrf_update_state the messages go away:

static void vrf_update_state(struct vrf *vrf)
{
        if (!vrf->state || !vrf_notify_oper_changes)
                return;

        /*
         * Remove top level container update when we have patch support, for now
         * this keeps us from generating 2 separate REPLACE messages though.
         */
        nb_op_updatef(vrf->state, "id", "%u", vrf->vrf_id);
        nb_op_update(vrf->state, "active", CHECK_FLAG(vrf->status, VRF_ACTIVE) ? "true" : "false");
}

Version

latest master

How to reproduce

Create a vrf and enable it. Look at the log files.

Expected behavior

No error messages

Actual behavior

error messages

Additional context

There comes a time when you must recognize that Llama's are pretty awesome

Checklist

  • I have searched the open issues for this bug.
  • I have not included sensitive information in this report.
@donaldsharp donaldsharp added the triage Needs further investigation label Feb 26, 2025
@choppsv1 choppsv1 self-assigned this Feb 26, 2025
@donaldsharp
Copy link
Member Author

I'm seeing the same type of error for this too:

/ospf_netns_vrf.test_b/r2/zebra.log:2025/02/26 13:27:17.017832 ZEBRA: libyang: Invalid type int32 empty value. (Schema location "/frr-interface:lib/interface/state/if-index".)

My expectation is that this is probably the same type of problem.

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