PEtite question, je voulais mettre en place le script donné par dmfr, mais il y a quelque chose qui doit m'échapper...
En le testant à la main, je me retrouve avec une valeur différente dans les options dhcpv4 et v6 ?
pourtant le script à la fin semble quand même assez clair :
:local dhcpIpv4OptIds [/ip/dhcp-client/option/find where code="90"]
:if ( [:len $dhcpIpv4OptIds] = 1 ) do={
:local dhcpIpv4OptValue [/ip/dhcp-client/option get [:pick $dhcpIpv4OptIds 0] value]
:if ( $dhcpIpv4OptValue = "0x00" ) do={
:local newVal ""
:set newVal ( $newVal . "0x" )
:set newVal ( $newVal . [$getOrangeAuthHex] )
/ip/dhcp-client/option set [:pick $dhcpIpv4OptIds 0] value=$newVal
}
}
:local dhcpIpv6OptIds [/ipv6/dhcp-client/option/find where code="11"]
:if ( [:len $dhcpIpv6OptIds] = 1 ) do={
:local dhcpIpv6OptValue [/ipv6/dhcp-client/option get [:pick $dhcpIpv6OptIds 0] value]
:if ( $dhcpIpv6OptValue = "0x00" ) do={
:local newVal ""
:set newVal ( $newVal . "0x" )
:set newVal ( $newVal . [$getOrangeAuthHex] )
/ipv6/dhcp-client/option set [:pick $dhcpIpv6OptIds 0] value=$newVal
}
}
Du coup je pige pas trop comment c'est possible ?