[rfc1213] Interface MIB add l3 vlan interfaces & aggregate rif counters#133
[rfc1213] Interface MIB add l3 vlan interfaces & aggregate rif counters#133qiluo-msft merged 18 commits intosonic-net:masterfrom
Conversation
Signed-off-by: Mykola Faryma <mykolaf@mellanox.com>
Signed-off-by: Mykola Faryma <mykolaf@mellanox.com>
Signed-off-by: Mykola Faryma <mykolaf@mellanox.com>
Signed-off-by: Mykola Faryma <mykolaf@mellanox.com>
Signed-off-by: Mykola Faryma <mykolaf@mellanox.com>
Signed-off-by: Mykola Faryma <mykolaf@mellanox.com>
Signed-off-by: Mykola Faryma <mykolaf@mellanox.com>
Signed-off-by: Mykola Faryma <mykolaf@mellanox.com>
|
Could you resolve the conflicts? |
| mibs.logger.warning("SyncD 'COUNTERS_DB' missing attribute '{}'.".format(e)) | ||
| return None | ||
|
|
||
| def aggregate_counters(self): |
There was a problem hiding this comment.
aggregate_counters [](start = 8, length = 18)
Is it only for Mellanox SKUs? #Closed
There was a problem hiding this comment.
This will only be executed if COUNTERS DB contains the rif counters. If RIF counters is not supported/disabled we will have unchanged behavior.
| for lag_member in self.lag_name_if_name_map[self.oid_lag_name_map[oid]]: | ||
| counter_value += self._get_counter(mibs.get_index(lag_member), table_name) | ||
|
|
||
| # import pdb; pdb.set_trace() |
There was a problem hiding this comment.
remove dead code #Closed
| sai_lag_id = self.lag_sai_map[self.oid_lag_name_map[oid]] | ||
| sai_lag_rif_id = self.port_rif_map[sai_lag_id] | ||
| if sai_lag_rif_id in self.rif_port_map: | ||
| _table_name = bytes(getattr(table_name, 'name', table_name), 'utf-8') |
There was a problem hiding this comment.
_table_name [](start = 16, length = 11)
leading underscore is for private class member. Could you use other name convention? #Closed
Signed-off-by: Mykola Faryma <mykolaf@mellanox.com>
Signed-off-by: Mykola Faryma <mykolaf@mellanox.com>
Signed-off-by: Mykola Faryma <mykolaf@mellanox.com>
Signed-off-by: Mykola Faryma <mykolaf@mellanox.com>
Signed-off-by: Mykola Faryma <mykolaf@mellanox.com>
Signed-off-by: Mykola Faryma <mykolaf@mellanox.com>
|
Retest this please |
|
Test can not pass until sonic-net/sonic-py-swsssdk#78 is merged. |
|
Retest this please |
|
Test did not pass even after sonic-net/sonic-py-swsssdk#78 merged. |
Signed-off-by: Mykola Faryma <mykolaf@mellanox.com>
Signed-off-by: Mykola Faryma <mykolaf@mellanox.com>
|
Hi @qiluo-msft, I added the mock data for the test to pass. Can we go forward and merge this? |
…f counters (sonic-net#133)" This reverts commit 253f58e. Signed-off-by: SuvarnaMeenakshi <sumeenak@microsoft.com>
…rs (#169) **- What I did** Rework based on #133 and feedback #148. **- How I did it** - merge #133 with upstream master. - Fix UnavailableDataError when RIF counters are not enabled. - Make RIF keys in maps unique in multi asic env. **- How to verify it** - Disable rif counters - restart swss - snmpwalk - Verify no UnavailableDataError in logs - Verify port counters are returned - Enable rif counters - snmpwalk - Verify no error in logs - Verify error in/out counters are aggregated for rif ports and portchannels - Verify VLAN RIF counters are present in the MIB. **- Description for the changelog** Added support for aggregated router interface counters and L3 VLAN counters to RFC1213 MIB.
…rs (sonic-net#133) * [rfc1213] Interface MIB add l3 vlan interfaces * [rfc1213] aggregate rifcounters on top of l2 counters * fix issues * add unittests * add mock data * cleanup * lag rif fixes * add more unittests * update test_mibs.py * fix comments * update namespace/test_mibs.py unittest * [rfc1213] add vlan interface admin_status * only aggregate errors * add vlan subinterface unitttests * fix init_sync_d_lag * update namespace mib test * add namespace mock table data
…f counters (sonic-net#133)" (sonic-net#151) This reverts commit 253f58e. Signed-off-by: SuvarnaMeenakshi <sumeenak@microsoft.com>
…rs (sonic-net#169) **- What I did** Rework based on sonic-net#133 and feedback sonic-net#148. **- How I did it** - merge sonic-net#133 with upstream master. - Fix UnavailableDataError when RIF counters are not enabled. - Make RIF keys in maps unique in multi asic env. **- How to verify it** - Disable rif counters - restart swss - snmpwalk - Verify no UnavailableDataError in logs - Verify port counters are returned - Enable rif counters - snmpwalk - Verify no error in logs - Verify error in/out counters are aggregated for rif ports and portchannels - Verify VLAN RIF counters are present in the MIB. **- Description for the changelog** Added support for aggregated router interface counters and L3 VLAN counters to RFC1213 MIB.
- What I did
- How I did it
- How to verify it
- Description for the changelog
According to HLD
Implies #4655
Relies on #78