diff options
author | Patrik Hrnciar <phrnciar@cisco.com> | 2016-10-27 13:02:05 +0200 |
---|---|---|
committer | Jan Gelety <jgelety@cisco.com> | 2016-10-28 12:00:14 +0000 |
commit | 56b9e6c718f331235a3e0c7e1f58ccb46a1a1327 (patch) | |
tree | 31c6c5ce1d3d2ec474c50c97f39c3947526c8c7f /resources/traffic_scripts | |
parent | b332d462eaee5ad421693eb4676b59d5070e8ca5 (diff) |
DHCPv6 Proxy test update
Change-Id: I8206a652bfa31cda0f7120741a0479a10ad4b1a1
Signed-off-by: Patrik Hrnciar <phrnciar@cisco.com>
Diffstat (limited to 'resources/traffic_scripts')
-rwxr-xr-x | resources/traffic_scripts/dhcp/send_dhcp_v6_messages.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/resources/traffic_scripts/dhcp/send_dhcp_v6_messages.py b/resources/traffic_scripts/dhcp/send_dhcp_v6_messages.py index d570a8c8aa..21357adc1c 100755 --- a/resources/traffic_scripts/dhcp/send_dhcp_v6_messages.py +++ b/resources/traffic_scripts/dhcp/send_dhcp_v6_messages.py @@ -163,9 +163,9 @@ def dhcpv6_advertise(rx_if, tx_if, link_local_ip, proxy_ip, raise RuntimeError("Checksum error!") print "Checksum: OK." - if ether['IPv6']['UDP']['Raw'].load != interface_id: - raise RuntimeError("Interface ID error!") - print "Interface ID: OK." + if ether['IPv6']['UDP']['DHCPv6 Advertise Message'].msgtype != 'ADVERTISE': + raise RuntimeError("Message type error!") + print "Message type: OK." def dhcpv6_request(tx_if, rx_if, dhcp_multicast_ip, link_local_ip, proxy_ip, @@ -282,9 +282,9 @@ def dhcpv6_reply(rx_if, tx_if, link_local_ip, proxy_ip, server_ip, server_mac, raise RuntimeError("Checksum error!") print "Checksum: OK." - if ether['IPv6']['UDP']['Raw'].load != interface_id: - raise RuntimeError("Interface ID error!") - print "Interface ID: OK." + if ether['IPv6']['UDP']['DHCPv6 Reply Message'].msgtype != 'REPLY': + raise RuntimeError("Message type error!") + print "Message type: OK." def main(): |