Skip to content

Commit

Permalink
yanger: only fill eth info for Ethernet interfaces
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Alpe <[email protected]>
  • Loading branch information
rical committed Jan 30, 2024
1 parent 44f432e commit 91577d2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions board/netconf/rootfs/libexec/infix/yanger
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 91577d2

Please sign in to comment.