network: Fixed Network profiles shown on wrong device (#353)
Fixes: #353 (closed) Network profiles shown on wrong device (#353 (closed))
To fix, just add the missing interface name during connection profile creation to prevent the profile from showing on the wrong device.
Requirement: You need to have at least two network devices.
Here is one example with the bug:
(1) Initial state:
(2) Adding a new profile:
(3) Profile showing on wrong devices:
You can exec the following command to confirm the missing interface name:
$ nmcli con show "Profile 1" | grep connection.interface-name
connection.interface-name: --
Here is the fixed version:
(1) Profile showing on correct devices:
(2) Adding a profile on other device and showed correct:
You can exec the following command to confirm the correct interface name:
$ nmcli con show "Profile 1" | grep connection.interface-name
connection.interface-name: enp1s0
$ nmcli con show "Profile 2" | grep connection.interface-name
connection.interface-name: enx00e04c680061
It's my first PR for gnome, please help me if I forgot something.
Edited by Luciano da Silva Ribas