doc: updated refactored example in documentation

This commit is contained in:
Blake Harnden 2020-06-18 00:30:39 -07:00
parent 3d7d775bfb
commit 1702fe256f

View file

@ -263,7 +263,7 @@ class MyService(CoreService):
if filename == cls.configs[0]:
cfg += "# auto-generated by MyService (sample.py)\n"
for ifc in node.netifs():
for ifc in node.get_ifaces():
cfg += f'echo "Node {node.name} has interface {ifc.name}"\n'
elif filename == cls.configs[1]:
cfg += "echo hello"