Improve NetworkIncrement 26/33526/6
authorVratko Polak <vrpolak@cisco.com>
Thu, 19 Aug 2021 11:11:15 +0000 (13:11 +0200)
committerPeter Mikus <pmikus@cisco.com>
Fri, 20 Aug 2021 06:05:54 +0000 (06:05 +0000)
commit000ce799bfe473489bbe95e8b00a460270e1ff0b
tree50b1603fbea7ea429cd2c7785e3a8252390f5606
parent5b98ebf4ea91b11c3316f4251c5b99f00910a465
Improve NetworkIncrement

+ Set 1 as default value for increment.
 + Update IPsecUtil.
+ Tolerate address with host bits set when incrementing.
 + Call sites can check initial value on their own.
+ Support multiple ways of converting to string.
 - Only the previous "dash" format is supported here.
+ Update docstrings.

Change-Id: I0c71a6327cca6a319715b3fcfbbee800cac14287
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
resources/libraries/python/IPUtil.py
resources/libraries/python/IPsecUtil.py