network

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ADInfo

type ADInfo struct {
	LACPActive           string               `json:"lacp_active"`
	LACPRate             string               `json:"lacp_rate"`
	MinLinks             string               `json:"min_links"`
	ADSelect             string               `json:"ad_select"`
	SystemPriority       string               `json:"system_priority"`
	SystemMACAddress     string               `json:"system_mac_address"`
	ActiveAggregatorInfo ActiveAggregatorInfo `json:"active_aggregator_info"`
}

type ActiveAggregatorInfo

type ActiveAggregatorInfo struct {
	AggregatorID      string `json:"aggregator_id"`
	NumberOfPorts     string `json:"number_of_ports"`
	ActorKey          string `json:"actor_key"`
	PartnerKey        string `json:"partner_key"`
	PartnerMACAddress string `json:"partner_mac_address"`
}

type Bonding

type Bonding struct {
	Name               string           `json:"name"`
	BondingMode        string           `json:"bonding_mode"`
	SlavesList         SlavesList       `json:"slaves_list"`
	TransmitHashPolicy string           `json:"transmit_hash_policy"`
	AddrList           []string         `json:"addr_list"`
	MIIStatus          string           `json:"mii_status"`
	MIIPollingInterval string           `json:"mii_polling_interval"`
	ADInfo             ADInfo           `json:"ad_info"`
	SlaveInterface     []SlaveInterface `json:"slave_interface"`
}

type Chain

type Chain struct {
	ChainName string   `json:"chain_name"`
	Rules     []string `json:"rules"`
}

type LibvirtDomain

type LibvirtDomain struct {
	DomainName string                       `json:"domain_name"`
	DomainUUID string                       `json:"domain_uuid"`
	Interfaces []libvirtxml.DomainInterface `json:"interfaces"`
}

type LibvirtNet

type LibvirtNet struct {
	Domains []LibvirtDomain `json:"domains"`
}

type NIC

type NIC struct {
	Interface string   `json:"interface"`
	Address   []string `json:"address"`
	Gateway   []string `json:"gateway"`
	Route     []Route  `json:"route"`
	MAC       string   `json:"mac"`
	MTU       int      `json:"mtu"`
}

type Netfilter

type Netfilter struct {
	IPv4Tables []Table `json:"ipv4_tables"`
	IPv6Tables []Table `json:"ipv6_tables"`
}

type Network

type Network struct {
	NetworkSubsystem _NetworkSubsystem `json:"network_subsystem"`
	VirtualNetwork   VirtualNetwork    `json:"virtual_network"`
}

type OVSBridge

type OVSBridge struct {
	AutoAttach          any      `json:"auto_attach"`
	Controller          any      `json:"controller"`
	DatapathID          string   `json:"datapath_id"`
	DatapathType        string   `json:"datapath_type"`
	DatapathVersion     string   `json:"datapath_version"`
	ExternalIds         []any    `json:"external_ids"`
	FailMode            any      `json:"fail_mode"`
	FloodVlans          any      `json:"flood_vlans"`
	FlowTables          []any    `json:"flow_tables"`
	Ipfix               any      `json:"ipfix"`
	McastSnoopingEnable bool     `json:"mcast_snooping_enable"`
	Mirrors             any      `json:"mirrors"`
	Name                string   `json:"name"`
	Netflow             any      `json:"netflow"`
	OtherConfig         []any    `json:"other_config"`
	Ports               []string `json:"ports"`
	Protocols           any      `json:"protocols"`
	RstpEnable          bool     `json:"rstp_enable"`
	RstpStatus          []any    `json:"rstp_status"`
	Sflow               any      `json:"sflow"`
	Status              []any    `json:"status"`
	StpEnable           bool     `json:"stp_enable"`
	UUID                string   `json:"uuid"`
	Version             string   `json:"version"`
}

type Route

type Route struct {
	Destination string `json:"destination"`
	Netmask     string `json:"netmask"`
	NextHop     string `json:"next_hop"`
}

type SlaveInterface

type SlaveInterface struct {
	Name             string `json:"name"`
	MIIStatus        string `json:"mii_status"`
	Speed            string `json:"speed"`
	Duplex           string `json:"duplex"`
	LinkFailureCount string `json:"link_failure_count"`
	PermanentHWAddr  string `json:"permanent_hw_addr"`
	AggregatorID     string `json:"aggregator_id"`
}

type SlavesList

type SlavesList struct {
	Interfaces           []string `json:"interfaces"`
	PrimarySlave         string   `json:"primary_slave"`
	CurrentlyActiveSlave string   `json:"currently_active_slave"`
}

type Table

type Table struct {
	TableName string  `json:"table_name"`
	Chains    []Chain `json:"chains"`
}

type VirtualNetwork

type VirtualNetwork struct {
	OVS        []OVSBridge `json:"ovs"`
	LibvirtNet LibvirtNet  `json:"libvirt_net"`
}

Jump to

Keyboard shortcuts

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