Change module name to go.fd.io/govpp
[govpp.git] / binapi / pg / pg_rpc.ba.go
index 1a46cc3..9b1366c 100644 (file)
@@ -5,13 +5,14 @@ package pg
 import (
        "context"
 
-       api "git.fd.io/govpp.git/api"
+       api "go.fd.io/govpp/api"
 )
 
 // RPCService defines RPC service pg.
 type RPCService interface {
        PgCapture(ctx context.Context, in *PgCapture) (*PgCaptureReply, error)
        PgCreateInterface(ctx context.Context, in *PgCreateInterface) (*PgCreateInterfaceReply, error)
+       PgCreateInterfaceV2(ctx context.Context, in *PgCreateInterfaceV2) (*PgCreateInterfaceV2Reply, error)
        PgEnableDisable(ctx context.Context, in *PgEnableDisable) (*PgEnableDisableReply, error)
        PgInterfaceEnableDisableCoalesce(ctx context.Context, in *PgInterfaceEnableDisableCoalesce) (*PgInterfaceEnableDisableCoalesceReply, error)
 }
@@ -42,6 +43,15 @@ func (c *serviceClient) PgCreateInterface(ctx context.Context, in *PgCreateInter
        return out, api.RetvalToVPPApiError(out.Retval)
 }
 
+func (c *serviceClient) PgCreateInterfaceV2(ctx context.Context, in *PgCreateInterfaceV2) (*PgCreateInterfaceV2Reply, error) {
+       out := new(PgCreateInterfaceV2Reply)
+       err := c.conn.Invoke(ctx, in, out)
+       if err != nil {
+               return nil, err
+       }
+       return out, api.RetvalToVPPApiError(out.Retval)
+}
+
 func (c *serviceClient) PgEnableDisable(ctx context.Context, in *PgEnableDisable) (*PgEnableDisableReply, error) {
        out := new(PgEnableDisableReply)
        err := c.conn.Invoke(ctx, in, out)