commit | c60cebc2e56a93543ed8cf7ca6b3605a9ae9975c | [log] [tgz] |
---|---|---|
author | Dmitry Teselkin <dteselkin@mirantis.com> | Wed Nov 21 13:42:36 2018 +0300 |
committer | Dmitry Teselkin <dteselkin@mirantis.com> | Wed Nov 21 14:22:42 2018 +0300 |
tree | 39939e977e3c7d0a996a901f07f675efcdb86127 | |
parent | 6be73f6522266f19b779bb37cae2f22fb5ad4716 [diff] |
Sort rules numerically Each iptable rule defined in reclass has its own numeric rule ID. These rule IDs are used later when iptables rules in plain text are generated. Unfortunately, it turned out that these rule IDs are stored as string values internally, so we've got wrong ordering when doing sort / dictsort. This commit casts keys to numeric, creating a copy of input dict. Related-Prod: PROD-25163 Change-Id: I4d9d726c1ae6588e7be2aac3fad0de64f5dc2d9c