root.put("node", nodeArray);
return root;
} catch (JSONException e) {
- e.printStackTrace();
+ // TODO Auto-generated catch block
+ log.error(e);
}
return null;
}
nodeJson.put("port", ports);
return nodeJson;
} catch (Exception e) {
- e.printStackTrace();
+ // TODO Auto-generated catch block
+ log.error(e);
}
return null;
}
root.put("external-network-mac", externalMacs);
return root;
} catch (JSONException e) {
- e.printStackTrace();
+ // TODO Auto-generated catch block
+ log.error(e);
}
return null;
}
root.put("host", hostArray);
return root;
} catch (JSONException e) {
- e.printStackTrace();
+ // TODO Auto-generated catch block
+ log.error(e);
}
return null;
}
}
root.put("link", linkArray);
} catch (JSONException e) {
- e.printStackTrace();
+ // TODO Auto-generated catch block
+ log.error(e);
return null;
}
return root;
linkNode.put("loss-rate", "");
return linkNode;
} catch (JSONException e) {
- e.printStackTrace();
+ // TODO Auto-generated catch block
+ log.error(e);
}
}
return null;