mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-01-31 00:23:57 +00:00
Discover server as remote server
This commit is contained in:
parent
7410455bdf
commit
494b292238
@ -157,6 +157,7 @@ describe('ServerDiscoveryComponent', () => {
|
||||
expect(component.discoveredServer).toBeNull();
|
||||
expect(mockedServerService.servers[0].ip).toEqual('199.111.111.1');
|
||||
expect(mockedServerService.servers[0].name).toEqual('199.111.111.1');
|
||||
expect(mockedServerService.servers[0].location).toEqual('remote');
|
||||
}));
|
||||
});
|
||||
|
||||
|
@ -86,6 +86,8 @@ export class ServerDiscoveryComponent implements OnInit {
|
||||
server.name = server.ip;
|
||||
}
|
||||
|
||||
server.location = 'remote';
|
||||
|
||||
this.serverService.create(server).then((created: Server) => {
|
||||
this.serverDatabase.addServer(created);
|
||||
this.discoveredServer = null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user