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

lib: Correct handling of /frr-vrf:lib/vrf/state/active #18268

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

donaldsharp
Copy link
Member

This value in the yang tree was returning NULL for when the state of the vrf was not active. It should return a false.

Before:

eva# show mgmt get-data /frr-vrf:lib/vrf[name="vrf1"] {
"frr-vrf:lib": {
"vrf": [
{
"name": "vrf1",
"state": {
"id": 4294967295
}
eva# show mgmt get-data /frr-vrf:lib/vrf[name="BLUE"] {
"frr-vrf:lib": {
"vrf": [
{
"name": "BLUE",
"state": {
"id": 68,
"active": true
},

After:

eva# show mgmt get-data /frr-vrf:lib/vrf[name="vrf1"] {
"frr-vrf:lib": {
"vrf": [
{
"name": "vrf1",
"state": {
"id": 4294967295,
"active": false
}

eva# show mgmt get-data /frr-vrf:lib/vrf[name="BLUE"] {
"frr-vrf:lib": {
"vrf": [
{
"name": "BLUE",
"state": {
"id": 68,
"active": true
},

This value in the yang tree was returning NULL for
when the state of the vrf was not active.  It should
return a false.

Before:

eva# show mgmt get-data /frr-vrf:lib/vrf[name="vrf1"]
{
  "frr-vrf:lib": {
    "vrf": [
      {
        "name": "vrf1",
        "state": {
          "id": 4294967295
        }
eva# show mgmt get-data /frr-vrf:lib/vrf[name="BLUE"]
{
  "frr-vrf:lib": {
    "vrf": [
      {
        "name": "BLUE",
        "state": {
          "id": 68,
          "active": true
        },

After:

eva# show mgmt get-data /frr-vrf:lib/vrf[name="vrf1"]
{
  "frr-vrf:lib": {
    "vrf": [
      {
        "name": "vrf1",
        "state": {
          "id": 4294967295,
          "active": false
        }

eva# show mgmt get-data /frr-vrf:lib/vrf[name="BLUE"]
{
  "frr-vrf:lib": {
    "vrf": [
      {
        "name": "BLUE",
        "state": {
          "id": 68,
          "active": true
        },

Signed-off-by: Donald Sharp <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant