commit | ad7a79fd6a78760e95e01336a6ab870d20bbcf4d | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Mon Nov 21 17:43:38 2022 +0900 |
committer | Maciej Żenczykowski <maze@google.com> | Thu Nov 24 08:54:44 2022 +0000 |
tree | 737b0f312a7e0989d96e899164ac0376ac82f635 | |
parent | 70ffca486c04ae1f18912a3a20ed292433eb937b [diff] |
Better/more explicit support for nested attributes. Currently, parsing nested attributes is super hacky, relying on passing a negative command to the method that parses attributes. Instead, reuse the currently-unused "nested" parameter, changing it from an int representing the current level of nesting to a list containing all the attributes that the current attributes are nested under. Test: python3 iproute.py Change-Id: Id80150e766235e73ccaa72dce9ca4297fa43dcd3