Skip to content

Commit 6414df7

Browse files
author
alexquali
committed
Added logo. Fixed driver structure and properties type
1 parent 78e44e5 commit 6414df7

12 files changed

Lines changed: 16 additions & 18 deletions

File tree

ServerTechnology.png

13.9 KB
Loading

cloudshell/server_tech/helpers/__init__.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

shell-definition.yaml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ node_types:
1919
properties:
2020
Web API Port:
2121
description: Port to use for REST API connection.
22-
type: Numeric
22+
type: integer
2323
default: 443
2424
Protocol Scheme:
2525
type: string
2626
default: "https"
27-
description:
27+
description: Switch protocol between HTTP or HTTPS
2828
constraints:
2929
- valid_values: [ http, https]
3030
capabilities:
@@ -46,15 +46,16 @@ node_types:
4646
Password:
4747
description: The password is required by some CLI protocols such as Telnet and is required according to the device configuration.
4848
type: cloudshell.datatypes.Password
49-
Protocol Scheme:
50-
type: string
51-
default: "https"
52-
description:
53-
constraints:
54-
- valid_values: [ http, https]
49+
Protocol Scheme:
50+
type: string
51+
default: "https"
52+
description:
53+
constraints:
54+
- valid_values: [ http, https]
5555
Web API Port:
5656
description: Port to use for REST API connection.
57-
type: Numeric
57+
default: 443
58+
type: integer
5859
artifacts:
5960
icon:
6061
file: ServerTechnology.png

src/driver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
from cloudshell.shell.standards.pdu.driver_interface import PDUResourceDriverInterface
1515
from cloudshell.shell.standards.pdu.resource_config import RESTAPIPDUResourceConfig
1616

17-
from cloudshell.server_tech.flows.server_tech_autoload_flow import (
17+
from server_tech.flows.server_tech_autoload_flow import (
1818
ServerTechAutoloadFlow
1919
)
20-
from cloudshell.server_tech.flows.server_tech_state_flow import (
20+
from server_tech.flows.server_tech_state_flow import (
2121
ServerTechOutletsStateFlow
2222
)
2323

cloudshell/server_tech/flows/server_tech_autoload_flow.py renamed to src/server_tech/flows/server_tech_autoload_flow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from typing import TYPE_CHECKING
55

66
from cloudshell.shell.flows.autoload.basic_flow import AbstractAutoloadFlow
7-
from cloudshell.server_tech.handlers.rest_api_handler import ServerTechAPI
7+
from server_tech.handlers.rest_api_handler import ServerTechAPI
88

99
if TYPE_CHECKING:
1010
from cloudshell.shell.core.driver_context import AutoLoadDetails

cloudshell/server_tech/flows/server_tech_state_flow.py renamed to src/server_tech/flows/server_tech_state_flow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
from attrs import define
44
from typing import TYPE_CHECKING
55

6-
from cloudshell.server_tech.handlers.rest_api_handler import ServerTechAPI
7-
from cloudshell.server_tech.helpers.errors import NotSupportedServerTechError
6+
from server_tech.handlers.rest_api_handler import ServerTechAPI
7+
from server_tech.helpers.errors import NotSupportedServerTechError
88

99
if TYPE_CHECKING:
1010
from cloudshell.shell.standards.pdu.resource_config import RESTAPIPDUResourceConfig

cloudshell/server_tech/handlers/rest_api_handler.py renamed to src/server_tech/handlers/rest_api_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import urllib3
1313

1414

15-
from cloudshell.server_tech.helpers.errors import (
15+
from server_tech.helpers.errors import (
1616
BaseServerTechError,
1717
RESTAPIServerTechError,
1818
)

0 commit comments

Comments
 (0)