---
title: l2pt
slug: enterprise-v6p1/l2pt
createdAt: 2025-12-18T07:22:07.574Z
---

AsterNOS YANG Model for Layer 2 Protocol Tunneling on Ports.

# <font color="#1d50a2">YANG Tree Diagram</font>

```none
module: asternos-l2pt
  +--rw l2pts
     +--rw l2pt* [ifname protocol-type]
        +--rw ifname           if:interface-ref
        +--rw protocol-type    enumeration
        +--rw enable?          boolean
```

# <font color="#1d50a2">Resources</font>

## <font color="#1d50a2">Resource List</font>

| **Path**                  | **Access** |
| ------------------------- | ---------- |
| /l2pts                    | Read-Write |
| /l2pts/l2pt               | Read-Write |
| /l2pts/l2pt/ifname        | Read-Write |
| /l2pts/l2pt/protocol-type | Read-Write |
| /l2pts/l2pt/enable        | Read-Write |

## <font color="#1d50a2">Detailed Nodes</font>

### <font color="#1d50a2">/l2pts</font>

**Path**

/l2pts

**Node Type**

container

**Description**

Configuration of the Layer 2 Protocol Tunneling.

**Access**

Read-Write

### <font color="#1d50a2">/l2pts/l2pt</font>

**Path**

/l2pts/l2pt

**Node Type**

list

**Description**

Layer 2 Protocol Tunneling.

**Access**

Read-Write

### <font color="#1d50a2">/l2pts/l2pt/ifname</font>

**Path**

/l2pts/l2pt/ifname

**Node Type**

leaf

**Description**

The name of the interface.

**Access**

Read-Write

**Data Type**

\<YANG type interface-ref>

**Constraints**

Multiple constraints:

- LeafRef pointing to: asternos-interfaces\:interface-ref
- Must condition: starts-with(., 'Ethernet')

### <font color="#1d50a2">/l2pts/l2pt/protocol-type</font>

**Path**

/l2pts/l2pt/protocol-type

**Node Type**

leaf

**Description**

l2 protocol type.

**Access**

Read-Write

**Data Type**

\<YANG type enumeration>

**Constraints**

Enumeration with options:

- stp
- lacp
- cdp
- pvstp

### <font color="#1d50a2">/l2pts/l2pt/enable</font>

**Path**

/l2pts/l2pt/enable

**Node Type**

leaf

**Description**

Enable Layer 2 protocol tunneling.

**Access**

Read-Write

**Data Type**

\<YANG type boolean>

**Constraints**

Valid in \[true, false]
