Opensync AP State Tables row parsing

This commit is contained in:
Mike Hansen
2020-04-21 14:03:50 -04:00
parent a8da88a77d
commit 07ff7d2008

View File

@@ -1205,8 +1205,11 @@ public class OvsdbDao {
Row row = ru.getNew();
if (row != null) {
OpensyncAPVIFState apVifState = new OpensyncAPVIFState();
apVifState.setBridge(row.getStringColumn("bridge"));
apVifState.setBtm(row.getIntegerColumn("btm").intValue());
apVifState.setBridge(getSingleValueFromSet(row, "bridge"));
Long btmTmp = getSingleValueFromSet(row, "btm");
if (btmTmp == null)
btmTmp = 0L;
apVifState.setBtm(btmTmp.intValue());
Long channelTmp = getSingleValueFromSet(row, "channel");
if (channelTmp == null) {
channelTmp = -1L;