Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
DanG100 committed Jan 11, 2024
1 parent 01b89ac commit 4554d17
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions dataplane/dplaneopts/dplaneopts.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import fwdpb "github.com/openconfig/lemming/proto/forwarding"

// Options configures the dataplane
type Options struct {
// Addr is the address of the gRPC server.
Addr string
// AddrPort is the address of the gRPC server.
AddrPort string
// Reconcilation enabes gNMI reconcilation.
Reconcilation bool
// HostifNetDevType is the fwdpb type for the saipb hostif netdev types.
Expand All @@ -33,9 +33,9 @@ type Option func(*Options)

// WithAddrPort sets the address of the dataplane gRPC server
// Default: 127.0.0.1:0
func WithAddrPort(addr string) Option {
func WithAddrPort(addrPort string) Option {
return func(o *Options) {
o.Addr = addr
o.AddrPort = addrPort
}
}

Expand Down Expand Up @@ -66,7 +66,7 @@ func WithPortType(t fwdpb.PortType) Option {
// ResolveOpts creates an option struct from the opts.
func ResolveOpts(opts ...Option) *Options {
resolved := &Options{
Addr: "127.0.0.1:0",
AddrPort: "127.0.0.1:0",
Reconcilation: true,
HostifNetDevType: fwdpb.PortType_PORT_TYPE_TAP,
PortType: fwdpb.PortType_PORT_TYPE_KERNEL,
Expand Down
1 change: 1 addition & 0 deletions dataplane/forwarding/infra/fwdcontext/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ type Context struct {
eventMu sync.Mutex // Mutex protecting the event notification
nextEventID uint64 // Id of the next event id

// FakePortManager is the implementation of the port creator for the Fake port type.
FakePortManager FakePortManager
}

Expand Down

0 comments on commit 4554d17

Please sign in to comment.