1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Zebra Interface interaction with the kernel using socket.
4 * Copyright (C) 2022 NVIDIA CORPORATION & AFFILIATES
12 #include "lib_errors.h"
15 #include "zebra/zebra_dplane.h"
16 #include "zebra/zebra_errors.h"
18 enum zebra_dplane_result
kernel_intf_update(struct zebra_dplane_ctx
*ctx
)
20 flog_err(EC_LIB_UNAVAILABLE
, "%s not Implemented for this platform",
22 return ZEBRA_DPLANE_REQUEST_FAILURE
;
25 enum zebra_dplane_result
26 kernel_intf_netconf_update(struct zebra_dplane_ctx
*ctx
)
28 const char *ifname
= dplane_ctx_get_ifname(ctx
);
29 enum dplane_netconf_status_e mpls_on
= dplane_ctx_get_netconf_mpls(ctx
);
31 zlog_warn("%s: Unable to set kernel mpls state for interface %s(%d)",
32 __func__
, ifname
, mpls_on
);
34 return ZEBRA_DPLANE_REQUEST_SUCCESS
;