Esempio n. 1
0
 public UpdateVIFCommand(IMainWindow mainWindow, VM vm, VIF vif, Proxy_VIF proxyVIF)
     : base(mainWindow, vm)
 {
     _vm = vm;
     _vif = vif;
     _proxyVIF = proxyVIF;
 }
Esempio n. 2
0
 public CreateVIFAction(VM vm, Proxy_VIF proxyVIF)
     : base(vm.Connection, String.Format(Messages.ACTION_VIF_CREATING_TITLE, vm.Name))
 {
     _proxyVIF = proxyVIF;
     VM = vm;
     XmlRpcMethods.ForEach( method => ApiMethodsToRoleCheck.Add( method ) );
 }
Esempio n. 3
0
 public Response<string> create(string session, Proxy_VIF vif)
 {
     Db.Table t = proxy.db.Tables["vif"];
     string opaque_ref = proxy.CreateOpaqueRef();
     Db.Row r = t.Rows.Add(opaque_ref);
     r.PopulateFrom(DbProxy.ProxyToHashtable(typeof(Proxy_VIF), vif));
     proxy.SendCreateObject("vif", opaque_ref);
     return new Response<string>(opaque_ref);
 }
Esempio n. 4
0
 /// <summary>
 /// Update the VIF
 /// </summary>
 /// <param name="vm"></param>
 /// <param name="vif"></param>
 /// <param name="proxyVIF"></param>
 public UpdateVIFAction(VM vm, VIF vif, Proxy_VIF proxyVIF)
     : base(vm.Connection, String.Format(Messages.ACTION_VIF_UPDATING_TITLE, vif.NetworkName(), vm.Name))
 {
     this.vif = vif;
     VM = vm;
     this.proxyVIF = proxyVIF;
     Initialise();
     xmlRpcMethods.ForEach(method => ApiMethodsToRoleCheck.Add(method));
 }
Esempio n. 5
0
 public CreateVIFCommand(IMainWindow mainWindow, VM vm, Proxy_VIF proxyVIF)
     : base(mainWindow, vm)
 {
     _vm = vm;
     _proxyVIF = proxyVIF;
 }