doc: updated refactored example in documentation
This commit is contained in:
parent
3d7d775bfb
commit
1702fe256f
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue