<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-cloud-init.git/tools/net-convert.py, branch rolling</title>
<subtitle> (mirror of https://github.com/vyos/vyos-cloud-init.git)
</subtitle>
<id>https://git.amelek.net/vyos/vyos-cloud-init.git/atom?h=rolling</id>
<link rel='self' href='https://git.amelek.net/vyos/vyos-cloud-init.git/atom?h=rolling'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/'/>
<updated>2018-08-06T16:50:51+00:00</updated>
<entry>
<title>tools: Add 'net-convert' subcommand command to 'cloud-init devel'.</title>
<updated>2018-08-06T16:50:51+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@ubuntu.com</email>
</author>
<published>2018-08-06T16:50:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=a6f95c72259f2890e4a9f9f11166310812173c68'/>
<id>urn:sha1:a6f95c72259f2890e4a9f9f11166310812173c68</id>
<content type='text'>
Move the tools/net-convert.py to be exposed as part of 'cloud-init devel'
subcommands.
It can now be called like:
  $ cloud-init devel net-convert
Or, if you just have checked out source (and no cli executable):

  $ python3 -m cloudinit.cmd.devel.net_convert
or
  $ python3 -m cloudinit.cmd.main devel net-convert
</content>
</entry>
<entry>
<title>tools: add '--debug' to tools/net-convert.py</title>
<updated>2018-07-17T17:17:34+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@ubuntu.com</email>
</author>
<published>2018-07-17T17:17:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=b07e491d2b69a25ab6dc5e56f6ba8b84d54867a9'/>
<id>urn:sha1:b07e491d2b69a25ab6dc5e56f6ba8b84d54867a9</id>
<content type='text'>
In order to see some of the WARNING messages added by bug 1774666
I wanted logging output of tools/net-convert.  This does:

a.) add '--debug' and make it print the network state and read yaml only
    if --debug is provided.
b.) set up basic logging so warnings goes to console by default and
    debug goes to console if --debug is provided.
</content>
</entry>
<entry>
<title>tools/net-convert.py: support old cloudinit versions by using kwargs.</title>
<updated>2017-06-01T14:52:55+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@brickies.net</email>
</author>
<published>2017-06-01T14:39:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=79236a629f1e0e61b260d0cb995b6299a5c7aac1'/>
<id>urn:sha1:79236a629f1e0e61b260d0cb995b6299a5c7aac1</id>
<content type='text'>
Older cloud-init versions have a bug in the signature of the
render_network_state method for netplan (bug 1685944).
The old had:
  render_network_state(target, network_state)
The fix was to change netplan's so it had the correct signature:
  render_network_state(network_state, target)

This just changes our caller to use kwargs style when invoking that
method so that it works with either the broken form or correct form.
</content>
</entry>
<entry>
<title>flake8: move the pinned version of flake8 up to 3.3.0</title>
<updated>2017-05-23T20:07:51+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@brickies.net</email>
</author>
<published>2017-05-23T17:09:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=2825a917e5fa130818c0d77219f32961b99a057f'/>
<id>urn:sha1:2825a917e5fa130818c0d77219f32961b99a057f</id>
<content type='text'>
This just moves flake8 and related tools up to newer versions and fixes
the complaints associated with that.

We added to the list of flake8 ignores:
 H102: do not put vim info in source files
 H304: no relative imports

Also updates and pins the following in the flake8 environment:
  pep8:        1.7.0  =&gt; drop  (although hacking still pulls it in).
  pyflakes     1.1.0  =&gt; 1.5.0
  hacking      0.10.2 =&gt; 0.13.0
  flake8       2.5.4  =&gt; 3.3.0
  pycodestyle  none   =&gt; 2.3.1
</content>
</entry>
<entry>
<title>Revert "tools/net-convert: fix argument order for render_network_state"</title>
<updated>2017-05-16T20:51:33+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@brickies.net</email>
</author>
<published>2017-05-16T20:51:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=f4d3ca43d8a8b1da136c9c07fa9cd0a08c5e3dba'/>
<id>urn:sha1:f4d3ca43d8a8b1da136c9c07fa9cd0a08c5e3dba</id>
<content type='text'>
This reverts commit 64a3df16d9c63db470a3ba55d9c5cc8e05d050d7.

Patch shouldn't have been pulled.  The issue was inside the netplan renderer.
</content>
</entry>
<entry>
<title>tools/net-convert: fix argument order for render_network_state</title>
<updated>2017-05-16T20:28:25+00:00</updated>
<author>
<name>Ryan Harper</name>
<email>ryan.harper@canonical.com</email>
</author>
<published>2017-04-24T21:40:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=64a3df16d9c63db470a3ba55d9c5cc8e05d050d7'/>
<id>urn:sha1:64a3df16d9c63db470a3ba55d9c5cc8e05d050d7</id>
<content type='text'>
We're calling Renderer.render_network_state() with incorrect args.

% PYTHONPATH=`pwd` ./tools/net-convert.py \
   --network-data=simple-v2.yaml --kind=yaml \
   --output-kind netplan --directory ./target

Traceback (most recent call last):
  File "./tools/net-convert.py", line 82, in &lt;module&gt;
    main()
  File "./tools/net-convert.py", line 78, in main
    r.render_network_state(ns, target=args.directory)
TypeError: render_network_state() got multiple values for argument 'target'

The method signature requires passing &lt;target dir&gt;, &lt;network_state&gt;.
This patch fixes the call order.

LP: #1685944
</content>
</entry>
<entry>
<title>cloudinit.net: add network config v2 parsing and rendering</title>
<updated>2017-03-20T19:59:03+00:00</updated>
<author>
<name>Ryan Harper</name>
<email>ryan.harper@canonical.com</email>
</author>
<published>2017-03-19T13:39:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=ef18b8ac4cf7e3dfd98830fbdb298380a192a0fc'/>
<id>urn:sha1:ef18b8ac4cf7e3dfd98830fbdb298380a192a0fc</id>
<content type='text'>
Network configuration version 2 format is implemented in a package
called netplan (nplan)[1] which allows consolidated network config
for multiple network controllers.

- Add a new netplan renderer
- Update default policy, placing eni and sysconfig first
  This requires explicit policy to enable netplan over eni
  on systems which have both (Yakkety, Zesty, UC16)
- Allow any network state (parsed from any format cloud-init supports) to
  render to v2 if system supports netplan.
- Move eni's _subnet_is_ipv6 to common code for use by other renderers
- Make sysconfig renderer always emit /etc/syconfig/network configuration
- Update cloud-init.service systemd unit to also wait on
  systemd-networkd-wait-online.service

1. https://lists.ubuntu.com/archives/ubuntu-devel/2016-July/039464.html
</content>
</entry>
</feed>
