cloud-init team mailing list archive
-
cloud-init team
-
Mailing list archive
-
Message #00122
Re: use of network utilities
The goal is to get off of net-tools (ifconfig and route) and over to 'ip'.
For freebsd and other things that do not have that, we'll have to keep
working.
Ini python3, 'ipaddress' is built in and we may be able to utilize it, but
I'm not interested in adding the python2 dependency.
On Sun, Dec 17, 2017 at 7:16 AM, Robert Schweikert <rjschwei@xxxxxxxx>
wrote:
> Hi,
>
> We are deprecating support for
>
> arp
> ifconfig
> netstat
> route
>
> But cloud-init still uses these commands (spare the 'arp' command) in
> some places, namely:
>
> cc_disable_ec2_metadata.py uses 'route'
> netinfo.py uses 'ifconfig' and 'netstat'
>
> The question is, do we expect cloud-init (spare freebsd) to run only on
> distributions that support the new commands provided by iproute2?
>
> I am asking because in cloudinit/net/__init__.py the 'ip' command is
> used unconditonally, i.e. it is assumed that the 'ip' command exists. if
> this is the case we should be able to replace the 'route', 'ifconfig',
> and 'ntestat' commands in the other parts of the code as well.
>
> Thoughts?
>
> Thanks,
> Robert
>
> --
> Robert Schweikert MAY THE SOURCE BE WITH YOU
> Distinguished Architect LINUX
> Team Lead Public Cloud
> rjschwei@xxxxxxxx
> IRC: robjo
>
>
> --
> Mailing list: https://launchpad.net/~cloud-init
> Post to : cloud-init@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~cloud-init
> More help : https://help.launchpad.net/ListHelp
>
>
Follow ups
References