summary refs log tree commit diff
path: root/src/core/devices/nm-device-vrf.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2024-08-09 18:57:15 +0200
committerMichael Biebl <biebl@debian.org>2024-08-09 18:57:15 +0200
commite96d74409128c6a977e31f24fad9b267d2feb9a1 (patch)
tree12dad71135c6c291de457568cb973208ea8a0024 /src/core/devices/nm-device-vrf.c
parent45a364c60a9d6d34e614c4f1f507c69336ad1e69 (diff)
New upstream version 1.48.8 upstream/1.48.8
Diffstat (limited to 'src/core/devices/nm-device-vrf.c')
-rw-r--r--src/core/devices/nm-device-vrf.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/core/devices/nm-device-vrf.c b/src/core/devices/nm-device-vrf.c
index 6c7adc6c..c3d31347 100644
--- a/src/core/devices/nm-device-vrf.c
+++ b/src/core/devices/nm-device-vrf.c
@@ -222,13 +222,13 @@ attach_port(NMDevice                  *device,
     gboolean     success    = TRUE;
     const char  *port_iface = nm_device_get_ip_iface(port);
 
-    nm_device_master_check_slave_physical_port(device, port, LOGD_DEVICE);
+    nm_device_controller_check_port_physical_port(device, port, LOGD_DEVICE);
 
     if (configure) {
         nm_device_take_down(port, TRUE);
-        success = nm_platform_link_enslave(nm_device_get_platform(device),
-                                           nm_device_get_ip_ifindex(device),
-                                           nm_device_get_ip_ifindex(port));
+        success = nm_platform_link_attach_port(nm_device_get_platform(device),
+                                               nm_device_get_ip_ifindex(device),
+                                               nm_device_get_ip_ifindex(port));
         nm_device_bring_up(port);
 
         if (!success)
@@ -267,9 +267,9 @@ detach_port(NMDevice                  *device,
 
     if (configure) {
         if (ifindex_port > 0) {
-            success = nm_platform_link_release(nm_device_get_platform(device),
-                                               nm_device_get_ip_ifindex(device),
-                                               ifindex_port);
+            success = nm_platform_link_release_port(nm_device_get_platform(device),
+                                                    nm_device_get_ip_ifindex(device),
+                                                    ifindex_port);
 
             if (success) {
                 _LOGI(LOGD_DEVICE, "detached VRF port %s", nm_device_get_ip_iface(port));