summaryrefslogtreecommitdiffstats
path: root/test/vpp_ip.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/vpp_ip.py')
-rw-r--r--test/vpp_ip.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/vpp_ip.py b/test/vpp_ip.py
index e92c91943db..6d22c16ff60 100644
--- a/test/vpp_ip.py
+++ b/test/vpp_ip.py
@@ -120,6 +120,10 @@ class VppIpAddress():
return self.addr.bytes
@property
+ def bytes(self):
+ return self.addr.bytes
+
+ @property
def address(self):
return self.addr.address
@@ -169,9 +173,17 @@ class VppIpPrefix():
return self.addr.address
@property
+ def bytes(self):
+ return self.addr.bytes
+
+ @property
def length(self):
return self.len
+ @property
+ def is_ip6(self):
+ return self.addr.is_ip6
+
def __str__(self):
return "%s/%d" % (self.address, self.length)