l2pt
AsterNOS YANG Model for Layer 2 Protocol Tunneling on Ports.
module: asternos-l2pt +--rw l2pts +--rw l2pt* [ifname protocol-type] +--rw ifname if:interface-ref +--rw protocol-type enumeration +--rw enable? booleanResources
Section titled “Resources”Resource List
Section titled “Resource List”| 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 |
Detailed Nodes
Section titled “Detailed Nodes”/l2pts
Section titled “/l2pts”Path
/l2pts
Node Type
container
Description
Configuration of the Layer 2 Protocol Tunneling.
Access
Read-Write
/l2pts/l2pt
Section titled “/l2pts/l2pt”Path
/l2pts/l2pt
Node Type
list
Description
Layer 2 Protocol Tunneling.
Access
Read-Write
/l2pts/l2pt/ifname
Section titled “/l2pts/l2pt/ifname”Path
/l2pts/l2pt/ifname
Node Type
leaf
Description
The name of the interface.
Access
Read-Write
Data Type
Constraints
Multiple constraints:
- LeafRef pointing to: asternos-interfaces:interface-ref
- Must condition: starts-with(., ‘Ethernet’)
/l2pts/l2pt/protocol-type
Section titled “/l2pts/l2pt/protocol-type”Path
/l2pts/l2pt/protocol-type
Node Type
leaf
Description
l2 protocol type.
Access
Read-Write
Data Type
Constraints
Enumeration with options:
- stp
- lacp
- cdp
- pvstp
/l2pts/l2pt/enable
Section titled “/l2pts/l2pt/enable”Path
/l2pts/l2pt/enable
Node Type
leaf
Description
Enable Layer 2 protocol tunneling.
Access
Read-Write
Data Type
Constraints
Valid in [true, false]