aristanetworks / avd

Arista Validated Designs
https://avd.arista.com
Apache License 2.0
290 stars 209 forks source link

Storm control with port-channels - wrong CLI syntax for unknown-unicast #642

Closed kmueller68 closed 3 years ago

kmueller68 commented 3 years ago

Issue Type

Summary

rendering edge port configuration with port-profile including storm-control configuration is working well for single ethernet ports but showing a CLI syntax issue on port-channels for unknown-unicast. It generates "unknown_unicast" instead of "unknown-unicast"

Component Name

eos_l3ls_evpn ansible-avd/ansible_collections/arista/avd/roles/eos_l3ls_evpn/templates/edge_ports/leaf-server-port-channels.j2

Steps to reproduce

port_profiles:
  Tenant_DC_ESX:
    mode: trunk
    native_vlan: '1000'
    vlans: 1000-1200
    spanning_tree_bpdufilter: false
    spanning_tree_portfast: edge
    storm_control:
      broadcast:
        level: 1
        unit: percent
      multicast:
        level: 1
        unit: percent
      unknown_unicast:
        level: 1
        unit: percent

servers:
  server10:
    adapters:
    - profile: Tenant_DC_ESX
      server_ports:
      - Eth0
      - Eth1
      switch_ports:
      - Ethernet9
      - Ethernet9
      switches:
      - leaf-2A
      - leaf-2B
      type: nic
      port_channel:
        description: PortChannelTest
        mode: active
    rack: 2E5

  Host-21-13:
    adapters:
    - profile: Tenant_DC_ESX
      server_ports:
      - Eth0
      switch_ports:
      - Ethernet10
      switches:
      - leaf-2A
      type: nic
    rack: 2E5

Expected results

$
interface Port-Channel9
   description server10_PortChannelTest
   no shutdown
   switchport
   switchport trunk allowed vlan 1000-1200
   switchport trunk native vlan 1000
   switchport mode trunk
   mlag 9
   spanning-tree portfast
   storm-control broadcast level 1
   storm-control multicast level 1
   storm-control unknown-unicast level 1

interface Ethernet10
   description Host-21-13_Eth0
   no shutdown
   switchport
   switchport trunk allowed vlan 1000-1200
   switchport trunk native vlan 1000
   switchport mode trunk
   spanning-tree portfast
   storm-control broadcast level 1
   storm-control multicast level 1
   storm-control unknown-unicast level 1

Actual results


interface Port-Channel9
   description server10_PortChannelTest
   no shutdown
   switchport
   switchport trunk allowed vlan 1000-1200
   switchport trunk native vlan 1000
   switchport mode trunk
   mlag 9
   spanning-tree portfast
   storm-control broadcast level 1
   storm-control multicast level 1
   storm-control unknown_unicast level 1
onurgashi commented 3 years ago

Could you try typing unknown-unicast instead of unknown_unicast. I have this working in my case.

Looks like error in README documentation for eos_l3ls_evpn @titom73

kmueller68 commented 3 years ago

Hi... tested it: it is working with unknown-unicast instead of unknown_unicast in the DC_SERVERS.yml file for ethernet port and port-channel.

Seems to be a documentation error.

titom73 commented 3 years ago

Since storm-control for __ethernet_interfaces__ is based on unknown_unicast, I will replicate same behavior to get consistency in YAML configuration.

PR is in progress.