Skip to content

Commit e27d05d

Browse files
authored
IOS: Allow "no switchport" on LAG interfaces on L2 images (#2504)
1 parent b239d6c commit e27d05d

File tree

1 file changed

+1
-1
lines changed
  • netsim/ansible/templates/initial

1 file changed

+1
-1
lines changed

netsim/ansible/templates/initial/ios.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ interface {{ mgmt.ifname|default('GigabitEthernet0/0') }}
5151
interface {{ l.ifname }}
5252
{% if l.type == 'vlan_member' and l.vlan.access_id is defined %}
5353
encapsulation dot1Q {{ l.vlan.access_id }}
54-
{% elif l.virtual_interface is not defined and netlab_device_type in ['iosvl2','ioll2'] %}
54+
{% elif (l.type == 'lag' or l.virtual_interface is not defined) and netlab_device_type in ['iosvl2','ioll2'] %}
5555
no switchport
5656
{% endif %}
5757
{% if l.vrf is defined %}

0 commit comments

Comments
 (0)