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
↓ 1 callers
Function
WaitForClusterDBState
WaitForClusterDBState checks state of the database in the "central" cluster. It iterates over the hosts in the OVN central cluster, tries to connect t
microovn/ovn/cmd/commands.go:121
↓ 1 callers
Function
certIsExpired
certIsExpired returns true if certificate has expired, else false
microovn/cmd/microovn/certificates_list.go:273
↓ 1 callers
Function
checkKernelModule
checkKernelModule checks the presence of the specified module in the running kernel.
microovn/bgp/redirect.go:217
↓ 1 callers
Function
configureBirdBgp
configureBirdBgp configures the Bird Routing Daemon to start BGP processes listening on each interface in extConnections. Each BGP daemon is connected
microovn/bgp/service.go:227
↓ 1 callers
Function
createExternalBridges
createExternalBridges sets up OVS bridge for each external connection defined in "extConnections" argument. Physical interface defined in the external
microovn/bgp/redirect.go:291
↓ 1 callers
Function
createExternalNetworks
createExternalNetworks creates a single Logical Router and connects it to each external network defined in "extConnections" argument. The connection i
microovn/bgp/redirect.go:328
↓ 1 callers
Function
createVrf
createVrf instructs OVN to set up VRF to redistribute NAT and Load Balancer addresses for each Logical Router Port that's associated with external con
microovn/bgp/redirect.go:394
↓ 1 callers
Function
defaultRemoteAddresses
defaultRemoteAddresses generates a list of IP addresses that should be used for connecting to ovn-central services by returning addresses of MicroOVN
microovn/ovn/environment/environment.go:72
↓ 1 callers
Function
detectDPU
detectDPU uses devlink to find if microovn is running on a DPU and if so returns the PCI address
microovn/ovn/dpu/dpu.go:28
↓ 1 callers
Function
extractCertsAndKey
(data []byte)
microovn/cmd/microovn/certificates_set_ca.go:41
↓ 1 callers
Function
findAvailableVrfTableID
findAvailableVrfTableID returns the first available VRF Table ID. It finds the currently used Table IDs from system routing tables, and returns the lo
microovn/bgp/redirect.go:269
↓ 1 callers
Function
forwardActiveSchemaVersion
forwardActiveSchemaVersion forwards request to get active OVSDB schema version to a host that runs "central" services. Each host that is registered wi
microovn/api/ovsdb/schema_version.go:157
↓ 1 callers
Function
generateAsnFromClusterMemberID
generateAsnFromClusterMemberID generates a unique ASN within the specified range based on the cluster member ID. It uses the cluster member ID from th
microovn/bgp/redirect.go:117
↓ 1 callers
Function
generateBGPRouterID
generateBGPRouterID returns a router-id address based on a string. The returned router-id will always be same for given interface name. Warning: There
microovn/bgp/redirect.go:102
↓ 1 callers
Function
generateVeth
(ctx context.Context, s state.State, extConnections []types.BgpExternalConnection, tableID string)
microovn/bgp/redirect.go:429
↓ 1 callers
Function
getConfigItems
getConfigItems can be used to run handwritten sql.Stmts to return a slice of objects.
microovn/database/config.mapper.go:60
↓ 1 callers
Function
getConfigItemsRaw
getConfigItemsRaw can be used to run handwritten query strings to return a slice of objects.
microovn/database/config.mapper.go:84
↓ 1 callers
Function
getDPUSerial
getSerialNumber parses lspci and gets the serial number for the DPU, given a specific PCI address.
microovn/ovn/dpu/dpu.go:78
↓ 1 callers
Function
getLiveSchemaStatus
getLiveSchemaStatus returns information about schema status of the database specified by the "dbSpec" argument. For more information about the returne
microovn/ovn/ovsdb/ovsdb.go:57
↓ 1 callers
Function
getLsNameChassisMatch
getLsNameChassisMatch returns a string that can be used to match names of all Logical Switches used for BGP redirecting on local chassis
microovn/bgp/redirect.go:72
↓ 1 callers
Function
getOvnIntegrationBridge
getOvnIntegrationBridge returns current value of "external-ids:ovn-bridge" from the Open_vSwitch table in the OVS database. It returns default value '
microovn/bgp/redirect.go:42
↓ 1 callers
Function
getServiceCertificatePaths
getServiceCertificatePaths returns paths to certificate and private key based on service name
microovn/ovn/certificates/certificates.go:459
↓ 1 callers
Function
getServices
getServices can be used to run handwritten sql.Stmts to return a slice of objects.
microovn/database/service.mapper.go:83
↓ 1 callers
Function
getServicesRaw
getServicesRaw can be used to run handwritten query strings to return a slice of objects.
microovn/database/service.mapper.go:107
↓ 1 callers
Function
getUsedVrfTableIDs
getUsedVrfTableIDs queries system routing tables and VRF tables to find all currently used table IDs. Returns a map of used table IDs and an error if
microovn/bgp/redirect.go:227
↓ 1 callers
Function
isClusterUpgradeReady
isClusterUpgradeReady returns "true" if expected schema version of a database, on every cluster member, matches an expected schema version on current
microovn/ovn/ovsdb/ovsdb.go:134
↓ 1 callers
Function
isNodeUpgradeLeader
isNodeUpgradeLeader returns "true" if current node is a designated leader for performing OVN database schema upgrade. It does not matter which node tr
microovn/ovn/ovsdb/ovsdb.go:116
↓ 1 callers
Function
joinCentral
joinCentral safely starts the central services child services while also generating certificates to ensure secure connection with other central nodes
microovn/node/node.go:288
↓ 1 callers
Function
joinChassis
(ctx context.Context, s state.State)
microovn/node/node.go:375
↓ 1 callers
Function
leaveCentral
leaveCentral safely stops the central service's child services, and leaves the central database cluster safely.
microovn/node/node.go:312
↓ 1 callers
Function
leaveChassis
(ctx context.Context, s state.State)
microovn/node/node.go:362
↓ 1 callers
Function
parseAsnRange
parseAsnRange parses an ASN range string in format "min-max". Returns [2]uint64 array with [min, max] values, or an error if parsing fails.
microovn/api/types/services.go:148
↓ 1 callers
Method
parseExtraConfig
parseExtraConfig parses extra arguments passed to the cmdEnable in form of "--config key=value". Based on the service that's being enabled, it the ini
microovn/cmd/microovn/service_control.go:146
↓ 1 callers
Function
parsePrivateKey
parsePrivateKey attempts to parse raw bytes of the private key in multiple formats: - PKCS8 - PKCS1 - EC Since crypto/x509 package doesn't seem to ha
microovn/ovn/certificates/certificates.go:493
↓ 1 callers
Method
printCertStatus
()
microovn/cmd/microovn/certificates_list.go:209
↓ 1 callers
Function
printCertsSummary
printCertsSummary in the case of a certificate expiration, prints the expired certificate name/names
microovn/cmd/microovn/status.go:230
↓ 1 callers
Function
printOvnCertStatus
printOvnCertStatus prints overall status of certificate bundles contained in "certificates" argument
microovn/cmd/microovn/certificates_list.go:186
↓ 1 callers
Function
printOvsdbSchemaReport
printOvsdbSchemaReport evaluates active and expected schema versions of given OVN database and prints the report. If there's no attention of a user re
microovn/cmd/microovn/status.go:134
↓ 1 callers
Function
redirectBgp
redirectBgp creates a port in OVS, moves it to the VRF specified by "tableID" and configures OVN to redirect BGP+BFD traffic from the associated Logic
microovn/bgp/redirect.go:507
↓ 1 callers
Function
refresh
(ctx context.Context, s state.State)
microovn/ovn/refresh.go:26
↓ 1 callers
Function
remoteAddressesFromConfig
remoteAddressesFromConfig attempts to retrieve a list of IP addresses that should be used for connecting to ovn-central services from the config optio
microovn/ovn/environment/environment.go:56
↓ 1 callers
Method
selectServices
()
microovn/cmd/microovn/init.go:74
↓ 1 callers
Function
setOVNDPUSerial
setDPUSerial writes the external-id the ovn-cms-options.
microovn/ovn/dpu/dpu.go:94
↓ 1 callers
Function
sqlPrintSelectResult
(columns []string, rows [][]any)
microovn/cmd/microovn/cluster_sql.go:74
↓ 1 callers
Function
teardownAll
teardownAll removes all resources that were created/configured as part of setting up of the BGP redirect. This includes: - Logical Router - Logical Sw
microovn/bgp/redirect.go:572
↓ 1 callers
Function
validateAsnRange
validateAsnRange validates that an ASN range is within RFC 6996 private ASN range (4200000000-4294967294). Returns an error if the range is invalid.
microovn/api/types/services.go:169
↓ 1 callers
Method
wantsCustomCA
()
microovn/cmd/microovn/init.go:52
Function
ActivateEnabledServices
ActivateEnabledServices iterates through all enabled services on the nodes and ensures the corresponding snap services are active
microovn/node/node.go:458
Function
AppCtl
AppCtl is a convenience function that wraps execution of 'ovn-appctl' command. It requires argument 'target' which will be substituted to the '-t' arg
microovn/ovn/cmd/commands.go:293
Function
BackupDirs
BackupDirs returns list of locations that should be backed up before MicroOVN data removal.
microovn/ovn/paths/paths.go:197
Function
BirdConfigFile
BirdConfigFile returns path to current Bird's config file
microovn/ovn/paths/paths.go:166
Function
BirdDefaultConfig
BirdDefaultConfig returns path to Bird's default config file
microovn/ovn/paths/paths.go:161
Function
Bootstrap
Bootstrap will initialize a new OVN deployment.
microovn/ovn/bootstrap.go:21
Function
CentralDBNBBackupPath
CentralDBNBBackupPath returns path to the where the Northbound database file should be backed up to
microovn/ovn/paths/paths.go:51
Function
CentralDBNBPath
CentralDBNBPath returns path to the Northbound database file
microovn/ovn/paths/paths.go:37
Function
CentralDBSBBackupPath
CentralDBSBBackupPath returns path to the where the Southbound database file should be backed up to
microovn/ovn/paths/paths.go:44
Function
CentralDBSBPath
CentralDBSBPath returns path to the Southbound database file
microovn/ovn/paths/paths.go:40
Method
CertPath
()
microovn/cmd/microovn/certificates_list.go:48
Method
CertPath
()
microovn/cmd/microovn/certificates_list.go:52
Function
CheckValidService
CheckValidService - checks whether the string in "service" is in fact a known and valid service name.
microovn/api/types/services.go:267
Function
Cleanup
(ctx context.Context, filename string)
microovn/netplan/netplan.go:182
Function
CleanupPaths
CleanupPaths backs up directories defined by paths.BackupDirs and then removes directories created by CreatePaths function. This effectively removes a
microovn/ovn/environment/environment.go:249
Method
Command
()
microovn/cmd/microovn/status.go:24
Method
Command
()
microovn/cmd/microovn/service_control.go:21
Method
Command
()
microovn/cmd/microovn/service_control.go:74
Method
Command
()
microovn/cmd/microovn/waitready.go:17
Method
Command
Command returns definition for "microovn config" subcommand
microovn/cmd/microovn/config.go:12
Method
Command
()
microovn/cmd/microovn/cluster.go:11
Method
Command
Command returns definition for "microovn certificates" subcommand
microovn/cmd/microovn/certificates.go:12
Function
ControllerCtl
ControllerCtl is a wrapper function that executes 'ovs-appctl' command specifically targeted at running OVN Controller process. The '-t' argument of '
microovn/ovn/cmd/commands.go:307
Function
CreateConfigItem
CreateConfigItem adds a new ConfigItem to the database. generator: ConfigItem Create
microovn/database/config.mapper.go:234
Function
CreatePaths
CreatePaths creates the required directories for OVN.
microovn/ovn/environment/environment.go:235
Function
CreateService
CreateService adds a new service to the database. generator: service Create
microovn/database/service.mapper.go:306
Function
DPUSetup
DPUSetup checks if microovn is running on a DPU and if so it extracts the serial number and puts it into the ovn-cms-option for card-serial-numbers.
microovn/ovn/dpu/dpu.go:121
Function
DeleteConfig
DeleteConfig sends a request to the MicroOVN server that completely removes a configuration option and its value.
microovn/client/client.go:258
Function
DeleteConfig
DeleteConfig removes an item with the specified key from the config table of the MicroOVN's database. If the item is not present in the table, this fu
microovn/config/config.go:60
Function
DeleteConfigItem
DeleteConfigItem deletes the ConfigItem matching the given key parameters. generator: ConfigItem DeleteOne-by-Key
microovn/database/config.mapper.go:273
Function
DeleteService
DeleteService deletes the service matching the given key parameters. generator: service DeleteOne-by-Member-and-Service
microovn/database/service.mapper.go:345
Function
DeleteServices
DeleteServices deletes the service matching the given key parameters. generator: service DeleteMany-by-Member
microovn/database/service.mapper.go:372
Function
DisableAllServices
DisableAllServices is a function to disable alot of services
microovn/node/node.go:385
Function
DisableService
DisableService sends request to disable service with name as specified in "serviceName" argument.
microovn/client/client.go:174
Function
DumpCA
DumpCA copies CA certificate from shared database and stores it in pre-defined file on disk. File path to store CA certificate is defined in paths.Pki
microovn/ovn/certificates/certificates.go:292
Function
EnableService
EnableService sends request to disable service with name as as specified in "serviceName" argument.
microovn/client/client.go:198
Function
EnableService
EnableService starts BGP service managed by MicroOVN. If external connections are specified in the "extraConfig" parameter, it also sets up additional
microovn/bgp/service.go:118
Function
EnableService
EnableService - start snap service(s) (runtime state) and add it to the database (desired state). NOTE: this function does not update the environment
microovn/node/node.go:105
Function
Extensions
Extensions returns the list of MicroOVN extensions.
microovn/api/extensions.go:8
Function
GenerateEnvironment
GenerateEnvironment generates the OVN environment file.
microovn/ovn/environment/environment.go:187
Function
GenerateNewCACertificate
GenerateNewCACertificate generates new CA certificate and private key and stores them in the shared MicroOVN database.
microovn/ovn/certificates/certificates.go:159
Function
GenerateNewServiceCertificate
GenerateNewServiceCertificate creates new certificate, signs it with CA certificate stored in the shared database and writes resulting certificate and
microovn/ovn/certificates/certificates.go:407
Function
GetActiveOvsdbSchemaVersion
GetActiveOvsdbSchemaVersion queries MicroOVN cluster for a version of the schema that's currently used by a database specified by the "dbSpec" argumen
microovn/client/client.go:145
Function
GetAllExpectedOvsdbSchemaVersions
GetAllExpectedOvsdbSchemaVersions returns types.OvsdbSchemaReport. It is a list containing every node of the MicroOVN deployment and for each node it
microovn/client/client.go:129
Function
GetCaInfo
GetCaInfo queries microovn daemon about additional information about the CA certificate.
microovn/client/client.go:103
Function
GetConfig
GetConfig sends a request to the MicroOVN server that retrieves the current value of a configuration option.
microovn/client/client.go:246
Function
GetConfig
GetConfig function retrieves items from the config table of the MicroOVN's database. In case that a row with the given key does not exist in the table
microovn/config/config.go:35
Function
GetConfigItem
GetConfigItem returns the ConfigItem with the given key. generator: ConfigItem GetOne
microovn/database/config.mapper.go:176
Function
GetExpectedOvsdbSchemaVersion
GetExpectedOvsdbSchemaVersion queries given MicroOVN node and returns an expected schema version for the specified database. This is not necessarily t
microovn/client/client.go:122
Function
GetService
GetService returns the service with the given key. generator: service GetOne
microovn/database/service.mapper.go:247
Function
GetServices
GetServices returns the list of configured OVN services.
microovn/client/client.go:20
Function
IsCaRenewable
IsCaRenewable returns true if CA certificate is managed by the MicroOVN and therefore valid for automatic renewal
microovn/ovn/certificates/certificates.go:328
Function
IsExternalCentralConfigured
IsExternalCentralConfigured returns True if the config option "ovn.central-ips" was explicitly configured
microovn/ovn/environment/environment.go:45
← previous
next →
101–200 of 309, ranked by callers