# For FM10000 devices, this attribute must be set to ''forward'' to ensure that the VLAN information retrieved from a packet received from a PEP port is properly forwarded in the FTAG of the egress packet going to the CPU port.
# If the ''port.unicast.flooding'' port attribute is used instead to forward unknown unicast packets to the CPU port, the VLAN information will not be preserved when such packets are forwarded to the CPU port.
# Definitions here share keys. First default, eth, pcie, special, cpu entries are applied, then specific port numbers
ports:
-
# Default port definitions, except internal
port:default
attributes:
tagging:
# Selects the port tagging mode for this port. Values (see fm_portTaggingMode struct): 8021q (default), 8021ad_customer, 8021ad_provider, pseudo1, pseudo2
mode:8021q
# The port's default VLAN. Tagging rules still apply from VLAN definition. The default value is 1.
vid:1
# The port's default priority (0 - 7). The default value is 0.
priority:0
# The port's default second VLAN. The default value is 1.
#vid2: 1
# The port's default second priority (0 - 7). The default value is 0.
#priority2: 0
# Whether the ingress VLAN-tagged frame's VLAN fields should be replaced with the port's default VLAN fields,
# as specified by the ''tagging.vid'', ''tagging.priority'', and ''tagging.cfi'' attributes. Default false
#
# Note that this attribute does not affect the selection of the internal switch priority of the frame (in the case of SWPRI being chosen from VLAN priority),
# as SWPRI is chosen before the port's default VLAN values are applied. See ''FM_PORT_SWPRI_SOURCE'' and ''FM_PORT_SWPRI_DSCP_PREF'' for details on the selection of SWPRI.
replace:false
# The port's default CFI (0 - 1). The default value is 0.
# Also known as Drop eligible indicator (DEI). May be used separately or in conjunction with PCP to indicate frames eligible to be dropped in the presence of congestion.
cfi:0
# The port's default DSCP (0 - 63). Default value is 0.
dscp:0
# Defines the type of ISL tag (if any) present on frames ingressing on this port.
# On FM10000, this attribute supports f56 or none (default) on Ethernet ports, but only none is supported for PCIe and TE ports.
# Values: none, f56
#isl_format:
# The port's default internal switch priority (0 - 15). Default value is 0.
switch_priority:0
drop:
# Dropping frames that incur an ingress VLAN boundary violation. Default false
boundary_violation:false
# Dropping of untagged frames on ingress. Default false. See notes for FM_PORT_DROP_UNTAGGED
untagged:false
# Dropping of tagged frames on ingress. Default false. See notes for FM_PORT_DROP_TAGGED
tagged:false
loopback:
# Internal loopback control. Frames emitted from the switch fabric towards an egress port are processed all the way
# through the Ethernet port logic, then looped back from transmit to receive at the SerDes level, complete with preamble and IFG.
# Can only be set on eth ports. Values: off (default), tx2rx, rx2tx
mode:off
# Whether frames emitted out of the switch fabric toward an egress port are instead looped back into the fabric.
# Since such frames do not touch the Ethernet port logic of the chip, they will not have a preamble, nor do they invoke an IFG.
# The associated port logic will be put in a standby mode so that any frames received at the port will not enter the switch fabric.
# Values: off (default), tx2rx, rx2tx
fabric:off
# Indicates whether loopback suppression is enabled or disabled for a port.
# Value is either true (default) or false (default for TE ports).
# Note that this attribute has no effect when a port is a member of a link aggregation group.
#suppression: true
parser:
# How far in OSI model packets are parsed before stopping.
# l2 (default)
# l3 - Set to this value to enable any L3 features, such as IGMP snooping, routing, IGMP storm control and L3 ACLs.
# l4 - Set FM_PORT_PARSER to this value to enable L4 ACLs (default for TE ports), in addition to L3 features.
# all
mode:l2
# When two VLAN tags are present and identical in a packet, then this attribute defines which one is considered as first.
# Setting to false (default) makes VLAN1 first, VLAN2 second.
#first_vlan2: false
# Whether VID2 (VLAN ID in the second VLAN tag) is sent before VID1 (VLAN ID in the first VLAN tag) or after VID1.
# Setting to true sends the VID2 first, then VID1 second.
# Setting to false (default) sends the VID1 first, VID2 second.
#first_vid2: false
# A port must have this attribute enabled in order for traffic ingressing on the port to be routed.
# When this attribute is disabled, ingressing traffic will only be switched at layer 2.
routable:false
# Egress updating of fields
update:
# Defines whether the port should decrement the TTL field on outgoing routed frames. Default true
#ttl: true
# Defines whether the port may modify the DSCP field on outgoing routed frames. Default true
#dscp: true
# Defines whether the port should modify the VLAN priority field on egress. Default false
#vlan_priority: false
# Defines whether the port should modify the VLAN2 priority field on egress. Default false
#vlan2_priority: false
# A bit mask indicating the fields that will be updated on a routed frame.
# The mask consists of the OR of any of the following fields: DMAC, SMAC, VLAN
# Default is [DMAC, SMAC, VLAN]
routed:[DMAC, SMAC, VLAN]
broadcast:
# Whether a port is to prune flooded broadcast frames
#pruning: false
# Flooding control for per_port switch value. Values: forward_without_cpu, trap, forward, discard
#flooding: forward_without_cpu
multicast:
# Whether a port is to prune flooded broadcast frames
#pruning: false
# Flooding control for per_port switch value. Values: forward_without_cpu, trap, forward, discard
#flooding: forward_without_cpu
unicast:
# Whether a port is to prune flooded broadcast frames
#pruning: false
# Flooding control for per_port switch value. Values: forward_without_cpu, trap, forward, discard
#flooding: forward_without_cpu
# Indicates whether the port is an internal port in a multi-switch environment (port connects the switch to another switch).
# Value is either FM_ENABLED or FM_DISABLED (default).
# On FM10000, this attribute is always FM_DISABLED for PCIe ports and FM_ENABLED for TE ports.
# Port 1 definitions. As defined on platform configuration. This should be one of the QSFP (#1?) ports
port:1
attributes:
# The N-bit egress port mask to use when this port is the ingress port.
# A one bit in the mask indicates that frames from this port can be forwarded to the port represented by the bit.
# Each bit position corresponds to the logical port number of the egress port.
# To allow, for example, ports 0, 1, 2, 3 to communicate here, use either raw mask value (0xf) or list form [0, 1, 2, 3]. -1 to allow all known but self