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
↓ 8 callers
Method
Command
()
microovn/cmd/microovn/init.go:24
↓ 8 callers
Function
DisableService
DisableService stops and disables BGP services managed by MicroOVN.
microovn/bgp/service.go:205
↓ 7 callers
Function
certExpDate
certExpDate returns the expiration date of public certificates, (NotAfter, NotBefore)
microovn/cmd/microovn/certificates_list.go:256
↓ 6 callers
Function
printCert
(p printCertInterface)
microovn/cmd/microovn/certificates_list.go:212
↓ 6 callers
Function
printCertsSummaryHelper
(cert certProvider, certName string)
microovn/cmd/microovn/status.go:239
↓ 5 callers
Method
Address
()
microovn/ovn/environment/environment_test.go:20
↓ 5 callers
Function
CentralDBDir
CentralDBDir returns path to the directory where OVN Central stores its databases
microovn/ovn/paths/paths.go:32
↓ 5 callers
Function
OvnRuntimeDir
OvnRuntimeDir returns path to the directory where OVN Central creates its runtime files
microovn/ovn/paths/paths.go:27
↓ 5 callers
Method
PrettyPrint
PrettyPrint - Formats and prints contents of WarningSet object.
microovn/api/types/services.go:47
↓ 5 callers
Function
getLrpName
getLrpName returns name of the Logical Router Port that should be connected to the Logical Switch that provides connectivity to external network. Argu
microovn/bgp/redirect.go:81
↓ 5 callers
Function
getServiceCertFiles
getServiceCertFiles returns path to certificate and key of give service in format "<base_dir>/<service_name>-{cert,privkey}.pem"
microovn/ovn/paths/paths.go:172
↓ 4 callers
Method
AddVeth
AddVeth adds a veth pair to the config.
microovn/netplan/netplan.go:73
↓ 4 callers
Function
PkiDir
PkiDir returns path to the directory that store OVN certificates
microovn/ovn/paths/paths.go:102
↓ 4 callers
Function
_ovsdbSchemaRequiresAttention
( clusterSchema []string, nodeError []types.OvsdbSchemaFetchError, activeSchema string, expectedResult bool,
microovn/cmd/microovn/status_test.go:9
↓ 4 callers
Function
activateService
(ctx context.Context, service types.SrvName, enable bool)
microovn/node/node.go:395
↓ 4 callers
Function
printOvsdbSummaryError
printOvsdbSummaryError prepends unified prefix, and prints the error. It should be used when aborting OVSDB summary report. if ovsdbSpec is provided,
microovn/cmd/microovn/status.go:221
↓ 4 callers
Function
vsctlGetIfExists
vsctlGetIfExists runs 'ovs-vsctl' get to retrieve record [column [key]] from the specified table. Returned string has whitespace and quotations trimme
microovn/bgp/redirect.go:158
↓ 3 callers
Method
AddVRF
AddVRF adds a VRF with interfaces.
microovn/netplan/netplan.go:83
↓ 3 callers
Function
BirdConfigDir
BirdConfigDir returns path to a directory that Bird routing daemon uses to store configuration
microovn/ovn/paths/paths.go:156
↓ 3 callers
Function
MajorVersion
MajorVersion extracts the major version of the supplied "version" argument.
microovn/version/version.go:16
↓ 3 callers
Function
WaitForDBState
WaitForDBState as the name suggests, waits for specified ovsdb database to settle in specified state. If database does not reach this state within tim
microovn/ovn/cmd/commands.go:97
↓ 3 callers
Function
deactivateService
(ctx context.Context, service types.SrvName, disable bool)
microovn/node/node.go:426
↓ 3 callers
Function
getBgpRedirectIfaceName
getBgpRedirectIfaceName returns name of the system interface to which all BGP traffic from externalIface network is redirected.
microovn/bgp/redirect.go:191
↓ 3 callers
Function
getLrName
getLrName returns name for the Logical Router to be used for BGP redirecting. This name is unique and consistent for each host.
microovn/bgp/redirect.go:59
↓ 3 callers
Function
getLsName
getLsName returns name for the of the Logical Switch that should be used for connection with external network. Argument "iface" is the name of the phy
microovn/bgp/redirect.go:66
↓ 3 callers
Function
getVrfName
getVrfName Based on the supplied VRF table ID, return name of the VRF that would be created by OVN. When OVN is requested to maintain VRF, it uses es
microovn/bgp/redirect.go:181
↓ 3 callers
Function
parseConfigRequest
parseConfigRequest validates requests to the config endpoint. If the request is made for a valid config option, it returns the handler function associ
microovn/api/config/config.go:146
↓ 3 callers
Function
parseDbSpec
parseDbSpec is a helper function that returns OvsdbSpec based on the database name specified in the request's URL variable. For example: If request "
microovn/api/ovsdb/schema_version.go:203
↓ 3 callers
Function
parseOvnFind
parseOvnFind parses STDOUT string of OVN/OVS "find" commands with "--bare" formatting. Returned value is a list of strings with each element containin
microovn/bgp/redirect.go:203
↓ 3 callers
Function
printFileStatus
printFileStatus prints supplied file path with status base on whether the file exists or not
microovn/cmd/microovn/certificates_list.go:239
↓ 2 callers
Method
AddBridge
AddBridge adds a bridge with interfaces.
microovn/netplan/netplan.go:91
↓ 2 callers
Function
ConnectionString
ConnectionString builds strings that define connection endpoints of OVN cluster services. Its return value can be used to tell processes (i.e. ovn-con
microovn/ovn/environment/environment.go:169
↓ 2 callers
Function
EnvDir
EnvDir returns path to the directory that store OVN environment variables.
microovn/ovn/paths/paths.go:107
↓ 2 callers
Function
FindService
FindService returns list of cluster members that have the specified service enabled.
microovn/node/node.go:217
↓ 2 callers
Function
GetConfigItemID
GetConfigItemID return the ID of the ConfigItem with the given key. generator: ConfigItem ID
microovn/database/config.mapper.go:197
↓ 2 callers
Function
GetServiceID
GetServiceID return the ID of the service with the given key. generator: service ID
microovn/database/service.mapper.go:269
↓ 2 callers
Function
HasServiceActive
HasServiceActive function accepts service names (like "central" or "switch") and returns true/false based on whether the selected service is running o
microovn/node/node.go:192
↓ 2 callers
Function
LogsDir
LogsDir returns path to the directory where OVN stores log files
microovn/ovn/paths/paths.go:22
↓ 2 callers
Function
NewConfig
NewConfig returns a new Netplan config with default version set.
microovn/netplan/netplan.go:60
↓ 2 callers
Function
NewOvsdbSpec
NewOvsdbSpec is a helper function that takes OvsdbType as an argument and generates proper OvsdbSpec for given type.
microovn/ovn/cmd/commands.go:54
↓ 2 callers
Method
ParseExternalConnection
ParseExternalConnection parses ExtraBgpConfig.ExternalConnection string into list of BgpExternalConnection instances.
microovn/api/types/services.go:254
↓ 2 callers
Function
RegenerateEnvironment
RegenerateEnvironment sends a request which then gets forwarded to all other nodes in the cluster, this request then regenerates the environment files
microovn/client/client.go:220
↓ 2 callers
Method
Run
(_ *cobra.Command, _ []string)
microovn/cmd/microovn/init.go:92
↓ 2 callers
Function
SwitchRuntimeDir
SwitchRuntimeDir returns path to the directory where OpenvSwitch stores its runtime files
microovn/ovn/paths/paths.go:62
↓ 2 callers
Method
Validate
Validate ensures that all required fields of ExtraBgpConfig are present and that they have correct types and values.
microovn/api/types/services.go:215
↓ 2 callers
Function
enabledOvnServices
enabledOvnServices returns list of OVN services enabled on this MicroOVN cluster member.
microovn/api/certificates/common.go:17
↓ 2 callers
Function
findDPUDevlink
parseDPUFromDevlink inspects the devlink json from devlink port show and returns the PCI address of a port we expect to be a DPU.
microovn/ovn/dpu/dpu.go:49
↓ 2 callers
Function
generateLrpMac
generateLrpMac returns a local unicast MAC address based on an interface name. The returned address will always be same for given interface name. Warn
microovn/bgp/redirect.go:89
↓ 2 callers
Function
getBgpRedirectIfacePeerName
getBgpRedirectIfacePeerName returns name of the peer to the bgp iface
microovn/bgp/redirect.go:196
↓ 2 callers
Function
getBgpVethName
(externalIface string)
microovn/bgp/redirect.go:185
↓ 2 callers
Function
getClusterTableName
getClusterTableName returns the name of the table that holds the record of cluster members from sqlite_master. Prior to microcluster V2, this table wa
microovn/database/schema.go:24
↓ 2 callers
Function
getOvsdbSchemaVersion
getOvsdbSchemaVersion is a general function that is used to fetch OVSDB schema version via MicroOVN API. It targets 1.0/ovsdb/schema/<db-name>/<target
microovn/client/client.go:152
↓ 2 callers
Function
getPhysnetName
getPhysnetName returns physical network name that can be used for setting "ovn-bridge-mappings" in OVS and "network_name" for Logical Switch Ports to
microovn/bgp/redirect.go:53
↓ 2 callers
Function
initialNbSbHost
initialNbSbHost returns an IP address or a hostname that should be used by a Northbound and Southbound database to connect to the rest of the cluster.
microovn/ovn/environment/environment.go:137
↓ 2 callers
Function
issueCertificate
issueCertificate function generates new "server", "client" or "CA" certificate based on the value passed to the "certType" argument. Argument "cn" is
microovn/ovn/certificates/certificates.go:79
↓ 2 callers
Function
newRequestedServices
(initString string)
microovn/ovn/ovn.go:15
↓ 2 callers
Function
ovnDBCtl
ovnDBCtl is a helper function to execute "ovn-nbctl" and "ovn-sbctl" commands which are re-tried up to 3 times. If command arguments do not specify ti
microovn/ovn/cmd/commands.go:163
↓ 2 callers
Function
ovsdbSchemaRequiresAttention
ovsdbSchemaRequiresAttention is a function that determines whether an attention of the user is needed for given OVN database. It takes currently activ
microovn/cmd/microovn/status.go:186
↓ 2 callers
Function
parseLspciSerial
parseDPUSerial parses lspci output and extracts the DPU serial number.
microovn/ovn/dpu/dpu.go:63
↓ 2 callers
Function
populateExpectedCertificates
(expectedCertificates *ovnCertificatePaths, services types.Services, caInfo types.CaInfo, localHostname string
microovn/cmd/microovn/certificates_list.go:141
↓ 2 callers
Function
printCertExpDate
(expDate string)
microovn/cmd/microovn/certificates_list.go:251
↓ 2 callers
Function
reissueAllCertificates
reissueAllCertificates issues new certificates, using current CA, for every OVN service that is enabled on this MicroOVN cluster member.
microovn/api/certificates/common.go:47
↓ 2 callers
Function
reportOvsdbSchemaStatus
reportOvsdbSchemaStatus fetches currently active schema version and list of expected schema version from each node in the deployment. Based on the res
microovn/cmd/microovn/status.go:105
↓ 2 callers
Function
storeCA
storeCA saves the CA certificate and private key in a PEM format into the shared database. It also sets the config variable CAAutoRenew to "yes" or "n
microovn/ovn/certificates/certificates.go:217
↓ 2 callers
Function
updateOvnClusterCertificates
(s state.State, r *http.Request, responseData *types.RegenerateCaResponse)
microovn/api/certificates/regenerate_ca.go:102
↓ 2 callers
Method
wantsCustomEncapsulationIP
()
microovn/cmd/microovn/init.go:35
↓ 1 callers
Function
Apply
Apply uses dbus to trigger the netplan apply command
microovn/netplan/netplan.go:153
↓ 1 callers
Function
CentralIps
CentralIps returns a list of IP addresses of OVN central services. This function primarily returns addresses configured via the "ovn.central-ips" conf
microovn/ovn/environment/environment.go:117
↓ 1 callers
Method
CertPath
()
microovn/cmd/microovn/certificates_list.go:45
↓ 1 callers
Method
CleanupVRFs
CleanupVRFs cleans up the vrfs represented in the config, and will delete them depending on the "delete" argument
microovn/netplan/netplan.go:119
↓ 1 callers
Method
CleanupVirtualEthernets
CleaupVirtualEthernets cleansup virtual ethernets represented by this config
microovn/netplan/netplan.go:99
↓ 1 callers
Method
Command
Command returns definition for "microovn config list" subcommand
microovn/cmd/microovn/config_list.go:16
↓ 1 callers
Method
Command
Command method returns definition for "microovn certificates list" subcommand
microovn/cmd/microovn/certificates_list.go:69
↓ 1 callers
Method
Command
()
microovn/cmd/microovn/cluster_bootstrap.go:18
↓ 1 callers
Method
Command
()
microovn/cmd/microovn/cluster_list.go:20
↓ 1 callers
Method
Command
()
microovn/cmd/microovn/cluster_add.go:19
↓ 1 callers
Method
Command
()
microovn/cmd/microovn/cluster_remove.go:17
↓ 1 callers
Method
Command
Command returns definition for "microovn config get" subcommand
microovn/cmd/microovn/config_get.go:18
↓ 1 callers
Method
Command
Command method returns definition for "microovn certificates reissue" subcommand
microovn/cmd/microovn/certificates_reissue.go:30
↓ 1 callers
Method
Command
()
microovn/cmd/microovn/cluster_join.go:18
↓ 1 callers
Method
Command
()
microovn/cmd/microovn/cluster_sql.go:18
↓ 1 callers
Method
Command
Command returns definition for "microovn config delete" subcommand
microovn/cmd/microovn/config_delete.go:18
↓ 1 callers
Method
Command
Command method returns definition for "microovn certificates set-ca" subcommand
microovn/cmd/microovn/certificates_set_ca.go:27
↓ 1 callers
Method
Command
Command method returns definition for "microovn certificates regenerate-ca" subcommand
microovn/cmd/microovn/certificates_regenerate_ca.go:20
↓ 1 callers
Method
Command
Command returns definition for "microovn config set" subcommand
microovn/cmd/microovn/config_set.go:18
↓ 1 callers
Method
Command
()
microovn/cmd/microovnd/main.go:52
↓ 1 callers
Function
ConfigItemExists
ConfigItemExists checks if a ConfigItem with the given key exists. generator: ConfigItem Exists
microovn/database/config.mapper.go:219
↓ 1 callers
Function
DisableService
DisableService - stop snap service(s) (runtime state) and remove it from the database (desired state). NOTE: this function does not update the enviro
microovn/node/node.go:39
↓ 1 callers
Function
ExpectedOvsdbSchemaVersion
ExpectedOvsdbSchemaVersion returns version of the database schema that was shipped with current OVN/OVS packages. This value can be used to check whet
microovn/ovn/ovsdb/ovsdb.go:41
↓ 1 callers
Method
FromMap
FromMap initializes ExtraBgpConfig structure from the provided map of string keys and string values. This functions also validates the resulting struc
microovn/api/types/services.go:185
↓ 1 callers
Function
GetCA
GetCA pulls PEM encoded CA certificate and private key from shared database and returns them as parsed objects x509.Certificate and ecdsa.PrivateKey (
microovn/ovn/certificates/certificates.go:358
↓ 1 callers
Function
GetConfigItems
GetConfigItems returns all available ConfigItems. generator: ConfigItem GetMany
microovn/database/config.mapper.go:109
↓ 1 callers
Function
GetServices
GetServices returns all available services. generator: service GetMany
microovn/database/service.mapper.go:132
↓ 1 callers
Function
LoadConfig
LoadConfig reads a netplan file and returns a Config object representing the file
microovn/netplan/netplan.go:166
↓ 1 callers
Function
NetworkProtocol
NetworkProtocol returns appropriate network protocol that should be used by OVN services.
microovn/ovn/environment/environment.go:36
↓ 1 callers
Method
PrettyPrint
PrettyPrint method formats and prints contents of IssueCertificateResponse object
microovn/api/types/certificates.go:14
↓ 1 callers
Method
PrettyPrint
PrettyPrint method formats and prints contents of RegenerateCaResponse object
microovn/api/types/certificates.go:40
↓ 1 callers
Function
ServiceExists
ServiceExists checks if a service with the given key exists. generator: service Exists
microovn/database/service.mapper.go:291
↓ 1 callers
Function
SwitchDBDir
SwitchDBDir returns path to the directory where OpenvSwitch stores its database
microovn/ovn/paths/paths.go:57
↓ 1 callers
Function
SwitchDataDir
SwitchDataDir returns path to the directory where OpenvSwitch stores general data files
microovn/ovn/paths/paths.go:67
next →
1–100 of 309, ranked by callers