Esempio n. 1
0
  /**
   * @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;
  }
Esempio n. 2
0
 /**
  * @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;
 }