private string Init_CreateAddress(string ip, string iface) { var address = new Objects.Ip.IpAddress() { Address = ip, Interface = iface }; Connection.Save(address); return(address.Id); }
public void Create_IpAddress_With_Highlevel_API() { const string IP = "192.168.1.1/24"; const string INTERFACE = "ether1"; Cleanup_DeteleAddressByIp(IP); var address = new Objects.Ip.IpAddress() { Address = IP, Interface = INTERFACE }; Connection.Save(address); Assert.IsNotNull(address.Id); Assert.AreNotEqual(string.Empty, address.Id); //cleanup Cleanup_DeteleAddressByIp(IP); }
private string Init_CreateAddress(string ip, string iface) { var address = new Objects.Ip.IpAddress() { Address = ip, Interface = iface }; Connection.Save(address); return address.Id; }