adt-apjc / YAP

BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Extend catalog selection for dCloud environment bases on session XML input #209

Open marumer opened 7 months ago

marumer commented 7 months ago

dCloud injects a demo session XML on the demo controller that can be used to customise the YAP setup and for example to pass the catalog location.

The dCloud controller is the window machine and the file is located in c:/dcloud/session.xml. YAP, running a separate machine, can retrieve the file with scp ' scp administrator@198.18.133.252:\session.xml .'

In this example for the "Cisco IOS XR Enablement - Multilab Sandbox v1" demo, the mandatory option selected was "SRv6_MPLS_Interworking_Gateway_Lab" that get passed in the session.xml

   -<scenario>
      <id>38</id>
      <name>srv6_mpls</name>
      <display>SRv6_MPLS_Interworking_Gateway_Lab</display>
   </scenario>
image
<?xml version="1.0" encoding="UTF-8"?>
-<session> 
   <datacenter>SJC</datacenter>
   <id>386439</id>
   <creds>Mzg2NDM5Om1hcnVtZXI6ODcyYzMwZGItNzllMC00ZWQ4LThmZWItMWQwODFkZTY1NzBh</creds>
   <owner>marumer</owner>
   <vpod>1478</vpod>
   <anycpwd>e6570a</anycpwd>
   -<devices>
      -<device>
         <id>2841</id>
         <name>sp_sjc_ttg_srv6_temp</name>
      </device>
   </devices>
   <translations> </translations>
   <dids/>
   -<scenario>
      <id>38</id>
      <name>srv6_mpls</name>
      <display>SRv6_MPLS_Interworking_Gateway_Lab</display>
   </scenario>
</session>