/** * @param areaId * @param selectedAreaType * @return OSPFAreaConfiguration * @throws IOException */ public static OSPFAreaConfiguration getOSPFAreaConfiguration( String areaId, AreaType selectedAreaType) throws IOException { OSPFArea area = new OSPFArea(); area.setAreaID(ModelHelper.ipv4StringToLong(areaId)); area.setAreaType(selectedAreaType); OSPFAreaConfiguration areaConfig = new OSPFAreaConfiguration(); areaConfig.setOSPFArea(area); return areaConfig; }
/** * @param areaId * @return * @return OSPFArea * @throws IOException */ public static OSPFArea getOSPFArea(String areaId) throws IOException { OSPFArea area = new OSPFArea(); area.setAreaID(ModelHelper.ipv4StringToLong(areaId)); return area; }