-
Type: Bug
-
Status: Resolved (View Workflow)
-
Priority: Medium
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: VOLTHA v2.3
-
Component/s: onos-olt
-
Labels:None
-
Story Points:2
-
Epic Link:
When you disable an ONU in BBSim the port correctly goes down in ONOS (with this patch https://gerrit.opencord.org/#/c/17827/, pre-built image: "matteoscandolo/bbsim:onu-lifecycle") but the flows are still present in ONOS, VOLTHA and BBSim:
karaf@root > ports 22:57:15
id=of:00000a0a0a0a0a00, available=true, local-status=connected 1m30s ago, role=MASTER, type=SWITCH, mfr=VOLTHA Project, hw=open_pon, sw=open_pon, serial=BBSIM_OLT_0, chassis=a0a0a0a0a00, driver=voltha, channelId=192.168.144.1:60214, managementAddress=192.168.144.1, protocol=OF_13
port=16, state=disabled, type=fiber, speed=0 , adminState=disabled, portMac=08:00:00:00:00:10, portName=BBSM00000001-1
port=17, state=disabled, type=fiber, speed=0 , adminState=enabled, portMac=08:00:00:00:00:11, portName=BBSM00000001-2
port=18, state=disabled, type=fiber, speed=0 , adminState=enabled, portMac=08:00:00:00:00:12, portName=BBSM00000001-3
port=19, state=disabled, type=fiber, speed=0 , adminState=enabled, portMac=08:00:00:00:00:13, portName=BBSM00000001-4
port=1048576, state=enabled, type=fiber, speed=0 , adminState=enabled, portMac=0a:0a:0a:0a:0a:00, portName=nni-1048576
karaf@root > flows -s 22:57:24
deviceId=of:00000a0a0a0a0a00, flowRuleCount=2
ADDED, bytes=0, packets=0, table=0, priority=10000, selector=[IN_PORT:16, ETH_TYPE:eapol, VLAN_VID:4091], treatment=[immediate=[OUTPUT:CONTROLLER], meter=METER:1, metadata=METADATA:ffb004000000000/0]
ADDED, bytes=0, packets=0, table=0, priority=10000, selector=[IN_PORT:1048576, ETH_TYPE:lldp], treatment=[immediate=[OUTPUT:CONTROLLER]]
$ voltctl device list ID TYPE ROOT PARENTID SERIALNUMBER VLAN ADMINSTATE OPERSTATUS CONNECTSTATUS 6e5b254377cc2b006aef1c78 openolt true 0a0a0a0a0a00 BBSIM_OLT_0 0 ENABLED ACTIVE REACHABLE a7c10eac4ee5402e5fc4d514 brcm_openomci_onu false 6e5b254377cc2b006aef1c78 BBSM00000001 0 ENABLED DISCOVERED UNREACHABLE $ voltctl device flows a7c10eac4ee5402e5fc4d514 ID TABLEID PRIORITY COOKIE INPORT ETHTYPE TUNNELID UNSUPPORTEDINSTRUCTION SETVLANID PUSHVLANID OUTPUT 2951f26bbdd21f95 0 10000 ~5225ac92 16 0x888e 16 6,2 4091 0x8100 536870912
root@978e0d58d3ad:/app# bbsimctl onu list PONPORTID ID PORTNO SERIALNUMBER HWADDRESS STAG CTAG OPERSTATE INTERNALSTATE 0 1 16 BBSM00000001 2e:60:70:13:00:01 900 900 down disabled root@978e0d58d3ad:/app# bbsimctl onu flows BBSM00000001 ONU Flows: +----------------+--------+--------+---------+-----------+----------+----------+-----------------+------------+--------------------------------+---------------------------+----------+-------------------+---------+ | ACCESS INTF ID | ONU ID | UNI ID | FLOW ID | FLOW TYPE | ETH TYPE | ALLOC ID | NETWORK INTF ID | GEMPORT ID | CLASSIFIER | ACTION | PRIORITY | COOKIE | PORT NO | +----------------+--------+--------+---------+-----------+----------+----------+-----------------+------------+--------------------------------+---------------------------+----------+-------------------+---------+ | 0 | 1 | 0 | 2 | upstream | 888e | 1024 | 0 | 1024 | o_vid:4091 o_pbits:255 | cmd:<trap_to_host:true > | 10000 | 53480246953225362 | 16 | | | | | | | | | | | eth_type:34958 | | | | | | | | | | | | | | | pkt_tag_type:"single_tag" | | | | | +----------------+--------+--------+---------+-----------+----------+----------+-----------------+------------+--------------------------------+---------------------------+----------+-------------------+---------+
Flows should be removed if a port goes down and pushed again when it comes back up
- relates to
-
VOL-2687 BBSim - Can't powercycle an ONU
- Resolved
# | Subject | Branch | Project | Status | CR | V |
---|---|---|---|---|---|---|
18010,2 | VOL-2729 Handling eapol remove for disabled port in the case where subscriber has not been provisioned yet | master | olt | Status: MERGED | +2 | +1 |