← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1320747] [NEW] "Error: Port-profile is not configured to accept switching commands" in brocade plugin

 

Public bug reported:

Creating a network fails on a Brocade 6710 switch running NOS 4.10a:

2014-05-16 11:41:39.096 28138 TRACE
neutron.plugins.brocade.NeutronPlugin RPCError:
NSM_ERR_DCM_APPM_VLAN_PROFILE_MODE_INVALID | %Error: Port-profile is not
configured to accept switching commands

The problem is that apparently the NETCONF command to set the port into
port-profile mode has changed. The current XML template
(neutron/plugins/brocade/nos/nctemplates.py) (not working):

# Configure L2 mode for VLAN sub-profile (port_profile_name)
CONFIGURE_L2_MODE_FOR_VLAN_PROFILE = """
    <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
        <port-profile xmlns="urn:brocade.com:mgmt:brocade-port-profile">
            <name>{name}</name>
            <vlan-profile>
                <switchport/>
            </vlan-profile>
        </port-profile>
    </config>
"""

The correct template (working):

# Configure L2 mode for VLAN sub-profile (port_profile_name)
CONFIGURE_L2_MODE_FOR_VLAN_PROFILE = """
    <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
        <port-profile xmlns="urn:brocade.com:mgmt:brocade-port-profile">
            <name>{name}</name>
            <vlan-profile>
                <switchport-basic>
                    <basic/>
                </switchport-basic>
            </vlan-profile>
        </port-profile>
    </config>
"""

Fixing the template resolves the issue.

** Affects: neutron
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1320747

Title:
  "Error: Port-profile is not configured to accept switching commands"
  in brocade plugin

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  Creating a network fails on a Brocade 6710 switch running NOS 4.10a:

  2014-05-16 11:41:39.096 28138 TRACE
  neutron.plugins.brocade.NeutronPlugin RPCError:
  NSM_ERR_DCM_APPM_VLAN_PROFILE_MODE_INVALID | %Error: Port-profile is
  not configured to accept switching commands

  The problem is that apparently the NETCONF command to set the port
  into port-profile mode has changed. The current XML template
  (neutron/plugins/brocade/nos/nctemplates.py) (not working):

  # Configure L2 mode for VLAN sub-profile (port_profile_name)
  CONFIGURE_L2_MODE_FOR_VLAN_PROFILE = """
      <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
          <port-profile xmlns="urn:brocade.com:mgmt:brocade-port-profile">
              <name>{name}</name>
              <vlan-profile>
                  <switchport/>
              </vlan-profile>
          </port-profile>
      </config>
  """

  The correct template (working):

  # Configure L2 mode for VLAN sub-profile (port_profile_name)
  CONFIGURE_L2_MODE_FOR_VLAN_PROFILE = """
      <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
          <port-profile xmlns="urn:brocade.com:mgmt:brocade-port-profile">
              <name>{name}</name>
              <vlan-profile>
                  <switchport-basic>
                      <basic/>
                  </switchport-basic>
              </vlan-profile>
          </port-profile>
      </config>
  """

  Fixing the template resolves the issue.

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1320747/+subscriptions


Follow ups

References