Skip to content

Commit

Permalink
fix(vpp/ifplugin): Recognize interface name prefix "tun" as TAP (#1674)
Browse files Browse the repository at this point in the history
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
  • Loading branch information
ondrej-fabry authored Jul 3, 2020
1 parent 8d59e30 commit e9aa355
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,8 @@ func guessInterfaceType(ifName string) ifs.Interface_Type {
case strings.HasPrefix(ifName, "memif"):
return ifs.Interface_MEMIF

case strings.HasPrefix(ifName, "tap"):
case strings.HasPrefix(ifName, "tap"),
strings.HasPrefix(ifName, "tun"):
return ifs.Interface_TAP

case strings.HasPrefix(ifName, "host"):
Expand Down

0 comments on commit e9aa355

Please sign in to comment.