package
6.6.0
Repository: https://github.com/lxc/incus.git
Documentation: pkg.go.dev

# Functions

Create validates supplied record and creates new Network ACL record in the database.
Exists checks the ACL name(s) provided exists in the project.
FirewallApplyACLRules applies ACL rules to network firewall.
LoadByName loads and initializes a Network ACL from the database by project and name.
NetworkUsage populates the provided aclNets map with networks that are using any of the specified ACLs.
OVNACLNetworkPortGroupName returns the port group name for a Network ACL ID and Network ID.
OVNACLPortGroupName returns the port group name for a Network ACL ID.
OVNApplyInstanceNICDefaultRules applies instance NIC default rules to per-network port group.
OVNApplyNetworkBaselineRules applies preset baseline logical switch rules to a allow access to network services.
OVNEnsureACLs ensures that the requested aclNames exist as OVN port groups (creates & applies ACL rules if not), If reapplyRules is true then the current ACL rules in the database are applied to the existing port groups rather than just new ones.
OVNIntSwitchName returns the internal logical switch name for a Network ID.
OVNIntSwitchPortGroupAddressSetPrefix returns the internal switch routes address set prefix for a Network ID.
OVNIntSwitchPortGroupName returns the port group name for a Network ID.
OVNIntSwitchRouterPortName returns OVN logical internal switch router port name.
OVNNetworkPrefix returns the prefix used for OVN entities related to a Network ID.
OVNPortGroupDeleteIfUnused deletes unused port groups.
OVNPortGroupInstanceNICSchedule adds the specified NIC port to the specified port groups in the changeSet.
UsedBy finds all networks, profiles and instance NICs that use any of the specified ACLs and executes usageFunc once for each resource using one or more of the ACLs with info about the resource and matched ACLs being used.
ValidName checks the ACL name is valid.

# Variables

ReservedNetworkSubects contains a list of reserved network peer names (those starting with @ character) that cannot be used when to name peering connections.
ValidActions defines valid actions for rules.

# Structs

NetworkACLUsage info about a network and what ACL it uses.

# Interfaces

NetworkACL represents a Network ACL.