Documentation
¶
Overview ¶
Package gnxi populates a list of all RPCs related for featuresprofile tests. It also add additional data (such as paths for each rpc) to simplify security testing. Having all rpc in a list also allow us to write tests that cover all RPCs. Package also contains function skeleton for all RPCs. By adding an implementation here, all tests can use the code. This can prevent the duplication and unify the testing.
Package gnxi populates a list of all RPCs related for featuresprofile tests. The below code is generated using ../gen/generate.go. Please do not modify.
Index ¶
- Variables
- func AllRPC(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnmiAllRPC(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnmiCapabilities(ctx context.Context, dut *ondatra.DUTDevice, opts []grpc.DialOption, _ ...any) error
- func GnmiGet(ctx context.Context, dut *ondatra.DUTDevice, opts []grpc.DialOption, _ ...any) error
- func GnmiSet(ctx context.Context, dut *ondatra.DUTDevice, opts []grpc.DialOption, _ ...any) error
- func GnmiSubscribe(ctx context.Context, dut *ondatra.DUTDevice, opts []grpc.DialOption, _ ...any) error
- func GnoiBgpAllRPC(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiBgpClearBGPNeighbor(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiDiagAllRPC(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiDiagGetBERTResult(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiDiagStartBERT(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiDiagStopBERT(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiFactoryresetAllRPC(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiFactoryresetStart(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiFileAllRPC(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiFileGet(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiFilePut(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiFileRemove(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiFileStat(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiFileTransferToRemote(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiHealthzAcknowledge(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiHealthzAllRPC(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiHealthzArtifact(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiHealthzCheck(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiHealthzGet(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiHealthzList(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiLayer2AllRPC(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiLayer2ClearLLDPInterface(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiLayer2ClearNeighborDiscovery(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiLayer2ClearSpanningTree(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiLayer2PerformBERT(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiLayer2SendWakeOnLAN(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiLinkqualificationAllRPC(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiLinkqualificationCapabilities(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiLinkqualificationCreate(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiLinkqualificationDelete(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiLinkqualificationGet(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiLinkqualificationList(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiMplsAllRPC(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiMplsClearLSP(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiMplsClearLSPCounters(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiMplsMPLSPing(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiOsActivate(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiOsAllRPC(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiOsInstall(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiOsVerify(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiOtdrAllRPC(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiOtdrInitiate(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiSystemAllRPC(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiSystemCancelReboot(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiSystemKillProcess(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiSystemPing(ctx context.Context, dut *ondatra.DUTDevice, opts []grpc.DialOption, _ ...any) error
- func GnoiSystemReboot(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiSystemRebootStatus(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiSystemSetPackage(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiSystemSwitchControlProcessor(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiSystemTime(ctx context.Context, dut *ondatra.DUTDevice, opts []grpc.DialOption, _ ...any) error
- func GnoiSystemTraceroute(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiWavelengthrouterAdjustPSD(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiWavelengthrouterAdjustSpectrum(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiWavelengthrouterAllRPC(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiWavelengthrouterCancelAdjustPSD(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnoiWavelengthrouterCancelAdjustSpectrum(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnsiAccountingpullAllRPC(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnsiAccountingpullRecordStream(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnsiAccountingpushAllRPC(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnsiAccountingpushRecordStream(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnsiAcctzAllRPC(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnsiAcctzRecordSubscribe(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnsiAuthzAllRPC(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnsiAuthzGet(ctx context.Context, dut *ondatra.DUTDevice, opts []grpc.DialOption, _ ...any) error
- func GnsiAuthzProbe(ctx context.Context, dut *ondatra.DUTDevice, opts []grpc.DialOption, _ ...any) error
- func GnsiAuthzRotate(ctx context.Context, dut *ondatra.DUTDevice, opts []grpc.DialOption, _ ...any) error
- func GnsiCertzAddProfile(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnsiCertzAllRPC(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnsiCertzCanGenerateCSR(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnsiCertzDeleteProfile(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnsiCertzGetProfileList(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnsiCertzRotate(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnsiCredentialzAllRPC(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnsiCredentialzCanGenerateKey(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnsiCredentialzGetPublicKeys(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnsiCredentialzRotateAccountCredentials(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnsiCredentialzRotateHostCredentials(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnsiCredentialzRotateHostParameters(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnsiPathzAllRPC(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnsiPathzGet(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnsiPathzProbe(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GnsiPathzRotate(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GribiAllRPC(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func GribiFlush(ctx context.Context, dut *ondatra.DUTDevice, opts []grpc.DialOption, _ ...any) error
- func GribiGet(ctx context.Context, dut *ondatra.DUTDevice, opts []grpc.DialOption, _ ...any) error
- func GribiModify(ctx context.Context, dut *ondatra.DUTDevice, opts []grpc.DialOption, _ ...any) error
- func P4P4runtimeAllRPC(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func P4P4runtimeCapabilities(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func P4P4runtimeGetForwardingPipelineConfig(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func P4P4runtimeRead(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func P4P4runtimeSetForwardingPipelineConfig(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func P4P4runtimeStreamChannel(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- func P4P4runtimeWrite(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
- type ExecRPCFunction
- type RPC
Constants ¶
This section is empty.
Variables ¶
var ( // ALL defines all FP related RPCs ALL = &RPC{ Name: "*", Service: "*", FQN: "*", Path: "*", Exec: AllRPC, } // RPCs is a list of all FP related RPCs RPCs = rpcs{ AllRPC: ALL, GnmiAllRPC: gnmiALL, GnmiGet: gnmiGet, GnmiSet: gnmiSet, GnmiSubscribe: gnmiSubscribe, GnmiCapabilities: gnmiCapabilities, GnoiBgpAllRPC: gnoibgpALL, GnoiBgpClearBGPNeighbor: gnoibgpClearBGPNeighbor, GnoiDiagAllRPC: gnoidiagALL, GnoiDiagGetBERTResult: gnoidiagGetBERTResult, GnoiDiagStopBERT: gnoidiagStopBERT, GnoiDiagStartBERT: gnoidiagStartBERT, GnoiFactoryresetAllRPC: gnoifactory_resetFactoryResetALL, GnoiFactoryresetStart: gnoifactory_resetFactoryResetStart, GnoiFileAllRPC: gnoifileALL, GnoiFilePut: gnoifilePut, GnoiFileRemove: gnoifileRemove, GnoiFileStat: gnoifileStat, GnoiFileTransferToRemote: gnoifileTransferToRemote, GnoiFileGet: gnoifileGet, GnoiHealthzAcknowledge: gnoihealthzAcknowledge, GnoiHealthzAllRPC: gnoihealthzALL, GnoiHealthzArtifact: gnoihealthzArtifact, GnoiHealthzCheck: gnoihealthzCheck, GnoiHealthzList: gnoihealthzList, GnoiHealthzGet: gnoihealthzGet, GnoiLayer2AllRPC: gnoilayer2ALL, GnoiLayer2ClearLLDPInterface: gnoilayer2ClearLLDPInterface, GnoiLayer2ClearSpanningTree: gnoilayer2ClearSpanningTree, GnoiLayer2PerformBERT: gnoilayer2PerformBERT, GnoiLayer2SendWakeOnLAN: gnoilayer2SendWakeOnLAN, GnoiLayer2ClearNeighborDiscovery: gnoilayer2ClearNeighborDiscovery, GnoiLinkqualificationCreate: gnoipacket_link_qualificationLinkQualificationCreate, GnoiMplsAllRPC: gnoimplsALL, GnoiMplsClearLSPCounters: gnoimplsClearLSPCounters, GnoiMplsMPLSPing: gnoimplsMPLSPing, GnoiMplsClearLSP: gnoimplsClearLSP, GnoiOtdrAllRPC: gnoiopticalOTDRALL, GnoiWavelengthrouterAdjustSpectrum: gnoiopticalWavelengthRouterAdjustSpectrum, GnoiWavelengthrouterAllRPC: gnoiopticalWavelengthRouterALL, GnoiWavelengthrouterCancelAdjustPSD: gnoiopticalWavelengthRouterCancelAdjustPSD, GnoiWavelengthrouterCancelAdjustSpectrum: gnoiopticalWavelengthRouterCancelAdjustSpectrum, GnoiOsActivate: gnoiosActivate, GnoiOsAllRPC: gnoiosALL, GnoiOsVerify: gnoiosVerify, GnoiOsInstall: gnoiosInstall, GnoiOtdrInitiate: gnoiopticalOTDRInitiate, GnoiLinkqualificationAllRPC: gnoipacket_link_qualificationLinkQualificationALL, GnoiLinkqualificationCapabilities: gnoipacket_link_qualificationLinkQualificationCapabilities, GnoiLinkqualificationDelete: gnoipacket_link_qualificationLinkQualificationDelete, GnoiLinkqualificationGet: gnoipacket_link_qualificationLinkQualificationGet, GnoiLinkqualificationList: gnoipacket_link_qualificationLinkQualificationList, GnoiSystemAllRPC: gnoisystemALL, GnoiSystemCancelReboot: gnoisystemCancelReboot, GnoiSystemKillProcess: gnoisystemKillProcess, GnoiSystemReboot: gnoisystemReboot, GnoiSystemRebootStatus: gnoisystemRebootStatus, GnoiSystemSetPackage: gnoisystemSetPackage, GnoiSystemSwitchControlProcessor: gnoisystemSwitchControlProcessor, GnoiSystemTime: gnoisystemTime, GnoiSystemTraceroute: gnoisystemTraceroute, GnoiSystemPing: gnoisystemPing, GnoiWavelengthrouterAdjustPSD: gnoiopticalWavelengthRouterAdjustPSD, GnsiAcctzAllRPC: gnsiacctzv1AcctzALL, GnsiAcctzRecordSubscribe: gnsiacctzv1AcctzRecordSubscribe, GnsiAuthzAllRPC: gnsiauthzv1AuthzALL, GnsiAuthzGet: gnsiauthzv1AuthzGet, GnsiAuthzProbe: gnsiauthzv1AuthzProbe, GnsiAuthzRotate: gnsiauthzv1AuthzRotate, GnsiCertzAddProfile: gnsicertzv1CertzAddProfile, GnsiCertzAllRPC: gnsicertzv1CertzALL, GnsiCertzCanGenerateCSR: gnsicertzv1CertzCanGenerateCSR, GnsiCertzDeleteProfile: gnsicertzv1CertzDeleteProfile, GnsiCertzGetProfileList: gnsicertzv1CertzGetProfileList, GnsiCertzRotate: gnsicertzv1CertzRotate, GnsiCredentialzAllRPC: gnsicredentialzv1CredentialzALL, GnsiCredentialzCanGenerateKey: gnsicredentialzv1CredentialzCanGenerateKey, GnsiCredentialzGetPublicKeys: gnsicredentialzv1CredentialzGetPublicKeys, GnsiCredentialzRotateHostParameters: gnsicredentialzv1CredentialzRotateHostParameters, GnsiCredentialzRotateAccountCredentials: gnsicredentialzv1CredentialzRotateAccountCredentials, GnsiPathzAllRPC: gnsipathzv1PathzALL, GnsiPathzGet: gnsipathzv1PathzGet, GnsiPathzProbe: gnsipathzv1PathzProbe, GnsiPathzRotate: gnsipathzv1PathzRotate, GribiAllRPC: gribiALL, GribiFlush: gribiFlush, GribiGet: gribiGet, GribiModify: gribiModify, P4P4runtimeAllRPC: p4v1P4RuntimeALL, P4P4runtimeCapabilities: p4v1P4RuntimeCapabilities, P4P4runtimeGetForwardingPipelineConfig: p4v1P4RuntimeGetForwardingPipelineConfig, P4P4runtimeRead: p4v1P4RuntimeRead, P4P4runtimeSetForwardingPipelineConfig: p4v1P4RuntimeSetForwardingPipelineConfig, P4P4runtimeStreamChannel: p4v1P4RuntimeStreamChannel, P4P4runtimeWrite: p4v1P4RuntimeWrite, } // RPCMAP is a helper that maps path to RPCs data that may be needed in tests. RPCMAP = map[string]*RPC{ "*": ALL, "/gnmi.gNMI/*": gnmiALL, "/gnmi.gNMI/Get": gnmiGet, "/gnmi.gNMI/Set": gnmiSet, "/gnmi.gNMI/Subscribe": gnmiSubscribe, "/gnmi.gNMI/Capabilities": gnmiCapabilities, "/gnoi.bgp.BGP/*": gnoibgpALL, "/gnoi.bgp.BGP/ClearBGPNeighbor": gnoibgpClearBGPNeighbor, "/gnoi.diag.Diag/*": gnoidiagALL, "/gnoi.diag.Diag/GetBERTResult": gnoidiagGetBERTResult, "/gnoi.diag.Diag/StopBERT": gnoidiagStopBERT, "/gnoi.diag.Diag/StartBERT": gnoidiagStartBERT, "/gnoi.factory_reset.FactoryReset/*": gnoifactory_resetFactoryResetALL, "/gnoi.factory_reset.FactoryReset/Start": gnoifactory_resetFactoryResetStart, "/gnoi.file.File/*": gnoifileALL, "/gnoi.file.File/Put": gnoifilePut, "/gnoi.file.File/Remove": gnoifileRemove, "/gnoi.file.File/Stat": gnoifileStat, "/gnoi.file.File/TransferToRemote": gnoifileTransferToRemote, "/gnoi.file.File/Get": gnoifileGet, "/gnoi.healthz.Healthz/Acknowledge": gnoihealthzAcknowledge, "/gnoi.healthz.Healthz/*": gnoihealthzALL, "/gnoi.healthz.Healthz/Artifact": gnoihealthzArtifact, "/gnoi.healthz.Healthz/Check": gnoihealthzCheck, "/gnoi.healthz.Healthz/List": gnoihealthzList, "/gnoi.healthz.Healthz/Get": gnoihealthzGet, "/gnoi.layer2.Layer2/*": gnoilayer2ALL, "/gnoi.layer2.Layer2/ClearLLDPInterface": gnoilayer2ClearLLDPInterface, "/gnoi.layer2.Layer2/ClearSpanningTree": gnoilayer2ClearSpanningTree, "/gnoi.layer2.Layer2/PerformBERT": gnoilayer2PerformBERT, "/gnoi.layer2.Layer2/SendWakeOnLAN": gnoilayer2SendWakeOnLAN, "/gnoi.layer2.Layer2/ClearNeighborDiscovery": gnoilayer2ClearNeighborDiscovery, "/gnoi.packet_link_qualification.LinkQualification/Create": gnoipacket_link_qualificationLinkQualificationCreate, "/gnoi.mpls.MPLS/*": gnoimplsALL, "/gnoi.mpls.MPLS/ClearLSPCounters": gnoimplsClearLSPCounters, "/gnoi.mpls.MPLS/MPLSPing": gnoimplsMPLSPing, "/gnoi.mpls.MPLS/ClearLSP": gnoimplsClearLSP, "/gnoi.optical.OTDR/*": gnoiopticalOTDRALL, "/gnoi.optical.WavelengthRouter/AdjustSpectrum": gnoiopticalWavelengthRouterAdjustSpectrum, "/gnoi.optical.WavelengthRouter/*": gnoiopticalWavelengthRouterALL, "/gnoi.optical.WavelengthRouter/CancelAdjustPSD": gnoiopticalWavelengthRouterCancelAdjustPSD, "/gnoi.optical.WavelengthRouter/CancelAdjustSpectrum": gnoiopticalWavelengthRouterCancelAdjustSpectrum, "/gnoi.os.OS/Activate": gnoiosActivate, "/gnoi.os.OS/*": gnoiosALL, "/gnoi.os.OS/Verify": gnoiosVerify, "/gnoi.os.OS/Install": gnoiosInstall, "/gnoi.optical.OTDR/Initiate": gnoiopticalOTDRInitiate, "/gnoi.packet_link_qualification.LinkQualification/*": gnoipacket_link_qualificationLinkQualificationALL, "/gnoi.packet_link_qualification.LinkQualification/Capabilities": gnoipacket_link_qualificationLinkQualificationCapabilities, "/gnoi.packet_link_qualification.LinkQualification/Delete": gnoipacket_link_qualificationLinkQualificationDelete, "/gnoi.packet_link_qualification.LinkQualification/Get": gnoipacket_link_qualificationLinkQualificationGet, "/gnoi.packet_link_qualification.LinkQualification/List": gnoipacket_link_qualificationLinkQualificationList, "/gnoi.system.System/*": gnoisystemALL, "/gnoi.system.System/CancelReboot": gnoisystemCancelReboot, "/gnoi.system.System/KillProcess": gnoisystemKillProcess, "/gnoi.system.System/Reboot": gnoisystemReboot, "/gnoi.system.System/RebootStatus": gnoisystemRebootStatus, "/gnoi.system.System/SetPackage": gnoisystemSetPackage, "/gnoi.system.System/SwitchControlProcessor": gnoisystemSwitchControlProcessor, "/gnoi.system.System/Time": gnoisystemTime, "/gnoi.system.System/Traceroute": gnoisystemTraceroute, "/gnoi.system.System/Ping": gnoisystemPing, "/gnoi.optical.WavelengthRouter/AdjustPSD": gnoiopticalWavelengthRouterAdjustPSD, "/gnsi.acctz.v1.Acctz/*": gnsiacctzv1AcctzALL, "/gnsi.acctz.v1.Acctz/RecordSubscribe": gnsiacctzv1AcctzRecordSubscribe, "/gnsi.authz.v1.Authz/*": gnsiauthzv1AuthzALL, "/gnsi.authz.v1.Authz/Get": gnsiauthzv1AuthzGet, "/gnsi.authz.v1.Authz/Probe": gnsiauthzv1AuthzProbe, "/gnsi.authz.v1.Authz/Rotate": gnsiauthzv1AuthzRotate, "/gnsi.certz.v1.Certz/AddProfile": gnsicertzv1CertzAddProfile, "/gnsi.certz.v1.Certz/*": gnsicertzv1CertzALL, "/gnsi.certz.v1.Certz/CanGenerateCSR": gnsicertzv1CertzCanGenerateCSR, "/gnsi.certz.v1.Certz/DeleteProfile": gnsicertzv1CertzDeleteProfile, "/gnsi.certz.v1.Certz/GetProfileList": gnsicertzv1CertzGetProfileList, "/gnsi.certz.v1.Certz/Rotate": gnsicertzv1CertzRotate, "/gnsi.credentialz.v1.Credentialz/*": gnsicredentialzv1CredentialzALL, "/gnsi.credentialz.v1.Credentialz/CanGenerateKey": gnsicredentialzv1CredentialzCanGenerateKey, "/gnsi.credentialz.v1.Credentialz/GetPublicKeys": gnsicredentialzv1CredentialzGetPublicKeys, "/gnsi.credentialz.v1.Credentialz/RotateHostParameters": gnsicredentialzv1CredentialzRotateHostParameters, "/gnsi.credentialz.v1.Credentialz/RotateAccountCredentials": gnsicredentialzv1CredentialzRotateAccountCredentials, "/gnsi.pathz.v1.Pathz/*": gnsipathzv1PathzALL, "/gnsi.pathz.v1.Pathz/Get": gnsipathzv1PathzGet, "/gnsi.pathz.v1.Pathz/Probe": gnsipathzv1PathzProbe, "/gnsi.pathz.v1.Pathz/Rotate": gnsipathzv1PathzRotate, "/gribi.gRIBI/*": gribiALL, "/gribi.gRIBI/Flush": gribiFlush, "/gribi.gRIBI/Get": gribiGet, "/gribi.gRIBI/Modify": gribiModify, "/p4.v1.P4Runtime/*": p4v1P4RuntimeALL, "/p4.v1.P4Runtime/Capabilities": p4v1P4RuntimeCapabilities, "/p4.v1.P4Runtime/GetForwardingPipelineConfig": p4v1P4RuntimeGetForwardingPipelineConfig, "/p4.v1.P4Runtime/Read": p4v1P4RuntimeRead, "/p4.v1.P4Runtime/SetForwardingPipelineConfig": p4v1P4RuntimeSetForwardingPipelineConfig, "/p4.v1.P4Runtime/StreamChannel": p4v1P4RuntimeStreamChannel, "/p4.v1.P4Runtime/Write": p4v1P4RuntimeWrite, } )
Functions ¶
func AllRPC ¶
AllRPC implements a sample request for service * to validate if authz works as expected.
func GnmiAllRPC ¶
GnmiAllRPC implements a sample request for service /gnmi.gNMI/* to validate if authz works as expected.
func GnmiCapabilities ¶
func GnmiCapabilities(ctx context.Context, dut *ondatra.DUTDevice, opts []grpc.DialOption, _ ...any) error
GnmiCapabilities implements a sample request for service /gnmi.gNMI/Capabilities to validate if authz works as expected.
func GnmiGet ¶
GnmiGet implements a sample request for service /gnmi.gNMI/Get to validate if authz works as expected.
func GnmiSet ¶
GnmiSet implements a sample request for service /gnmi.gNMI/Set to validate if authz works as expected.
func GnmiSubscribe ¶
func GnmiSubscribe(ctx context.Context, dut *ondatra.DUTDevice, opts []grpc.DialOption, _ ...any) error
GnmiSubscribe implements a sample request for service /gnmi.gNMI/Subscribe to validate if authz works as expected.
func GnoiBgpAllRPC ¶
GnoiBgpAllRPC implements a sample request for service /gnoi.bgp.BGP/* to validate if authz works as expected.
func GnoiBgpClearBGPNeighbor ¶
func GnoiBgpClearBGPNeighbor(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnoiBgpClearBGPNeighbor implements a sample request for service /gnoi.bgp.BGP/ClearBGPNeighbor to validate if authz works as expected.
func GnoiDiagAllRPC ¶
GnoiDiagAllRPC implements a sample request for service /gnoi.diag.Diag/* to validate if authz works as expected.
func GnoiDiagGetBERTResult ¶
func GnoiDiagGetBERTResult(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnoiDiagGetBERTResult implements a sample request for service /gnoi.diag.Diag/GetBERTResult to validate if authz works as expected.
func GnoiDiagStartBERT ¶
func GnoiDiagStartBERT(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnoiDiagStartBERT implements a sample request for service /gnoi.diag.Diag/StartBERT to validate if authz works as expected.
func GnoiDiagStopBERT ¶
GnoiDiagStopBERT implements a sample request for service /gnoi.diag.Diag/StopBERT to validate if authz works as expected.
func GnoiFactoryresetAllRPC ¶
func GnoiFactoryresetAllRPC(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnoiFactoryresetAllRPC implements a sample request for service /gnoi.factory_reset.FactoryReset/* to validate if authz works as expected.
func GnoiFactoryresetStart ¶
func GnoiFactoryresetStart(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnoiFactoryresetStart implements a sample request for service /gnoi.factory_reset.FactoryReset/Start to validate if authz works as expected.
func GnoiFileAllRPC ¶
GnoiFileAllRPC implements a sample request for service /gnoi.file.File/* to validate if authz works as expected.
func GnoiFileGet ¶
GnoiFileGet implements a sample request for service /gnoi.file.File/Get to validate if authz works as expected.
func GnoiFilePut ¶
GnoiFilePut implements a sample request for service /gnoi.file.File/Put to validate if authz works as expected.
func GnoiFileRemove ¶
GnoiFileRemove implements a sample request for service /gnoi.file.File/Remove to validate if authz works as expected.
func GnoiFileStat ¶
GnoiFileStat implements a sample request for service /gnoi.file.File/Stat to validate if authz works as expected.
func GnoiFileTransferToRemote ¶
func GnoiFileTransferToRemote(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnoiFileTransferToRemote implements a sample request for service /gnoi.file.File/TransferToRemote to validate if authz works as expected.
func GnoiHealthzAcknowledge ¶
func GnoiHealthzAcknowledge(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnoiHealthzAcknowledge implements a sample request for service /gnoi.healthz.Healthz/Acknowledge to validate if authz works as expected.
func GnoiHealthzAllRPC ¶
func GnoiHealthzAllRPC(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnoiHealthzAllRPC implements a sample request for service /gnoi.healthz.Healthz/* to validate if authz works as expected.
func GnoiHealthzArtifact ¶
func GnoiHealthzArtifact(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnoiHealthzArtifact implements a sample request for service /gnoi.healthz.Healthz/Artifact to validate if authz works as expected.
func GnoiHealthzCheck ¶
GnoiHealthzCheck implements a sample request for service /gnoi.healthz.Healthz/Check to validate if authz works as expected.
func GnoiHealthzGet ¶
GnoiHealthzGet implements a sample request for service /gnoi.healthz.Healthz/Get to validate if authz works as expected.
func GnoiHealthzList ¶
GnoiHealthzList implements a sample request for service /gnoi.healthz.Healthz/List to validate if authz works as expected.
func GnoiLayer2AllRPC ¶
GnoiLayer2AllRPC implements a sample request for service /gnoi.layer2.Layer2/* to validate if authz works as expected.
func GnoiLayer2ClearLLDPInterface ¶
func GnoiLayer2ClearLLDPInterface(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnoiLayer2ClearLLDPInterface implements a sample request for service /gnoi.layer2.Layer2/ClearLLDPInterface to validate if authz works as expected.
func GnoiLayer2ClearNeighborDiscovery ¶
func GnoiLayer2ClearNeighborDiscovery(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnoiLayer2ClearNeighborDiscovery implements a sample request for service /gnoi.layer2.Layer2/ClearNeighborDiscovery to validate if authz works as expected.
func GnoiLayer2ClearSpanningTree ¶
func GnoiLayer2ClearSpanningTree(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnoiLayer2ClearSpanningTree implements a sample request for service /gnoi.layer2.Layer2/ClearSpanningTree to validate if authz works as expected.
func GnoiLayer2PerformBERT ¶
func GnoiLayer2PerformBERT(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnoiLayer2PerformBERT implements a sample request for service /gnoi.layer2.Layer2/PerformBERT to validate if authz works as expected.
func GnoiLayer2SendWakeOnLAN ¶
func GnoiLayer2SendWakeOnLAN(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnoiLayer2SendWakeOnLAN implements a sample request for service /gnoi.layer2.Layer2/SendWakeOnLAN to validate if authz works as expected.
func GnoiLinkqualificationAllRPC ¶
func GnoiLinkqualificationAllRPC(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnoiLinkqualificationAllRPC implements a sample request for service /gnoi.packet_link_qualification.LinkQualification/* to validate if authz works as expected.
func GnoiLinkqualificationCapabilities ¶
func GnoiLinkqualificationCapabilities(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnoiLinkqualificationCapabilities implements a sample request for service /gnoi.packet_link_qualification.LinkQualification/Capabilities to validate if authz works as expected.
func GnoiLinkqualificationCreate ¶
func GnoiLinkqualificationCreate(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnoiLinkqualificationCreate implements a sample request for service /gnoi.packet_link_qualification.LinkQualification/Create to validate if authz works as expected.
func GnoiLinkqualificationDelete ¶
func GnoiLinkqualificationDelete(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnoiLinkqualificationDelete implements a sample request for service /gnoi.packet_link_qualification.LinkQualification/Delete to validate if authz works as expected.
func GnoiLinkqualificationGet ¶
func GnoiLinkqualificationGet(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnoiLinkqualificationGet implements a sample request for service /gnoi.packet_link_qualification.LinkQualification/Get to validate if authz works as expected.
func GnoiLinkqualificationList ¶
func GnoiLinkqualificationList(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnoiLinkqualificationList implements a sample request for service /gnoi.packet_link_qualification.LinkQualification/List to validate if authz works as expected.
func GnoiMplsAllRPC ¶
GnoiMplsAllRPC implements a sample request for service /gnoi.mpls.MPLS/* to validate if authz works as expected.
func GnoiMplsClearLSP ¶
GnoiMplsClearLSP implements a sample request for service /gnoi.mpls.MPLS/ClearLSP to validate if authz works as expected.
func GnoiMplsClearLSPCounters ¶
func GnoiMplsClearLSPCounters(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnoiMplsClearLSPCounters implements a sample request for service /gnoi.mpls.MPLS/ClearLSPCounters to validate if authz works as expected.
func GnoiMplsMPLSPing ¶
GnoiMplsMPLSPing implements a sample request for service /gnoi.mpls.MPLS/MPLSPing to validate if authz works as expected.
func GnoiOsActivate ¶
GnoiOsActivate implements a sample request for service /gnoi.os.OS/Activate to validate if authz works as expected.
func GnoiOsAllRPC ¶
GnoiOsAllRPC implements a sample request for service /gnoi.os.OS/* to validate if authz works as expected.
func GnoiOsInstall ¶
GnoiOsInstall implements a sample request for service /gnoi.os.OS/Install to validate if authz works as expected.
func GnoiOsVerify ¶
GnoiOsVerify implements a sample request for service /gnoi.os.OS/Verify to validate if authz works as expected.
func GnoiOtdrAllRPC ¶
GnoiOtdrAllRPC implements a sample request for service /gnoi.optical.OTDR/* to validate if authz works as expected.
func GnoiOtdrInitiate ¶
GnoiOtdrInitiate implements a sample request for service /gnoi.optical.OTDR/Initiate to validate if authz works as expected.
func GnoiSystemAllRPC ¶
GnoiSystemAllRPC implements a sample request for service /gnoi.system.System/* to validate if authz works as expected.
func GnoiSystemCancelReboot ¶
func GnoiSystemCancelReboot(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnoiSystemCancelReboot implements a sample request for service /gnoi.system.System/CancelReboot to validate if authz works as expected.
func GnoiSystemKillProcess ¶
func GnoiSystemKillProcess(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnoiSystemKillProcess implements a sample request for service /gnoi.system.System/KillProcess to validate if authz works as expected.
func GnoiSystemPing ¶
func GnoiSystemPing(ctx context.Context, dut *ondatra.DUTDevice, opts []grpc.DialOption, _ ...any) error
GnoiSystemPing implements a sample request for service /gnoi.system.System/Ping to validate if authz works as expected.
func GnoiSystemReboot ¶
GnoiSystemReboot implements a sample request for service /gnoi.system.System/Reboot to validate if authz works as expected.
func GnoiSystemRebootStatus ¶
func GnoiSystemRebootStatus(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnoiSystemRebootStatus implements a sample request for service /gnoi.system.System/RebootStatus to validate if authz works as expected.
func GnoiSystemSetPackage ¶
func GnoiSystemSetPackage(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnoiSystemSetPackage implements a sample request for service /gnoi.system.System/SetPackage to validate if authz works as expected.
func GnoiSystemSwitchControlProcessor ¶
func GnoiSystemSwitchControlProcessor(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnoiSystemSwitchControlProcessor implements a sample request for service /gnoi.system.System/SwitchControlProcessor to validate if authz works as expected.
func GnoiSystemTime ¶
func GnoiSystemTime(ctx context.Context, dut *ondatra.DUTDevice, opts []grpc.DialOption, _ ...any) error
GnoiSystemTime implements a sample request for service /gnoi.system.System/Time to validate if authz works as expected.
func GnoiSystemTraceroute ¶
func GnoiSystemTraceroute(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnoiSystemTraceroute implements a sample request for service /gnoi.system.System/Traceroute to validate if authz works as expected.
func GnoiWavelengthrouterAdjustPSD ¶
func GnoiWavelengthrouterAdjustPSD(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnoiWavelengthrouterAdjustPSD implements a sample request for service /gnoi.optical.WavelengthRouter/AdjustPSD to validate if authz works as expected.
func GnoiWavelengthrouterAdjustSpectrum ¶
func GnoiWavelengthrouterAdjustSpectrum(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnoiWavelengthrouterAdjustSpectrum implements a sample request for service /gnoi.optical.WavelengthRouter/AdjustSpectrum to validate if authz works as expected.
func GnoiWavelengthrouterAllRPC ¶
func GnoiWavelengthrouterAllRPC(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnoiWavelengthrouterAllRPC implements a sample request for service /gnoi.optical.WavelengthRouter/* to validate if authz works as expected.
func GnoiWavelengthrouterCancelAdjustPSD ¶
func GnoiWavelengthrouterCancelAdjustPSD(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnoiWavelengthrouterCancelAdjustPSD implements a sample request for service /gnoi.optical.WavelengthRouter/CancelAdjustPSD to validate if authz works as expected.
func GnoiWavelengthrouterCancelAdjustSpectrum ¶
func GnoiWavelengthrouterCancelAdjustSpectrum(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnoiWavelengthrouterCancelAdjustSpectrum implements a sample request for service /gnoi.optical.WavelengthRouter/CancelAdjustSpectrum to validate if authz works as expected.
func GnsiAccountingpullAllRPC ¶
func GnsiAccountingpullAllRPC(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnsiAccountingpullAllRPC implements a sample request for service /gnsi.accounting.v1.AccountingPull/* to validate if authz works as expected.
func GnsiAccountingpullRecordStream ¶
func GnsiAccountingpullRecordStream(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnsiAccountingpullRecordStream implements a sample request for service /gnsi.accounting.v1.AccountingPull/RecordStream to validate if authz works as expected.
func GnsiAccountingpushAllRPC ¶
func GnsiAccountingpushAllRPC(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnsiAccountingpushAllRPC implements a sample request for service /gnsi.accounting.v1.AccountingPush/* to validate if authz works as expected.
func GnsiAccountingpushRecordStream ¶
func GnsiAccountingpushRecordStream(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnsiAccountingpushRecordStream implements a sample request for service /gnsi.accounting.v1.AccountingPush/RecordStream to validate if authz works as expected.
func GnsiAcctzAllRPC ¶
GnsiAcctzAllRPC implements a sample request for service /gnsi.acctz.v1.Acctz/* to validate if authz works as expected.
func GnsiAcctzRecordSubscribe ¶
func GnsiAcctzRecordSubscribe(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnsiAcctzRecordSubscribe implements a sample request for service /gnsi.acctz.v1.Acctz/RecordSubscribe to validate if authz works as expected.
func GnsiAuthzAllRPC ¶
GnsiAuthzAllRPC implements a sample request for service /gnsi.authz.v1.Authz/* to validate if authz works as expected.
func GnsiAuthzGet ¶
func GnsiAuthzGet(ctx context.Context, dut *ondatra.DUTDevice, opts []grpc.DialOption, _ ...any) error
GnsiAuthzGet implements a sample request for service /gnsi.authz.v1.Authz/Get to validate if authz works as expected.
func GnsiAuthzProbe ¶
func GnsiAuthzProbe(ctx context.Context, dut *ondatra.DUTDevice, opts []grpc.DialOption, _ ...any) error
GnsiAuthzProbe implements a sample request for service /gnsi.authz.v1.Authz/Probe to validate if authz works as expected.
func GnsiAuthzRotate ¶
func GnsiAuthzRotate(ctx context.Context, dut *ondatra.DUTDevice, opts []grpc.DialOption, _ ...any) error
GnsiAuthzRotate implements a sample request for service /gnsi.authz.v1.Authz/Rotate to validate if authz works as expected.
func GnsiCertzAddProfile ¶
func GnsiCertzAddProfile(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnsiCertzAddProfile implements a sample request for service /gnsi.certz.v1.Certz/AddProfile to validate if authz works as expected.
func GnsiCertzAllRPC ¶
GnsiCertzAllRPC implements a sample request for service /gnsi.certz.v1.Certz/* to validate if authz works as expected.
func GnsiCertzCanGenerateCSR ¶
func GnsiCertzCanGenerateCSR(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnsiCertzCanGenerateCSR implements a sample request for service /gnsi.certz.v1.Certz/CanGenerateCSR to validate if authz works as expected.
func GnsiCertzDeleteProfile ¶
func GnsiCertzDeleteProfile(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnsiCertzDeleteProfile implements a sample request for service /gnsi.certz.v1.Certz/DeleteProfile to validate if authz works as expected.
func GnsiCertzGetProfileList ¶
func GnsiCertzGetProfileList(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnsiCertzGetProfileList implements a sample request for service /gnsi.certz.v1.Certz/GetProfileList to validate if authz works as expected.
func GnsiCertzRotate ¶
GnsiCertzRotate implements a sample request for service /gnsi.certz.v1.Certz/Rotate to validate if authz works as expected.
func GnsiCredentialzAllRPC ¶
func GnsiCredentialzAllRPC(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnsiCredentialzAllRPC implements a sample request for service /gnsi.credentialz.v1.Credentialz/* to validate if authz works as expected.
func GnsiCredentialzCanGenerateKey ¶
func GnsiCredentialzCanGenerateKey(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnsiCredentialzCanGenerateKey implements a sample request for service /gnsi.credentialz.v1.Credentialz/CanGenerateKey to validate if authz works as expected.
func GnsiCredentialzGetPublicKeys ¶
func GnsiCredentialzGetPublicKeys(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnsiCredentialzGetPublicKeys implements a sample request for service /gnsi.credentialz.v1.Credentialz/GetPublicKeys to validate if authz works as expected.
func GnsiCredentialzRotateAccountCredentials ¶
func GnsiCredentialzRotateAccountCredentials(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnsiCredentialzRotateAccountCredentials implements a sample request for service /gnsi.credentialz.v1.Credentialz/RotateAccountCredentials to validate if authz works as expected.
func GnsiCredentialzRotateHostCredentials ¶
func GnsiCredentialzRotateHostCredentials(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnsiCredentialzRotateHostCredentials implements a sample request for service /gnsi.credentialz.v1.Credentialz/RotateHostCredentials to validate if authz works as expected.
func GnsiCredentialzRotateHostParameters ¶
func GnsiCredentialzRotateHostParameters(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
GnsiCredentialzRotateHostParameters implements a sample request for service /gnsi.acctz.v1.Acctz/RecordSubscribe to validate if authz works as expected.
func GnsiPathzAllRPC ¶
GnsiPathzAllRPC implements a sample request for service /gnsi.pathz.v1.Pathz/* to validate if authz works as expected.
func GnsiPathzGet ¶
GnsiPathzGet implements a sample request for service /gnsi.pathz.v1.Pathz/Get to validate if authz works as expected.
func GnsiPathzProbe ¶
GnsiPathzProbe implements a sample request for service /gnsi.pathz.v1.Pathz/Probe to validate if authz works as expected.
func GnsiPathzRotate ¶
GnsiPathzRotate implements a sample request for service /gnsi.pathz.v1.Pathz/Rotate to validate if authz works as expected.
func GribiAllRPC ¶
GribiAllRPC implements a sample request for service /gribi.gRIBI/* to validate if authz works as expected.
func GribiFlush ¶
func GribiFlush(ctx context.Context, dut *ondatra.DUTDevice, opts []grpc.DialOption, _ ...any) error
GribiFlush implements a sample request for service /gribi.gRIBI/Flush to validate if authz works as expected.
func GribiGet ¶
GribiGet implements a sample request for service /gribi.gRIBI/Get to validate if authz works as expected.
func GribiModify ¶
func GribiModify(ctx context.Context, dut *ondatra.DUTDevice, opts []grpc.DialOption, _ ...any) error
GribiModify implements a sample request for service /gribi.gRIBI/Modify to validate if authz works as expected.
func P4P4runtimeAllRPC ¶
func P4P4runtimeAllRPC(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
P4P4runtimeAllRPC implements a sample request for service /p4.v1.P4Runtime/* to validate if authz works as expected.
func P4P4runtimeCapabilities ¶
func P4P4runtimeCapabilities(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
P4P4runtimeCapabilities implements a sample request for service /p4.v1.P4Runtime/Capabilities to validate if authz works as expected.
func P4P4runtimeGetForwardingPipelineConfig ¶
func P4P4runtimeGetForwardingPipelineConfig(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
P4P4runtimeGetForwardingPipelineConfig implements a sample request for service /p4.v1.P4Runtime/GetForwardingPipelineConfig to validate if authz works as expected.
func P4P4runtimeRead ¶
P4P4runtimeRead implements a sample request for service /p4.v1.P4Runtime/Read to validate if authz works as expected.
func P4P4runtimeSetForwardingPipelineConfig ¶
func P4P4runtimeSetForwardingPipelineConfig(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
P4P4runtimeSetForwardingPipelineConfig implements a sample request for service /p4.v1.P4Runtime/SetForwardingPipelineConfig to validate if authz works as expected.
func P4P4runtimeStreamChannel ¶
func P4P4runtimeStreamChannel(_ context.Context, _ *ondatra.DUTDevice, _ []grpc.DialOption, _ ...any) error
P4P4runtimeStreamChannel implements a sample request for service /p4.v1.P4Runtime/StreamChannel to validate if authz works as expected.
func P4P4runtimeWrite ¶
P4P4runtimeWrite implements a sample request for service /p4.v1.P4Runtime/Write to validate if authz works as expected.
Types ¶
type ExecRPCFunction ¶
type ExecRPCFunction func(ctx context.Context, dut *ondatra.DUTDevice, opts []grpc.DialOption, params ...any) error
ExecRPCFunction is a function that is used to provide an implementation for an RPC. The focus here is security testing, so in most case a simple call of the RPC should suffice.
type RPC ¶
type RPC struct { // name of the grpc service that provides the RPC Service string // name of the RPC Name string // fully qualified name of the RPC FQN string // Path of the rpc that is used by authz to refer to the rpc Path string // a function that takes an grpc config (must include mtls cfg) and dut and executes the RPC against the dut. Exec ExecRPCFunction }
RPC is a data structure for populating information for all FP related RPCs.