1. PTP capability check

PTP capability check

Home Forums FABRIC General Questions and Discussion PTP capability check

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #9885
    Nirmala Shenoy
    Participant

      hello,

      I use PTP in my reserved VMs for better time precision. I used the following script

      nodes = slice.get_nodes()
      for node in nodes:
      print (f”{node.get_name()} is hosted on {node.get_host()}”)
      ad = fablib.get_site_advertisement(node.get_site())
      print (f”PTP Capable: { ad.flags.ptp}\n”)

      and I get the error

      AttributeError                            Traceback (most recent call last)
      Cell In[21], line 4
            1 nodes = slice.get_nodes()
            2 for node in nodes:
            3     print (f"{node.get_name()} is hosted on {node.get_host()}")
      ----> 4     ad = fablib.get_site_advertisement(node.get_site())
            5     print (f"PTP Capable: { ad.flags.ptp}\n")
      
      AttributeError: 'FablibManager' object has no attribute 'get_site_advertisement'
      
      these scripts worked for me earlier. because of this error I am unable to install the required software 
      
      thanks
      Nirmala
      #9886
      Komal Thareja
      Moderator

        Hi Nirmala,

        Could you please use the following code instead?

        nodes = slice.get_nodes()
        resources = fablib.get_resources() # ResourcesV2

        for node in nodes:
        site = node.get_site()
        print(f”{node.get_name()} is hosted on {node.get_host()}”)
        print(f”PTP Capable: {resources.get_ptp_capable(site)}\n”)

        Best,

        Komal

        #9887
        Nirmala Shenoy
        Participant

          thanks Komal – that worked

        Viewing 3 posts - 1 through 3 (of 3 total)
        • You must be logged in to reply to this topic.