Skip to content

Instantly share code, notes, and snippets.

@edwarnicke
Created November 4, 2018 16:55
Show Gist options
  • Save edwarnicke/5f323de14805a4bba90da0ca9e844b37 to your computer and use it in GitHub Desktop.
Save edwarnicke/5f323de14805a4bba90da0ca9e844b37 to your computer and use it in GitHub Desktop.
dataReq := &rpc.DataRequest{
Interfaces: []*interfaces.Interfaces_Interface{
&interfaces.Interfaces_Interface{
// Name:
// Description:
Type: interfaces.InterfaceType_TAP_INTERFACE,
Enabled: true,
Tap: &interfaces.Interfaces_Interface_Tap{
Version: 2,
// Namespace:
// HostIfName:
},
},
&interfaces.Interfaces_Interface{
// Name:
// Description:
Type: interfaces.InterfaceType_MEMORY_INTERFACE,
Enabled: true,
Memif: &interfaces.Interfaces_Interface_Memif{
// Master:
// Mode:
// SocketFilename:
},
},
},
XCons: []*l2.XConnectPairs_XConnectPair{
// Don't forget to connect both way
&l2.XConnectPairs_XConnectPair{
// ReceiveInterface:
// TransmitInterface:
},
&l2.XConnectPairs_XConnectPair{
// ReceiveInterface:
// TransmitInterface:
},
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment