rbd: add NetworkFence operation

Signed-off-by: Yug Gupta <yuggupta27@gmail.com>
This commit is contained in:
Yug Gupta 2022-01-06 17:36:00 +05:30 committed by mergify[bot]
parent fa5866deec
commit 9d34809425
2 changed files with 9 additions and 0 deletions

View File

@ -82,6 +82,12 @@ func (is *IdentityServer) GetCapabilities(
Type: identity.Capability_ReclaimSpace_OFFLINE, Type: identity.Capability_ReclaimSpace_OFFLINE,
}, },
}, },
}, &identity.Capability{
Type: &identity.Capability_NetworkFence_{
NetworkFence: &identity.Capability_NetworkFence{
Type: identity.Capability_NetworkFence_NETWORK_FENCE,
},
},
}) })
} }

View File

@ -216,6 +216,9 @@ func (r *Driver) setupCSIAddonsServer(conf *util.Config) error {
if conf.IsControllerServer { if conf.IsControllerServer {
rs := casrbd.NewReclaimSpaceControllerServer() rs := casrbd.NewReclaimSpaceControllerServer()
r.cas.RegisterService(rs) r.cas.RegisterService(rs)
fcs := casrbd.NewFenceControllerServer()
r.cas.RegisterService(fcs)
} }
if conf.IsNodeServer { if conf.IsNodeServer {