Skip to content
Snippets Groups Projects
Commit e3a5ddf6 authored by Igor Ignác's avatar Igor Ignác
Browse files

Merge branch '55-add-attributes-gui_access-and-os_type-to-routerdto' into 'master'

Add missing attributes. Modified mapper accordingly.

Closes #55

See merge request muni-kypo-crp/frontend-angular/components/kypo2-angular-topology!53
parents 37d0f58a 57823ce2
Branches
Tags
No related merge requests found
12.1.1 Mapper modification according to additional attributes.
12.1.0 Removed generation of Spice console. Added preload of Spice consoles for all VMs in topology. Open CLI and open GUI added based on os type and gui access of host.
12.0.3 Update topology appearance with new special nodes, add legend
12.0.2 Added option to open VM CLI or GUI using Apache Guacamole.
......
import { ImageDTO } from './image-dto.model';
export class HostDTO {
name: string;
image: ImageDTO;
os_type?: string;
gui_access?: boolean;
}
export class ImageDTO {
name: string;
default_user: string;
os_type: string;
os_distro: string;
}
export class RouterDTO {
cidr: string;
name: string;
os_type?: string;
gui_access?: boolean;
}
......@@ -104,6 +104,8 @@ export class TopologyMapper {
const result = new RouterNode();
result.cidr = routerDTO.cidr;
result.name = routerDTO.name;
result.osType = routerDTO.os_type;
result.guiAccess = routerDTO.gui_access;
result.physicalRole = NodePhysicalRoleEnum.Router;
return result;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment