Scripting - changing interface paramters

Hi everyone,

I’m working on a small script to import the AFTR server FQDN from a DHCPv6 client request to the related IPIPv6 interface.
Thus far, I have the FQDN made available as a string in a global variable by running this snippet on my DHCP client:

:local AFTRimport;
:global AFTRname; 
:set AFTRimport ($options->"64");
:set AFTRname ([:pick $AFTRimport 1 5].".".[:pick $AFTRimport 6 9].".".[:pick $AFTRimport 10 16].".".[:pick $AFTRimport 17 20]);
:put $AFTRname

It’s updating each time the DHCP status changes, so that’s good, I think.

Question is:
Can I modify the value of the remote-address of my IPIPv6 from the same script?
First thought that PUTting

 /interface ipipv6 set ipipv6-DGN remote-address=$AFTRname

would work, but nay…

I think you’re missing a “set” in your command:
/interface ipipv6 set ipipv6-DGN remote-address=$AFTRname

Thanks, that was a copy&paste error last night.
The “set” is there.

And the space in the first code block before :put is also…

EDITed my initial post both just now to clarify :slight_smile: