Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/canonical/microovn
/ functions
Functions
309 in github.com/canonical/microovn
⨍
Functions
309
◇
Types & classes
72
Function
Join
Join will join an existing OVN deployment.
microovn/ovn/join.go:23
Function
Leave
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
Function
ListServices
ListServices - List services in database (desired state).
microovn/node/node.go:164
Function
Log
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
Function
NBCtl
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
Function
NBCtlCluster
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
Function
NewRegenerateCaResponse
NewRegenerateCaResponse returns pointer to initialized RegenerateCaResponse object
microovn/api/types/certificates.go:81
Function
NewRegenerateEnvResponse
NewRegenerateEnvResponse returns pointer to initialized RegenerateEnvResponse object
microovn/api/types/services.go:92
Function
OvnEnvFile
OvnEnvFile returns path to the file used to configure env variables for OVN commands
microovn/ovn/paths/paths.go:72
Function
OvnNBControlSock
OvnNBControlSock returns path to the local control socket for Northbound OVN service
microovn/ovn/paths/paths.go:87
Function
OvnNBDatabaseSock
OvnNBDatabaseSock returns path to the local unix socket used by Northbound OVN database
microovn/ovn/paths/paths.go:77
Function
OvnSBControlSock
OvnSBControlSock returns path to the local control socket for Southbound OVN service
microovn/ovn/paths/paths.go:92
Function
OvnSBDatabaseSock
OvnSBDatabaseSock returns path to the local unix socket used by Southbound OVN database
microovn/ovn/paths/paths.go:82
Function
OvsDatabaseSock
OvsDatabaseSock returns path to the local unix socket used by OpenvSwitch database
microovn/ovn/paths/paths.go:97
Function
OvsdbClient
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
Function
OvsdbNbSchema
OvsdbNbSchema returns path to schema file for OVN Northbound database
microovn/ovn/paths/paths.go:145
Function
OvsdbSbSchema
OvsdbSbSchema returns path to schema file for OVN Southbound database
microovn/ovn/paths/paths.go:142
Function
OvsdbSwitchSchema
OvsdbSwitchSchema returns path to schema file for OpenvSwitch
microovn/ovn/paths/paths.go:148
Function
PkiCaCertFile
PkiCaCertFile returns path to CA certificate file
microovn/ovn/paths/paths.go:112
Function
PkiClientCertFiles
PkiClientCertFiles returns paths to certificate and private key used by client
microovn/ovn/paths/paths.go:137
Function
PkiOvnControllerCertFiles
PkiOvnControllerCertFiles returns paths to certificate and private key used by OVN Controller
microovn/ovn/paths/paths.go:132
Function
PkiOvnNbCertFiles
PkiOvnNbCertFiles returns paths to certificate and private key used by OVN Northbound service
microovn/ovn/paths/paths.go:117
Function
PkiOvnNorthdCertFiles
PkiOvnNorthdCertFiles returns paths to certificate and private key used by OVN Northd service
microovn/ovn/paths/paths.go:127
Function
PkiOvnSbCertFiles
PkiOvnSbCertFiles returns paths to certificate and private key used by OVN Southbound service
microovn/ovn/paths/paths.go:122
Method
PrettyPrint
PrettyPrint method formats and prints contents of RegenerateEnvResponse object
microovn/api/types/services.go:73
Function
Refresh
Refresh will update the existing OVN central and OVS switch configs.
microovn/ovn/refresh.go:19
Function
RegenerateCA
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
Function
ReissueAllCertificate
ReissueAllCertificate sends request to local MicroOVN cluster member to re-issue new certificates for every enabled OVN service present.
microovn/client/client.go:51
Function
ReissueCertificate
ReissueCertificate sends request to local MicroOVN cluster member to re-issue new certificate for selected service.
microovn/client/client.go:36
Function
Reload
Reload - reload snap service as represented by "service" string.
microovn/snap/snap.go:67
Function
RequiredDirs
RequiredDirs returns list of all directories that need to be created for MicroOVN to function properly
microovn/ovn/paths/paths.go:181
Function
Restart
Restart - restart snap service as represented by "service" string.
microovn/snap/snap.go:52
Function
Root
Root returns $SNAP_COMMON root of MicroOVN
microovn/ovn/paths/paths.go:17
Method
Run
Run method is an implementation of the "microovn config list" subcommand
microovn/cmd/microovn/config_list.go:26
Method
Run
Run method is an implementation of "microovn certificates list" subcommand
microovn/cmd/microovn/certificates_list.go:88
Method
Run
(_ *cobra.Command, _ []string)
microovn/cmd/microovn/cluster_bootstrap.go:29
Method
Run
(_ *cobra.Command, _ []string)
microovn/cmd/microovn/cluster_list.go:32
Method
Run
(_ *cobra.Command, args []string)
microovn/cmd/microovn/cluster_add.go:32
Method
Run
(_ *cobra.Command, _ []string)
microovn/cmd/microovn/status.go:34
Method
Run
(_ *cobra.Command, args []string)
microovn/cmd/microovn/service_control.go:43
Method
Run
(_ *cobra.Command, args []string)
microovn/cmd/microovn/service_control.go:109
Method
Run
(_ *cobra.Command, args []string)
microovn/cmd/microovn/cluster_remove.go:30
Method
Run
Run method is an implementation of the "microovn config get" subcommand
microovn/cmd/microovn/config_get.go:29
Method
Run
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
Method
Run
(_ *cobra.Command, args []string)
microovn/cmd/microovn/cluster_join.go:29
Method
Run
(cmd *cobra.Command, _ []string)
microovn/cmd/microovn/waitready.go:31
Method
Run
(cmd *cobra.Command, args []string)
microovn/cmd/microovn/cluster_sql.go:28
Method
Run
Run method is an implementation of the "microovn config delete" subcommand
microovn/cmd/microovn/config_delete.go:29
Method
Run
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
Method
Run
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
Method
Run
Run method is an implementation of the "microovn config set" subcommand
microovn/cmd/microovn/config_set.go:29
Method
Run
(_ *cobra.Command, _ []string)
microovn/cmd/microovnd/main.go:39
Method
Run
(_ *cobra.Command, _ []string)
microovn/cmd/microovnd/main.go:64
Function
SBCtl
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
Function
ServiceWarnings
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
Function
SetCA
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
Function
SetConfig
SetConfig sends a request to the MicroOVN server that sets or updates a value of a configuration option.
microovn/client/client.go:234
Function
SetConfig
SetConfig function inserts or updates rows in the "config" table of the MicroOVNs database.
microovn/config/config.go:13
Function
SetEnabled
SetEnabled turns security event logging on or off
microovn/securitylog/securitylog.go:22
Function
SetNewCACertificate
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
Function
Start
Start will update the existing OVN central and OVS switch configs.
microovn/ovn/start.go:23
Function
Start
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
Function
Stop
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
Function
TestAddMethods
(t *testing.T)
microovn/netplan/netplan_test.go:20
Function
TestFindDPUDevlink
(t *testing.T)
microovn/ovn/dpu/dpu_test.go:5
Function
TestMajorVersionNoSeparator
(t *testing.T)
microovn/version/version_test.go:5
Function
TestMajorVersionSemVer
(t *testing.T)
microovn/version/version_test.go:24
Function
TestMajorVersionShort
(t *testing.T)
microovn/version/version_test.go:14
Function
TestNewConfig_Defaults
(t *testing.T)
microovn/netplan/netplan_test.go:5
Function
TestParseLspciSerial
(t *testing.T)
microovn/ovn/dpu/dpu_test.go:90
Function
TestUnexported_initialNbSbHost
(t *testing.T)
microovn/ovn/environment/environment_test.go:29
Function
TestUnexported_ovsdbSchemaRequiresAttentionClusterDiff
(t *testing.T)
microovn/cmd/microovn/status_test.go:62
Function
TestUnexported_ovsdbSchemaRequiresAttentionMatch
(t *testing.T)
microovn/cmd/microovn/status_test.go:38
Function
TestUnexported_ovsdbSchemaRequiresAttentionMatchError
(t *testing.T)
microovn/cmd/microovn/status_test.go:46
Function
TestUnexported_ovsdbSchemaRequiresAttentionMisMatch
(t *testing.T)
microovn/cmd/microovn/status_test.go:54
Function
UpdateConfigItem
UpdateConfigItem updates the ConfigItem matching the given key parameters. generator: ConfigItem Update
microovn/database/config.mapper.go:300
Function
UpdateOvnControllerRemoteConfig
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
Function
UpdateOvnListenConfig
UpdateOvnListenConfig configures the OVN NB and SB databases to listen on the appropriate ports.
microovn/ovn/cluster/cluster.go:16
Function
UpdateService
UpdateService updates the service matching the given key parameters. generator: service Update
microovn/database/service.mapper.go:393
Function
UpgradeCentralDB
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
Function
VSCtl
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
Function
Wrappers
Wrappers returns path to a directory with snap's command wrappers
microovn/ovn/paths/paths.go:153
Function
WriteToNetplan
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
Function
cmdServicesGet
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
Function
configItemColumns
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
Function
deleteConfig
deleteConfig handles DELETE requests to the config endpoint by completely removing the config option
microovn/api/config/config.go:109
Function
disableService
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
Function
enableService
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
Function
getActiveSchemaVersion
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
Function
getAllExpectedSchemaVersions
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
Function
getConfig
getConfig handles GET requests to the config endpoint by returning the current config option value
microovn/api/config/config.go:83
Function
getExpectedSchemaVersion
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
Function
infoCaGet
infoCaGet returns additional information about CA certificate
microovn/api/certificates/regenerate_ca.go:30
Function
issueCertificatesAllPut
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
Function
issueCertificatesPut
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
Function
main
()
microovn/cmd/microovn/main.go:32
Function
main
()
microovn/cmd/microovnd/main.go:117
Function
ovnCentralIpsUpdated
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
Method
printCertStatus
printCertStatus prints status of individual files in certificate bundle
microovn/cmd/microovn/certificates_list.go:217
Method
printCertStatus
printCertStatus prints status of CA certificate
microovn/cmd/microovn/certificates_list.go:228
← previous
next →
201–300 of 309, ranked by callers