We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It would be really convinient if sample, how to add new interface definition to existing file will be provided.
I came to a following solution:
new_iface = Iface new_iface.name = 'eth4' new_iface.method = 'static' new_iface.address_family = 'inet' new_iface.address = '1.2.3.4' new_iface.netmask = '255.0.0.0' new_iface.gateway = '4.3.2.1' new_iface.startup = Allow f1 = InterfacesFile('/etc/network/interfaces2') f1.interfaces.append(new_iface) f1.save()
Whicth is obviously do not work - there is only <class 'network_interfaces.iface.Iface'> in result file.
<class 'network_interfaces.iface.Iface'>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It would be really convinient if sample, how to add new interface definition to existing file will be provided.
I came to a following solution:
Whicth is obviously do not work - there is only
<class 'network_interfaces.iface.Iface'>
in result file.The text was updated successfully, but these errors were encountered: