Project

General

Profile

Actions

Bug #8422

closed
SW LS

Switching VLAN mode removes the switch port settings from the config.

Bug #8422: Switching VLAN mode removes the switch port settings from the config.

Added by Steve Wheeler over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
Interfaces
Target version:
Start date:
04/03/2018
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.4.3
Affected Architecture:
All

Description

On devices with a built in switch changing the switch VLAN mode removes the port state settings from the config resulting in all the ports set as disabled.

This applies when switching from port mode to .1q mode on a clean install or from .1q to port mode on a funtioning .1q setup.

Saving on the ports tab is sufficient to restore the port config which is then applied if rebooted.

Config after switching to .1q mode, adding a vlan and rebooting. From a clean install:

    <switches>
        <switch>
            <device>/dev/etherswitch0</device>
            <vlanmode>DOT1Q</vlanmode>
            <swports></swports>
            <vlangroups>
                <vlangroup>
                    <vgroup>1</vgroup>
                    <vlanid>100</vlanid>
                    <descr></descr>
                    <members>2</members>
                </vlangroup>
            </vlangroups>
        </switch>
    </switches>

After re-saving on the ports tab:

    <switches>
        <switch>
            <device>/dev/etherswitch0</device>
            <vlanmode>DOT1Q</vlanmode>
            <vlangroups>
                <vlangroup>
                    <vgroup>1</vgroup>
                    <vlanid>100</vlanid>
                    <descr></descr>
                    <members>2</members>
                </vlangroup>
            </vlangroups>
            <swports>
                <swport>
                    <port>1</port>
                    <pvid>1</pvid>
                    <state><![CDATA[forwarding]]></state>
                </swport>
                <swport>
                    <port>2</port>
                    <pvid>1</pvid>
                    <state><![CDATA[forwarding]]></state>
                </swport>
                <swport>
                    <port>3</port>
                    <pvid>1</pvid>
                    <state><![CDATA[forwarding]]></state>
                </swport>
                <swport>
                    <port>4</port>
                    <pvid>1</pvid>
                    <state><![CDATA[forwarding]]></state>
                </swport>
                <swport>
                    <port>5</port>
                    <pvid>1</pvid>
                    <state><![CDATA[forwarding]]></state>
                </swport>
            </swports>
        </switch>
    </switches>

Updated by Anonymous over 8 years ago Actions #1

  • Assignee set to Luiz Souza
  • Priority changed from Normal to High

LS Updated by Luiz Souza over 8 years ago Actions #2

  • Status changed from New to Feedback
  • % Done changed from 0 to 100

Fixed.

Please check with the next snapshot.

VL Updated by Vladimir Lind over 8 years ago Actions #3

It looks resolved - tested on built on Thu Apr 05 19:51:37 CDT 2018

JP Updated by Jim Pingle over 8 years ago Actions #4

  • Status changed from Feedback to Resolved

JP Updated by Jim Pingle over 8 years ago Actions #5

  • Category set to Interfaces
Actions

Also available in: Atom