MCPcopy Create free account

hub / github.com/canonical/microovn / functions

Functions309 in github.com/canonical/microovn

↓ 1 callersFunctionWaitForClusterDBState
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 callersFunctioncertIsExpired
certIsExpired returns true if certificate has expired, else false
microovn/cmd/microovn/certificates_list.go:273
↓ 1 callersFunctioncheckKernelModule
checkKernelModule checks the presence of the specified module in the running kernel.
microovn/bgp/redirect.go:217
↓ 1 callersFunctionconfigureBirdBgp
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 callersFunctioncreateExternalBridges
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 callersFunctioncreateExternalNetworks
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 callersFunctioncreateVrf
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 callersFunctiondefaultRemoteAddresses
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 callersFunctiondetectDPU
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 callersFunctionextractCertsAndKey
(data []byte)
microovn/cmd/microovn/certificates_set_ca.go:41
↓ 1 callersFunctionfindAvailableVrfTableID
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 callersFunctionforwardActiveSchemaVersion
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 callersFunctiongenerateAsnFromClusterMemberID
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 callersFunctiongenerateBGPRouterID
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 callersFunctiongenerateVeth
(ctx context.Context, s state.State, extConnections []types.BgpExternalConnection, tableID string)
microovn/bgp/redirect.go:429
↓ 1 callersFunctiongetConfigItems
getConfigItems can be used to run handwritten sql.Stmts to return a slice of objects.
microovn/database/config.mapper.go:60
↓ 1 callersFunctiongetConfigItemsRaw
getConfigItemsRaw can be used to run handwritten query strings to return a slice of objects.
microovn/database/config.mapper.go:84
↓ 1 callersFunctiongetDPUSerial
getSerialNumber parses lspci and gets the serial number for the DPU, given a specific PCI address.
microovn/ovn/dpu/dpu.go:78
↓ 1 callersFunctiongetLiveSchemaStatus
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 callersFunctiongetLsNameChassisMatch
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 callersFunctiongetOvnIntegrationBridge
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 callersFunctiongetServiceCertificatePaths
getServiceCertificatePaths returns paths to certificate and private key based on service name
microovn/ovn/certificates/certificates.go:459
↓ 1 callersFunctiongetServices
getServices can be used to run handwritten sql.Stmts to return a slice of objects.
microovn/database/service.mapper.go:83
↓ 1 callersFunctiongetServicesRaw
getServicesRaw can be used to run handwritten query strings to return a slice of objects.
microovn/database/service.mapper.go:107
↓ 1 callersFunctiongetUsedVrfTableIDs
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 callersFunctionisClusterUpgradeReady
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 callersFunctionisNodeUpgradeLeader
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 callersFunctionjoinCentral
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 callersFunctionjoinChassis
(ctx context.Context, s state.State)
microovn/node/node.go:375
↓ 1 callersFunctionleaveCentral
leaveCentral safely stops the central service's child services, and leaves the central database cluster safely.
microovn/node/node.go:312
↓ 1 callersFunctionleaveChassis
(ctx context.Context, s state.State)
microovn/node/node.go:362
↓ 1 callersFunctionparseAsnRange
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 callersMethodparseExtraConfig
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 callersFunctionparsePrivateKey
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 callersMethodprintCertStatus
()
microovn/cmd/microovn/certificates_list.go:209
↓ 1 callersFunctionprintCertsSummary
printCertsSummary in the case of a certificate expiration, prints the expired certificate name/names
microovn/cmd/microovn/status.go:230
↓ 1 callersFunctionprintOvnCertStatus
printOvnCertStatus prints overall status of certificate bundles contained in "certificates" argument
microovn/cmd/microovn/certificates_list.go:186
↓ 1 callersFunctionprintOvsdbSchemaReport
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 callersFunctionredirectBgp
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 callersFunctionrefresh
(ctx context.Context, s state.State)
microovn/ovn/refresh.go:26
↓ 1 callersFunctionremoteAddressesFromConfig
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 callersMethodselectServices
()
microovn/cmd/microovn/init.go:74
↓ 1 callersFunctionsetOVNDPUSerial
setDPUSerial writes the external-id the ovn-cms-options.
microovn/ovn/dpu/dpu.go:94
↓ 1 callersFunctionsqlPrintSelectResult
(columns []string, rows [][]any)
microovn/cmd/microovn/cluster_sql.go:74
↓ 1 callersFunctionteardownAll
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 callersFunctionvalidateAsnRange
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 callersMethodwantsCustomCA
()
microovn/cmd/microovn/init.go:52
FunctionActivateEnabledServices
ActivateEnabledServices iterates through all enabled services on the nodes and ensures the corresponding snap services are active
microovn/node/node.go:458
FunctionAppCtl
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
FunctionBackupDirs
BackupDirs returns list of locations that should be backed up before MicroOVN data removal.
microovn/ovn/paths/paths.go:197
FunctionBirdConfigFile
BirdConfigFile returns path to current Bird's config file
microovn/ovn/paths/paths.go:166
FunctionBirdDefaultConfig
BirdDefaultConfig returns path to Bird's default config file
microovn/ovn/paths/paths.go:161
FunctionBootstrap
Bootstrap will initialize a new OVN deployment.
microovn/ovn/bootstrap.go:21
FunctionCentralDBNBBackupPath
CentralDBNBBackupPath returns path to the where the Northbound database file should be backed up to
microovn/ovn/paths/paths.go:51
FunctionCentralDBNBPath
CentralDBNBPath returns path to the Northbound database file
microovn/ovn/paths/paths.go:37
FunctionCentralDBSBBackupPath
CentralDBSBBackupPath returns path to the where the Southbound database file should be backed up to
microovn/ovn/paths/paths.go:44
FunctionCentralDBSBPath
CentralDBSBPath returns path to the Southbound database file
microovn/ovn/paths/paths.go:40
MethodCertPath
()
microovn/cmd/microovn/certificates_list.go:48
MethodCertPath
()
microovn/cmd/microovn/certificates_list.go:52
FunctionCheckValidService
CheckValidService - checks whether the string in "service" is in fact a known and valid service name.
microovn/api/types/services.go:267
FunctionCleanup
(ctx context.Context, filename string)
microovn/netplan/netplan.go:182
FunctionCleanupPaths
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
MethodCommand
()
microovn/cmd/microovn/status.go:24
MethodCommand
()
microovn/cmd/microovn/service_control.go:21
MethodCommand
()
microovn/cmd/microovn/service_control.go:74
MethodCommand
()
microovn/cmd/microovn/waitready.go:17
MethodCommand
Command returns definition for "microovn config" subcommand
microovn/cmd/microovn/config.go:12
MethodCommand
()
microovn/cmd/microovn/cluster.go:11
MethodCommand
Command returns definition for "microovn certificates" subcommand
microovn/cmd/microovn/certificates.go:12
FunctionControllerCtl
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
FunctionCreateConfigItem
CreateConfigItem adds a new ConfigItem to the database. generator: ConfigItem Create
microovn/database/config.mapper.go:234
FunctionCreatePaths
CreatePaths creates the required directories for OVN.
microovn/ovn/environment/environment.go:235
FunctionCreateService
CreateService adds a new service to the database. generator: service Create
microovn/database/service.mapper.go:306
FunctionDPUSetup
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
FunctionDeleteConfig
DeleteConfig sends a request to the MicroOVN server that completely removes a configuration option and its value.
microovn/client/client.go:258
FunctionDeleteConfig
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
FunctionDeleteConfigItem
DeleteConfigItem deletes the ConfigItem matching the given key parameters. generator: ConfigItem DeleteOne-by-Key
microovn/database/config.mapper.go:273
FunctionDeleteService
DeleteService deletes the service matching the given key parameters. generator: service DeleteOne-by-Member-and-Service
microovn/database/service.mapper.go:345
FunctionDeleteServices
DeleteServices deletes the service matching the given key parameters. generator: service DeleteMany-by-Member
microovn/database/service.mapper.go:372
FunctionDisableAllServices
DisableAllServices is a function to disable alot of services
microovn/node/node.go:385
FunctionDisableService
DisableService sends request to disable service with name as specified in "serviceName" argument.
microovn/client/client.go:174
FunctionDumpCA
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
FunctionEnableService
EnableService sends request to disable service with name as as specified in "serviceName" argument.
microovn/client/client.go:198
FunctionEnableService
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
FunctionEnableService
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
FunctionExtensions
Extensions returns the list of MicroOVN extensions.
microovn/api/extensions.go:8
FunctionGenerateEnvironment
GenerateEnvironment generates the OVN environment file.
microovn/ovn/environment/environment.go:187
FunctionGenerateNewCACertificate
GenerateNewCACertificate generates new CA certificate and private key and stores them in the shared MicroOVN database.
microovn/ovn/certificates/certificates.go:159
FunctionGenerateNewServiceCertificate
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
FunctionGetActiveOvsdbSchemaVersion
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
FunctionGetAllExpectedOvsdbSchemaVersions
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
FunctionGetCaInfo
GetCaInfo queries microovn daemon about additional information about the CA certificate.
microovn/client/client.go:103
FunctionGetConfig
GetConfig sends a request to the MicroOVN server that retrieves the current value of a configuration option.
microovn/client/client.go:246
FunctionGetConfig
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
FunctionGetConfigItem
GetConfigItem returns the ConfigItem with the given key. generator: ConfigItem GetOne
microovn/database/config.mapper.go:176
FunctionGetExpectedOvsdbSchemaVersion
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
FunctionGetService
GetService returns the service with the given key. generator: service GetOne
microovn/database/service.mapper.go:247
FunctionGetServices
GetServices returns the list of configured OVN services.
microovn/client/client.go:20
FunctionIsCaRenewable
IsCaRenewable returns true if CA certificate is managed by the MicroOVN and therefore valid for automatic renewal
microovn/ovn/certificates/certificates.go:328
FunctionIsExternalCentralConfigured
IsExternalCentralConfigured returns True if the config option "ovn.central-ips" was explicitly configured
microovn/ovn/environment/environment.go:45
← previousnext →101–200 of 309, ranked by callers