Skip to content

Commit

Permalink
Fixing AIP Get/List/Create/Update/Delete rename
Browse files Browse the repository at this point in the history
See opi-api#202

Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
  • Loading branch information
glimchb committed Nov 11, 2022
1 parent 97ddc76 commit 325c471
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions goopicsi.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func ConnectToRemoteAndExpose(addr string) error {

// Expose emulated NVMe device to the Host (Step 1: Subsystem)
c1 := pb.NewFrontendNvmeServiceClient(conn)
rs1, err := c1.NVMeSubsystemCreate(ctx, &pb.NVMeSubsystemCreateRequest{
rs1, err := c1.CreateNVMeSubsystem(ctx, &pb.CreateNVMeSubsystemRequest{
Subsystem: &pb.NVMeSubsystem{
Spec: &pb.NVMeSubsystemSpec{
Id: &pbc.ObjectKey{Value: "controller-test-ss"},
Expand All @@ -63,7 +63,7 @@ func ConnectToRemoteAndExpose(addr string) error {
}
log.Printf("Added: %v", rs1)
// Step2: NVMeController
rc1, err := c1.NVMeControllerCreate(ctx, &pb.NVMeControllerCreateRequest{
rc1, err := c1.CreateNVMeController(ctx, &pb.CreateNVMeControllerRequest{
Controller: &pb.NVMeController{
Spec: &pb.NVMeControllerSpec{
Id: &pbc.ObjectKey{Value: "controller-test"},
Expand All @@ -76,7 +76,7 @@ func ConnectToRemoteAndExpose(addr string) error {
log.Printf("Added: %v", rc1)

// NVMeNamespace
rn1, err := c1.NVMeNamespaceCreate(ctx, &pb.NVMeNamespaceCreateRequest{
rn1, err := c1.CreateNVMeNamespace(ctx, &pb.CreateNVMeNamespaceRequest{
Namespace: &pb.NVMeNamespace{
Spec: &pb.NVMeNamespaceSpec{
Id: &pbc.ObjectKey{Value: "namespace-test"},
Expand Down

0 comments on commit 325c471

Please sign in to comment.