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

When setting both mtu and ipv4 address on interface in same gNMI request, mtu is not set, but address is. #175

Open
seiferteric opened this issue Oct 14, 2019 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@seiferteric
Copy link

The request looks like this:

{
  "openconfig-interfaces:config": {
    "description": "lab1-ed001:Eth10/1",
    "mtu": 9000,
    "name": "Ethernet4"
  },
  "openconfig-interfaces:name": "Ethernet4",
  "openconfig-interfaces:subinterfaces": {
    "subinterface": [
      {
        "config": {
          "description": "lab1-ed001:Eth10/1",
          "enabled": true,
          "index": 0
        },
        "index": 0,
        "openconfig-if-ip:ipv4": {
          "addresses": {
            "address": [
              {
                "config": {
                  "ip": "10.11.2.1",
                  "prefix-length": 31
                },
                "ip": "10.11.2.1"
              }
            ]
          }
        }
      }
    ]
  }
}

The path is: openconfig-interfaces:interfaces/interface[name=Ethernet4]

After the update is ran, the ip address is set, but the mtu is not. If I set the mtu separately, the mtu is set correctly.

@seiferteric
Copy link
Author

Actually, just setting mtu alone from the top level interface does not work. It only works when I specify the full path like: /openconfig-interfaces:interfaces/interface[name=Ethernet4]/config/mtu and a payload like:

{
  "mtu": 9000
}

@jeff-yin jeff-yin added the bug Something isn't working label Oct 16, 2019
@jeff-yin
Copy link
Collaborator

@justinejose91 is this operation supported? Is the request crafted correctly?

@justinejose91
Copy link

I will have a look at this one. I will add my analysis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants