mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 13:20:08 +01:00
ifcfg-rh: bridge components are now expected to provide a valid connection
They aren't ignored if they have HWADDR due to commit
46696c22ca
(ifcfg-rh: correct handling of BRIDGE and VLAN unmanaged connections (rh #619863))
This commit is contained in:
parent
a4a554a51b
commit
7ed22185dd
1 changed files with 11 additions and 2 deletions
|
|
@ -9332,8 +9332,17 @@ test_read_bridge_component (void)
|
|||
&route6file,
|
||||
&error,
|
||||
&ignore_error);
|
||||
ASSERT (connection == NULL,
|
||||
"bridge-component-read", "unexpected success reading %s", TEST_IFCFG_BRIDGE_COMPONENT);
|
||||
ASSERT (connection != NULL,
|
||||
"bridge-component-read", "unexpected failure reading %s", TEST_IFCFG_BRIDGE_COMPONENT);
|
||||
|
||||
ASSERT (unmanaged != NULL,
|
||||
"bridge-component-read", "missing unmanaged spec from %s", TEST_IFCFG_BRIDGE_COMPONENT);
|
||||
|
||||
ASSERT (g_strcmp0 (unmanaged, "mac:00:22:15:59:62:97") == 0,
|
||||
"bridge-component-read", "unexpected unmanaged spec from %s", TEST_IFCFG_BRIDGE_COMPONENT);
|
||||
|
||||
g_object_unref (connection);
|
||||
g_free (unmanaged);
|
||||
}
|
||||
|
||||
#define TEST_IFCFG_VLAN_INTERFACE TEST_IFCFG_DIR"/network-scripts/ifcfg-test-vlan-interface"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue