pyroute2 icon indicating copy to clipboard operation
pyroute2 copied to clipboard

Question: How to use nested NLA structure

Open mdivyamohan opened this issue 5 years ago • 1 comments

The documentation says:

You can provide a complete NLA structure or let filters do it for you. E.g., these pairs show equal statements:

ip.link("set", index=x, mtu=1000) ip.link("set", index=x, IFLA_MTU=1000)

How can I use a nested NLA?

For example IFLA_INET_CONF is inside AF_NET which is inside IFLA_AF_SPEC.

if_link.h :

  [IFLA_AF_SPEC] = {
  [AF_INET] = {
     [IFLA_INET_CONF] = ...,
     },

Would it be possible to set IFLA_INET_CONF?

mdivyamohan avatar Dec 04 '19 14:12 mdivyamohan

Hi @mdivyamohan what are you trying to do exactly? Do you have a concrete example?

Vic063 avatar Dec 15 '19 16:12 Vic063