def VerifyProtocolSessionsNgpfPy(protocol): # This API will return a list of protocol session status on the specified protocol # handle. The protocol handle is provided when you create a new protocol. # # For example: # ospf handle: ::ixNet::OBJ-/topology:1/deviceGroup:1/ethernet:1/ipv4:1/ospfv2:1 # bgp handle: ::ixNet::OBJ-/topology:1/deviceGroup:1/ethernet:1/ipv4:1/bgpIpv4Peer:1 return ixNet.getAttribute(protocol, '-sessionStatus')