bridge

package
v0.8.5-31-gccdd68c2 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2022, Unikraft GmbH and The KraftKit Authors. Licensed under the BSD-3-Clause License (the "License"). You may not use this file except in compliance with the License.

Index

Constants

View Source
const (
	// DefaultMTU is the default MTU for new bridge interfaces.
	DefaultMTU = 1500
)

Variables

This section is empty.

Functions

func AllocateIP

func AllocateIP(ctx context.Context, ipnet *net.IPNet, iface *net.Interface, bridge *netlink.Bridge) (net.IP, error)

For a given IP network, bridge (and its interface), allocate a free IP address.

func BridgeIPs

func BridgeIPs(bridge *netlink.Bridge) ([]string, error)

BridgeIPs returns all the IPs attached to the provided bridge

func NewNetworkServiceV1alpha1

func NewNetworkServiceV1alpha1(ctx context.Context, opts ...any) (networkv1alpha1.NetworkService, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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