Changes between Version 2 and Version 3 of Internal/WiMAX/WiMAXAPI/aSliceMgmt
- Timestamp:
- Feb 17, 2010, 4:56:56 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Internal/WiMAX/WiMAXAPI/aSliceMgmt
v2 v3 13 13 These set of functions are responsible for managing context isolation of multiple slices through the use of virtual machines. 14 14 15 === createSLICE (used_id, passwd, image_type)===15 === createSLICE === 16 16 This function is invoked from a gateway machine by the slice user to instantiate its slice for experimentation. 17 - Uses the slice user_id and passwd to create a new SLICE.18 - image_type is an integer which specifies the distribution to be loaded on the disk of the virtual machine.19 image_type = 1 loads a Debian disk image20 image_type = 2 loads a Ubuntu disk image21 image_type = 3 loads a Fedora disk image22 - Return the IP of the SLICE to which the user can log into (when successful)23 - Failure returns “nok”, success returns SLICEID.24 17 25 === destroySLICE (user_id, passwd, IP) === 26 - Destroy instance of the SLICE for which IP is assigned 27 - SLICE is destroyed only after authentication of the used_id and passwd. 28 - Returns status “ok” if command was executed correctly, “nok” otherwise. 18 {{{ 19 createSLICE(used_id, passwd, image_type) 20 - user_id is username used in slice creation. 21 - passwd is password used for slice creation. 22 - image_type is an integer which specifies the distribution to be loaded on the disk of the virtual machine. 23 image_type = 1 loads a Debian disk image 24 image_type = 2 loads a Ubuntu disk image 25 image_type = 3 loads a Fedora disk image 26 - Return the IP of the SLICE to which the user can log into (when successful) 27 - Failure returns “nok”, success returns SLICEID. 28 }}} 29 29 30 === startSLICE ( SLICEID, user_id, passwd, IP) === 31 This functionality can be invoked after the the createSLICE() call is made. 30 === destroySLICE === 31 This function is used to destroy instance of the SLICE for which IP is assigned; slice is destroyed only after authentication of the used_id and passwd. 32 33 {{{ 34 destroySLICE(user_id, passwd, IP) 35 - user_id is username used in slice creation. 36 - passwd is password used for slice creation. 37 - Returns status “ok” if command was executed correctly, “nok” otherwise. 38 }}} 39 40 === startSLICE === 41 This function is used to start the slice; can be invoked only after the the createSLICE() call is made. 42 43 {{{ 44 startSLICE ( SLICEID, user_id, passwd, IP) 32 45 - Start instance of the SLICE for which IP is assigned 33 46 - SLICE instance is started only if the instance is owned by the issuing user. 34 47 - Returns status “ok” if command was executed correctly, “nok” otherwise. 48 }}} 35 49 36 === stopSLICE ( SLICEID, user_id, passwd, IP) === 50 === stopSLICE === 51 52 {{{ 53 stopSLICE ( SLICEID, user_id, passwd, IP) 37 54 - Stop instance of the SLICE for which IP is assigned 38 55 - SLICE instance is stopped only if the instance is owned by the issuing user. 39 56 - Returns status “ok” if command was executed correctly, “nok” otherwise. 57 }}} 40 58 41 59 === setSLICEParams (SLICEID, used_id, passwd) ===