Add generalized IetfInetUtil.ipPrefixFor() 23/96623/2
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 20 Jul 2021 18:43:01 +0000 (20:43 +0200)
committerRobert Varga <nite@hq.sk>
Wed, 21 Jul 2021 18:08:26 +0000 (18:08 +0000)
commit3d181788bdbfe8d442836acd3e94fbd0f49621e4
tree0cb7389f754117d13df06a04f58fec6b823728bc
parentbb6ca593870d2cedd76406e092229db0243e6fca
Add generalized IetfInetUtil.ipPrefixFor()

Conversion of IpAddress (or IpAddressNoZone) to a IpPrefix is rather
something which is useful to reduce RSI where we already provide
base address->prefix utilities.

Change-Id: I2242e8945065763f6941dff0db1c6f4f14776286
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit b9982f1378245b75525d8fdb5638ceb7b2ca7b40)
model/ietf/ietf-type-util/src/main/java/org/opendaylight/mdsal/model/ietf/util/AbstractIetfInetUtil.java