Skip to content

Portchannel with subinterfaces lead to orchagent crash #4142

@mkovnir

Description

@mkovnir

Description

Orchagent crash if configuration contain Portchannel in routed mode with subinterfaces.

Steps to reproduce the issue:

  1. Apply the following sample configuration:
{
"VLAN_SUB_INTERFACE": {
        "PortChannel2.21": {  "admin_status": "up" }, 
        "PortChannel2.21|198.18.21.10/30": {}
    }
} 

Describe the results you received:
After configuration apply orchagent crashs and the following errors are appear in syslog:

NOTICE swss#orchagent: :- addSubPort: Sub interface PortChannel2.21 inherits mtu size 9100 from parent port PortChannel2
ERR swss#orchagent: :- meta_generic_validation_objlist: SAI_ROUTER_INTERFACE_ATTR_PORT_ID:SAI_ATTR_VALUE_TYPE_OBJECT_ID object on list [0] is NULL, but not allowed
ERR swss#orchagent: :- addRouterIntfs: Failed to create router interface PortChannel2.21, rv:-5
INFO swss#supervisord: orchagent terminate called after throwing an instance of 'std::runtime_error'
INFO swss#supervisord: orchagent   what():  Failed to create router interface.
INFO swss#supervisor-proc-exit-listener: Process orchagent exited unxepectedly. Terminating supervisor...

Describe the results you expected:
Portchannel with subinterfaces should be created, same as Ethernet with subinterfaces.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions