Printer FriendlyEmail Article Link

Spirent TestCenter Automation: Why am I seeing "Warning : Multiple choices are being selected for DHCPOption" message while creating streamblock with DHCPClient message header?

Environment/Versions
  • Spirent TestCenter
  • Raw StreamBlock with DHCP header in frame
Answer
  • The warning message is seen when we try to add more than one children to object DHCPoption as shown below:

% stc::create options -under dhcp:dhcpclientmsg1
options1
% stc::get options1
-parent dhcp:dhcpclientmsg1 -children dhcpoption1 -Name anon_1601 -Active true
% stc::get dhcpoption1
-parent options1 -Name DHCPOptions -Active true
% stc::create clientIdHW -under dhcpoption1
clientidhw1
% stc::create endOfOptions -under dhcpoption1
endofoptions1
% stc::apply
% stc::get dhcpoption1
-parent options1 -children {clientidhw1 endofoptions1} -Name DHCPOptions -Active true

RESOLUTION:

  • The correct way of adding the DHCP options is as shown below:

% stc::create options -under dhcp:dhcpclientmsg1
options1
% stc::get options1
-parent dhcp:dhcpclientmsg1 -Name anon_1323 -Active true
% stc::create dhcpoption -under options1
dhcpoption1
% stc::create messageType -under dhcpoption1
messagetype1
% stc::get dhcpoption1
-parent options1 -children messagetype1 -Name anon_1324 -Active true
% stc::create dhcpoption -under options1
dhcpoption2
% stc::create clientIdHW -under dhcpoption2
clientidhw1
% stc::create dhcpoption -under options1
dhcpoption3
% stc::create endofoptions -under dhcpoption3
endofoptions1
% stc::get options3
-parent dhcp:dhcpclientmsg1 -children {dhcpoption1 dhcpoption2 dhcpoption2} -Name anon_1323 -Active true
% stc::get dhcpoption1
-parent options1 -children messagetype1 -Name anon_1324 -Active true
% stc::get dhcpoption2
-parent options1 -children clientidhw1 -Name anon_1326 -Active true
% stc::get dhcpoption3
-parent options1 -children endofoptions1 -Name anon_1328 -Active true

 


Product : Spirent TestCenter,Spirent TestCenter,DHCP,PGA