MCPcopy Create free account

hub / github.com/canonical/microovn / functions

Functions309 in github.com/canonical/microovn

FunctionJoin
Join will join an existing OVN deployment.
microovn/ovn/join.go:23
FunctionLeave
Leave function gracefully departs from the OVN cluster before the member is removed from MicroOVN cluster. It ensures that: - OVN chassis is stopped a
microovn/ovn/leave.go:23
FunctionListServices
ListServices - List services in database (desired state).
microovn/node/node.go:164
FunctionLog
Log emits a structured security event at INFO level, it is a no-op when security logging has been disabled via SetEnabled
microovn/securitylog/securitylog.go:45
FunctionNBCtl
NBCtl is a convenience function for execution of ovn-nbctl command against OVN NB local unix socket. The command is re-tried up to 3 times. If command
microovn/ovn/cmd/commands.go:209
FunctionNBCtlCluster
NBCtlCluster is a convenience function for execution of ovn-nbctl command against OVN NB cluster endpoints. The command is re-tried up to 3 times. If
microovn/ovn/cmd/commands.go:220
FunctionNewRegenerateCaResponse
NewRegenerateCaResponse returns pointer to initialized RegenerateCaResponse object
microovn/api/types/certificates.go:81
FunctionNewRegenerateEnvResponse
NewRegenerateEnvResponse returns pointer to initialized RegenerateEnvResponse object
microovn/api/types/services.go:92
FunctionOvnEnvFile
OvnEnvFile returns path to the file used to configure env variables for OVN commands
microovn/ovn/paths/paths.go:72
FunctionOvnNBControlSock
OvnNBControlSock returns path to the local control socket for Northbound OVN service
microovn/ovn/paths/paths.go:87
FunctionOvnNBDatabaseSock
OvnNBDatabaseSock returns path to the local unix socket used by Northbound OVN database
microovn/ovn/paths/paths.go:77
FunctionOvnSBControlSock
OvnSBControlSock returns path to the local control socket for Southbound OVN service
microovn/ovn/paths/paths.go:92
FunctionOvnSBDatabaseSock
OvnSBDatabaseSock returns path to the local unix socket used by Southbound OVN database
microovn/ovn/paths/paths.go:82
FunctionOvsDatabaseSock
OvsDatabaseSock returns path to the local unix socket used by OpenvSwitch database
microovn/ovn/paths/paths.go:97
FunctionOvsdbClient
OvsdbClient is a wrapper function that executes 'ovsdb-client' command. It first ensures that the database is connected and returns error if the datab
microovn/ovn/cmd/commands.go:327
FunctionOvsdbNbSchema
OvsdbNbSchema returns path to schema file for OVN Northbound database
microovn/ovn/paths/paths.go:145
FunctionOvsdbSbSchema
OvsdbSbSchema returns path to schema file for OVN Southbound database
microovn/ovn/paths/paths.go:142
FunctionOvsdbSwitchSchema
OvsdbSwitchSchema returns path to schema file for OpenvSwitch
microovn/ovn/paths/paths.go:148
FunctionPkiCaCertFile
PkiCaCertFile returns path to CA certificate file
microovn/ovn/paths/paths.go:112
FunctionPkiClientCertFiles
PkiClientCertFiles returns paths to certificate and private key used by client
microovn/ovn/paths/paths.go:137
FunctionPkiOvnControllerCertFiles
PkiOvnControllerCertFiles returns paths to certificate and private key used by OVN Controller
microovn/ovn/paths/paths.go:132
FunctionPkiOvnNbCertFiles
PkiOvnNbCertFiles returns paths to certificate and private key used by OVN Northbound service
microovn/ovn/paths/paths.go:117
FunctionPkiOvnNorthdCertFiles
PkiOvnNorthdCertFiles returns paths to certificate and private key used by OVN Northd service
microovn/ovn/paths/paths.go:127
FunctionPkiOvnSbCertFiles
PkiOvnSbCertFiles returns paths to certificate and private key used by OVN Southbound service
microovn/ovn/paths/paths.go:122
MethodPrettyPrint
PrettyPrint method formats and prints contents of RegenerateEnvResponse object
microovn/api/types/services.go:73
FunctionRefresh
Refresh will update the existing OVN central and OVS switch configs.
microovn/ovn/refresh.go:19
FunctionRegenerateCA
RegenerateCA sends request to completely rebuild the OVN PKI. It causes new CA certificate to be issued and shared between MicroOVN cluster members, a
microovn/client/client.go:66
FunctionReissueAllCertificate
ReissueAllCertificate sends request to local MicroOVN cluster member to re-issue new certificates for every enabled OVN service present.
microovn/client/client.go:51
FunctionReissueCertificate
ReissueCertificate sends request to local MicroOVN cluster member to re-issue new certificate for selected service.
microovn/client/client.go:36
FunctionReload
Reload - reload snap service as represented by "service" string.
microovn/snap/snap.go:67
FunctionRequiredDirs
RequiredDirs returns list of all directories that need to be created for MicroOVN to function properly
microovn/ovn/paths/paths.go:181
FunctionRestart
Restart - restart snap service as represented by "service" string.
microovn/snap/snap.go:52
FunctionRoot
Root returns $SNAP_COMMON root of MicroOVN
microovn/ovn/paths/paths.go:17
MethodRun
Run method is an implementation of the "microovn config list" subcommand
microovn/cmd/microovn/config_list.go:26
MethodRun
Run method is an implementation of "microovn certificates list" subcommand
microovn/cmd/microovn/certificates_list.go:88
MethodRun
(_ *cobra.Command, _ []string)
microovn/cmd/microovn/cluster_bootstrap.go:29
MethodRun
(_ *cobra.Command, _ []string)
microovn/cmd/microovn/cluster_list.go:32
MethodRun
(_ *cobra.Command, args []string)
microovn/cmd/microovn/cluster_add.go:32
MethodRun
(_ *cobra.Command, _ []string)
microovn/cmd/microovn/status.go:34
MethodRun
(_ *cobra.Command, args []string)
microovn/cmd/microovn/service_control.go:43
MethodRun
(_ *cobra.Command, args []string)
microovn/cmd/microovn/service_control.go:109
MethodRun
(_ *cobra.Command, args []string)
microovn/cmd/microovn/cluster_remove.go:30
MethodRun
Run method is an implementation of the "microovn config get" subcommand
microovn/cmd/microovn/config_get.go:29
MethodRun
Run method is an implementation of "microovn certificates reissue" subcommand. It requests local MicroOVN service to issue new certificate for selecte
microovn/cmd/microovn/certificates_reissue.go:47
MethodRun
(_ *cobra.Command, args []string)
microovn/cmd/microovn/cluster_join.go:29
MethodRun
(cmd *cobra.Command, _ []string)
microovn/cmd/microovn/waitready.go:31
MethodRun
(cmd *cobra.Command, args []string)
microovn/cmd/microovn/cluster_sql.go:28
MethodRun
Run method is an implementation of the "microovn config delete" subcommand
microovn/cmd/microovn/config_delete.go:29
MethodRun
Run method implements the functionality of "microovn certificates set-ca" command. It reads the provided certificate and key files, then requests loca
microovn/cmd/microovn/certificates_set_ca.go:84
MethodRun
Run method is an implementation of "microovn certificates regenerate-ca" subcommand. It requests cluster to issue new CA certificate and re-issue all
microovn/cmd/microovn/certificates_regenerate_ca.go:32
MethodRun
Run method is an implementation of the "microovn config set" subcommand
microovn/cmd/microovn/config_set.go:29
MethodRun
(_ *cobra.Command, _ []string)
microovn/cmd/microovnd/main.go:39
MethodRun
(_ *cobra.Command, _ []string)
microovn/cmd/microovnd/main.go:64
FunctionSBCtl
SBCtl is a convenience function for execution of ovn-sbctl command against OVN NB local unix socket. The command is re-tried up to 3 times. If command
microovn/ovn/cmd/commands.go:251
FunctionServiceWarnings
ServiceWarnings - checks the desired state and aims to find out if there are any problems with it, such as an inefficent or error prone number of node
microovn/node/node.go:265
FunctionSetCA
SetCA sends a request to set a user-provided CA certificate and private key. It triggers re-issue of all OVN service certificates on all MicroOVN clus
microovn/client/client.go:82
FunctionSetConfig
SetConfig sends a request to the MicroOVN server that sets or updates a value of a configuration option.
microovn/client/client.go:234
FunctionSetConfig
SetConfig function inserts or updates rows in the "config" table of the MicroOVNs database.
microovn/config/config.go:13
FunctionSetEnabled
SetEnabled turns security event logging on or off
microovn/securitylog/securitylog.go:22
FunctionSetNewCACertificate
SetNewCACertificate verifies basic attributes of the provided certificate and private key and stores them in the shared MicroOVN database.
microovn/ovn/certificates/certificates.go:179
FunctionStart
Start will update the existing OVN central and OVS switch configs.
microovn/ovn/start.go:23
FunctionStart
Start - start snap service as represented by "service" string, optionally leaving it enabled for future reboots when "enable" is true.
microovn/snap/snap.go:13
FunctionStop
Stop stops specified snap service. Service can be optionally also disabled, ensuring that it won't be automatically started on system reboot.
microovn/snap/snap.go:33
FunctionTestAddMethods
(t *testing.T)
microovn/netplan/netplan_test.go:20
FunctionTestFindDPUDevlink
(t *testing.T)
microovn/ovn/dpu/dpu_test.go:5
FunctionTestMajorVersionNoSeparator
(t *testing.T)
microovn/version/version_test.go:5
FunctionTestMajorVersionSemVer
(t *testing.T)
microovn/version/version_test.go:24
FunctionTestMajorVersionShort
(t *testing.T)
microovn/version/version_test.go:14
FunctionTestNewConfig_Defaults
(t *testing.T)
microovn/netplan/netplan_test.go:5
FunctionTestParseLspciSerial
(t *testing.T)
microovn/ovn/dpu/dpu_test.go:90
FunctionTestUnexported_initialNbSbHost
(t *testing.T)
microovn/ovn/environment/environment_test.go:29
FunctionTestUnexported_ovsdbSchemaRequiresAttentionClusterDiff
(t *testing.T)
microovn/cmd/microovn/status_test.go:62
FunctionTestUnexported_ovsdbSchemaRequiresAttentionMatch
(t *testing.T)
microovn/cmd/microovn/status_test.go:38
FunctionTestUnexported_ovsdbSchemaRequiresAttentionMatchError
(t *testing.T)
microovn/cmd/microovn/status_test.go:46
FunctionTestUnexported_ovsdbSchemaRequiresAttentionMisMatch
(t *testing.T)
microovn/cmd/microovn/status_test.go:54
FunctionUpdateConfigItem
UpdateConfigItem updates the ConfigItem matching the given key parameters. generator: ConfigItem Update
microovn/database/config.mapper.go:300
FunctionUpdateOvnControllerRemoteConfig
UpdateOvnControllerRemoteConfig updates the value of "external_ids:remote-ovn" in the Open vSwitch database. This value tells the OVN controller the l
microovn/ovn/cluster/cluster.go:57
FunctionUpdateOvnListenConfig
UpdateOvnListenConfig configures the OVN NB and SB databases to listen on the appropriate ports.
microovn/ovn/cluster/cluster.go:16
FunctionUpdateService
UpdateService updates the service matching the given key parameters. generator: service Update
microovn/database/service.mapper.go:393
FunctionUpgradeCentralDB
UpgradeCentralDB checks whether a schema upgrade for the specified DB is required. If so, it triggers a coordinated approach to an OVSDB cluster schem
microovn/ovn/ovsdb/ovsdb.go:197
FunctionVSCtl
VSCtl is a convenience function for execution of ovs-vsctl command which is re-tried up to 3 times. If command arguments do not specify timeout (-t or
microovn/ovn/cmd/commands.go:263
FunctionWrappers
Wrappers returns path to a directory with snap's command wrappers
microovn/ovn/paths/paths.go:153
FunctionWriteToNetplan
WriteToNetplan writes a file and then moves it to the netplan directory, due to permissions issues writing to /etc/netplan directly fails
microovn/netplan/netplan.go:137
FunctioncmdServicesGet
cmdServicesGet - handles services endpoint functionality, by calling the respective function within node and then handling any errors it throws.
microovn/api/services/list.go:23
FunctionconfigItemColumns
configItemColumns returns a string of column names to be used with a SELECT statement for the entity. Use this function when building statements to re
microovn/database/config.mapper.go:55
FunctiondeleteConfig
deleteConfig handles DELETE requests to the config endpoint by completely removing the config option
microovn/api/config/config.go:109
FunctiondisableService
disableService - function to handle to service control delete request, which aims to disable a service. This will return a response which contains a
microovn/api/services/control.go:69
FunctionenableService
enableService - function to handle to service control put request, which aims to enable a service. This will return a response which contains a Warni
microovn/api/services/control.go:32
FunctiongetActiveSchemaVersion
getActiveSchemaVersion implements GET method for /1.0/ovsdb/schema/<db-name>/active. It returns currently active schema version of a database specifie
microovn/api/ovsdb/schema_version.go:124
FunctiongetAllExpectedSchemaVersions
getAllExpectedSchemaVersions implements GET method for /1.0/ovsdb/schema/<db-name>/expected/all. It returns expected schema version for the given data
microovn/api/ovsdb/schema_version.go:73
FunctiongetConfig
getConfig handles GET requests to the config endpoint by returning the current config option value
microovn/api/config/config.go:83
FunctiongetExpectedSchemaVersion
getExpectedSchemaVersion implements GET method for /1.0/ovsdb/schema/<db-name>/expected. It returns expected schema version of the specified database
microovn/api/ovsdb/schema_version.go:55
FunctioninfoCaGet
infoCaGet returns additional information about CA certificate
microovn/api/certificates/regenerate_ca.go:30
FunctionissueCertificatesAllPut
issueCertificatesAllPut implements PUT method for /1.0/certificates endpoint. The function issues new certificates for every OVN service enabled on th
microovn/api/certificates/issue_all.go:23
FunctionissueCertificatesPut
issueCertificatesPut implements PUT method for /1.0/certificates/<service-name> endpoint. The function parses service name from the request URL and if
microovn/api/certificates/issue.go:30
Functionmain
()
microovn/cmd/microovn/main.go:32
Functionmain
()
microovn/cmd/microovnd/main.go:117
FunctionovnCentralIpsUpdated
ovnCentralIpsUpdated is a handler for changes to the "ovn.central-ips" config option change. It triggers microovn.api.RegenerateEnvEndpoint to refresh
microovn/api/config/config.go:196
MethodprintCertStatus
printCertStatus prints status of individual files in certificate bundle
microovn/cmd/microovn/certificates_list.go:217
MethodprintCertStatus
printCertStatus prints status of CA certificate
microovn/cmd/microovn/certificates_list.go:228
← previousnext →201–300 of 309, ranked by callers