X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Futil.py;fp=test%2Futil.py;h=b691deb642f7f682aaca0f392f4b288d57e1a1b9;hb=1135f65586513c7cabb0dca063d1d2f97b07d7cd;hp=fc1eae03742a931bd529d44a37398c970fcf6b56;hpb=24841867d17f0b57abcce6353e23c9a668e70517;p=vpp.git diff --git a/test/util.py b/test/util.py index fc1eae03742..b691deb642f 100644 --- a/test/util.py +++ b/test/util.py @@ -203,19 +203,6 @@ class Host(object): self._ip6_ll = ip6_ll -class ForeignAddressFactory(object): - count = 0 - prefix_len = 24 - net_template = '10.10.10.{}' - net = net_template.format(0) + '/' + str(prefix_len) - - def get_ip4(self): - if self.count > 255: - raise Exception("Network host address exhaustion") - self.count += 1 - return self.net_template.format(self.count) - - class L4_Conn(): """ L4 'connection' tied to two VPP interfaces """