-
Notifications
You must be signed in to change notification settings - Fork 105
core: cable-guy: More than one IP address #797
New issue
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
core: cable-guy: More than one IP address #797
Conversation
Raising allows the caller to handle the situation while still receiving details about the error.
54cce82
to
efc73a2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a docker ?
Yup, same same as the branch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's showing three IP blocks, but eth0 here only have 2
[
{
"name": "eth0",
"addresses": [
{
"ip": "192.168.2.2",
"mode": "unmanaged"
},
{
"ip": "192.168.0.46",
"mode": "client"
},
{
"ip": "undefined",
"mode": "client"
}
],
"info": {
"connected": true,
"number_of_disconnections": 6
}
}
]
- It's appears possible to set a server DHCP, from the options but nothing happens.
- When deleting an IP configuration, it still shows for a couple of seconds after finishing the update on the UI.
When creating a new dynamic IP, more 3 IPs appears as IPv6 here.
""" | ||
logger.info(f"Adding IP '{ip_address}' on interface '{interface_name}' in {mode} mode.") | ||
try: | ||
self.get_interface_by_name(interface_name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks a bit odd. is it here only you make sure the interface is valid? if so I'd add a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is, yes. Will add a comment.
This was happening when adding a new dynamic IP with this patch, 3 more IP interfaces appears, and not one. |
d8f7a8b
to
94b95d3
Compare
Image updated with proper fixes. |
94b95d3
to
0ce734a
Compare
0ce734a
to
7c3bbae
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before this patch, cable-guy was only able to handle one address per ethernet interface. This was leading to issues like the user only being able to see one IP address on the frontend (even when the interface had multiple), which could cause some misunderstood.
With this patch, the user is now able to:
Also, some error messages were made more clear, raises were added where necessary and logs from settings are now done with loguru.
Fix #428