Project

General

Profile

Bug #8422

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

Added by Steve Wheeler over 1 year ago. Updated over 1 year ago.

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

100%

Estimated time:
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>

History

#1 Updated by Steve Beaver over 1 year ago

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

#2 Updated by Luiz Souza over 1 year ago

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

Fixed.

Please check with the next snapshot.

#3 Updated by Vladimir Lind over 1 year ago

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

#4 Updated by Jim Pingle over 1 year ago

  • Status changed from Feedback to Resolved

#5 Updated by Jim Pingle over 1 year ago

  • Category set to Interfaces

Also available in: Atom PDF