pyroute2
pyroute2 copied to clipboard
Question: How to use nested NLA structure
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.
[IFLA_AF_SPEC] = {
[AF_INET] = {
[IFLA_INET_CONF] = ...,
},
Would it be possible to set IFLA_INET_CONF?
Hi @mdivyamohan what are you trying to do exactly? Do you have a concrete example?