From debcf81a7af385a4bb03cf2aaaded43108b83a32 Mon Sep 17 00:00:00 2001 From: Richard Alpe Date: Mon, 29 Jan 2024 14:12:56 +0100 Subject: [PATCH] yanger: only fill eth info for Ethernet interfaces Signed-off-by: Richard Alpe --- board/netconf/rootfs/libexec/infix/yanger | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/board/netconf/rootfs/libexec/infix/yanger b/board/netconf/rootfs/libexec/infix/yanger index 8ac8b87e..72167520 100755 --- a/board/netconf/rootfs/libexec/infix/yanger +++ b/board/netconf/rootfs/libexec/infix/yanger @@ -584,8 +584,10 @@ if __name__ == "__main__": add_ip_link(ifname, iface_out, args.test) add_ip_addr(ifname, iface_out, args.test) - add_ethtool_groups(ifname, iface_out, args.test) - add_ethtool_std(ifname, iface_out, args.test) + + if 'type' in iface_out and iface_out['type'] == "infix-if-type:ethernet": + add_ethtool_groups(ifname, iface_out, args.test) + add_ethtool_std(ifname, iface_out, args.test) elif (args.model == 'ietf-routing'): yang_data = { "ietf-routing:routing": {