1. How to view components of active slice

How to view components of active slice

Home Forums FABRIC General Questions and Discussion How to view components of active slice

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #515
    Gautam Sirdeshmukh
    Participant

      Currently, users are able to view all available resources on the FABRIC framework through the advertised_topology method. However, I cannot seem to figure out how to view the specific resources of an active slice, even after digging through the API documentation on GitHub.

      Is there a method or workaround to view the components of an active slice? Any pointers would be appreciated. Thanks!

      • This topic was modified 3 years, 3 months ago by Paul Ruth.
      • This topic was modified 3 years, 3 months ago by Paul Ruth.
      #517
      Paul Ruth
      Keymaster
        #518
        Gautam Sirdeshmukh
        Participant

          Unfortunately not, the sliver_status method provides the name, site, capacities, states, and a lot of other information but not what the actual components are…

          #520
          Komal Thareja
          Participant

            User should be able to get to the respective node components using the get_slice API:

            `

            status, topology = slice_manager.get_slice(slice_id=slice_id)

            if status == Status.OK:
            print(f”Properties: {topology.nodes[‘n1’].list_properties()}”)
            print(f”Components: {topology.nodes[‘n1’].components}”)
            print(f”Component: {topology.nodes[‘n1’].components[‘c1’]}”)
            else:
            print(f”Failed to get slice topology: {topology}”)

            `

            However, I think we have bug which is preventing the components from being listed in the output of the above snippet.

            #551
            Gautam Sirdeshmukh
            Participant

              I think I have figured it out by using the topology.nodes structure with the get_property() method — I have included a screenshot showing some sample calls.

              Thank you for your pointers!

            Viewing 5 posts - 1 through 5 (of 5 total)
            • You must be logged in to reply to this topic.
            FABRIC invites nominations for four awards recognizing innovative uses of FABRIC resources—Best Published Paper, Best FABRIC Matrix, Best FABRIC Experiment, and Best Classroom Use of FABRIC — submissions due by **Monday, February 24 at 11:59 PM ET**, and winners announced at KNIT10. [>>>Submit Form](https://docs.google.com/forms/d/e/1FAIpQLSeTp3i2iDhB7bHgN8ryMxZci8ya87yjeQd7_JMZImUodNinVA/viewform)

            KNIT10 Call for Demos Now Open! Submit your demo by **February 24**. [>>>Submit Demo](https://docs.google.com/forms/d/e/1FAIpQLScRIWqHliNP3DFWBCnalYN_fBXJXVM0PpP9YWWJdSebC95TvA/viewform)
            FABRIC invites nominations for four awards recognizing innovative uses of FABRIC resources—Best Published Paper, Best FABRIC Matrix, Best FABRIC Experiment, and Best Classroom Use of FABRIC — submissions due by **Monday, February 24 at 11:59 PM ET**, and winners announced at KNIT10. [>>>Submit Form](https://docs.google.com/forms/d/e/1FAIpQLSeTp3i2iDhB7bHgN8ryMxZci8ya87yjeQd7_JMZImUodNinVA/viewform)

            KNIT10 Call for Demos Now Open! Submit your demo by **February 24**. [>>>Submit Demo](https://docs.google.com/forms/d/e/1FAIpQLScRIWqHliNP3DFWBCnalYN_fBXJXVM0PpP9YWWJdSebC95TvA/viewform)