diff options
author | Ole Troan <ot@cisco.com> | 2018-11-27 10:05:23 +0100 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2018-12-06 14:05:04 +0000 |
commit | 8c8acc027871f97370ee549306876690030c3bbb (patch) | |
tree | 36e3c8b05d8112105739a5e809ed7fa7d80ab785 /test/vpp_igmp.py | |
parent | 1f0dd7a0664bc217b7d69773574ac7eae3813bd7 (diff) |
API: Change ip4_address and ip6_address to use type alias.
Change-Id: Id8669bbadd1d6b2054865a310a654e9b38d1667d
Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'test/vpp_igmp.py')
-rw-r--r-- | test/vpp_igmp.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/vpp_igmp.py b/test/vpp_igmp.py index 8f0191644bd..c4cbab13a0c 100644 --- a/test/vpp_igmp.py +++ b/test/vpp_igmp.py @@ -16,8 +16,8 @@ class IGMP_FILTER: def find_igmp_state(states, itf, gaddr, saddr): for s in states: if s.sw_if_index == itf.sw_if_index and \ - s.gaddr.address == socket.inet_pton(socket.AF_INET, gaddr) and \ - s.saddr.address == socket.inet_pton(socket.AF_INET, saddr): + s.gaddr == socket.inet_pton(socket.AF_INET, gaddr) and \ + s.saddr == socket.inet_pton(socket.AF_INET, saddr): return True return False @@ -25,8 +25,8 @@ def find_igmp_state(states, itf, gaddr, saddr): def wait_for_igmp_event(test, timeout, itf, gaddr, saddr, ff): ev = test.vapi.wait_for_event(timeout, "igmp_event") if ev.sw_if_index == itf.sw_if_index and \ - ev.gaddr.address == socket.inet_pton(socket.AF_INET, gaddr) and \ - ev.saddr.address == socket.inet_pton(socket.AF_INET, saddr) and \ + ev.gaddr == socket.inet_pton(socket.AF_INET, gaddr) and \ + ev.saddr == socket.inet_pton(socket.AF_INET, saddr) and \ ev.filter == ff: return True return False @@ -42,7 +42,7 @@ class IgmpSG(): for s in saddrs: ss = socket.inet_pton(socket.AF_INET, s) self.saddrs_p.append(ss) - self.saddrs_encoded.append({'address': ss}) + self.saddrs_encoded.append(ss) class IgmpRecord(): |