On Wed, 2020-05-27 at 10:51 +0100, Breno Leitao wrote:
> From: Breno Leitao <l...@fb.com>
> 
> Unfortunately devtool is not able to deploy (and undeploy) into IPv6
> hosts.
> 
> This patch simply adds a way to use IPv6 target address similarly to
> ssh/scp, as foo@[xxxx:yyyy::zzzz]:/destdir.
> 
> In order to do it, I've created a function that parses the hostname,
> user and destdir, and then create a target_ssh (for ssh like
> parameter
>  -- foo@xxx:yyyy::zzz) and target_scp for scp paramers as
>  -- foo@[xxxx:yyyy::zzz]:/destdir. The urlparsing is done by urlparse
> module and ip version discovery is done by ipaddress module.
> 
> This is the tests I have been using to validate my patch
> 
> IPV4_FORMATS="
>       root@11.11.11.2:/tmp
>       root@11.11.11.2
>       11.11.11.2:/tmp
>       11.11.11.2
>       "
> 
> IPV6_FORMATS="
>       root@[2620:10d:c0bb:403:dac4:97ff:feda:3325]:/tmp
>       root@[2620:10d:c0bb:403:dac4:97ff:feda:3325]
>       [2620:10d:c0bb:403:dac4:97ff:feda:3325]:/tmp
>       [2620:10d:c0bb:403:dac4:97ff:feda:3325]
>       "
> 
> HOSTNAMES="
>       r...@foo.bar:/tmp
>       r...@foo.bar
>       foo.bar:/tmp
>       foo.bar
>       "
> 
> for I in $IPV6_FORMATS
> do
>   devtool deploy-target -6 -s mypkg ${I}
>   devtool undeploy-target -6 -s mypkg ${I}
> done
> 
> for I in $HOSTNAMES
> do
>   devtool deploy-target -s mypkg ${I}
>   devtool undeploy-target -s mypkg ${I}
> done
> 
> for I in $IPV4_FORMATS
> do
>   devtool deploy-target -s mypkg ${I}
>   devtool undeploy-target -s mypkg ${I}
> done
> 

I think this breaks our selftests:

https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/976
(and others in that build)

to reproduce it should be a case of running:

oe-selftest -r devtool.DevtoolExtractTests.test_devtool_deploy_target 

Cheers,

Richard

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#138866): 
https://lists.openembedded.org/g/openembedded-core/message/138866
Mute This Topic: https://lists.openembedded.org/mt/74496587/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to