These forums are a place for learning, helping and sharing experiences with others about any of our products. Feel free to ask a question and get answers from our community and our most advanced users.
Note that these are public forums - anyone can view the discussions here.
VISIT OUR DIFFERENT FORUMS:
Announcements > | |
CloudShell > | TestShell > |
Developers > | BI (Business Inteligence) > |
This is where you can suggest your ideas to help and improve the product for everyone.
Please make sure to read the following article before posting a new idea, to get more information about the required information and ideas lifecycle.
Feel free to vote and comment on other ideas to promote them.
Thanks for everyone who suggested the ideas and voted for them.
Find, download and share integrations that can extend and enhance the CloudShell experience.
Integrations have several levels:
Certified - Officially tested and supported by Quali.
Preview - Provides a sneak peek to what the Quali team is developing. Officially supported by Quali. Feel free to experiment and comment, but please take into consideration that it is not yet tested and released.
Community - Integrations shared by community users. Feel free to look into what other users have contributed, please take into consideration that these integrations are not tested by Quali.
To learn more about creating Shells and integrating with CloudShell, use the following links:
CloudShell's Dev Guide > | Configuration Management > |
Getting started with Shells > | Extending CloudShell with Cloud Providers > |
Getting started with Orchestration > | API Guide > |
To share your integration, follow the instructions in this guide >.
I have written an L1 Python driver where the mapping commands work if after reservation start the user selects the Link's connect command on a Topology / Blueprint. However, the commands are not called on reservation / sandbox start. I can see in the driver logs that cloudshell is just not calling the L1 driver. The driver is properly configured and connected, autoload works. As I said the link connect calls the command, and on reservation / sandbox end the map_clear_to L1 function is called. I have tested this on cloudshell 7.1 and 8.0, with the same results. This did work at one time, but since has started to fail.
Logs for CONNECT using link connect:
2017-08-01 05:29:31,519 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request 2017-08-01 05:29:31,519 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request 2017-08-01 05:29:31,519 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request ---------------------------- 2017-08-01 05:29:31,519 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request Got command Login 2017-08-01 05:29:31,519 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request >>> 2017-08-01 05:29:31,519 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request 2017-08-01 05:29:31,519 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request Start command login 2017-08-01 05:29:31,520 [INFO]: COMMANDS.dicon_mos_commands request_handler - login Begin 2017-08-01 05:29:31,522 [INFO]: COMMANDS.dicon_mos_commands request_handler - login http://schemas.qualisystems.com/ResourceManagement/DriverCommands.xsd" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" CommandId="fc98b947-0cda-400d-88ca-c254cc63a50c" CommandName="Login"> 2017-08-01 05:29:31,522 [INFO]: COMMANDS.dicon_mos_commands request_handler - login 2017-08-01 05:29:31,522 [INFO]: COMMANDS.dicon_mos_commands request_handler - login 172.28.125.63 2017-08-01 05:29:31,522 [INFO]: COMMANDS.dicon_mos_commands request_handler - login mporterfield 2017-08-01 05:29:31,522 [INFO]: COMMANDS.dicon_mos_commands request_handler - login 2017-08-01 05:29:31,522 [INFO]: COMMANDS.dicon_mos_commands request_handler - login 2017-08-01 05:29:31,522 [INFO]: COMMANDS.dicon_mos_commands request_handler - login 2017-08-01 05:29:31,522 [INFO]: COMMANDS.dicon_mos_commands request_handler - login 2017-08-01 05:29:31,522 [INFO]: COMMANDS.dicon_mos_commands request_handler - login None 2017-08-01 05:29:31,523 [INFO]: COMMANDS.dicon_mos_commands request_handler - login end 2017-08-01 05:29:31,523 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request 2017-08-01 05:29:31,523 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request 2017-08-01 05:29:31,523 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request ---------------------------- 2017-08-01 05:29:31,523 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request Got command GetStateId 2017-08-01 05:29:31,523 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request >>> 2017-08-01 05:29:31,523 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request 2017-08-01 05:29:31,525 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request Start command getstateid 2017-08-01 05:29:31,526 [INFO]: COMMANDS.dicon_mos_commands request_handler - get_state_id http://schemas.qualisystems.com/ResourceManagement/DriverCommands.xsd" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" CommandId="0720868c-b7d3-4c07-af40-909f16cd0a48" CommandName="GetStateId"> 2017-08-01 05:29:31,526 [INFO]: COMMANDS.dicon_mos_commands request_handler - get_state_id 2017-08-01 05:29:31,526 [INFO]: COMMANDS.dicon_mos_commands request_handler - get_state_id 2017-08-01 05:29:31,526 [INFO]: COMMANDS.dicon_mos_commands request_handler - get_state_id 2017-08-01 05:29:31,621 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request 2017-08-01 05:29:31,621 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request 2017-08-01 05:29:31,621 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request ---------------------------- 2017-08-01 05:29:31,621 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request Got command MapBidi 2017-08-01 05:29:31,621 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request >>> 2017-08-01 05:29:31,621 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request 2017-08-01 05:29:31,621 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request Start command mapbidi 2017-08-01 05:29:31,625 [INFO]: COMMANDS.dicon_mos_commands request_handler - map_bidi http://schemas.qualisystems.com/ResourceManagement/DriverCommands.xsd" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" CommandId="c07fa0ff-772b-4b2b-9953-eebdd667b1ba" CommandName="MapBidi"> 2017-08-01 05:29:31,625 [INFO]: COMMANDS.dicon_mos_commands request_handler - map_bidi 2017-08-01 05:29:31,625 [INFO]: COMMANDS.dicon_mos_commands request_handler - map_bidi 172.28.125.63/2 2017-08-01 05:29:31,625 [INFO]: COMMANDS.dicon_mos_commands request_handler - map_bidi 172.28.125.63/5 2017-08-01 05:29:31,625 [INFO]: COMMANDS.dicon_mos_commands request_handler - map_bidi 2017-08-01 05:29:31,625 [INFO]: COMMANDS.dicon_mos_commands request_handler - map_bidi 2017-08-01 05:29:31,625 [INFO]: COMMANDS.dicon_mos_commands request_handler - map_bidi 2017-08-01 05:29:31,625 [INFO]: COMMANDS.dicon_mos_commands request_handler - map_bidi 2017-08-01 05:29:35,693 [INFO]: COMMANDS.dicon_mos_commands request_handler - map_bidi None RESERVATION END: 2017-08-01 05:33:27,388 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request 2017-08-01 05:33:27,388 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request 2017-08-01 05:33:27,388 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request ---------------------------- 2017-08-01 05:33:27,388 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request Got command Login 2017-08-01 05:33:27,388 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request >>> 2017-08-01 05:33:27,388 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request 2017-08-01 05:33:27,390 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request Start command login 2017-08-01 05:33:27,391 [INFO]: COMMANDS.dicon_mos_commands request_handler - login Begin 2017-08-01 05:33:27,392 [INFO]: COMMANDS.dicon_mos_commands request_handler - login http://schemas.qualisystems.com/ResourceManagement/DriverCommands.xsd" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" CommandId="72973dc9-55af-44de-86e0-707e1a2d1a68" CommandName="Login"> 2017-08-01 05:33:27,392 [INFO]: COMMANDS.dicon_mos_commands request_handler - login 2017-08-01 05:33:27,392 [INFO]: COMMANDS.dicon_mos_commands request_handler - login 172.28.125.63 2017-08-01 05:33:27,392 [INFO]: COMMANDS.dicon_mos_commands request_handler - login mporterfield 2017-08-01 05:33:27,392 [INFO]: COMMANDS.dicon_mos_commands request_handler - login 2017-08-01 05:33:27,392 [INFO]: COMMANDS.dicon_mos_commands request_handler - login 2017-08-01 05:33:27,392 [INFO]: COMMANDS.dicon_mos_commands request_handler - login 2017-08-01 05:33:27,392 [INFO]: COMMANDS.dicon_mos_commands request_handler - login 2017-08-01 05:33:27,392 [INFO]: COMMANDS.dicon_mos_commands request_handler - login None 2017-08-01 05:33:27,394 [INFO]: COMMANDS.dicon_mos_commands request_handler - login end 2017-08-01 05:33:27,394 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request 2017-08-01 05:33:27,394 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request 2017-08-01 05:33:27,394 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request ---------------------------- 2017-08-01 05:33:27,394 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request Got command GetStateId 2017-08-01 05:33:27,394 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request >>> 2017-08-01 05:33:27,394 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request 2017-08-01 05:33:27,394 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request Start command getstateid 2017-08-01 05:33:27,397 [INFO]: COMMANDS.dicon_mos_commands request_handler - get_state_id http://schemas.qualisystems.com/ResourceManagement/DriverCommands.xsd" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" CommandId="a236fc7e-8ce0-41ae-bfc6-992cca8eba51" CommandName="GetStateId"> 2017-08-01 05:33:27,397 [INFO]: COMMANDS.dicon_mos_commands request_handler - get_state_id 2017-08-01 05:33:27,397 [INFO]: COMMANDS.dicon_mos_commands request_handler - get_state_id 2017-08-01 05:33:27,397 [INFO]: COMMANDS.dicon_mos_commands request_handler - get_state_id 2017-08-01 05:33:27,493 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request 2017-08-01 05:33:27,493 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request 2017-08-01 05:33:27,493 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request ---------------------------- 2017-08-01 05:33:27,493 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request Got command MapClearTo 2017-08-01 05:33:27,493 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request >>> 2017-08-01 05:33:27,493 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request 2017-08-01 05:33:27,493 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request Start command mapclearto 2017-08-01 05:33:27,496 [INFO]: COMMANDS.dicon_mos_commands request_handler - map_clear_to http://schemas.qualisystems.com/ResourceManagement/DriverCommands.xsd" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" CommandId="b6286b69-9675-4022-b751-286a06e7dc35" CommandName="MapClearTo"> 2017-08-01 05:33:27,496 [INFO]: COMMANDS.dicon_mos_commands request_handler - map_clear_to 2017-08-01 05:33:27,496 [INFO]: COMMANDS.dicon_mos_commands request_handler - map_clear_to 172.28.125.63/5 2017-08-01 05:33:27,496 [INFO]: COMMANDS.dicon_mos_commands request_handler - map_clear_to 172.28.125.63/2 2017-08-01 05:33:27,496 [INFO]: COMMANDS.dicon_mos_commands request_handler - map_clear_to 2017-08-01 05:33:27,496 [INFO]: COMMANDS.dicon_mos_commands request_handler - map_clear_to 2017-08-01 05:33:27,496 [INFO]: COMMANDS.dicon_mos_commands request_handler - map_clear_to 2017-08-01 05:33:29,496 [INFO]: COMMANDS.dicon_mos_commands request_handler - map_clear_to None 2017-08-01 05:33:29,497 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request 2017-08-01 05:33:29,497 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request 2017-08-01 05:33:29,497 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request ---------------------------- 2017-08-01 05:33:29,497 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request Got command MapClearTo 2017-08-01 05:33:29,497 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request >>> 2017-08-01 05:33:29,497 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request 2017-08-01 05:33:29,499 [INFO]: COMMANDS.dicon_mos_commands request_manager - parse_request Start command mapclearto 2017-08-01 05:33:29,500 [INFO]: COMMANDS.dicon_mos_commands request_handler - map_clear_to http://schemas.qualisystems.com/ResourceManagement/DriverCommands.xsd" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" CommandId="db21e399-5a58-4caa-a1ba-02b3e279d426" CommandName="MapClearTo"> 2017-08-01 05:33:29,500 [INFO]: COMMANDS.dicon_mos_commands request_handler - map_clear_to 2017-08-01 05:33:29,500 [INFO]: COMMANDS.dicon_mos_commands request_handler - map_clear_to 172.28.125.63/2 2017-08-01 05:33:29,500 [INFO]: COMMANDS.dicon_mos_commands request_handler - map_clear_to 172.28.125.63/5 2017-08-01 05:33:29,500 [INFO]: COMMANDS.dicon_mos_commands request_handler - map_clear_to 2017-08-01 05:33:29,500 [INFO]: COMMANDS.dicon_mos_commands request_handler - map_clear_to 2017-08-01 05:33:29,500 [INFO]: COMMANDS.dicon_mos_commands request_handler - map_clear_to 2017-08-01 05:33:31,502 [INFO]: COMMANDS.dicon_mos_commands request_handler - map_clear_to None
You can see from the logs above that the map_clear_to is called on Reservation End, since we have a connection that we have created from the link /connect, but we never even have a login called on reservation start.
Answer by Yaniv Kalsky · Aug 01, 2017 at 05:49 PM
Hi @mporterf
FYI, next time you can add the log as a file attachment so it will be easier to read the message itself.
Anyway, the default setup is not handling L1 routes, they are only connecting the L2 routes.
So, you'll have to modify the default setup to handle that.
One way would be to get the routes in the reservation and send an api command to connect them all - similar to the code you can find here:
The other API you can use is "ActivateTopology" that will cause all the routes in the reservation to get connected.
You are correct that the server is calling the clear commands if there was any connection made during the reservation.
Yaniv
Answer by Marcus Porterfield · Sep 12, 2017 at 01:46 PM
Well I finally got the Layer 1 mappings to map at Reservation Start. I tried what you suggested about the loop to get the endpoints and routes but for some reason that I could never figure out, I could never get the endpoints, it just never found them.
So I tried your other suggestion ActivateTopology. As you can see below all routes are mapped. The PON-4-3 route is through my DiCon Optical Layer 1 driver and the two routes off of the Ixia are through an MRV.
Here is the code:
print 'Beginning setup...' from cloudshell.helpers.scripts import cloudshell_scripts_helpers as helpers from cloudshell.api.cloudshell_api import * print 'Imports done' api = helpers.get_api_session() print 'api session' reservation_id = helpers.get_reservation_context_details().id reservation_details = api.GetReservationDetails(reservation_id) Blueprint_name = helpers.get_reservation_context_details().environment_name api.ActivateTopology(reservation_id,Blueprint_name) print 'L1 routes mapped'
Answer by Marcus Porterfield · Sep 12, 2017 at 02:04 PM
Sorry about the poor code block above
Hope this is better:
These forums are a place for learning, helping and sharing experiences with others about any of our products. Feel free to ask a question and get answers from our community and our most advanced users.
Note that these are public forums - anyone can view the discussions here.
Announcements | |
CloudShell | TestShell |
Developers | BI (Business Inteligence) |
This is where you can suggest your ideas to help and improve the product for everyone.
Please make sure to read the following article before posting a new idea, to get more information about the required information and ideas lifecycle.
Feel free to vote and comment on other ideas to promote them.
Thanks for everyone who suggested the ideas and voted for them.
Find, download and share integrations that can extend and enhance the CloudShell experience.
Integrations have several levels:
Certified - Officially tested and supported by Quali.
Preview - Provides a sneak peek to what the Quali team is developing. Officially supported by Quali. Feel free to experiment and comment, but please take into consideration that it is not yet tested and released.
Community - Integrations shared by community users. Feel free to look into what other users have contributed, please take into consideration that these integrations are not tested by Quali.
To learn more about creating Shells and integrating with CloudShell, use the following links:
CloudShell's Dev Guide | Configuration Management |
Getting started with Shells | Extending CloudShell with Cloud Providers |
Getting started with Orchestration | API Guide |
To share your integration, follow the instructions in this guide.
How to power-on device from get_inventory() command in resource driver? 2 Answers
Adding behavior to a resource 2 Answers
How to troubleshoot resource driver command get_inventory() using PyCharm? 2 Answers
Dynamic List Option on Python Resource Driver 1 Answer
Show active snapshot name in Get Snapshot driver output? 0 Answers