Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 31.03 KB | None | 0 0
  1.  
  2. func TestMemifInterface(t *testing.T) {
  3. ctx := setupVPP(t)
  4. defer ctx.teardownVPP()
  5.  
  6. h := ifplugin_vppcalls.CompatibleInterfaceVppHandler(ctx.vppBinapi, logrus.NewLogger("test"))
  7.  
  8. ifIdx, err := h.AddMemifInterface("memif1", &vpp_interfaces.MemifLink{
  9. Id: 1,
  10. Mode: vpp_interfaces.MemifLink_IP,
  11. Secret: "secret",
  12. Master: true,
  13. }, 0)
  14. if err != nil {
  15. t.Fatalf("creating memif interface failed: %v", err)
  16. }
  17. t.Logf("memif index: %+v", ifIdx)
  18.  
  19. ifaces, err := h.DumpInterfaces()
  20. if err != nil {
  21. t.Fatalf("dumping interfaces failed: %v", err)
  22. }
  23. iface, ok := ifaces[ifIdx]
  24. if !ok {
  25. t.Fatalf("Memif interface not found in dump")
  26. }
  27. t.Logf("interface: %+v", iface.Interface)
  28.  
  29. if iface.Interface.Name != "memif1" {
  30. t.Errorf("expected interface name to be memif1, got %v", iface.Interface.Name)
  31. }
  32. if iface.Interface.Type != vpp_interfaces.Interface_MEMIF {
  33. t.Errorf("expected interface type to be memif, got %v", iface.Interface.Type)
  34. }
  35. link, ok := iface.Interface.Link.(*vpp_interfaces.Interface_Memif)
  36. if !ok {
  37. t.Fatalf("expected interface link to be memif, got %T", iface.Interface.Link)
  38. }
  39. if link.Memif.Id != 1 {
  40. t.Errorf("expected memif ID to be 1, got %v", link.Memif.Id)
  41. }
  42. if link.Memif.Mode != vpp_interfaces.MemifLink_IP {
  43. t.Errorf("expected memif mode to be IP, got %v", link.Memif.Mode)
  44. }
  45. }
  46.  
  47.  
  48.  
  49.  
  50. === RUN TestMemifInterface
  51. =>>> SEND: &vpe.ShowVersion{}
  52.  
  53.  
  54. <<<= RECV: &vpe.ShowVersionReply{Retval:0, XXX_ProgramLen:0x3, Program:"vpe", XXX_VersionLen:0x1e, Version:"19.08-rc0~673-ga2e4451db~b3238", XXX_BuildDateLen:0x1c, BuildDate:"Tue Jul 16 19:50:00 UTC 2019", XXX_BuildDirectoryLen:0x2d, BuildDirectory:"/w/workspace/vpp-beta-merge-master-ubuntu1804"}
  55.  
  56. =>>> SEND: &vpe.ControlPing{}
  57.  
  58.  
  59. <<<= RECV: &vpe.ControlPingReply{Retval:0, ClientIndex:0x0, VpePID:0x24}
  60.  
  61. =>>> SEND: &memclnt.APIVersions{}
  62.  
  63.  
  64. <<<= RECV: &memclnt.APIVersionsReply{Retval:0, Count:0x30, APIVersions:[]memclnt.ModuleVersion{memclnt.ModuleVersion{Major:0x2, Minor:0x1, Patch:0x0, Name:[]uint8{0x6d, 0x65, 0x6d, 0x63, 0x6c, 0x6e, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}, memclnt.ModuleVersion{Major:0x1, Minor:0x0, Patch:0x0, Name:[]uint8{0x62, 0x6f, 0x6e, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 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x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}, memclnt.ModuleVersion{Major:0x1, Minor:0x0, Patch:0x0, Name:[]uint8{0x64, 0x68, 0x63, 0x70, 0x36, 0x5f, 0x70, 0x64, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x70, 0x2e, 0x61, 0x70, 0x69, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}, memclnt.ModuleVersion{Major:0x1, Minor:0x0, Patch:0x0, Name:[]uint8{0x64, 0x68, 0x63, 0x70, 0x36, 0x5f, 0x69, 0x61, 0x5f, 0x6e, 0x61, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x70, 0x2e, 0x61, 0x70, 0x69, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}, memclnt.ModuleVersion{Major:0x1, Minor:0x0, Patch:0x0, Name:[]uint8{0x70, 0x69, 0x70, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x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 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}, memclnt.ModuleVersion{Major:0x1, Minor:0x4, Patch:0x0, Name:[]uint8{0x76, 0x70, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}}}
  65.  
  66. =>>> SEND: &memif.MemifCreate{Role:0x0, Mode:0x1, RxQueues:0x1, TxQueues:0x1, ID:0x1, SocketID:0x0, Secret:[]uint8{0x73, 0x65, 0x63, 0x72, 0x65, 0x74}, RingSize:0x0, BufferSize:0x0, HwAddr:[]uint8(nil)}
  67.  
  68.  
  69. <<<= RECV: &memif.MemifCreateReply{Retval:0, SwIfIndex:0x1}
  70.  
  71. =>>> SEND: &interfaces.SwInterfaceTagAddDel{IsAdd:0x1, SwIfIndex:0x1, Tag:[]uint8{0x6d, 0x65, 0x6d, 0x69, 0x66, 0x31}}
  72.  
  73.  
  74. <<<= RECV: &interfaces.SwInterfaceTagAddDelReply{Retval:0}
  75.  
  76. =>>> SEND: &interfaces.SwInterfaceDump{SwIfIndex:0xffffffff, NameFilterValid:0x0, NameFilter:[]uint8(nil)}
  77.  
  78.  
  79. <<<= RECV: &interfaces.SwInterfaceDetails{SwIfIndex:0x0, SupSwIfIndex:0x0, L2AddressLength:0x0, L2Address:[]uint8{0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, InterfaceName:[]uint8{0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x30, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, AdminUpDown:0x0, LinkUpDown:0x0, LinkDuplex:0x0, LinkSpeed:0x0, LinkMtu:0x0, Mtu:[]uint32{0x0, 0x0, 0x0, 0x0}, SubID:0x0, SubDot1ad:0x0, SubDot1ah:0x0, SubNumberOfTags:0x0, SubOuterVlanID:0x0, SubInnerVlanID:0x0, SubExactMatch:0x0, SubDefault:0x0, SubOuterVlanIDAny:0x0, SubInnerVlanIDAny:0x0, VtrOp:0x0, VtrPushDot1q:0x0, VtrTag1:0x0, VtrTag2:0x0, Tag:[]uint8{0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, OuterTag:0x0, BDmac:[]uint8{0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, BSmac:[]uint8{0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, BVlanid:0x0, ISid:0x0}
  80.  
  81.  
  82. <<<= RECV: &interfaces.SwInterfaceDetails{SwIfIndex:0x1, SupSwIfIndex:0x1, L2AddressLength:0x0, L2Address:[]uint8{0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, InterfaceName:[]uint8{0x6d, 0x65, 0x6d, 0x69, 0x66, 0x30, 0x2f, 0x31, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, AdminUpDown:0x0, LinkUpDown:0x0, LinkDuplex:0x0, LinkSpeed:0x0, LinkMtu:0x0, Mtu:[]uint32{0x0, 0x0, 0x0, 0x0}, SubID:0x0, SubDot1ad:0x0, SubDot1ah:0x0, SubNumberOfTags:0x0, SubOuterVlanID:0x0, SubInnerVlanID:0x0, SubExactMatch:0x0, SubDefault:0x0, SubOuterVlanIDAny:0x0, SubInnerVlanIDAny:0x0, VtrOp:0x0, VtrPushDot1q:0x0, VtrTag1:0x0, VtrTag2:0x0, Tag:[]uint8{0x6d, 0x65, 0x6d, 0x69, 0x66, 0x31, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, OuterTag:0x0, BDmac:[]uint8{0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, BSmac:[]uint8{0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, BVlanid:0x0, ISid:0x0}
  83.  
  84.  
  85. <<<= RECV: &interfaces.SwInterfaceDetails{SwIfIndex:0x0, SupSwIfIndex:0x0, L2AddressLength:0x0, L2Address:[]uint8(nil), InterfaceName:[]uint8(nil), AdminUpDown:0x0, LinkUpDown:0x0, LinkDuplex:0x0, LinkSpeed:0x0, LinkMtu:0x0, Mtu:[]uint32(nil), SubID:0x0, SubDot1ad:0x0, SubDot1ah:0x0, SubNumberOfTags:0x0, SubOuterVlanID:0x0, SubInnerVlanID:0x0, SubExactMatch:0x0, SubDefault:0x0, SubOuterVlanIDAny:0x0, SubInnerVlanIDAny:0x0, VtrOp:0x0, VtrPushDot1q:0x0, VtrTag1:0x0, VtrTag2:0x0, Tag:[]uint8(nil), OuterTag:0x0, BDmac:[]uint8(nil), BSmac:[]uint8(nil), BVlanid:0x0, ISid:0x0}
  86.  
  87. =>>> SEND: &dhcp.DHCPClientDump{}
  88.  
  89.  
  90. <<<= RECV: &dhcp.DHCPClientDetails{Client:dhcp.DHCPClient{SwIfIndex:0x0, Hostname:[]uint8(nil), ID:[]uint8(nil), WantDHCPEvent:0x0, SetBroadcastFlag:0x0, PID:0x0}, Lease:dhcp.DHCPLease{SwIfIndex:0x0, State:0x0, Hostname:[]uint8(nil), IsIPv6:0x0, MaskWidth:0x0, HostAddress:[]uint8(nil), RouterAddress:[]uint8(nil), HostMac:[]uint8(nil), Count:0x0, DomainServer:[]dhcp.DomainServer(nil)}}
  91.  
  92. =>>> SEND: &ip.IPAddressDump{SwIfIndex:0x0, IsIPv6:0x0}
  93.  
  94.  
  95. <<<= RECV: &ip.IPAddressDetails{SwIfIndex:0x0, Prefix:ip.Prefix{Address:ip.Address{Af:0x0, Un:ip.AddressUnion{XXX_UnionData:[16]uint8{0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}}, Len:0x0}}
  96.  
  97. =>>> SEND: &ip.IPAddressDump{SwIfIndex:0x1, IsIPv6:0x0}
  98.  
  99.  
  100. <<<= RECV: &ip.IPAddressDetails{SwIfIndex:0x0, Prefix:ip.Prefix{Address:ip.Address{Af:0x0, Un:ip.AddressUnion{XXX_UnionData:[16]uint8{0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}}, Len:0x0}}
  101.  
  102. =>>> SEND: &ip.IPAddressDump{SwIfIndex:0x0, IsIPv6:0x1}
  103.  
  104.  
  105. <<<= RECV: &ip.IPAddressDetails{SwIfIndex:0x0, Prefix:ip.Prefix{Address:ip.Address{Af:0x0, Un:ip.AddressUnion{XXX_UnionData:[16]uint8{0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}}, Len:0x0}}
  106.  
  107. =>>> SEND: &ip.IPAddressDump{SwIfIndex:0x1, IsIPv6:0x1}
  108.  
  109.  
  110. <<<= RECV: &ip.IPAddressDetails{SwIfIndex:0x0, Prefix:ip.Prefix{Address:ip.Address{Af:0x0, Un:ip.AddressUnion{XXX_UnionData:[16]uint8{0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}}, Len:0x0}}
  111.  
  112. =>>> SEND: &ip.IPUnnumberedDump{SwIfIndex:0xffffffff}
  113.  
  114.  
  115. <<<= RECV: &ip.IPUnnumberedDetails{SwIfIndex:0x0, IPSwIfIndex:0x0}
  116.  
  117. =>>> SEND: &vxlan.VxlanTunnelDump{SwIfIndex:0xffffffff}
  118.  
  119.  
  120. <<<= RECV: &vxlan.VxlanTunnelDetails{SwIfIndex:0x0, Instance:0x0, SrcAddress:[]uint8(nil), DstAddress:[]uint8(nil), McastSwIfIndex:0x0, EncapVrfID:0x0, DecapNextIndex:0x0, Vni:0x0, IsIPv6:0x0}
  121.  
  122. =>>> SEND: &interfaces.SwInterfaceGetTable{SwIfIndex:0x0, IsIPv6:0x0}
  123.  
  124.  
  125. <<<= RECV: &interfaces.SwInterfaceGetTableReply{Retval:0, VrfID:0x0}
  126.  
  127. =>>> SEND: &interfaces.SwInterfaceGetTable{SwIfIndex:0x0, IsIPv6:0x1}
  128.  
  129.  
  130. <<<= RECV: &interfaces.SwInterfaceGetTableReply{Retval:0, VrfID:0x0}
  131.  
  132. =>>> SEND: &interfaces.SwInterfaceGetTable{SwIfIndex:0x1, IsIPv6:0x0}
  133.  
  134.  
  135. <<<= RECV: &interfaces.SwInterfaceGetTableReply{Retval:0, VrfID:0x0}
  136.  
  137. =>>> SEND: &interfaces.SwInterfaceGetTable{SwIfIndex:0x1, IsIPv6:0x1}
  138.  
  139.  
  140. <<<= RECV: &interfaces.SwInterfaceGetTableReply{Retval:0, VrfID:0x0}
  141.  
  142. =>>> SEND: &memif.MemifSocketFilenameDump{}
  143.  
  144.  
  145. <<<= RECV: &memif.MemifSocketFilenameDetails{SocketID:0x0, SocketFilename:[]uint8{0x2f, 0x72, 0x75, 0x6e, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x6d, 0x65, 0x6d, 0x69, 0x66, 0x2e, 0x73, 0x6f, 0x63, 0x6b, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
  146.  
  147.  
  148. <<<= RECV: &memif.MemifSocketFilenameDetails{SocketID:0x0, SocketFilename:[]uint8(nil)}
  149.  
  150. =>>> SEND: &memif.MemifDump{}
  151.  
  152.  
  153. <<<= RECV: &memif.MemifDetails{SwIfIndex:0x1, IfName:[]uint8{0x6d, 0x65, 0x6d, 0x69, 0x66, 0x30, 0x2f, 0x31, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, HwAddr:[]uint8{0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, ID:0x1, Role:0x0, Mode:0x0, SocketID:0x0, RingSize:0x1, BufferSize:0x0, AdminUpDown:0x0, LinkUpDown:0x0}
  154.  
  155.  
  156. <<<= RECV: &memif.MemifDetails{SwIfIndex:0x0, IfName:[]uint8(nil), HwAddr:[]uint8(nil), ID:0x0, Role:0x0, Mode:0x0, SocketID:0x0, RingSize:0x0, BufferSize:0x0, AdminUpDown:0x0, LinkUpDown:0x0}
  157.  
  158. =>>> SEND: &tapv2.SwInterfaceTapV2Dump{}
  159.  
  160.  
  161. <<<= RECV: &tapv2.SwInterfaceTapV2Details{SwIfIndex:0x0, ID:0x0, DevName:[]uint8(nil), TxRingSz:0x0, RxRingSz:0x0, HostMacAddr:[]uint8(nil), HostIfName:[]uint8(nil), HostNamespace:[]uint8(nil), HostBridge:[]uint8(nil), HostIP4Addr:[]uint8(nil), HostIP4PrefixLen:0x0, HostIP6Addr:[]uint8(nil), HostIP6PrefixLen:0x0, HostMtuSize:0x0, TapFlags:0x0}
  162.  
  163. =>>> SEND: &ipsec.IpsecSaDump{SaID:0xffffffff}
  164.  
  165.  
  166. <<<= RECV: &ipsec.IpsecSaDetails{Entry:ipsec.IpsecSadEntry{SadID:0x0, Spi:0x0, Protocol:0x0, CryptoAlgorithm:0x0, CryptoKey:ipsec.Key{Length:0x0, Data:[]uint8(nil)}, IntegrityAlgorithm:0x0, IntegrityKey:ipsec.Key{Length:0x0, Data:[]uint8(nil)}, Flags:0x0, TunnelSrc:ipsec.Address{Af:0x0, Un:ipsec.AddressUnion{XXX_UnionData:[16]uint8{0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}}, TunnelDst:ipsec.Address{Af:0x0, Un:ipsec.AddressUnion{XXX_UnionData:[16]uint8{0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}}, TxTableID:0x0, Salt:0x0}, SwIfIndex:0x0, Salt:0x0, SeqOutbound:0x0, LastSeqInbound:0x0, ReplayWindow:0x0, TotalDataSize:0x0}
  167.  
  168. =>>> SEND: &vmxnet3.Vmxnet3Dump{}
  169.  
  170.  
  171. <<<= RECV: &vmxnet3.Vmxnet3Details{SwIfIndex:0x0, IfName:[]uint8(nil), HwAddr:[]uint8(nil), PciAddr:0x0, Version:0x0, AdminUpDown:0x0, RxCount:0x0, RxList:[]vmxnet3.Vmxnet3RxList(nil), TxCount:0x0, TxList:[]vmxnet3.Vmxnet3TxList(nil)}
  172.  
  173. =>>> SEND: &bond.SwInterfaceBondDump{}
  174.  
  175.  
  176. <<<= RECV: &bond.SwInterfaceBondDetails{SwIfIndex:0x0, ID:0x0, InterfaceName:[]uint8(nil), Mode:0x0, Lb:0x0, ActiveSlaves:0x0, Slaves:0x0}
  177.  
  178. =>>> SEND: &interfaces.SwInterfaceRxPlacementDump{SwIfIndex:0xffffffff}
  179.  
  180.  
  181. <<<= RECV: &interfaces.SwInterfaceRxPlacementDetails{SwIfIndex:0x0, QueueID:0x0, WorkerID:0x0, Mode:0x0}
  182.  
  183. --- FAIL: TestMemifInterface (0.29s)
  184. integration_test.go:146: VPP start OK (PID: 36)
  185. integration_test.go:181: VPP connect OK
  186. integration_test.go:193: VPP version: 19.08-rc0~673-ga2e4451db~b3238
  187. integration_test.go:211: ---------------
  188. 010_interfaces_test.go:115: memif index: 1
  189. 010_interfaces_test.go:125: interface: name:"memif1" type:MEMIF memif:<master:true id:1 socket_filename:"/run/vpp/memif.sock" ring_size:1 >
  190. 010_interfaces_test.go:141: expected memif mode to be IP, got ETHERNET
  191. integration_test.go:227: -----------------
  192. integration_test.go:239: VPP disconnect OK
  193. integration_test.go:260: VPP exit OK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement