utils

package
v0.0.0-...-296b82f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Allowed values for nfType
	UPFKind  = "upf"
	SMFKind  = "smf"
	AUSFKind = "ausf"
	UDMKind  = "udm"

	NFBGPConfigKind      = "NfBgpConfig"
	InterfaceConfigKind  = "InterfaceConfig"
	InterfaceProfileKind = "InterfaceProfile"

	// For input files like UpfType
	IpAPIVersion = "nfdeploy.nephio.org/v1alpha1"

	// For output files like UpfDeploy and SmfDeploy
	OpFileName   = "%s-%s.yaml" // nfDeployName-siteID
	OpAPIVersion = "nfdeploy.nephio.org/v1alpha1"
	OpNameSpace  = "nephio-system"
)

Variables

This section is empty.

Functions

func GetBGPConfig

func GetBGPConfig(nfBgpConfig *types.NFBGPConfig) []types.BGPConfig

func GetInterfaceConfigSpecMap

func GetInterfaceConfigSpecMap(configs []*types.InterfaceConfig) map[int]types.InterfaceCfgSpec

func GetInterfaceProfile

func GetInterfaceProfile(ctx context.Context, psi ps.PackageServiceInterface,
	kind string, names []string, nc nfdeployutil.NamingContext) (map[string]*types.InterfaceProfile, error)

GetInterfaceProfile returns InterfaceProfile map with name as key

func GetNetworkInterfaces

func GetNetworkInterfaces(iProfiles []types.NFTypeInterfaceProfile,
	icMap map[int]types.InterfaceCfgSpec,
	ipMap map[string]*types.InterfaceProfile) ([]types.NetworkInterface, error)

func GetReferencedProfiles

func GetReferencedProfiles(ctx context.Context, psi ps.PackageServiceInterface, nfBgpKind,
	interfaceConfigKind string, nc nfdeployutil.NamingContext) (*types.NFBGPConfig, []*types.InterfaceConfig, error)

GetReferencedProfiles returns the nfBgpConfig, interfaceConfig

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL