diff --git a/go.mod b/go.mod index b2c70ab9..e586d044 100644 --- a/go.mod +++ b/go.mod @@ -6,8 +6,8 @@ require ( github.com/edwarnicke/exechelper v1.0.2 github.com/go-ping/ping v1.0.0 github.com/golang/protobuf v1.5.2 - github.com/networkservicemesh/api v1.3.2-0.20220512163820-8c875d61945b - github.com/networkservicemesh/sdk v0.5.1-0.20220513230445-b9a2a4ececad + github.com/networkservicemesh/api v1.3.2-0.20220514193644-73abc067b2ce + github.com/networkservicemesh/sdk v0.5.1-0.20220514195906-4ea3f90ef51e github.com/pkg/errors v0.9.1 github.com/stretchr/testify v1.7.0 github.com/vishvananda/netlink v1.1.1-0.20220118170537-d6b03fdeb845 diff --git a/go.sum b/go.sum index 2c48aab5..8ad0db5b 100644 --- a/go.sum +++ b/go.sum @@ -77,10 +77,10 @@ github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORN github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= -github.com/networkservicemesh/api v1.3.2-0.20220512163820-8c875d61945b h1:suJRTlWU7/N0gF3FdcN9kCf1MO5Z7CdVSBdb2JTkLhk= -github.com/networkservicemesh/api v1.3.2-0.20220512163820-8c875d61945b/go.mod h1:hOF2844BSstH1311oDMDgqqXS+kdc77htZNPRKl9mf8= -github.com/networkservicemesh/sdk v0.5.1-0.20220513230445-b9a2a4ececad h1:QwUtTgHSe3fhPVqaeGmpdtV6W03eCtEc+Xr9d/tmDqA= -github.com/networkservicemesh/sdk v0.5.1-0.20220513230445-b9a2a4ececad/go.mod h1:7Aa9sCLOVzhsbR7LBJ1nSK/YCzd/EO/YK3BbHPB0puw= +github.com/networkservicemesh/api v1.3.2-0.20220514193644-73abc067b2ce h1:kpVCSUnoJoIy35F60F6DBuOWY+FZuVwYf3TlptLZP6k= +github.com/networkservicemesh/api v1.3.2-0.20220514193644-73abc067b2ce/go.mod h1:hOF2844BSstH1311oDMDgqqXS+kdc77htZNPRKl9mf8= +github.com/networkservicemesh/sdk v0.5.1-0.20220514195906-4ea3f90ef51e h1:CDM6JS8uYAlKwcY24gI2JioWe81AmLEZLBEvFwXgS3o= +github.com/networkservicemesh/sdk v0.5.1-0.20220514195906-4ea3f90ef51e/go.mod h1:twQwRxXlr01yriIoyGkKK5Rd1hOI0GMbPn+RnBy+i0s= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= diff --git a/pkg/kernel/networkservice/setiptables4nattemplate/server.go b/pkg/kernel/networkservice/setiptables4nattemplate/server.go index 44fc347c..64d758d3 100644 --- a/pkg/kernel/networkservice/setiptables4nattemplate/server.go +++ b/pkg/kernel/networkservice/setiptables4nattemplate/server.go @@ -44,7 +44,7 @@ func NewServer(rulesTemplate []string) networkservice.NetworkServiceServer { func (s *setIPTablesTemplateServer) Request(ctx context.Context, request *networkservice.NetworkServiceRequest) (*networkservice.Connection, error) { mechanism := kernel.ToMechanism(request.GetConnection().GetMechanism()) if mechanism != nil { - mechanism.SetIPTables4NatTemplate(s.rulesTemplate) + mechanism.SetIPTables4NatTemplate(s.rulesTemplate...) } return next.Server(ctx).Request(ctx, request)