+/*
+ * Copyright (c) 2014, 2015 Red Hat, Inc. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+
package org.opendaylight.ovsdb.northbound;
+import com.fasterxml.jackson.databind.SerializationFeature;
import java.util.Set;
import javax.ws.rs.GET;
this.databaseName = databaseName;
objectMapper = new ObjectMapper();
objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
-
+ objectMapper.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false);
}
private DatabaseSchema getDatabaseSchema (String databaseName) {
- OvsdbClient client = NodeResource.getOvsdbConnection(nodeId, this);
+ OvsdbClient client = NodeResource.getOvsdbClient(nodeId, this);
return client.getDatabaseSchema(databaseName);
}
return ciTableName;
}
for (String tableName : tables) {
- if (tableName.equalsIgnoreCase(ciTableName)) return tableName;
+ if (tableName.equalsIgnoreCase(ciTableName)) {
+ return tableName;
+ }
}
return ciTableName;
}