DHCPv6 Proxy test update 08/3608/3
authorPatrik Hrnciar <phrnciar@cisco.com>
Thu, 27 Oct 2016 11:02:05 +0000 (13:02 +0200)
committerJan Gelety <jgelety@cisco.com>
Fri, 28 Oct 2016 12:00:14 +0000 (12:00 +0000)
Change-Id: I8206a652bfa31cda0f7120741a0479a10ad4b1a1
Signed-off-by: Patrik Hrnciar <phrnciar@cisco.com>
resources/traffic_scripts/dhcp/send_dhcp_v6_messages.py
tests/func/dhcp/dhcp_v6_proxy.robot

index d570a8c..21357ad 100755 (executable)
@@ -163,9 +163,9 @@ def dhcpv6_advertise(rx_if, tx_if, link_local_ip, proxy_ip,
         raise RuntimeError("Checksum error!")
     print "Checksum: OK."
 
         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,
 
 
 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."
 
         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():
 
 
 def main():
index 6df6382..8f38bb2 100644 (file)
@@ -49,6 +49,7 @@
 | | ... | server through DHCP proxy.
 | | ... | [Ref] RFC 3315
 | | ...
 | | ... | server through DHCP proxy.
 | | ... | [Ref] RFC 3315
 | | ...
+| | [Tags] | EXPECTED_FAILING
 | | Given Path for 2-node testing is set
 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['TG']}
 | | And Interfaces in 2-node path are up
 | | Given Path for 2-node testing is set
 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['TG']}
 | | And Interfaces in 2-node path are up