Examples of VRF


Examples of jnipap.VRF

   * @param id VRF ID to search for
   * @return VRF with id `id`
   */
  public static OVRF getVRF(OConnection conn, int id) throws JnipapException {

    VRF s = VRF.get((jnipap.Connection)conn, new Integer(id));
    return toSQLObj(s);

  }
View Full Code Here

Examples of jnipap.VRF

   * Test adding and getting a VRF
   */
  @Test
  public void addGetVrf() {

    VRF vrf1, vrf2;

    vrf1 = new VRF();
    vrf1.rt = "123:456";
    vrf1.name = "Test VRF #1";
    vrf1.description = "A test VRF.";

    try {
      vrf1.save(this.connection);
      vrf2 = VRF.get(this.connection, vrf1.id);
    } catch (JnipapException e) {
      fail("Operation resulted in exception " + e.getMessage());
      return;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.