MCPcopy Create free account

hub / github.com/canonical/microovn / functions

Functions309 in github.com/canonical/microovn

↓ 8 callersMethodCommand
()
microovn/cmd/microovn/init.go:24
↓ 8 callersFunctionDisableService
DisableService stops and disables BGP services managed by MicroOVN.
microovn/bgp/service.go:205
↓ 7 callersFunctioncertExpDate
certExpDate returns the expiration date of public certificates, (NotAfter, NotBefore)
microovn/cmd/microovn/certificates_list.go:256
↓ 6 callersFunctionprintCert
(p printCertInterface)
microovn/cmd/microovn/certificates_list.go:212
↓ 6 callersFunctionprintCertsSummaryHelper
(cert certProvider, certName string)
microovn/cmd/microovn/status.go:239
↓ 5 callersMethodAddress
()
microovn/ovn/environment/environment_test.go:20
↓ 5 callersFunctionCentralDBDir
CentralDBDir returns path to the directory where OVN Central stores its databases
microovn/ovn/paths/paths.go:32
↓ 5 callersFunctionOvnRuntimeDir
OvnRuntimeDir returns path to the directory where OVN Central creates its runtime files
microovn/ovn/paths/paths.go:27
↓ 5 callersMethodPrettyPrint
PrettyPrint - Formats and prints contents of WarningSet object.
microovn/api/types/services.go:47
↓ 5 callersFunctiongetLrpName
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 callersFunctiongetServiceCertFiles
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 callersMethodAddVeth
AddVeth adds a veth pair to the config.
microovn/netplan/netplan.go:73
↓ 4 callersFunctionPkiDir
PkiDir returns path to the directory that store OVN certificates
microovn/ovn/paths/paths.go:102
↓ 4 callersFunction_ovsdbSchemaRequiresAttention
( clusterSchema []string, nodeError []types.OvsdbSchemaFetchError, activeSchema string, expectedResult bool,
microovn/cmd/microovn/status_test.go:9
↓ 4 callersFunctionactivateService
(ctx context.Context, service types.SrvName, enable bool)
microovn/node/node.go:395
↓ 4 callersFunctionprintOvsdbSummaryError
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 callersFunctionvsctlGetIfExists
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 callersMethodAddVRF
AddVRF adds a VRF with interfaces.
microovn/netplan/netplan.go:83
↓ 3 callersFunctionBirdConfigDir
BirdConfigDir returns path to a directory that Bird routing daemon uses to store configuration
microovn/ovn/paths/paths.go:156
↓ 3 callersFunctionMajorVersion
MajorVersion extracts the major version of the supplied "version" argument.
microovn/version/version.go:16
↓ 3 callersFunctionWaitForDBState
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 callersFunctiondeactivateService
(ctx context.Context, service types.SrvName, disable bool)
microovn/node/node.go:426
↓ 3 callersFunctiongetBgpRedirectIfaceName
getBgpRedirectIfaceName returns name of the system interface to which all BGP traffic from externalIface network is redirected.
microovn/bgp/redirect.go:191
↓ 3 callersFunctiongetLrName
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 callersFunctiongetLsName
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 callersFunctiongetVrfName
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 callersFunctionparseConfigRequest
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 callersFunctionparseDbSpec
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 callersFunctionparseOvnFind
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 callersFunctionprintFileStatus
printFileStatus prints supplied file path with status base on whether the file exists or not
microovn/cmd/microovn/certificates_list.go:239
↓ 2 callersMethodAddBridge
AddBridge adds a bridge with interfaces.
microovn/netplan/netplan.go:91
↓ 2 callersFunctionConnectionString
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 callersFunctionEnvDir
EnvDir returns path to the directory that store OVN environment variables.
microovn/ovn/paths/paths.go:107
↓ 2 callersFunctionFindService
FindService returns list of cluster members that have the specified service enabled.
microovn/node/node.go:217
↓ 2 callersFunctionGetConfigItemID
GetConfigItemID return the ID of the ConfigItem with the given key. generator: ConfigItem ID
microovn/database/config.mapper.go:197
↓ 2 callersFunctionGetServiceID
GetServiceID return the ID of the service with the given key. generator: service ID
microovn/database/service.mapper.go:269
↓ 2 callersFunctionHasServiceActive
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 callersFunctionLogsDir
LogsDir returns path to the directory where OVN stores log files
microovn/ovn/paths/paths.go:22
↓ 2 callersFunctionNewConfig
NewConfig returns a new Netplan config with default version set.
microovn/netplan/netplan.go:60
↓ 2 callersFunctionNewOvsdbSpec
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 callersMethodParseExternalConnection
ParseExternalConnection parses ExtraBgpConfig.ExternalConnection string into list of BgpExternalConnection instances.
microovn/api/types/services.go:254
↓ 2 callersFunctionRegenerateEnvironment
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 callersMethodRun
(_ *cobra.Command, _ []string)
microovn/cmd/microovn/init.go:92
↓ 2 callersFunctionSwitchRuntimeDir
SwitchRuntimeDir returns path to the directory where OpenvSwitch stores its runtime files
microovn/ovn/paths/paths.go:62
↓ 2 callersMethodValidate
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 callersFunctionenabledOvnServices
enabledOvnServices returns list of OVN services enabled on this MicroOVN cluster member.
microovn/api/certificates/common.go:17
↓ 2 callersFunctionfindDPUDevlink
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 callersFunctiongenerateLrpMac
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 callersFunctiongetBgpRedirectIfacePeerName
getBgpRedirectIfacePeerName returns name of the peer to the bgp iface
microovn/bgp/redirect.go:196
↓ 2 callersFunctiongetBgpVethName
(externalIface string)
microovn/bgp/redirect.go:185
↓ 2 callersFunctiongetClusterTableName
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 callersFunctiongetOvsdbSchemaVersion
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 callersFunctiongetPhysnetName
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 callersFunctioninitialNbSbHost
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 callersFunctionissueCertificate
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 callersFunctionnewRequestedServices
(initString string)
microovn/ovn/ovn.go:15
↓ 2 callersFunctionovnDBCtl
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 callersFunctionovsdbSchemaRequiresAttention
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 callersFunctionparseLspciSerial
parseDPUSerial parses lspci output and extracts the DPU serial number.
microovn/ovn/dpu/dpu.go:63
↓ 2 callersFunctionpopulateExpectedCertificates
(expectedCertificates *ovnCertificatePaths, services types.Services, caInfo types.CaInfo, localHostname string
microovn/cmd/microovn/certificates_list.go:141
↓ 2 callersFunctionprintCertExpDate
(expDate string)
microovn/cmd/microovn/certificates_list.go:251
↓ 2 callersFunctionreissueAllCertificates
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 callersFunctionreportOvsdbSchemaStatus
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 callersFunctionstoreCA
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 callersFunctionupdateOvnClusterCertificates
(s state.State, r *http.Request, responseData *types.RegenerateCaResponse)
microovn/api/certificates/regenerate_ca.go:102
↓ 2 callersMethodwantsCustomEncapsulationIP
()
microovn/cmd/microovn/init.go:35
↓ 1 callersFunctionApply
Apply uses dbus to trigger the netplan apply command
microovn/netplan/netplan.go:153
↓ 1 callersFunctionCentralIps
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 callersMethodCertPath
()
microovn/cmd/microovn/certificates_list.go:45
↓ 1 callersMethodCleanupVRFs
CleanupVRFs cleans up the vrfs represented in the config, and will delete them depending on the "delete" argument
microovn/netplan/netplan.go:119
↓ 1 callersMethodCleanupVirtualEthernets
CleaupVirtualEthernets cleansup virtual ethernets represented by this config
microovn/netplan/netplan.go:99
↓ 1 callersMethodCommand
Command returns definition for "microovn config list" subcommand
microovn/cmd/microovn/config_list.go:16
↓ 1 callersMethodCommand
Command method returns definition for "microovn certificates list" subcommand
microovn/cmd/microovn/certificates_list.go:69
↓ 1 callersMethodCommand
()
microovn/cmd/microovn/cluster_bootstrap.go:18
↓ 1 callersMethodCommand
()
microovn/cmd/microovn/cluster_list.go:20
↓ 1 callersMethodCommand
()
microovn/cmd/microovn/cluster_add.go:19
↓ 1 callersMethodCommand
()
microovn/cmd/microovn/cluster_remove.go:17
↓ 1 callersMethodCommand
Command returns definition for "microovn config get" subcommand
microovn/cmd/microovn/config_get.go:18
↓ 1 callersMethodCommand
Command method returns definition for "microovn certificates reissue" subcommand
microovn/cmd/microovn/certificates_reissue.go:30
↓ 1 callersMethodCommand
()
microovn/cmd/microovn/cluster_join.go:18
↓ 1 callersMethodCommand
()
microovn/cmd/microovn/cluster_sql.go:18
↓ 1 callersMethodCommand
Command returns definition for "microovn config delete" subcommand
microovn/cmd/microovn/config_delete.go:18
↓ 1 callersMethodCommand
Command method returns definition for "microovn certificates set-ca" subcommand
microovn/cmd/microovn/certificates_set_ca.go:27
↓ 1 callersMethodCommand
Command method returns definition for "microovn certificates regenerate-ca" subcommand
microovn/cmd/microovn/certificates_regenerate_ca.go:20
↓ 1 callersMethodCommand
Command returns definition for "microovn config set" subcommand
microovn/cmd/microovn/config_set.go:18
↓ 1 callersMethodCommand
()
microovn/cmd/microovnd/main.go:52
↓ 1 callersFunctionConfigItemExists
ConfigItemExists checks if a ConfigItem with the given key exists. generator: ConfigItem Exists
microovn/database/config.mapper.go:219
↓ 1 callersFunctionDisableService
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 callersFunctionExpectedOvsdbSchemaVersion
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 callersMethodFromMap
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 callersFunctionGetCA
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 callersFunctionGetConfigItems
GetConfigItems returns all available ConfigItems. generator: ConfigItem GetMany
microovn/database/config.mapper.go:109
↓ 1 callersFunctionGetServices
GetServices returns all available services. generator: service GetMany
microovn/database/service.mapper.go:132
↓ 1 callersFunctionLoadConfig
LoadConfig reads a netplan file and returns a Config object representing the file
microovn/netplan/netplan.go:166
↓ 1 callersFunctionNetworkProtocol
NetworkProtocol returns appropriate network protocol that should be used by OVN services.
microovn/ovn/environment/environment.go:36
↓ 1 callersMethodPrettyPrint
PrettyPrint method formats and prints contents of IssueCertificateResponse object
microovn/api/types/certificates.go:14
↓ 1 callersMethodPrettyPrint
PrettyPrint method formats and prints contents of RegenerateCaResponse object
microovn/api/types/certificates.go:40
↓ 1 callersFunctionServiceExists
ServiceExists checks if a service with the given key exists. generator: service Exists
microovn/database/service.mapper.go:291
↓ 1 callersFunctionSwitchDBDir
SwitchDBDir returns path to the directory where OpenvSwitch stores its database
microovn/ovn/paths/paths.go:57
↓ 1 callersFunctionSwitchDataDir
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