summaryrefslogtreecommitdiff
path: root/cloudinit/net/renderer.py
diff options
context:
space:
mode:
authorJoshua Powers <josh.powers@canonical.com>2017-03-21 14:18:46 -0600
committerScott Moser <smoser@brickies.net>2017-03-24 15:11:53 -0400
commit35cf3415f9748c880db4d3c004f3410c3aa2cab2 (patch)
tree0f4985af251431543e4b10aef15cf443cdc5f38a /cloudinit/net/renderer.py
parent2e879da890a4287dd52eab17938d227da7af253a (diff)
downloadvyos-cloud-init-35cf3415f9748c880db4d3c004f3410c3aa2cab2.tar.gz
vyos-cloud-init-35cf3415f9748c880db4d3c004f3410c3aa2cab2.zip
test: add running of pylint
Now tox will run pylint. The .pylintrc file sets pylint to only produce errors, and will ignore certain classes that are known problematic (six).
Diffstat (limited to 'cloudinit/net/renderer.py')
-rw-r--r--cloudinit/net/renderer.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/cloudinit/net/renderer.py b/cloudinit/net/renderer.py
index a5b2b573..c68658dc 100644
--- a/cloudinit/net/renderer.py
+++ b/cloudinit/net/renderer.py
@@ -5,6 +5,7 @@
#
# This file is part of cloud-init. See LICENSE file for license information.
+import abc
import six
from .network_state import parse_net_config_data
@@ -37,6 +38,10 @@ class Renderer(object):
iface['mac_address']))
return content.getvalue()
+ @abc.abstractmethod
+ def render_network_state(self, network_state, target=None):
+ """Render network state."""
+
def render_network_config(self, network_config, target=None):
return self.render_network_state(
network_state=parse_net_config_data(network_config), target=target)