Files
libnftables-dotnet/src/LibNftables/NftTable.cs
2026-03-16 04:07:08 +00:00

33 lines
845 B
C#

namespace LibNftables;
/// <summary>
/// Represents a typed nftables table definition.
/// </summary>
public sealed class NftTable
{
/// <summary>
/// Gets or sets the nftables family for the table.
/// </summary>
public NftFamily Family { get; set; } = NftFamily.Inet;
/// <summary>
/// Gets or sets the table name.
/// </summary>
public string? Name { get; set; }
/// <summary>
/// Gets the sets declared in this table.
/// </summary>
public IList<NftSet> Sets { get; } = new List<NftSet>();
/// <summary>
/// Gets the maps declared in this table.
/// </summary>
public IList<NftMap> Maps { get; } = new List<NftMap>();
/// <summary>
/// Gets the chains declared in this table.
/// </summary>
public IList<NftChain> Chains { get; } = new List<NftChain>();
}