1. Komal Thareja

Komal Thareja

Forum Replies Created

Viewing 466 post (of 466 total)
  • Author
    Posts
  • in reply to: How to view components of active slice #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.

    Viewing 466 post (of 466 total)