Exemplo 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;
  }
Exemplo 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;
 }