- This topic has 2 replies, 2 voices, and was last updated 5 days, 2 hours ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Home › Forums › FABRIC General Questions and Discussion › PTP capability check
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
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
thanks Komal – that worked