body
stringlengths
26
98.2k
body_hash
int64
-9,222,864,604,528,158,000
9,221,803,474B
docstring
stringlengths
1
16.8k
path
stringlengths
5
230
name
stringlengths
1
96
repository_name
stringlengths
7
89
lang
stringclasses
1 value
body_without_docstring
stringlengths
20
98.2k
@property def Srv6Ttl(self): '\n Returns\n -------\n - number: TTL value to be used in outer IPv6 header\n ' return self._get_attribute(self._SDM_ATT_MAP['Srv6Ttl'])
1,051,509,747,795,214,800
Returns ------- - number: TTL value to be used in outer IPv6 header
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
Srv6Ttl
rfrye-github/ixnetwork_restpy
python
@property def Srv6Ttl(self): '\n Returns\n -------\n - number: TTL value to be used in outer IPv6 header\n ' return self._get_attribute(self._SDM_ATT_MAP['Srv6Ttl'])
@property def StackedLayers(self): '\n Returns\n -------\n - list(str[None | /api/v1/sessions/1/ixnetwork/topology/.../*]): List of secondary (many to one) child layer protocols\n ' return self._get_attribute(self._SDM_ATT_MAP['StackedLayers'])
7,704,826,039,902,809,000
Returns ------- - list(str[None | /api/v1/sessions/1/ixnetwork/topology/.../*]): List of secondary (many to one) child layer protocols
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
StackedLayers
rfrye-github/ixnetwork_restpy
python
@property def StackedLayers(self): '\n Returns\n -------\n - list(str[None | /api/v1/sessions/1/ixnetwork/topology/.../*]): List of secondary (many to one) child layer protocols\n ' return self._get_attribute(self._SDM_ATT_MAP['StackedLayers'])
@property def StaleTime(self): '\n Returns\n -------\n - obj(uhd_restpy.multivalue.Multivalue): Stale Time/ LLGR Stale Time\n ' from uhd_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['StaleTime']))
7,042,877,247,568,596,000
Returns ------- - obj(uhd_restpy.multivalue.Multivalue): Stale Time/ LLGR Stale Time
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
StaleTime
rfrye-github/ixnetwork_restpy
python
@property def StaleTime(self): '\n Returns\n -------\n - obj(uhd_restpy.multivalue.Multivalue): Stale Time/ LLGR Stale Time\n ' from uhd_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['StaleTime']))
@property def StateCounts(self): '\n Returns\n -------\n - dict(total:number,notStarted:number,down:number,up:number): A list of values that indicates the total number of sessions, the number of sessions not started, the number of sessions down and the number of sessions that are up\n ' return self._get_attribute(self._SDM_ATT_MAP['StateCounts'])
-5,732,457,233,327,877,000
Returns ------- - dict(total:number,notStarted:number,down:number,up:number): A list of values that indicates the total number of sessions, the number of sessions not started, the number of sessions down and the number of sessions that are up
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
StateCounts
rfrye-github/ixnetwork_restpy
python
@property def StateCounts(self): '\n Returns\n -------\n - dict(total:number,notStarted:number,down:number,up:number): A list of values that indicates the total number of sessions, the number of sessions not started, the number of sessions down and the number of sessions that are up\n ' return self._get_attribute(self._SDM_ATT_MAP['StateCounts'])
@property def Status(self): '\n Returns\n -------\n - str(configured | error | mixed | notStarted | started | starting | stopping): Running status of associated network element. Once in Started state, protocol sessions will begin to negotiate.\n ' return self._get_attribute(self._SDM_ATT_MAP['Status'])
5,526,379,517,243,926,000
Returns ------- - str(configured | error | mixed | notStarted | started | starting | stopping): Running status of associated network element. Once in Started state, protocol sessions will begin to negotiate.
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
Status
rfrye-github/ixnetwork_restpy
python
@property def Status(self): '\n Returns\n -------\n - str(configured | error | mixed | notStarted | started | starting | stopping): Running status of associated network element. Once in Started state, protocol sessions will begin to negotiate.\n ' return self._get_attribute(self._SDM_ATT_MAP['Status'])
@property def TcpWindowSizeInBytes(self): '\n Returns\n -------\n - obj(uhd_restpy.multivalue.Multivalue): TCP Window Size (in bytes)\n ' from uhd_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['TcpWindowSizeInBytes']))
9,201,888,219,865,167,000
Returns ------- - obj(uhd_restpy.multivalue.Multivalue): TCP Window Size (in bytes)
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
TcpWindowSizeInBytes
rfrye-github/ixnetwork_restpy
python
@property def TcpWindowSizeInBytes(self): '\n Returns\n -------\n - obj(uhd_restpy.multivalue.Multivalue): TCP Window Size (in bytes)\n ' from uhd_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['TcpWindowSizeInBytes']))
@property def Ttl(self): '\n Returns\n -------\n - obj(uhd_restpy.multivalue.Multivalue): TTL\n ' from uhd_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['Ttl']))
-3,078,843,420,990,399,000
Returns ------- - obj(uhd_restpy.multivalue.Multivalue): TTL
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
Ttl
rfrye-github/ixnetwork_restpy
python
@property def Ttl(self): '\n Returns\n -------\n - obj(uhd_restpy.multivalue.Multivalue): TTL\n ' from uhd_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['Ttl']))
@property def Type(self): '\n Returns\n -------\n - obj(uhd_restpy.multivalue.Multivalue): Type\n ' from uhd_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['Type']))
-1,219,937,227,958,330,600
Returns ------- - obj(uhd_restpy.multivalue.Multivalue): Type
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
Type
rfrye-github/ixnetwork_restpy
python
@property def Type(self): '\n Returns\n -------\n - obj(uhd_restpy.multivalue.Multivalue): Type\n ' from uhd_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['Type']))
@property def UdpPortEndValue(self): '\n Returns\n -------\n - number: UDP Port End Value\n ' return self._get_attribute(self._SDM_ATT_MAP['UdpPortEndValue'])
1,268,026,709,184,003,000
Returns ------- - number: UDP Port End Value
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
UdpPortEndValue
rfrye-github/ixnetwork_restpy
python
@property def UdpPortEndValue(self): '\n Returns\n -------\n - number: UDP Port End Value\n ' return self._get_attribute(self._SDM_ATT_MAP['UdpPortEndValue'])
@property def UdpPortStartValue(self): '\n Returns\n -------\n - number: UDP Port Start Value\n ' return self._get_attribute(self._SDM_ATT_MAP['UdpPortStartValue'])
-5,466,797,533,185,916,000
Returns ------- - number: UDP Port Start Value
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
UdpPortStartValue
rfrye-github/ixnetwork_restpy
python
@property def UdpPortStartValue(self): '\n Returns\n -------\n - number: UDP Port Start Value\n ' return self._get_attribute(self._SDM_ATT_MAP['UdpPortStartValue'])
@property def UpdateInterval(self): '\n Returns\n -------\n - obj(uhd_restpy.multivalue.Multivalue): Update Interval\n ' from uhd_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['UpdateInterval']))
-1,546,995,874,909,837,600
Returns ------- - obj(uhd_restpy.multivalue.Multivalue): Update Interval
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
UpdateInterval
rfrye-github/ixnetwork_restpy
python
@property def UpdateInterval(self): '\n Returns\n -------\n - obj(uhd_restpy.multivalue.Multivalue): Update Interval\n ' from uhd_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['UpdateInterval']))
@property def UptimeInSec(self): '\n Returns\n -------\n - obj(uhd_restpy.multivalue.Multivalue): Uptime in Seconds\n ' from uhd_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['UptimeInSec']))
-2,839,499,605,827,020,300
Returns ------- - obj(uhd_restpy.multivalue.Multivalue): Uptime in Seconds
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
UptimeInSec
rfrye-github/ixnetwork_restpy
python
@property def UptimeInSec(self): '\n Returns\n -------\n - obj(uhd_restpy.multivalue.Multivalue): Uptime in Seconds\n ' from uhd_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['UptimeInSec']))
@property def UseGatewayAsDutIp(self): '\n Returns\n -------\n - obj(uhd_restpy.multivalue.Multivalue): If enabled, Gateway IP will be used as DUT IP.\n ' from uhd_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['UseGatewayAsDutIp']))
-3,651,885,689,086,783,500
Returns ------- - obj(uhd_restpy.multivalue.Multivalue): If enabled, Gateway IP will be used as DUT IP.
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
UseGatewayAsDutIp
rfrye-github/ixnetwork_restpy
python
@property def UseGatewayAsDutIp(self): '\n Returns\n -------\n - obj(uhd_restpy.multivalue.Multivalue): If enabled, Gateway IP will be used as DUT IP.\n ' from uhd_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['UseGatewayAsDutIp']))
@property def UseStaticPolicy(self): '\n Returns\n -------\n - bool: If enabled then SRTE policy will be advertised\n ' return self._get_attribute(self._SDM_ATT_MAP['UseStaticPolicy'])
-5,904,848,736,858,331,000
Returns ------- - bool: If enabled then SRTE policy will be advertised
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
UseStaticPolicy
rfrye-github/ixnetwork_restpy
python
@property def UseStaticPolicy(self): '\n Returns\n -------\n - bool: If enabled then SRTE policy will be advertised\n ' return self._get_attribute(self._SDM_ATT_MAP['UseStaticPolicy'])
@property def VplsEnableNextHop(self): '\n Returns\n -------\n - obj(uhd_restpy.multivalue.Multivalue): VPLS Enable Next Hop\n ' from uhd_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['VplsEnableNextHop']))
8,470,820,968,476,757,000
Returns ------- - obj(uhd_restpy.multivalue.Multivalue): VPLS Enable Next Hop
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
VplsEnableNextHop
rfrye-github/ixnetwork_restpy
python
@property def VplsEnableNextHop(self): '\n Returns\n -------\n - obj(uhd_restpy.multivalue.Multivalue): VPLS Enable Next Hop\n ' from uhd_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['VplsEnableNextHop']))
@property def VplsNextHop(self): '\n Returns\n -------\n - obj(uhd_restpy.multivalue.Multivalue): VPLS Next Hop\n ' from uhd_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['VplsNextHop']))
-3,495,207,913,001,675,300
Returns ------- - obj(uhd_restpy.multivalue.Multivalue): VPLS Next Hop
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
VplsNextHop
rfrye-github/ixnetwork_restpy
python
@property def VplsNextHop(self): '\n Returns\n -------\n - obj(uhd_restpy.multivalue.Multivalue): VPLS Next Hop\n ' from uhd_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['VplsNextHop']))
def update(self, AdvertiseEvpnRoutesForOtherVtep=None, AutoGenSegmentLeftValue=None, BgpLsNoOfASPathSegments=None, BgpLsNoOfClusters=None, BgpLsNoOfCommunities=None, CapabilityIpv4MplsAddPath=None, CapabilityIpv6MplsAddPath=None, ConnectedVia=None, CopyTtl=None, EnSRv6DataPlane=None, EnableEpeTraffic=None, EnableReducedEncapsulation=None, EthernetSegmentsCountV6=None, IpVrfToIpVrfType=None, Ipv4MplsCapability=None, Ipv4MultipleMplsLabelsCapability=None, Ipv6MplsCapability=None, Ipv6MultipleMplsLabelsCapability=None, MaxSidPerSrh=None, MplsLabelsCountForIpv4MplsRoute=None, MplsLabelsCountForIpv6MplsRoute=None, Multiplier=None, Name=None, NoOfEpePeers=None, NoOfExtendedCommunities=None, NoOfUserDefinedAfiSafi=None, NumberColorFlexAlgoMapping=None, NumberFlowSpecRangeV4=None, NumberFlowSpecRangeV6=None, NumberSRTEPolicies=None, SRGBRangeCount=None, SegmentLeftValue=None, Srv6Ttl=None, StackedLayers=None, UdpPortEndValue=None, UdpPortStartValue=None, UseStaticPolicy=None): 'Updates bgpIpv6Peer resource on the server.\n\n This method has some named parameters with a type: obj (Multivalue).\n The Multivalue class has documentation that details the possible values for those named parameters.\n\n Args\n ----\n - AdvertiseEvpnRoutesForOtherVtep (bool): Advertise EVPN routes for other VTEPS\n - AutoGenSegmentLeftValue (bool): If enabled then Segment Left field value will be auto generated\n - BgpLsNoOfASPathSegments (number): Number Of AS Path Segments Per Route Range\n - BgpLsNoOfClusters (number): Number of Clusters\n - BgpLsNoOfCommunities (number): Number of Communities\n - CapabilityIpv4MplsAddPath (bool): IPv4 MPLS Add Path Capability\n - CapabilityIpv6MplsAddPath (bool): IPv6 MPLS Add Path Capability\n - ConnectedVia (list(str[None | /api/v1/sessions/1/ixnetwork/topology/.../*])): List of layers this layer is used to connect with to the wire.\n - CopyTtl (bool): Copy TTL from customer packet to outer IPv6 header\n - EnSRv6DataPlane (bool): Ingress Peer Supports SRv6 VPN\n - EnableEpeTraffic (bool): Enable EPE Traffic\n - EnableReducedEncapsulation (bool): Enable Reduced Encapsulation in Data-Plane for SRv6\n - EthernetSegmentsCountV6 (number): Number of Ethernet Segments\n - IpVrfToIpVrfType (str(interfaceLess | interfacefullWithCorefacingIRB | interfacefullWithUnnumberedCorefacingIRB)): IP-VRF-to-IP-VRF Model Type\n - Ipv4MplsCapability (bool): IPv4 MPLS Capability: AFI=1, SAFI=4\n - Ipv4MultipleMplsLabelsCapability (bool): IPv4 Multiple MPLS Labels Capability: AFI=1, SAFI=4\n - Ipv6MplsCapability (bool): IPv6 MPLS Capability: AFI=2, SAFI=4\n - Ipv6MultipleMplsLabelsCapability (bool): IPv6 Multiple MPLS Labels Capability: AFI=2, SAFI=4\n - MaxSidPerSrh (number): Max number of SIDs a SRH can have\n - MplsLabelsCountForIpv4MplsRoute (number): MPLS Labels Count For IPv4 MPLS Route\n - MplsLabelsCountForIpv6MplsRoute (number): MPLS Labels Count For IPv6 MPLS Route\n - Multiplier (number): Number of layer instances per parent instance (multiplier)\n - Name (str): Name of NGPF element, guaranteed to be unique in Scenario\n - NoOfEpePeers (number): Number of EPE Peers\n - NoOfExtendedCommunities (number): Number of Extended Communities\n - NoOfUserDefinedAfiSafi (number): Count of User defined AFI SAFI\n - NumberColorFlexAlgoMapping (number): Number of Color/Flex Algo Mapping Entries\n - NumberFlowSpecRangeV4 (number): Number of IPv4 Flow Spec Ranges\n - NumberFlowSpecRangeV6 (number): Number of IPv6 Flow Spec Ranges\n - NumberSRTEPolicies (number): Count of SR TE Policies\n - SRGBRangeCount (number): SRGB Range Count\n - SegmentLeftValue (number): Segment Left value to be used in top SRH. This zero index based value start from egress node.\n - Srv6Ttl (number): TTL value to be used in outer IPv6 header\n - StackedLayers (list(str[None | /api/v1/sessions/1/ixnetwork/topology/.../*])): List of secondary (many to one) child layer protocols\n - UdpPortEndValue (number): UDP Port End Value\n - UdpPortStartValue (number): UDP Port Start Value\n - UseStaticPolicy (bool): If enabled then SRTE policy will be advertised\n\n Raises\n ------\n - ServerError: The server has encountered an uncategorized error condition\n ' return self._update(self._map_locals(self._SDM_ATT_MAP, locals()))
-3,796,560,607,323,993,000
Updates bgpIpv6Peer resource on the server. This method has some named parameters with a type: obj (Multivalue). The Multivalue class has documentation that details the possible values for those named parameters. Args ---- - AdvertiseEvpnRoutesForOtherVtep (bool): Advertise EVPN routes for other VTEPS - AutoGenSegmentLeftValue (bool): If enabled then Segment Left field value will be auto generated - BgpLsNoOfASPathSegments (number): Number Of AS Path Segments Per Route Range - BgpLsNoOfClusters (number): Number of Clusters - BgpLsNoOfCommunities (number): Number of Communities - CapabilityIpv4MplsAddPath (bool): IPv4 MPLS Add Path Capability - CapabilityIpv6MplsAddPath (bool): IPv6 MPLS Add Path Capability - ConnectedVia (list(str[None | /api/v1/sessions/1/ixnetwork/topology/.../*])): List of layers this layer is used to connect with to the wire. - CopyTtl (bool): Copy TTL from customer packet to outer IPv6 header - EnSRv6DataPlane (bool): Ingress Peer Supports SRv6 VPN - EnableEpeTraffic (bool): Enable EPE Traffic - EnableReducedEncapsulation (bool): Enable Reduced Encapsulation in Data-Plane for SRv6 - EthernetSegmentsCountV6 (number): Number of Ethernet Segments - IpVrfToIpVrfType (str(interfaceLess | interfacefullWithCorefacingIRB | interfacefullWithUnnumberedCorefacingIRB)): IP-VRF-to-IP-VRF Model Type - Ipv4MplsCapability (bool): IPv4 MPLS Capability: AFI=1, SAFI=4 - Ipv4MultipleMplsLabelsCapability (bool): IPv4 Multiple MPLS Labels Capability: AFI=1, SAFI=4 - Ipv6MplsCapability (bool): IPv6 MPLS Capability: AFI=2, SAFI=4 - Ipv6MultipleMplsLabelsCapability (bool): IPv6 Multiple MPLS Labels Capability: AFI=2, SAFI=4 - MaxSidPerSrh (number): Max number of SIDs a SRH can have - MplsLabelsCountForIpv4MplsRoute (number): MPLS Labels Count For IPv4 MPLS Route - MplsLabelsCountForIpv6MplsRoute (number): MPLS Labels Count For IPv6 MPLS Route - Multiplier (number): Number of layer instances per parent instance (multiplier) - Name (str): Name of NGPF element, guaranteed to be unique in Scenario - NoOfEpePeers (number): Number of EPE Peers - NoOfExtendedCommunities (number): Number of Extended Communities - NoOfUserDefinedAfiSafi (number): Count of User defined AFI SAFI - NumberColorFlexAlgoMapping (number): Number of Color/Flex Algo Mapping Entries - NumberFlowSpecRangeV4 (number): Number of IPv4 Flow Spec Ranges - NumberFlowSpecRangeV6 (number): Number of IPv6 Flow Spec Ranges - NumberSRTEPolicies (number): Count of SR TE Policies - SRGBRangeCount (number): SRGB Range Count - SegmentLeftValue (number): Segment Left value to be used in top SRH. This zero index based value start from egress node. - Srv6Ttl (number): TTL value to be used in outer IPv6 header - StackedLayers (list(str[None | /api/v1/sessions/1/ixnetwork/topology/.../*])): List of secondary (many to one) child layer protocols - UdpPortEndValue (number): UDP Port End Value - UdpPortStartValue (number): UDP Port Start Value - UseStaticPolicy (bool): If enabled then SRTE policy will be advertised Raises ------ - ServerError: The server has encountered an uncategorized error condition
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
update
rfrye-github/ixnetwork_restpy
python
def update(self, AdvertiseEvpnRoutesForOtherVtep=None, AutoGenSegmentLeftValue=None, BgpLsNoOfASPathSegments=None, BgpLsNoOfClusters=None, BgpLsNoOfCommunities=None, CapabilityIpv4MplsAddPath=None, CapabilityIpv6MplsAddPath=None, ConnectedVia=None, CopyTtl=None, EnSRv6DataPlane=None, EnableEpeTraffic=None, EnableReducedEncapsulation=None, EthernetSegmentsCountV6=None, IpVrfToIpVrfType=None, Ipv4MplsCapability=None, Ipv4MultipleMplsLabelsCapability=None, Ipv6MplsCapability=None, Ipv6MultipleMplsLabelsCapability=None, MaxSidPerSrh=None, MplsLabelsCountForIpv4MplsRoute=None, MplsLabelsCountForIpv6MplsRoute=None, Multiplier=None, Name=None, NoOfEpePeers=None, NoOfExtendedCommunities=None, NoOfUserDefinedAfiSafi=None, NumberColorFlexAlgoMapping=None, NumberFlowSpecRangeV4=None, NumberFlowSpecRangeV6=None, NumberSRTEPolicies=None, SRGBRangeCount=None, SegmentLeftValue=None, Srv6Ttl=None, StackedLayers=None, UdpPortEndValue=None, UdpPortStartValue=None, UseStaticPolicy=None): 'Updates bgpIpv6Peer resource on the server.\n\n This method has some named parameters with a type: obj (Multivalue).\n The Multivalue class has documentation that details the possible values for those named parameters.\n\n Args\n ----\n - AdvertiseEvpnRoutesForOtherVtep (bool): Advertise EVPN routes for other VTEPS\n - AutoGenSegmentLeftValue (bool): If enabled then Segment Left field value will be auto generated\n - BgpLsNoOfASPathSegments (number): Number Of AS Path Segments Per Route Range\n - BgpLsNoOfClusters (number): Number of Clusters\n - BgpLsNoOfCommunities (number): Number of Communities\n - CapabilityIpv4MplsAddPath (bool): IPv4 MPLS Add Path Capability\n - CapabilityIpv6MplsAddPath (bool): IPv6 MPLS Add Path Capability\n - ConnectedVia (list(str[None | /api/v1/sessions/1/ixnetwork/topology/.../*])): List of layers this layer is used to connect with to the wire.\n - CopyTtl (bool): Copy TTL from customer packet to outer IPv6 header\n - EnSRv6DataPlane (bool): Ingress Peer Supports SRv6 VPN\n - EnableEpeTraffic (bool): Enable EPE Traffic\n - EnableReducedEncapsulation (bool): Enable Reduced Encapsulation in Data-Plane for SRv6\n - EthernetSegmentsCountV6 (number): Number of Ethernet Segments\n - IpVrfToIpVrfType (str(interfaceLess | interfacefullWithCorefacingIRB | interfacefullWithUnnumberedCorefacingIRB)): IP-VRF-to-IP-VRF Model Type\n - Ipv4MplsCapability (bool): IPv4 MPLS Capability: AFI=1, SAFI=4\n - Ipv4MultipleMplsLabelsCapability (bool): IPv4 Multiple MPLS Labels Capability: AFI=1, SAFI=4\n - Ipv6MplsCapability (bool): IPv6 MPLS Capability: AFI=2, SAFI=4\n - Ipv6MultipleMplsLabelsCapability (bool): IPv6 Multiple MPLS Labels Capability: AFI=2, SAFI=4\n - MaxSidPerSrh (number): Max number of SIDs a SRH can have\n - MplsLabelsCountForIpv4MplsRoute (number): MPLS Labels Count For IPv4 MPLS Route\n - MplsLabelsCountForIpv6MplsRoute (number): MPLS Labels Count For IPv6 MPLS Route\n - Multiplier (number): Number of layer instances per parent instance (multiplier)\n - Name (str): Name of NGPF element, guaranteed to be unique in Scenario\n - NoOfEpePeers (number): Number of EPE Peers\n - NoOfExtendedCommunities (number): Number of Extended Communities\n - NoOfUserDefinedAfiSafi (number): Count of User defined AFI SAFI\n - NumberColorFlexAlgoMapping (number): Number of Color/Flex Algo Mapping Entries\n - NumberFlowSpecRangeV4 (number): Number of IPv4 Flow Spec Ranges\n - NumberFlowSpecRangeV6 (number): Number of IPv6 Flow Spec Ranges\n - NumberSRTEPolicies (number): Count of SR TE Policies\n - SRGBRangeCount (number): SRGB Range Count\n - SegmentLeftValue (number): Segment Left value to be used in top SRH. This zero index based value start from egress node.\n - Srv6Ttl (number): TTL value to be used in outer IPv6 header\n - StackedLayers (list(str[None | /api/v1/sessions/1/ixnetwork/topology/.../*])): List of secondary (many to one) child layer protocols\n - UdpPortEndValue (number): UDP Port End Value\n - UdpPortStartValue (number): UDP Port Start Value\n - UseStaticPolicy (bool): If enabled then SRTE policy will be advertised\n\n Raises\n ------\n - ServerError: The server has encountered an uncategorized error condition\n ' return self._update(self._map_locals(self._SDM_ATT_MAP, locals()))
def add(self, AdvertiseEvpnRoutesForOtherVtep=None, AutoGenSegmentLeftValue=None, BgpLsNoOfASPathSegments=None, BgpLsNoOfClusters=None, BgpLsNoOfCommunities=None, CapabilityIpv4MplsAddPath=None, CapabilityIpv6MplsAddPath=None, ConnectedVia=None, CopyTtl=None, EnSRv6DataPlane=None, EnableEpeTraffic=None, EnableReducedEncapsulation=None, EthernetSegmentsCountV6=None, IpVrfToIpVrfType=None, Ipv4MplsCapability=None, Ipv4MultipleMplsLabelsCapability=None, Ipv6MplsCapability=None, Ipv6MultipleMplsLabelsCapability=None, MaxSidPerSrh=None, MplsLabelsCountForIpv4MplsRoute=None, MplsLabelsCountForIpv6MplsRoute=None, Multiplier=None, Name=None, NoOfEpePeers=None, NoOfExtendedCommunities=None, NoOfUserDefinedAfiSafi=None, NumberColorFlexAlgoMapping=None, NumberFlowSpecRangeV4=None, NumberFlowSpecRangeV6=None, NumberSRTEPolicies=None, SRGBRangeCount=None, SegmentLeftValue=None, Srv6Ttl=None, StackedLayers=None, UdpPortEndValue=None, UdpPortStartValue=None, UseStaticPolicy=None): 'Adds a new bgpIpv6Peer resource on the server and adds it to the container.\n\n Args\n ----\n - AdvertiseEvpnRoutesForOtherVtep (bool): Advertise EVPN routes for other VTEPS\n - AutoGenSegmentLeftValue (bool): If enabled then Segment Left field value will be auto generated\n - BgpLsNoOfASPathSegments (number): Number Of AS Path Segments Per Route Range\n - BgpLsNoOfClusters (number): Number of Clusters\n - BgpLsNoOfCommunities (number): Number of Communities\n - CapabilityIpv4MplsAddPath (bool): IPv4 MPLS Add Path Capability\n - CapabilityIpv6MplsAddPath (bool): IPv6 MPLS Add Path Capability\n - ConnectedVia (list(str[None | /api/v1/sessions/1/ixnetwork/topology/.../*])): List of layers this layer is used to connect with to the wire.\n - CopyTtl (bool): Copy TTL from customer packet to outer IPv6 header\n - EnSRv6DataPlane (bool): Ingress Peer Supports SRv6 VPN\n - EnableEpeTraffic (bool): Enable EPE Traffic\n - EnableReducedEncapsulation (bool): Enable Reduced Encapsulation in Data-Plane for SRv6\n - EthernetSegmentsCountV6 (number): Number of Ethernet Segments\n - IpVrfToIpVrfType (str(interfaceLess | interfacefullWithCorefacingIRB | interfacefullWithUnnumberedCorefacingIRB)): IP-VRF-to-IP-VRF Model Type\n - Ipv4MplsCapability (bool): IPv4 MPLS Capability: AFI=1, SAFI=4\n - Ipv4MultipleMplsLabelsCapability (bool): IPv4 Multiple MPLS Labels Capability: AFI=1, SAFI=4\n - Ipv6MplsCapability (bool): IPv6 MPLS Capability: AFI=2, SAFI=4\n - Ipv6MultipleMplsLabelsCapability (bool): IPv6 Multiple MPLS Labels Capability: AFI=2, SAFI=4\n - MaxSidPerSrh (number): Max number of SIDs a SRH can have\n - MplsLabelsCountForIpv4MplsRoute (number): MPLS Labels Count For IPv4 MPLS Route\n - MplsLabelsCountForIpv6MplsRoute (number): MPLS Labels Count For IPv6 MPLS Route\n - Multiplier (number): Number of layer instances per parent instance (multiplier)\n - Name (str): Name of NGPF element, guaranteed to be unique in Scenario\n - NoOfEpePeers (number): Number of EPE Peers\n - NoOfExtendedCommunities (number): Number of Extended Communities\n - NoOfUserDefinedAfiSafi (number): Count of User defined AFI SAFI\n - NumberColorFlexAlgoMapping (number): Number of Color/Flex Algo Mapping Entries\n - NumberFlowSpecRangeV4 (number): Number of IPv4 Flow Spec Ranges\n - NumberFlowSpecRangeV6 (number): Number of IPv6 Flow Spec Ranges\n - NumberSRTEPolicies (number): Count of SR TE Policies\n - SRGBRangeCount (number): SRGB Range Count\n - SegmentLeftValue (number): Segment Left value to be used in top SRH. This zero index based value start from egress node.\n - Srv6Ttl (number): TTL value to be used in outer IPv6 header\n - StackedLayers (list(str[None | /api/v1/sessions/1/ixnetwork/topology/.../*])): List of secondary (many to one) child layer protocols\n - UdpPortEndValue (number): UDP Port End Value\n - UdpPortStartValue (number): UDP Port Start Value\n - UseStaticPolicy (bool): If enabled then SRTE policy will be advertised\n\n Returns\n -------\n - self: This instance with all currently retrieved bgpIpv6Peer resources using find and the newly added bgpIpv6Peer resources available through an iterator or index\n\n Raises\n ------\n - ServerError: The server has encountered an uncategorized error condition\n ' return self._create(self._map_locals(self._SDM_ATT_MAP, locals()))
8,232,219,339,274,323,000
Adds a new bgpIpv6Peer resource on the server and adds it to the container. Args ---- - AdvertiseEvpnRoutesForOtherVtep (bool): Advertise EVPN routes for other VTEPS - AutoGenSegmentLeftValue (bool): If enabled then Segment Left field value will be auto generated - BgpLsNoOfASPathSegments (number): Number Of AS Path Segments Per Route Range - BgpLsNoOfClusters (number): Number of Clusters - BgpLsNoOfCommunities (number): Number of Communities - CapabilityIpv4MplsAddPath (bool): IPv4 MPLS Add Path Capability - CapabilityIpv6MplsAddPath (bool): IPv6 MPLS Add Path Capability - ConnectedVia (list(str[None | /api/v1/sessions/1/ixnetwork/topology/.../*])): List of layers this layer is used to connect with to the wire. - CopyTtl (bool): Copy TTL from customer packet to outer IPv6 header - EnSRv6DataPlane (bool): Ingress Peer Supports SRv6 VPN - EnableEpeTraffic (bool): Enable EPE Traffic - EnableReducedEncapsulation (bool): Enable Reduced Encapsulation in Data-Plane for SRv6 - EthernetSegmentsCountV6 (number): Number of Ethernet Segments - IpVrfToIpVrfType (str(interfaceLess | interfacefullWithCorefacingIRB | interfacefullWithUnnumberedCorefacingIRB)): IP-VRF-to-IP-VRF Model Type - Ipv4MplsCapability (bool): IPv4 MPLS Capability: AFI=1, SAFI=4 - Ipv4MultipleMplsLabelsCapability (bool): IPv4 Multiple MPLS Labels Capability: AFI=1, SAFI=4 - Ipv6MplsCapability (bool): IPv6 MPLS Capability: AFI=2, SAFI=4 - Ipv6MultipleMplsLabelsCapability (bool): IPv6 Multiple MPLS Labels Capability: AFI=2, SAFI=4 - MaxSidPerSrh (number): Max number of SIDs a SRH can have - MplsLabelsCountForIpv4MplsRoute (number): MPLS Labels Count For IPv4 MPLS Route - MplsLabelsCountForIpv6MplsRoute (number): MPLS Labels Count For IPv6 MPLS Route - Multiplier (number): Number of layer instances per parent instance (multiplier) - Name (str): Name of NGPF element, guaranteed to be unique in Scenario - NoOfEpePeers (number): Number of EPE Peers - NoOfExtendedCommunities (number): Number of Extended Communities - NoOfUserDefinedAfiSafi (number): Count of User defined AFI SAFI - NumberColorFlexAlgoMapping (number): Number of Color/Flex Algo Mapping Entries - NumberFlowSpecRangeV4 (number): Number of IPv4 Flow Spec Ranges - NumberFlowSpecRangeV6 (number): Number of IPv6 Flow Spec Ranges - NumberSRTEPolicies (number): Count of SR TE Policies - SRGBRangeCount (number): SRGB Range Count - SegmentLeftValue (number): Segment Left value to be used in top SRH. This zero index based value start from egress node. - Srv6Ttl (number): TTL value to be used in outer IPv6 header - StackedLayers (list(str[None | /api/v1/sessions/1/ixnetwork/topology/.../*])): List of secondary (many to one) child layer protocols - UdpPortEndValue (number): UDP Port End Value - UdpPortStartValue (number): UDP Port Start Value - UseStaticPolicy (bool): If enabled then SRTE policy will be advertised Returns ------- - self: This instance with all currently retrieved bgpIpv6Peer resources using find and the newly added bgpIpv6Peer resources available through an iterator or index Raises ------ - ServerError: The server has encountered an uncategorized error condition
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
add
rfrye-github/ixnetwork_restpy
python
def add(self, AdvertiseEvpnRoutesForOtherVtep=None, AutoGenSegmentLeftValue=None, BgpLsNoOfASPathSegments=None, BgpLsNoOfClusters=None, BgpLsNoOfCommunities=None, CapabilityIpv4MplsAddPath=None, CapabilityIpv6MplsAddPath=None, ConnectedVia=None, CopyTtl=None, EnSRv6DataPlane=None, EnableEpeTraffic=None, EnableReducedEncapsulation=None, EthernetSegmentsCountV6=None, IpVrfToIpVrfType=None, Ipv4MplsCapability=None, Ipv4MultipleMplsLabelsCapability=None, Ipv6MplsCapability=None, Ipv6MultipleMplsLabelsCapability=None, MaxSidPerSrh=None, MplsLabelsCountForIpv4MplsRoute=None, MplsLabelsCountForIpv6MplsRoute=None, Multiplier=None, Name=None, NoOfEpePeers=None, NoOfExtendedCommunities=None, NoOfUserDefinedAfiSafi=None, NumberColorFlexAlgoMapping=None, NumberFlowSpecRangeV4=None, NumberFlowSpecRangeV6=None, NumberSRTEPolicies=None, SRGBRangeCount=None, SegmentLeftValue=None, Srv6Ttl=None, StackedLayers=None, UdpPortEndValue=None, UdpPortStartValue=None, UseStaticPolicy=None): 'Adds a new bgpIpv6Peer resource on the server and adds it to the container.\n\n Args\n ----\n - AdvertiseEvpnRoutesForOtherVtep (bool): Advertise EVPN routes for other VTEPS\n - AutoGenSegmentLeftValue (bool): If enabled then Segment Left field value will be auto generated\n - BgpLsNoOfASPathSegments (number): Number Of AS Path Segments Per Route Range\n - BgpLsNoOfClusters (number): Number of Clusters\n - BgpLsNoOfCommunities (number): Number of Communities\n - CapabilityIpv4MplsAddPath (bool): IPv4 MPLS Add Path Capability\n - CapabilityIpv6MplsAddPath (bool): IPv6 MPLS Add Path Capability\n - ConnectedVia (list(str[None | /api/v1/sessions/1/ixnetwork/topology/.../*])): List of layers this layer is used to connect with to the wire.\n - CopyTtl (bool): Copy TTL from customer packet to outer IPv6 header\n - EnSRv6DataPlane (bool): Ingress Peer Supports SRv6 VPN\n - EnableEpeTraffic (bool): Enable EPE Traffic\n - EnableReducedEncapsulation (bool): Enable Reduced Encapsulation in Data-Plane for SRv6\n - EthernetSegmentsCountV6 (number): Number of Ethernet Segments\n - IpVrfToIpVrfType (str(interfaceLess | interfacefullWithCorefacingIRB | interfacefullWithUnnumberedCorefacingIRB)): IP-VRF-to-IP-VRF Model Type\n - Ipv4MplsCapability (bool): IPv4 MPLS Capability: AFI=1, SAFI=4\n - Ipv4MultipleMplsLabelsCapability (bool): IPv4 Multiple MPLS Labels Capability: AFI=1, SAFI=4\n - Ipv6MplsCapability (bool): IPv6 MPLS Capability: AFI=2, SAFI=4\n - Ipv6MultipleMplsLabelsCapability (bool): IPv6 Multiple MPLS Labels Capability: AFI=2, SAFI=4\n - MaxSidPerSrh (number): Max number of SIDs a SRH can have\n - MplsLabelsCountForIpv4MplsRoute (number): MPLS Labels Count For IPv4 MPLS Route\n - MplsLabelsCountForIpv6MplsRoute (number): MPLS Labels Count For IPv6 MPLS Route\n - Multiplier (number): Number of layer instances per parent instance (multiplier)\n - Name (str): Name of NGPF element, guaranteed to be unique in Scenario\n - NoOfEpePeers (number): Number of EPE Peers\n - NoOfExtendedCommunities (number): Number of Extended Communities\n - NoOfUserDefinedAfiSafi (number): Count of User defined AFI SAFI\n - NumberColorFlexAlgoMapping (number): Number of Color/Flex Algo Mapping Entries\n - NumberFlowSpecRangeV4 (number): Number of IPv4 Flow Spec Ranges\n - NumberFlowSpecRangeV6 (number): Number of IPv6 Flow Spec Ranges\n - NumberSRTEPolicies (number): Count of SR TE Policies\n - SRGBRangeCount (number): SRGB Range Count\n - SegmentLeftValue (number): Segment Left value to be used in top SRH. This zero index based value start from egress node.\n - Srv6Ttl (number): TTL value to be used in outer IPv6 header\n - StackedLayers (list(str[None | /api/v1/sessions/1/ixnetwork/topology/.../*])): List of secondary (many to one) child layer protocols\n - UdpPortEndValue (number): UDP Port End Value\n - UdpPortStartValue (number): UDP Port Start Value\n - UseStaticPolicy (bool): If enabled then SRTE policy will be advertised\n\n Returns\n -------\n - self: This instance with all currently retrieved bgpIpv6Peer resources using find and the newly added bgpIpv6Peer resources available through an iterator or index\n\n Raises\n ------\n - ServerError: The server has encountered an uncategorized error condition\n ' return self._create(self._map_locals(self._SDM_ATT_MAP, locals()))
def remove(self): 'Deletes all the contained bgpIpv6Peer resources in this instance from the server.\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' self._delete()
-3,360,279,042,539,440,000
Deletes all the contained bgpIpv6Peer resources in this instance from the server. Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
remove
rfrye-github/ixnetwork_restpy
python
def remove(self): 'Deletes all the contained bgpIpv6Peer resources in this instance from the server.\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' self._delete()
def find(self, AdvertiseEvpnRoutesForOtherVtep=None, AutoGenSegmentLeftValue=None, BgpFsmState=None, BgpLsNoOfASPathSegments=None, BgpLsNoOfClusters=None, BgpLsNoOfCommunities=None, CapabilityIpv4MplsAddPath=None, CapabilityIpv6MplsAddPath=None, ConnectedVia=None, CopyTtl=None, Count=None, DescriptiveName=None, DiscoveredDutIp=None, EnSRv6DataPlane=None, EnableEpeTraffic=None, EnableReducedEncapsulation=None, Errors=None, EthernetSegmentsCountV6=None, IpVrfToIpVrfType=None, Ipv4MplsCapability=None, Ipv4MultipleMplsLabelsCapability=None, Ipv6MplsCapability=None, Ipv6MultipleMplsLabelsCapability=None, LocalIpv6Ver2=None, LocalRouterID=None, MaxSidPerSrh=None, MplsLabelsCountForIpv4MplsRoute=None, MplsLabelsCountForIpv6MplsRoute=None, Multiplier=None, Name=None, NoOfEpePeers=None, NoOfExtendedCommunities=None, NoOfUserDefinedAfiSafi=None, NumberColorFlexAlgoMapping=None, NumberFlowSpecRangeV4=None, NumberFlowSpecRangeV6=None, NumberSRTEPolicies=None, SRGBRangeCount=None, SegmentLeftValue=None, SessionInfo=None, SessionStatus=None, Srv6Ttl=None, StackedLayers=None, StateCounts=None, Status=None, UdpPortEndValue=None, UdpPortStartValue=None, UseStaticPolicy=None): "Finds and retrieves bgpIpv6Peer resources from the server.\n\n All named parameters are evaluated on the server using regex. The named parameters can be used to selectively retrieve bgpIpv6Peer resources from the server.\n To retrieve an exact match ensure the parameter value starts with ^ and ends with $\n By default the find method takes no parameters and will retrieve all bgpIpv6Peer resources from the server.\n\n Args\n ----\n - AdvertiseEvpnRoutesForOtherVtep (bool): Advertise EVPN routes for other VTEPS\n - AutoGenSegmentLeftValue (bool): If enabled then Segment Left field value will be auto generated\n - BgpFsmState (list(str[active | connect | error | established | idle | none | openConfirm | openSent])): Logs additional information about the BGP Peer State\n - BgpLsNoOfASPathSegments (number): Number Of AS Path Segments Per Route Range\n - BgpLsNoOfClusters (number): Number of Clusters\n - BgpLsNoOfCommunities (number): Number of Communities\n - CapabilityIpv4MplsAddPath (bool): IPv4 MPLS Add Path Capability\n - CapabilityIpv6MplsAddPath (bool): IPv6 MPLS Add Path Capability\n - ConnectedVia (list(str[None | /api/v1/sessions/1/ixnetwork/topology/.../*])): List of layers this layer is used to connect with to the wire.\n - CopyTtl (bool): Copy TTL from customer packet to outer IPv6 header\n - Count (number): Number of elements inside associated multiplier-scaled container object, e.g. number of devices inside a Device Group.\n - DescriptiveName (str): Longer, more descriptive name for element. It's not guaranteed to be unique like -name-, but may offer more context.\n - DiscoveredDutIp (list(str)): The discovered DUT IP addresses.\n - EnSRv6DataPlane (bool): Ingress Peer Supports SRv6 VPN\n - EnableEpeTraffic (bool): Enable EPE Traffic\n - EnableReducedEncapsulation (bool): Enable Reduced Encapsulation in Data-Plane for SRv6\n - Errors (list(dict(arg1:str[None | /api/v1/sessions/1/ixnetwork//.../*],arg2:list[str]))): A list of errors that have occurred\n - EthernetSegmentsCountV6 (number): Number of Ethernet Segments\n - IpVrfToIpVrfType (str(interfaceLess | interfacefullWithCorefacingIRB | interfacefullWithUnnumberedCorefacingIRB)): IP-VRF-to-IP-VRF Model Type\n - Ipv4MplsCapability (bool): IPv4 MPLS Capability: AFI=1, SAFI=4\n - Ipv4MultipleMplsLabelsCapability (bool): IPv4 Multiple MPLS Labels Capability: AFI=1, SAFI=4\n - Ipv6MplsCapability (bool): IPv6 MPLS Capability: AFI=2, SAFI=4\n - Ipv6MultipleMplsLabelsCapability (bool): IPv6 Multiple MPLS Labels Capability: AFI=2, SAFI=4\n - LocalIpv6Ver2 (list(str)): Local IP\n - LocalRouterID (list(str)): Router ID\n - MaxSidPerSrh (number): Max number of SIDs a SRH can have\n - MplsLabelsCountForIpv4MplsRoute (number): MPLS Labels Count For IPv4 MPLS Route\n - MplsLabelsCountForIpv6MplsRoute (number): MPLS Labels Count For IPv6 MPLS Route\n - Multiplier (number): Number of layer instances per parent instance (multiplier)\n - Name (str): Name of NGPF element, guaranteed to be unique in Scenario\n - NoOfEpePeers (number): Number of EPE Peers\n - NoOfExtendedCommunities (number): Number of Extended Communities\n - NoOfUserDefinedAfiSafi (number): Count of User defined AFI SAFI\n - NumberColorFlexAlgoMapping (number): Number of Color/Flex Algo Mapping Entries\n - NumberFlowSpecRangeV4 (number): Number of IPv4 Flow Spec Ranges\n - NumberFlowSpecRangeV6 (number): Number of IPv6 Flow Spec Ranges\n - NumberSRTEPolicies (number): Count of SR TE Policies\n - SRGBRangeCount (number): SRGB Range Count\n - SegmentLeftValue (number): Segment Left value to be used in top SRH. This zero index based value start from egress node.\n - SessionInfo (list(str[aSRoutingLoopErrorRx | attributeFlagErrorRx | attributesLengthErrorRx | authenticationFailureErrorRx | badBGPIdentifierErrorRx | badMessageLengthErrorRx | badMessageTypeErrorRx | badPeerASErrorRx | bGPHeaderErrorRx | bGPHeaderErrorTx | bGPHoldTimerExpiredErrorRx | bGPOpenPacketErrorRx | bGPStateMachineErrorRx | bGPUpdatePacketErrorRx | ceaseErrorRx | ceaseNotificationErrorTx | connectionNotsynchronizedErrorRx | holdtimeExpiredErrorTx | invalidASPathErrorRx | invalidNetworkFieldErrorRx | invalidNextHopAttributeErrorRx | invalidOriginAttributeErrorRx | malformedAttributeListErrorRx | missingWellKnownAttributeErrorRx | none | openPacketErrTx | optionalAttributeErrorRx | stateMachineErrorTx | unacceptableHoldTimeErrorRx | unrecognizedWellKnownAttributeErrorRx | unspecifiedErrorRx | unspecifiedErrorTx | unspecifiedSubcodeErrorRx | unsupportedOptionalParameterErrorRx | unsupportedversionNumberErrorRx | updatePacketErrorTx])): Logs additional information about the session state\n - SessionStatus (list(str[down | notStarted | up])): Current state of protocol session: Not Started - session negotiation not started, the session is not active yet. Down - actively trying to bring up a protocol session, but negotiation is didn't successfully complete (yet). Up - session came up successfully.\n - Srv6Ttl (number): TTL value to be used in outer IPv6 header\n - StackedLayers (list(str[None | /api/v1/sessions/1/ixnetwork/topology/.../*])): List of secondary (many to one) child layer protocols\n - StateCounts (dict(total:number,notStarted:number,down:number,up:number)): A list of values that indicates the total number of sessions, the number of sessions not started, the number of sessions down and the number of sessions that are up\n - Status (str(configured | error | mixed | notStarted | started | starting | stopping)): Running status of associated network element. Once in Started state, protocol sessions will begin to negotiate.\n - UdpPortEndValue (number): UDP Port End Value\n - UdpPortStartValue (number): UDP Port Start Value\n - UseStaticPolicy (bool): If enabled then SRTE policy will be advertised\n\n Returns\n -------\n - self: This instance with matching bgpIpv6Peer resources retrieved from the server available through an iterator or index\n\n Raises\n ------\n - ServerError: The server has encountered an uncategorized error condition\n " return self._select(self._map_locals(self._SDM_ATT_MAP, locals()))
7,280,407,396,737,582,000
Finds and retrieves bgpIpv6Peer resources from the server. All named parameters are evaluated on the server using regex. The named parameters can be used to selectively retrieve bgpIpv6Peer resources from the server. To retrieve an exact match ensure the parameter value starts with ^ and ends with $ By default the find method takes no parameters and will retrieve all bgpIpv6Peer resources from the server. Args ---- - AdvertiseEvpnRoutesForOtherVtep (bool): Advertise EVPN routes for other VTEPS - AutoGenSegmentLeftValue (bool): If enabled then Segment Left field value will be auto generated - BgpFsmState (list(str[active | connect | error | established | idle | none | openConfirm | openSent])): Logs additional information about the BGP Peer State - BgpLsNoOfASPathSegments (number): Number Of AS Path Segments Per Route Range - BgpLsNoOfClusters (number): Number of Clusters - BgpLsNoOfCommunities (number): Number of Communities - CapabilityIpv4MplsAddPath (bool): IPv4 MPLS Add Path Capability - CapabilityIpv6MplsAddPath (bool): IPv6 MPLS Add Path Capability - ConnectedVia (list(str[None | /api/v1/sessions/1/ixnetwork/topology/.../*])): List of layers this layer is used to connect with to the wire. - CopyTtl (bool): Copy TTL from customer packet to outer IPv6 header - Count (number): Number of elements inside associated multiplier-scaled container object, e.g. number of devices inside a Device Group. - DescriptiveName (str): Longer, more descriptive name for element. It's not guaranteed to be unique like -name-, but may offer more context. - DiscoveredDutIp (list(str)): The discovered DUT IP addresses. - EnSRv6DataPlane (bool): Ingress Peer Supports SRv6 VPN - EnableEpeTraffic (bool): Enable EPE Traffic - EnableReducedEncapsulation (bool): Enable Reduced Encapsulation in Data-Plane for SRv6 - Errors (list(dict(arg1:str[None | /api/v1/sessions/1/ixnetwork//.../*],arg2:list[str]))): A list of errors that have occurred - EthernetSegmentsCountV6 (number): Number of Ethernet Segments - IpVrfToIpVrfType (str(interfaceLess | interfacefullWithCorefacingIRB | interfacefullWithUnnumberedCorefacingIRB)): IP-VRF-to-IP-VRF Model Type - Ipv4MplsCapability (bool): IPv4 MPLS Capability: AFI=1, SAFI=4 - Ipv4MultipleMplsLabelsCapability (bool): IPv4 Multiple MPLS Labels Capability: AFI=1, SAFI=4 - Ipv6MplsCapability (bool): IPv6 MPLS Capability: AFI=2, SAFI=4 - Ipv6MultipleMplsLabelsCapability (bool): IPv6 Multiple MPLS Labels Capability: AFI=2, SAFI=4 - LocalIpv6Ver2 (list(str)): Local IP - LocalRouterID (list(str)): Router ID - MaxSidPerSrh (number): Max number of SIDs a SRH can have - MplsLabelsCountForIpv4MplsRoute (number): MPLS Labels Count For IPv4 MPLS Route - MplsLabelsCountForIpv6MplsRoute (number): MPLS Labels Count For IPv6 MPLS Route - Multiplier (number): Number of layer instances per parent instance (multiplier) - Name (str): Name of NGPF element, guaranteed to be unique in Scenario - NoOfEpePeers (number): Number of EPE Peers - NoOfExtendedCommunities (number): Number of Extended Communities - NoOfUserDefinedAfiSafi (number): Count of User defined AFI SAFI - NumberColorFlexAlgoMapping (number): Number of Color/Flex Algo Mapping Entries - NumberFlowSpecRangeV4 (number): Number of IPv4 Flow Spec Ranges - NumberFlowSpecRangeV6 (number): Number of IPv6 Flow Spec Ranges - NumberSRTEPolicies (number): Count of SR TE Policies - SRGBRangeCount (number): SRGB Range Count - SegmentLeftValue (number): Segment Left value to be used in top SRH. This zero index based value start from egress node. - SessionInfo (list(str[aSRoutingLoopErrorRx | attributeFlagErrorRx | attributesLengthErrorRx | authenticationFailureErrorRx | badBGPIdentifierErrorRx | badMessageLengthErrorRx | badMessageTypeErrorRx | badPeerASErrorRx | bGPHeaderErrorRx | bGPHeaderErrorTx | bGPHoldTimerExpiredErrorRx | bGPOpenPacketErrorRx | bGPStateMachineErrorRx | bGPUpdatePacketErrorRx | ceaseErrorRx | ceaseNotificationErrorTx | connectionNotsynchronizedErrorRx | holdtimeExpiredErrorTx | invalidASPathErrorRx | invalidNetworkFieldErrorRx | invalidNextHopAttributeErrorRx | invalidOriginAttributeErrorRx | malformedAttributeListErrorRx | missingWellKnownAttributeErrorRx | none | openPacketErrTx | optionalAttributeErrorRx | stateMachineErrorTx | unacceptableHoldTimeErrorRx | unrecognizedWellKnownAttributeErrorRx | unspecifiedErrorRx | unspecifiedErrorTx | unspecifiedSubcodeErrorRx | unsupportedOptionalParameterErrorRx | unsupportedversionNumberErrorRx | updatePacketErrorTx])): Logs additional information about the session state - SessionStatus (list(str[down | notStarted | up])): Current state of protocol session: Not Started - session negotiation not started, the session is not active yet. Down - actively trying to bring up a protocol session, but negotiation is didn't successfully complete (yet). Up - session came up successfully. - Srv6Ttl (number): TTL value to be used in outer IPv6 header - StackedLayers (list(str[None | /api/v1/sessions/1/ixnetwork/topology/.../*])): List of secondary (many to one) child layer protocols - StateCounts (dict(total:number,notStarted:number,down:number,up:number)): A list of values that indicates the total number of sessions, the number of sessions not started, the number of sessions down and the number of sessions that are up - Status (str(configured | error | mixed | notStarted | started | starting | stopping)): Running status of associated network element. Once in Started state, protocol sessions will begin to negotiate. - UdpPortEndValue (number): UDP Port End Value - UdpPortStartValue (number): UDP Port Start Value - UseStaticPolicy (bool): If enabled then SRTE policy will be advertised Returns ------- - self: This instance with matching bgpIpv6Peer resources retrieved from the server available through an iterator or index Raises ------ - ServerError: The server has encountered an uncategorized error condition
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
find
rfrye-github/ixnetwork_restpy
python
def find(self, AdvertiseEvpnRoutesForOtherVtep=None, AutoGenSegmentLeftValue=None, BgpFsmState=None, BgpLsNoOfASPathSegments=None, BgpLsNoOfClusters=None, BgpLsNoOfCommunities=None, CapabilityIpv4MplsAddPath=None, CapabilityIpv6MplsAddPath=None, ConnectedVia=None, CopyTtl=None, Count=None, DescriptiveName=None, DiscoveredDutIp=None, EnSRv6DataPlane=None, EnableEpeTraffic=None, EnableReducedEncapsulation=None, Errors=None, EthernetSegmentsCountV6=None, IpVrfToIpVrfType=None, Ipv4MplsCapability=None, Ipv4MultipleMplsLabelsCapability=None, Ipv6MplsCapability=None, Ipv6MultipleMplsLabelsCapability=None, LocalIpv6Ver2=None, LocalRouterID=None, MaxSidPerSrh=None, MplsLabelsCountForIpv4MplsRoute=None, MplsLabelsCountForIpv6MplsRoute=None, Multiplier=None, Name=None, NoOfEpePeers=None, NoOfExtendedCommunities=None, NoOfUserDefinedAfiSafi=None, NumberColorFlexAlgoMapping=None, NumberFlowSpecRangeV4=None, NumberFlowSpecRangeV6=None, NumberSRTEPolicies=None, SRGBRangeCount=None, SegmentLeftValue=None, SessionInfo=None, SessionStatus=None, Srv6Ttl=None, StackedLayers=None, StateCounts=None, Status=None, UdpPortEndValue=None, UdpPortStartValue=None, UseStaticPolicy=None): "Finds and retrieves bgpIpv6Peer resources from the server.\n\n All named parameters are evaluated on the server using regex. The named parameters can be used to selectively retrieve bgpIpv6Peer resources from the server.\n To retrieve an exact match ensure the parameter value starts with ^ and ends with $\n By default the find method takes no parameters and will retrieve all bgpIpv6Peer resources from the server.\n\n Args\n ----\n - AdvertiseEvpnRoutesForOtherVtep (bool): Advertise EVPN routes for other VTEPS\n - AutoGenSegmentLeftValue (bool): If enabled then Segment Left field value will be auto generated\n - BgpFsmState (list(str[active | connect | error | established | idle | none | openConfirm | openSent])): Logs additional information about the BGP Peer State\n - BgpLsNoOfASPathSegments (number): Number Of AS Path Segments Per Route Range\n - BgpLsNoOfClusters (number): Number of Clusters\n - BgpLsNoOfCommunities (number): Number of Communities\n - CapabilityIpv4MplsAddPath (bool): IPv4 MPLS Add Path Capability\n - CapabilityIpv6MplsAddPath (bool): IPv6 MPLS Add Path Capability\n - ConnectedVia (list(str[None | /api/v1/sessions/1/ixnetwork/topology/.../*])): List of layers this layer is used to connect with to the wire.\n - CopyTtl (bool): Copy TTL from customer packet to outer IPv6 header\n - Count (number): Number of elements inside associated multiplier-scaled container object, e.g. number of devices inside a Device Group.\n - DescriptiveName (str): Longer, more descriptive name for element. It's not guaranteed to be unique like -name-, but may offer more context.\n - DiscoveredDutIp (list(str)): The discovered DUT IP addresses.\n - EnSRv6DataPlane (bool): Ingress Peer Supports SRv6 VPN\n - EnableEpeTraffic (bool): Enable EPE Traffic\n - EnableReducedEncapsulation (bool): Enable Reduced Encapsulation in Data-Plane for SRv6\n - Errors (list(dict(arg1:str[None | /api/v1/sessions/1/ixnetwork//.../*],arg2:list[str]))): A list of errors that have occurred\n - EthernetSegmentsCountV6 (number): Number of Ethernet Segments\n - IpVrfToIpVrfType (str(interfaceLess | interfacefullWithCorefacingIRB | interfacefullWithUnnumberedCorefacingIRB)): IP-VRF-to-IP-VRF Model Type\n - Ipv4MplsCapability (bool): IPv4 MPLS Capability: AFI=1, SAFI=4\n - Ipv4MultipleMplsLabelsCapability (bool): IPv4 Multiple MPLS Labels Capability: AFI=1, SAFI=4\n - Ipv6MplsCapability (bool): IPv6 MPLS Capability: AFI=2, SAFI=4\n - Ipv6MultipleMplsLabelsCapability (bool): IPv6 Multiple MPLS Labels Capability: AFI=2, SAFI=4\n - LocalIpv6Ver2 (list(str)): Local IP\n - LocalRouterID (list(str)): Router ID\n - MaxSidPerSrh (number): Max number of SIDs a SRH can have\n - MplsLabelsCountForIpv4MplsRoute (number): MPLS Labels Count For IPv4 MPLS Route\n - MplsLabelsCountForIpv6MplsRoute (number): MPLS Labels Count For IPv6 MPLS Route\n - Multiplier (number): Number of layer instances per parent instance (multiplier)\n - Name (str): Name of NGPF element, guaranteed to be unique in Scenario\n - NoOfEpePeers (number): Number of EPE Peers\n - NoOfExtendedCommunities (number): Number of Extended Communities\n - NoOfUserDefinedAfiSafi (number): Count of User defined AFI SAFI\n - NumberColorFlexAlgoMapping (number): Number of Color/Flex Algo Mapping Entries\n - NumberFlowSpecRangeV4 (number): Number of IPv4 Flow Spec Ranges\n - NumberFlowSpecRangeV6 (number): Number of IPv6 Flow Spec Ranges\n - NumberSRTEPolicies (number): Count of SR TE Policies\n - SRGBRangeCount (number): SRGB Range Count\n - SegmentLeftValue (number): Segment Left value to be used in top SRH. This zero index based value start from egress node.\n - SessionInfo (list(str[aSRoutingLoopErrorRx | attributeFlagErrorRx | attributesLengthErrorRx | authenticationFailureErrorRx | badBGPIdentifierErrorRx | badMessageLengthErrorRx | badMessageTypeErrorRx | badPeerASErrorRx | bGPHeaderErrorRx | bGPHeaderErrorTx | bGPHoldTimerExpiredErrorRx | bGPOpenPacketErrorRx | bGPStateMachineErrorRx | bGPUpdatePacketErrorRx | ceaseErrorRx | ceaseNotificationErrorTx | connectionNotsynchronizedErrorRx | holdtimeExpiredErrorTx | invalidASPathErrorRx | invalidNetworkFieldErrorRx | invalidNextHopAttributeErrorRx | invalidOriginAttributeErrorRx | malformedAttributeListErrorRx | missingWellKnownAttributeErrorRx | none | openPacketErrTx | optionalAttributeErrorRx | stateMachineErrorTx | unacceptableHoldTimeErrorRx | unrecognizedWellKnownAttributeErrorRx | unspecifiedErrorRx | unspecifiedErrorTx | unspecifiedSubcodeErrorRx | unsupportedOptionalParameterErrorRx | unsupportedversionNumberErrorRx | updatePacketErrorTx])): Logs additional information about the session state\n - SessionStatus (list(str[down | notStarted | up])): Current state of protocol session: Not Started - session negotiation not started, the session is not active yet. Down - actively trying to bring up a protocol session, but negotiation is didn't successfully complete (yet). Up - session came up successfully.\n - Srv6Ttl (number): TTL value to be used in outer IPv6 header\n - StackedLayers (list(str[None | /api/v1/sessions/1/ixnetwork/topology/.../*])): List of secondary (many to one) child layer protocols\n - StateCounts (dict(total:number,notStarted:number,down:number,up:number)): A list of values that indicates the total number of sessions, the number of sessions not started, the number of sessions down and the number of sessions that are up\n - Status (str(configured | error | mixed | notStarted | started | starting | stopping)): Running status of associated network element. Once in Started state, protocol sessions will begin to negotiate.\n - UdpPortEndValue (number): UDP Port End Value\n - UdpPortStartValue (number): UDP Port Start Value\n - UseStaticPolicy (bool): If enabled then SRTE policy will be advertised\n\n Returns\n -------\n - self: This instance with matching bgpIpv6Peer resources retrieved from the server available through an iterator or index\n\n Raises\n ------\n - ServerError: The server has encountered an uncategorized error condition\n " return self._select(self._map_locals(self._SDM_ATT_MAP, locals()))
def read(self, href): 'Retrieves a single instance of bgpIpv6Peer data from the server.\n\n Args\n ----\n - href (str): An href to the instance to be retrieved\n\n Returns\n -------\n - self: This instance with the bgpIpv6Peer resources from the server available through an iterator or index\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' return self._read(href)
-6,029,758,657,134,447,000
Retrieves a single instance of bgpIpv6Peer data from the server. Args ---- - href (str): An href to the instance to be retrieved Returns ------- - self: This instance with the bgpIpv6Peer resources from the server available through an iterator or index Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
read
rfrye-github/ixnetwork_restpy
python
def read(self, href): 'Retrieves a single instance of bgpIpv6Peer data from the server.\n\n Args\n ----\n - href (str): An href to the instance to be retrieved\n\n Returns\n -------\n - self: This instance with the bgpIpv6Peer resources from the server available through an iterator or index\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' return self._read(href)
def get_device_ids(self, PortNames=None, ActAsRestarted=None, Active=None, AdvSrv6SidInIgp=None, AdvertiseEndOfRib=None, AdvertiseSRv6SID=None, AdvertiseTunnelEncapsulationExtendedCommunity=None, AlwaysIncludeTunnelEncExtCommunity=None, AsSetMode=None, Authentication=None, BgpId=None, BgpLsAsSetMode=None, BgpLsEnableAsPathSegments=None, BgpLsEnableCluster=None, BgpLsEnableExtendedCommunity=None, BgpLsOverridePeerAsSetMode=None, BgpUnnumbered=None, CapabilityIpV4Mdt=None, CapabilityIpV4Mpls=None, CapabilityIpV4MplsVpn=None, CapabilityIpV4Multicast=None, CapabilityIpV4MulticastVpn=None, CapabilityIpV4Unicast=None, CapabilityIpV6Mpls=None, CapabilityIpV6MplsVpn=None, CapabilityIpV6Multicast=None, CapabilityIpV6MulticastVpn=None, CapabilityIpV6Unicast=None, CapabilityIpv4UnicastAddPath=None, CapabilityIpv6UnicastAddPath=None, CapabilityLinkStateNonVpn=None, CapabilityLinkStateVpn=None, CapabilityNHEncodingCapabilities=None, CapabilityRouteConstraint=None, CapabilityRouteRefresh=None, CapabilitySRTEPoliciesV4=None, CapabilitySRTEPoliciesV6=None, CapabilityVpls=None, Capabilityipv4UnicastFlowSpec=None, Capabilityipv6UnicastFlowSpec=None, ConfigureKeepaliveTimer=None, CustomSidType=None, DiscardIxiaGeneratedRoutes=None, DowntimeInSec=None, DutIp=None, Enable4ByteAs=None, EnableBfdRegistration=None, EnableBgpId=None, EnableBgpIdSameAsRouterId=None, EnableBgpLsCommunity=None, EnableGracefulRestart=None, EnableLlgr=None, Evpn=None, FilterEvpn=None, FilterIpV4Mpls=None, FilterIpV4MplsVpn=None, FilterIpV4Multicast=None, FilterIpV4MulticastVpn=None, FilterIpV4Unicast=None, FilterIpV6Mpls=None, FilterIpV6MplsVpn=None, FilterIpV6Multicast=None, FilterIpV6MulticastVpn=None, FilterIpV6Unicast=None, FilterIpv4MulticastBgpMplsVpn=None, FilterIpv4UnicastFlowSpec=None, FilterIpv6MulticastBgpMplsVpn=None, FilterIpv6UnicastFlowSpec=None, FilterLinkState=None, FilterLinkStateVpn=None, FilterSRTEPoliciesV4=None, FilterSRTEPoliciesV6=None, FilterVpls=None, Flap=None, HoldTimer=None, Ipv4MplsAddPathMode=None, Ipv4MulticastBgpMplsVpn=None, Ipv4UnicastAddPathMode=None, Ipv6MplsAddPathMode=None, Ipv6MulticastBgpMplsVpn=None, Ipv6UnicastAddPathMode=None, IrbInterfaceLabel=None, IrbIpv6Address=None, KeepaliveTimer=None, L3VPNEncapsulationType=None, LocalAs2Bytes=None, LocalAs4Bytes=None, Md5Key=None, ModeOfBfdOperations=None, NumBgpLsId=None, NumBgpLsInstanceIdentifier=None, NumBgpUpdatesGeneratedPerIteration=None, OperationalModel=None, RestartTime=None, RoutersMacOrIrbMacAddress=None, SendIxiaSignatureWithRoutes=None, SendSRv6SIDOptionalInfo=None, Srv6EndpointBehavior=None, Srv6SIDOptionalInformation=None, Srv6SidFlags=None, Srv6SidLoc=None, Srv6SidLocLen=None, Srv6SidLocMetric=None, Srv6SidReserved=None, Srv6SidReserved1=None, Srv6SidReserved2=None, StaleTime=None, TcpWindowSizeInBytes=None, Ttl=None, Type=None, UpdateInterval=None, UptimeInSec=None, UseGatewayAsDutIp=None, VplsEnableNextHop=None, VplsNextHop=None): 'Base class infrastructure that gets a list of bgpIpv6Peer device ids encapsulated by this object.\n\n Use the optional regex parameters in the method to refine the list of device ids encapsulated by this object.\n\n Args\n ----\n - PortNames (str): optional regex of port names\n - ActAsRestarted (str): optional regex of actAsRestarted\n - Active (str): optional regex of active\n - AdvSrv6SidInIgp (str): optional regex of advSrv6SidInIgp\n - AdvertiseEndOfRib (str): optional regex of advertiseEndOfRib\n - AdvertiseSRv6SID (str): optional regex of advertiseSRv6SID\n - AdvertiseTunnelEncapsulationExtendedCommunity (str): optional regex of advertiseTunnelEncapsulationExtendedCommunity\n - AlwaysIncludeTunnelEncExtCommunity (str): optional regex of alwaysIncludeTunnelEncExtCommunity\n - AsSetMode (str): optional regex of asSetMode\n - Authentication (str): optional regex of authentication\n - BgpId (str): optional regex of bgpId\n - BgpLsAsSetMode (str): optional regex of bgpLsAsSetMode\n - BgpLsEnableAsPathSegments (str): optional regex of bgpLsEnableAsPathSegments\n - BgpLsEnableCluster (str): optional regex of bgpLsEnableCluster\n - BgpLsEnableExtendedCommunity (str): optional regex of bgpLsEnableExtendedCommunity\n - BgpLsOverridePeerAsSetMode (str): optional regex of bgpLsOverridePeerAsSetMode\n - BgpUnnumbered (str): optional regex of bgpUnnumbered\n - CapabilityIpV4Mdt (str): optional regex of capabilityIpV4Mdt\n - CapabilityIpV4Mpls (str): optional regex of capabilityIpV4Mpls\n - CapabilityIpV4MplsVpn (str): optional regex of capabilityIpV4MplsVpn\n - CapabilityIpV4Multicast (str): optional regex of capabilityIpV4Multicast\n - CapabilityIpV4MulticastVpn (str): optional regex of capabilityIpV4MulticastVpn\n - CapabilityIpV4Unicast (str): optional regex of capabilityIpV4Unicast\n - CapabilityIpV6Mpls (str): optional regex of capabilityIpV6Mpls\n - CapabilityIpV6MplsVpn (str): optional regex of capabilityIpV6MplsVpn\n - CapabilityIpV6Multicast (str): optional regex of capabilityIpV6Multicast\n - CapabilityIpV6MulticastVpn (str): optional regex of capabilityIpV6MulticastVpn\n - CapabilityIpV6Unicast (str): optional regex of capabilityIpV6Unicast\n - CapabilityIpv4UnicastAddPath (str): optional regex of capabilityIpv4UnicastAddPath\n - CapabilityIpv6UnicastAddPath (str): optional regex of capabilityIpv6UnicastAddPath\n - CapabilityLinkStateNonVpn (str): optional regex of capabilityLinkStateNonVpn\n - CapabilityLinkStateVpn (str): optional regex of capabilityLinkStateVpn\n - CapabilityNHEncodingCapabilities (str): optional regex of capabilityNHEncodingCapabilities\n - CapabilityRouteConstraint (str): optional regex of capabilityRouteConstraint\n - CapabilityRouteRefresh (str): optional regex of capabilityRouteRefresh\n - CapabilitySRTEPoliciesV4 (str): optional regex of capabilitySRTEPoliciesV4\n - CapabilitySRTEPoliciesV6 (str): optional regex of capabilitySRTEPoliciesV6\n - CapabilityVpls (str): optional regex of capabilityVpls\n - Capabilityipv4UnicastFlowSpec (str): optional regex of capabilityipv4UnicastFlowSpec\n - Capabilityipv6UnicastFlowSpec (str): optional regex of capabilityipv6UnicastFlowSpec\n - ConfigureKeepaliveTimer (str): optional regex of configureKeepaliveTimer\n - CustomSidType (str): optional regex of customSidType\n - DiscardIxiaGeneratedRoutes (str): optional regex of discardIxiaGeneratedRoutes\n - DowntimeInSec (str): optional regex of downtimeInSec\n - DutIp (str): optional regex of dutIp\n - Enable4ByteAs (str): optional regex of enable4ByteAs\n - EnableBfdRegistration (str): optional regex of enableBfdRegistration\n - EnableBgpId (str): optional regex of enableBgpId\n - EnableBgpIdSameAsRouterId (str): optional regex of enableBgpIdSameAsRouterId\n - EnableBgpLsCommunity (str): optional regex of enableBgpLsCommunity\n - EnableGracefulRestart (str): optional regex of enableGracefulRestart\n - EnableLlgr (str): optional regex of enableLlgr\n - Evpn (str): optional regex of evpn\n - FilterEvpn (str): optional regex of filterEvpn\n - FilterIpV4Mpls (str): optional regex of filterIpV4Mpls\n - FilterIpV4MplsVpn (str): optional regex of filterIpV4MplsVpn\n - FilterIpV4Multicast (str): optional regex of filterIpV4Multicast\n - FilterIpV4MulticastVpn (str): optional regex of filterIpV4MulticastVpn\n - FilterIpV4Unicast (str): optional regex of filterIpV4Unicast\n - FilterIpV6Mpls (str): optional regex of filterIpV6Mpls\n - FilterIpV6MplsVpn (str): optional regex of filterIpV6MplsVpn\n - FilterIpV6Multicast (str): optional regex of filterIpV6Multicast\n - FilterIpV6MulticastVpn (str): optional regex of filterIpV6MulticastVpn\n - FilterIpV6Unicast (str): optional regex of filterIpV6Unicast\n - FilterIpv4MulticastBgpMplsVpn (str): optional regex of filterIpv4MulticastBgpMplsVpn\n - FilterIpv4UnicastFlowSpec (str): optional regex of filterIpv4UnicastFlowSpec\n - FilterIpv6MulticastBgpMplsVpn (str): optional regex of filterIpv6MulticastBgpMplsVpn\n - FilterIpv6UnicastFlowSpec (str): optional regex of filterIpv6UnicastFlowSpec\n - FilterLinkState (str): optional regex of filterLinkState\n - FilterLinkStateVpn (str): optional regex of filterLinkStateVpn\n - FilterSRTEPoliciesV4 (str): optional regex of filterSRTEPoliciesV4\n - FilterSRTEPoliciesV6 (str): optional regex of filterSRTEPoliciesV6\n - FilterVpls (str): optional regex of filterVpls\n - Flap (str): optional regex of flap\n - HoldTimer (str): optional regex of holdTimer\n - Ipv4MplsAddPathMode (str): optional regex of ipv4MplsAddPathMode\n - Ipv4MulticastBgpMplsVpn (str): optional regex of ipv4MulticastBgpMplsVpn\n - Ipv4UnicastAddPathMode (str): optional regex of ipv4UnicastAddPathMode\n - Ipv6MplsAddPathMode (str): optional regex of ipv6MplsAddPathMode\n - Ipv6MulticastBgpMplsVpn (str): optional regex of ipv6MulticastBgpMplsVpn\n - Ipv6UnicastAddPathMode (str): optional regex of ipv6UnicastAddPathMode\n - IrbInterfaceLabel (str): optional regex of irbInterfaceLabel\n - IrbIpv6Address (str): optional regex of irbIpv6Address\n - KeepaliveTimer (str): optional regex of keepaliveTimer\n - L3VPNEncapsulationType (str): optional regex of l3VPNEncapsulationType\n - LocalAs2Bytes (str): optional regex of localAs2Bytes\n - LocalAs4Bytes (str): optional regex of localAs4Bytes\n - Md5Key (str): optional regex of md5Key\n - ModeOfBfdOperations (str): optional regex of modeOfBfdOperations\n - NumBgpLsId (str): optional regex of numBgpLsId\n - NumBgpLsInstanceIdentifier (str): optional regex of numBgpLsInstanceIdentifier\n - NumBgpUpdatesGeneratedPerIteration (str): optional regex of numBgpUpdatesGeneratedPerIteration\n - OperationalModel (str): optional regex of operationalModel\n - RestartTime (str): optional regex of restartTime\n - RoutersMacOrIrbMacAddress (str): optional regex of routersMacOrIrbMacAddress\n - SendIxiaSignatureWithRoutes (str): optional regex of sendIxiaSignatureWithRoutes\n - SendSRv6SIDOptionalInfo (str): optional regex of sendSRv6SIDOptionalInfo\n - Srv6EndpointBehavior (str): optional regex of srv6EndpointBehavior\n - Srv6SIDOptionalInformation (str): optional regex of srv6SIDOptionalInformation\n - Srv6SidFlags (str): optional regex of srv6SidFlags\n - Srv6SidLoc (str): optional regex of srv6SidLoc\n - Srv6SidLocLen (str): optional regex of srv6SidLocLen\n - Srv6SidLocMetric (str): optional regex of srv6SidLocMetric\n - Srv6SidReserved (str): optional regex of srv6SidReserved\n - Srv6SidReserved1 (str): optional regex of srv6SidReserved1\n - Srv6SidReserved2 (str): optional regex of srv6SidReserved2\n - StaleTime (str): optional regex of staleTime\n - TcpWindowSizeInBytes (str): optional regex of tcpWindowSizeInBytes\n - Ttl (str): optional regex of ttl\n - Type (str): optional regex of type\n - UpdateInterval (str): optional regex of updateInterval\n - UptimeInSec (str): optional regex of uptimeInSec\n - UseGatewayAsDutIp (str): optional regex of useGatewayAsDutIp\n - VplsEnableNextHop (str): optional regex of vplsEnableNextHop\n - VplsNextHop (str): optional regex of vplsNextHop\n\n Returns\n -------\n - list(int): A list of device ids that meets the regex criteria provided in the method parameters\n\n Raises\n ------\n - ServerError: The server has encountered an uncategorized error condition\n ' return self._get_ngpf_device_ids(locals())
-1,546,723,636,849,854,000
Base class infrastructure that gets a list of bgpIpv6Peer device ids encapsulated by this object. Use the optional regex parameters in the method to refine the list of device ids encapsulated by this object. Args ---- - PortNames (str): optional regex of port names - ActAsRestarted (str): optional regex of actAsRestarted - Active (str): optional regex of active - AdvSrv6SidInIgp (str): optional regex of advSrv6SidInIgp - AdvertiseEndOfRib (str): optional regex of advertiseEndOfRib - AdvertiseSRv6SID (str): optional regex of advertiseSRv6SID - AdvertiseTunnelEncapsulationExtendedCommunity (str): optional regex of advertiseTunnelEncapsulationExtendedCommunity - AlwaysIncludeTunnelEncExtCommunity (str): optional regex of alwaysIncludeTunnelEncExtCommunity - AsSetMode (str): optional regex of asSetMode - Authentication (str): optional regex of authentication - BgpId (str): optional regex of bgpId - BgpLsAsSetMode (str): optional regex of bgpLsAsSetMode - BgpLsEnableAsPathSegments (str): optional regex of bgpLsEnableAsPathSegments - BgpLsEnableCluster (str): optional regex of bgpLsEnableCluster - BgpLsEnableExtendedCommunity (str): optional regex of bgpLsEnableExtendedCommunity - BgpLsOverridePeerAsSetMode (str): optional regex of bgpLsOverridePeerAsSetMode - BgpUnnumbered (str): optional regex of bgpUnnumbered - CapabilityIpV4Mdt (str): optional regex of capabilityIpV4Mdt - CapabilityIpV4Mpls (str): optional regex of capabilityIpV4Mpls - CapabilityIpV4MplsVpn (str): optional regex of capabilityIpV4MplsVpn - CapabilityIpV4Multicast (str): optional regex of capabilityIpV4Multicast - CapabilityIpV4MulticastVpn (str): optional regex of capabilityIpV4MulticastVpn - CapabilityIpV4Unicast (str): optional regex of capabilityIpV4Unicast - CapabilityIpV6Mpls (str): optional regex of capabilityIpV6Mpls - CapabilityIpV6MplsVpn (str): optional regex of capabilityIpV6MplsVpn - CapabilityIpV6Multicast (str): optional regex of capabilityIpV6Multicast - CapabilityIpV6MulticastVpn (str): optional regex of capabilityIpV6MulticastVpn - CapabilityIpV6Unicast (str): optional regex of capabilityIpV6Unicast - CapabilityIpv4UnicastAddPath (str): optional regex of capabilityIpv4UnicastAddPath - CapabilityIpv6UnicastAddPath (str): optional regex of capabilityIpv6UnicastAddPath - CapabilityLinkStateNonVpn (str): optional regex of capabilityLinkStateNonVpn - CapabilityLinkStateVpn (str): optional regex of capabilityLinkStateVpn - CapabilityNHEncodingCapabilities (str): optional regex of capabilityNHEncodingCapabilities - CapabilityRouteConstraint (str): optional regex of capabilityRouteConstraint - CapabilityRouteRefresh (str): optional regex of capabilityRouteRefresh - CapabilitySRTEPoliciesV4 (str): optional regex of capabilitySRTEPoliciesV4 - CapabilitySRTEPoliciesV6 (str): optional regex of capabilitySRTEPoliciesV6 - CapabilityVpls (str): optional regex of capabilityVpls - Capabilityipv4UnicastFlowSpec (str): optional regex of capabilityipv4UnicastFlowSpec - Capabilityipv6UnicastFlowSpec (str): optional regex of capabilityipv6UnicastFlowSpec - ConfigureKeepaliveTimer (str): optional regex of configureKeepaliveTimer - CustomSidType (str): optional regex of customSidType - DiscardIxiaGeneratedRoutes (str): optional regex of discardIxiaGeneratedRoutes - DowntimeInSec (str): optional regex of downtimeInSec - DutIp (str): optional regex of dutIp - Enable4ByteAs (str): optional regex of enable4ByteAs - EnableBfdRegistration (str): optional regex of enableBfdRegistration - EnableBgpId (str): optional regex of enableBgpId - EnableBgpIdSameAsRouterId (str): optional regex of enableBgpIdSameAsRouterId - EnableBgpLsCommunity (str): optional regex of enableBgpLsCommunity - EnableGracefulRestart (str): optional regex of enableGracefulRestart - EnableLlgr (str): optional regex of enableLlgr - Evpn (str): optional regex of evpn - FilterEvpn (str): optional regex of filterEvpn - FilterIpV4Mpls (str): optional regex of filterIpV4Mpls - FilterIpV4MplsVpn (str): optional regex of filterIpV4MplsVpn - FilterIpV4Multicast (str): optional regex of filterIpV4Multicast - FilterIpV4MulticastVpn (str): optional regex of filterIpV4MulticastVpn - FilterIpV4Unicast (str): optional regex of filterIpV4Unicast - FilterIpV6Mpls (str): optional regex of filterIpV6Mpls - FilterIpV6MplsVpn (str): optional regex of filterIpV6MplsVpn - FilterIpV6Multicast (str): optional regex of filterIpV6Multicast - FilterIpV6MulticastVpn (str): optional regex of filterIpV6MulticastVpn - FilterIpV6Unicast (str): optional regex of filterIpV6Unicast - FilterIpv4MulticastBgpMplsVpn (str): optional regex of filterIpv4MulticastBgpMplsVpn - FilterIpv4UnicastFlowSpec (str): optional regex of filterIpv4UnicastFlowSpec - FilterIpv6MulticastBgpMplsVpn (str): optional regex of filterIpv6MulticastBgpMplsVpn - FilterIpv6UnicastFlowSpec (str): optional regex of filterIpv6UnicastFlowSpec - FilterLinkState (str): optional regex of filterLinkState - FilterLinkStateVpn (str): optional regex of filterLinkStateVpn - FilterSRTEPoliciesV4 (str): optional regex of filterSRTEPoliciesV4 - FilterSRTEPoliciesV6 (str): optional regex of filterSRTEPoliciesV6 - FilterVpls (str): optional regex of filterVpls - Flap (str): optional regex of flap - HoldTimer (str): optional regex of holdTimer - Ipv4MplsAddPathMode (str): optional regex of ipv4MplsAddPathMode - Ipv4MulticastBgpMplsVpn (str): optional regex of ipv4MulticastBgpMplsVpn - Ipv4UnicastAddPathMode (str): optional regex of ipv4UnicastAddPathMode - Ipv6MplsAddPathMode (str): optional regex of ipv6MplsAddPathMode - Ipv6MulticastBgpMplsVpn (str): optional regex of ipv6MulticastBgpMplsVpn - Ipv6UnicastAddPathMode (str): optional regex of ipv6UnicastAddPathMode - IrbInterfaceLabel (str): optional regex of irbInterfaceLabel - IrbIpv6Address (str): optional regex of irbIpv6Address - KeepaliveTimer (str): optional regex of keepaliveTimer - L3VPNEncapsulationType (str): optional regex of l3VPNEncapsulationType - LocalAs2Bytes (str): optional regex of localAs2Bytes - LocalAs4Bytes (str): optional regex of localAs4Bytes - Md5Key (str): optional regex of md5Key - ModeOfBfdOperations (str): optional regex of modeOfBfdOperations - NumBgpLsId (str): optional regex of numBgpLsId - NumBgpLsInstanceIdentifier (str): optional regex of numBgpLsInstanceIdentifier - NumBgpUpdatesGeneratedPerIteration (str): optional regex of numBgpUpdatesGeneratedPerIteration - OperationalModel (str): optional regex of operationalModel - RestartTime (str): optional regex of restartTime - RoutersMacOrIrbMacAddress (str): optional regex of routersMacOrIrbMacAddress - SendIxiaSignatureWithRoutes (str): optional regex of sendIxiaSignatureWithRoutes - SendSRv6SIDOptionalInfo (str): optional regex of sendSRv6SIDOptionalInfo - Srv6EndpointBehavior (str): optional regex of srv6EndpointBehavior - Srv6SIDOptionalInformation (str): optional regex of srv6SIDOptionalInformation - Srv6SidFlags (str): optional regex of srv6SidFlags - Srv6SidLoc (str): optional regex of srv6SidLoc - Srv6SidLocLen (str): optional regex of srv6SidLocLen - Srv6SidLocMetric (str): optional regex of srv6SidLocMetric - Srv6SidReserved (str): optional regex of srv6SidReserved - Srv6SidReserved1 (str): optional regex of srv6SidReserved1 - Srv6SidReserved2 (str): optional regex of srv6SidReserved2 - StaleTime (str): optional regex of staleTime - TcpWindowSizeInBytes (str): optional regex of tcpWindowSizeInBytes - Ttl (str): optional regex of ttl - Type (str): optional regex of type - UpdateInterval (str): optional regex of updateInterval - UptimeInSec (str): optional regex of uptimeInSec - UseGatewayAsDutIp (str): optional regex of useGatewayAsDutIp - VplsEnableNextHop (str): optional regex of vplsEnableNextHop - VplsNextHop (str): optional regex of vplsNextHop Returns ------- - list(int): A list of device ids that meets the regex criteria provided in the method parameters Raises ------ - ServerError: The server has encountered an uncategorized error condition
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
get_device_ids
rfrye-github/ixnetwork_restpy
python
def get_device_ids(self, PortNames=None, ActAsRestarted=None, Active=None, AdvSrv6SidInIgp=None, AdvertiseEndOfRib=None, AdvertiseSRv6SID=None, AdvertiseTunnelEncapsulationExtendedCommunity=None, AlwaysIncludeTunnelEncExtCommunity=None, AsSetMode=None, Authentication=None, BgpId=None, BgpLsAsSetMode=None, BgpLsEnableAsPathSegments=None, BgpLsEnableCluster=None, BgpLsEnableExtendedCommunity=None, BgpLsOverridePeerAsSetMode=None, BgpUnnumbered=None, CapabilityIpV4Mdt=None, CapabilityIpV4Mpls=None, CapabilityIpV4MplsVpn=None, CapabilityIpV4Multicast=None, CapabilityIpV4MulticastVpn=None, CapabilityIpV4Unicast=None, CapabilityIpV6Mpls=None, CapabilityIpV6MplsVpn=None, CapabilityIpV6Multicast=None, CapabilityIpV6MulticastVpn=None, CapabilityIpV6Unicast=None, CapabilityIpv4UnicastAddPath=None, CapabilityIpv6UnicastAddPath=None, CapabilityLinkStateNonVpn=None, CapabilityLinkStateVpn=None, CapabilityNHEncodingCapabilities=None, CapabilityRouteConstraint=None, CapabilityRouteRefresh=None, CapabilitySRTEPoliciesV4=None, CapabilitySRTEPoliciesV6=None, CapabilityVpls=None, Capabilityipv4UnicastFlowSpec=None, Capabilityipv6UnicastFlowSpec=None, ConfigureKeepaliveTimer=None, CustomSidType=None, DiscardIxiaGeneratedRoutes=None, DowntimeInSec=None, DutIp=None, Enable4ByteAs=None, EnableBfdRegistration=None, EnableBgpId=None, EnableBgpIdSameAsRouterId=None, EnableBgpLsCommunity=None, EnableGracefulRestart=None, EnableLlgr=None, Evpn=None, FilterEvpn=None, FilterIpV4Mpls=None, FilterIpV4MplsVpn=None, FilterIpV4Multicast=None, FilterIpV4MulticastVpn=None, FilterIpV4Unicast=None, FilterIpV6Mpls=None, FilterIpV6MplsVpn=None, FilterIpV6Multicast=None, FilterIpV6MulticastVpn=None, FilterIpV6Unicast=None, FilterIpv4MulticastBgpMplsVpn=None, FilterIpv4UnicastFlowSpec=None, FilterIpv6MulticastBgpMplsVpn=None, FilterIpv6UnicastFlowSpec=None, FilterLinkState=None, FilterLinkStateVpn=None, FilterSRTEPoliciesV4=None, FilterSRTEPoliciesV6=None, FilterVpls=None, Flap=None, HoldTimer=None, Ipv4MplsAddPathMode=None, Ipv4MulticastBgpMplsVpn=None, Ipv4UnicastAddPathMode=None, Ipv6MplsAddPathMode=None, Ipv6MulticastBgpMplsVpn=None, Ipv6UnicastAddPathMode=None, IrbInterfaceLabel=None, IrbIpv6Address=None, KeepaliveTimer=None, L3VPNEncapsulationType=None, LocalAs2Bytes=None, LocalAs4Bytes=None, Md5Key=None, ModeOfBfdOperations=None, NumBgpLsId=None, NumBgpLsInstanceIdentifier=None, NumBgpUpdatesGeneratedPerIteration=None, OperationalModel=None, RestartTime=None, RoutersMacOrIrbMacAddress=None, SendIxiaSignatureWithRoutes=None, SendSRv6SIDOptionalInfo=None, Srv6EndpointBehavior=None, Srv6SIDOptionalInformation=None, Srv6SidFlags=None, Srv6SidLoc=None, Srv6SidLocLen=None, Srv6SidLocMetric=None, Srv6SidReserved=None, Srv6SidReserved1=None, Srv6SidReserved2=None, StaleTime=None, TcpWindowSizeInBytes=None, Ttl=None, Type=None, UpdateInterval=None, UptimeInSec=None, UseGatewayAsDutIp=None, VplsEnableNextHop=None, VplsNextHop=None): 'Base class infrastructure that gets a list of bgpIpv6Peer device ids encapsulated by this object.\n\n Use the optional regex parameters in the method to refine the list of device ids encapsulated by this object.\n\n Args\n ----\n - PortNames (str): optional regex of port names\n - ActAsRestarted (str): optional regex of actAsRestarted\n - Active (str): optional regex of active\n - AdvSrv6SidInIgp (str): optional regex of advSrv6SidInIgp\n - AdvertiseEndOfRib (str): optional regex of advertiseEndOfRib\n - AdvertiseSRv6SID (str): optional regex of advertiseSRv6SID\n - AdvertiseTunnelEncapsulationExtendedCommunity (str): optional regex of advertiseTunnelEncapsulationExtendedCommunity\n - AlwaysIncludeTunnelEncExtCommunity (str): optional regex of alwaysIncludeTunnelEncExtCommunity\n - AsSetMode (str): optional regex of asSetMode\n - Authentication (str): optional regex of authentication\n - BgpId (str): optional regex of bgpId\n - BgpLsAsSetMode (str): optional regex of bgpLsAsSetMode\n - BgpLsEnableAsPathSegments (str): optional regex of bgpLsEnableAsPathSegments\n - BgpLsEnableCluster (str): optional regex of bgpLsEnableCluster\n - BgpLsEnableExtendedCommunity (str): optional regex of bgpLsEnableExtendedCommunity\n - BgpLsOverridePeerAsSetMode (str): optional regex of bgpLsOverridePeerAsSetMode\n - BgpUnnumbered (str): optional regex of bgpUnnumbered\n - CapabilityIpV4Mdt (str): optional regex of capabilityIpV4Mdt\n - CapabilityIpV4Mpls (str): optional regex of capabilityIpV4Mpls\n - CapabilityIpV4MplsVpn (str): optional regex of capabilityIpV4MplsVpn\n - CapabilityIpV4Multicast (str): optional regex of capabilityIpV4Multicast\n - CapabilityIpV4MulticastVpn (str): optional regex of capabilityIpV4MulticastVpn\n - CapabilityIpV4Unicast (str): optional regex of capabilityIpV4Unicast\n - CapabilityIpV6Mpls (str): optional regex of capabilityIpV6Mpls\n - CapabilityIpV6MplsVpn (str): optional regex of capabilityIpV6MplsVpn\n - CapabilityIpV6Multicast (str): optional regex of capabilityIpV6Multicast\n - CapabilityIpV6MulticastVpn (str): optional regex of capabilityIpV6MulticastVpn\n - CapabilityIpV6Unicast (str): optional regex of capabilityIpV6Unicast\n - CapabilityIpv4UnicastAddPath (str): optional regex of capabilityIpv4UnicastAddPath\n - CapabilityIpv6UnicastAddPath (str): optional regex of capabilityIpv6UnicastAddPath\n - CapabilityLinkStateNonVpn (str): optional regex of capabilityLinkStateNonVpn\n - CapabilityLinkStateVpn (str): optional regex of capabilityLinkStateVpn\n - CapabilityNHEncodingCapabilities (str): optional regex of capabilityNHEncodingCapabilities\n - CapabilityRouteConstraint (str): optional regex of capabilityRouteConstraint\n - CapabilityRouteRefresh (str): optional regex of capabilityRouteRefresh\n - CapabilitySRTEPoliciesV4 (str): optional regex of capabilitySRTEPoliciesV4\n - CapabilitySRTEPoliciesV6 (str): optional regex of capabilitySRTEPoliciesV6\n - CapabilityVpls (str): optional regex of capabilityVpls\n - Capabilityipv4UnicastFlowSpec (str): optional regex of capabilityipv4UnicastFlowSpec\n - Capabilityipv6UnicastFlowSpec (str): optional regex of capabilityipv6UnicastFlowSpec\n - ConfigureKeepaliveTimer (str): optional regex of configureKeepaliveTimer\n - CustomSidType (str): optional regex of customSidType\n - DiscardIxiaGeneratedRoutes (str): optional regex of discardIxiaGeneratedRoutes\n - DowntimeInSec (str): optional regex of downtimeInSec\n - DutIp (str): optional regex of dutIp\n - Enable4ByteAs (str): optional regex of enable4ByteAs\n - EnableBfdRegistration (str): optional regex of enableBfdRegistration\n - EnableBgpId (str): optional regex of enableBgpId\n - EnableBgpIdSameAsRouterId (str): optional regex of enableBgpIdSameAsRouterId\n - EnableBgpLsCommunity (str): optional regex of enableBgpLsCommunity\n - EnableGracefulRestart (str): optional regex of enableGracefulRestart\n - EnableLlgr (str): optional regex of enableLlgr\n - Evpn (str): optional regex of evpn\n - FilterEvpn (str): optional regex of filterEvpn\n - FilterIpV4Mpls (str): optional regex of filterIpV4Mpls\n - FilterIpV4MplsVpn (str): optional regex of filterIpV4MplsVpn\n - FilterIpV4Multicast (str): optional regex of filterIpV4Multicast\n - FilterIpV4MulticastVpn (str): optional regex of filterIpV4MulticastVpn\n - FilterIpV4Unicast (str): optional regex of filterIpV4Unicast\n - FilterIpV6Mpls (str): optional regex of filterIpV6Mpls\n - FilterIpV6MplsVpn (str): optional regex of filterIpV6MplsVpn\n - FilterIpV6Multicast (str): optional regex of filterIpV6Multicast\n - FilterIpV6MulticastVpn (str): optional regex of filterIpV6MulticastVpn\n - FilterIpV6Unicast (str): optional regex of filterIpV6Unicast\n - FilterIpv4MulticastBgpMplsVpn (str): optional regex of filterIpv4MulticastBgpMplsVpn\n - FilterIpv4UnicastFlowSpec (str): optional regex of filterIpv4UnicastFlowSpec\n - FilterIpv6MulticastBgpMplsVpn (str): optional regex of filterIpv6MulticastBgpMplsVpn\n - FilterIpv6UnicastFlowSpec (str): optional regex of filterIpv6UnicastFlowSpec\n - FilterLinkState (str): optional regex of filterLinkState\n - FilterLinkStateVpn (str): optional regex of filterLinkStateVpn\n - FilterSRTEPoliciesV4 (str): optional regex of filterSRTEPoliciesV4\n - FilterSRTEPoliciesV6 (str): optional regex of filterSRTEPoliciesV6\n - FilterVpls (str): optional regex of filterVpls\n - Flap (str): optional regex of flap\n - HoldTimer (str): optional regex of holdTimer\n - Ipv4MplsAddPathMode (str): optional regex of ipv4MplsAddPathMode\n - Ipv4MulticastBgpMplsVpn (str): optional regex of ipv4MulticastBgpMplsVpn\n - Ipv4UnicastAddPathMode (str): optional regex of ipv4UnicastAddPathMode\n - Ipv6MplsAddPathMode (str): optional regex of ipv6MplsAddPathMode\n - Ipv6MulticastBgpMplsVpn (str): optional regex of ipv6MulticastBgpMplsVpn\n - Ipv6UnicastAddPathMode (str): optional regex of ipv6UnicastAddPathMode\n - IrbInterfaceLabel (str): optional regex of irbInterfaceLabel\n - IrbIpv6Address (str): optional regex of irbIpv6Address\n - KeepaliveTimer (str): optional regex of keepaliveTimer\n - L3VPNEncapsulationType (str): optional regex of l3VPNEncapsulationType\n - LocalAs2Bytes (str): optional regex of localAs2Bytes\n - LocalAs4Bytes (str): optional regex of localAs4Bytes\n - Md5Key (str): optional regex of md5Key\n - ModeOfBfdOperations (str): optional regex of modeOfBfdOperations\n - NumBgpLsId (str): optional regex of numBgpLsId\n - NumBgpLsInstanceIdentifier (str): optional regex of numBgpLsInstanceIdentifier\n - NumBgpUpdatesGeneratedPerIteration (str): optional regex of numBgpUpdatesGeneratedPerIteration\n - OperationalModel (str): optional regex of operationalModel\n - RestartTime (str): optional regex of restartTime\n - RoutersMacOrIrbMacAddress (str): optional regex of routersMacOrIrbMacAddress\n - SendIxiaSignatureWithRoutes (str): optional regex of sendIxiaSignatureWithRoutes\n - SendSRv6SIDOptionalInfo (str): optional regex of sendSRv6SIDOptionalInfo\n - Srv6EndpointBehavior (str): optional regex of srv6EndpointBehavior\n - Srv6SIDOptionalInformation (str): optional regex of srv6SIDOptionalInformation\n - Srv6SidFlags (str): optional regex of srv6SidFlags\n - Srv6SidLoc (str): optional regex of srv6SidLoc\n - Srv6SidLocLen (str): optional regex of srv6SidLocLen\n - Srv6SidLocMetric (str): optional regex of srv6SidLocMetric\n - Srv6SidReserved (str): optional regex of srv6SidReserved\n - Srv6SidReserved1 (str): optional regex of srv6SidReserved1\n - Srv6SidReserved2 (str): optional regex of srv6SidReserved2\n - StaleTime (str): optional regex of staleTime\n - TcpWindowSizeInBytes (str): optional regex of tcpWindowSizeInBytes\n - Ttl (str): optional regex of ttl\n - Type (str): optional regex of type\n - UpdateInterval (str): optional regex of updateInterval\n - UptimeInSec (str): optional regex of uptimeInSec\n - UseGatewayAsDutIp (str): optional regex of useGatewayAsDutIp\n - VplsEnableNextHop (str): optional regex of vplsEnableNextHop\n - VplsNextHop (str): optional regex of vplsNextHop\n\n Returns\n -------\n - list(int): A list of device ids that meets the regex criteria provided in the method parameters\n\n Raises\n ------\n - ServerError: The server has encountered an uncategorized error condition\n ' return self._get_ngpf_device_ids(locals())
def Abort(self, *args, **kwargs): 'Executes the abort operation on the server.\n\n Abort CPF control plane (equals to demote to kUnconfigured state).\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n abort(SessionIndices=list)\n --------------------------\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n\n abort(SessionIndices=string)\n ----------------------------\n - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('abort', payload=payload, response_object=None)
-146,078,730,668,586,980
Executes the abort operation on the server. Abort CPF control plane (equals to demote to kUnconfigured state). The IxNetwork model allows for multiple method Signatures with the same name while python does not. abort(SessionIndices=list) -------------------------- - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3 abort(SessionIndices=string) ---------------------------- - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12 Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
Abort
rfrye-github/ixnetwork_restpy
python
def Abort(self, *args, **kwargs): 'Executes the abort operation on the server.\n\n Abort CPF control plane (equals to demote to kUnconfigured state).\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n abort(SessionIndices=list)\n --------------------------\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n\n abort(SessionIndices=string)\n ----------------------------\n - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('abort', payload=payload, response_object=None)
def BgpIPv4FlowSpecLearnedInfo(self, *args, **kwargs): 'Executes the bgpIPv4FlowSpecLearnedInfo operation on the server.\n\n Get IPv4 FlowSpec Learned Info\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n bgpIPv4FlowSpecLearnedInfo(SessionIndices=list)\n -----------------------------------------------\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n\n bgpIPv4FlowSpecLearnedInfo(SessionIndices=string)\n -------------------------------------------------\n - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('bgpIPv4FlowSpecLearnedInfo', payload=payload, response_object=None)
3,514,835,530,450,439,700
Executes the bgpIPv4FlowSpecLearnedInfo operation on the server. Get IPv4 FlowSpec Learned Info The IxNetwork model allows for multiple method Signatures with the same name while python does not. bgpIPv4FlowSpecLearnedInfo(SessionIndices=list) ----------------------------------------------- - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3 bgpIPv4FlowSpecLearnedInfo(SessionIndices=string) ------------------------------------------------- - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12 Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
BgpIPv4FlowSpecLearnedInfo
rfrye-github/ixnetwork_restpy
python
def BgpIPv4FlowSpecLearnedInfo(self, *args, **kwargs): 'Executes the bgpIPv4FlowSpecLearnedInfo operation on the server.\n\n Get IPv4 FlowSpec Learned Info\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n bgpIPv4FlowSpecLearnedInfo(SessionIndices=list)\n -----------------------------------------------\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n\n bgpIPv4FlowSpecLearnedInfo(SessionIndices=string)\n -------------------------------------------------\n - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('bgpIPv4FlowSpecLearnedInfo', payload=payload, response_object=None)
def BgpIPv6FlowSpecLearnedInfo(self, *args, **kwargs): 'Executes the bgpIPv6FlowSpecLearnedInfo operation on the server.\n\n Get IPv6 FlowSpec Learned Info\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n bgpIPv6FlowSpecLearnedInfo(SessionIndices=list)\n -----------------------------------------------\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n\n bgpIPv6FlowSpecLearnedInfo(SessionIndices=string)\n -------------------------------------------------\n - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('bgpIPv6FlowSpecLearnedInfo', payload=payload, response_object=None)
-677,539,603,328,412,700
Executes the bgpIPv6FlowSpecLearnedInfo operation on the server. Get IPv6 FlowSpec Learned Info The IxNetwork model allows for multiple method Signatures with the same name while python does not. bgpIPv6FlowSpecLearnedInfo(SessionIndices=list) ----------------------------------------------- - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3 bgpIPv6FlowSpecLearnedInfo(SessionIndices=string) ------------------------------------------------- - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12 Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
BgpIPv6FlowSpecLearnedInfo
rfrye-github/ixnetwork_restpy
python
def BgpIPv6FlowSpecLearnedInfo(self, *args, **kwargs): 'Executes the bgpIPv6FlowSpecLearnedInfo operation on the server.\n\n Get IPv6 FlowSpec Learned Info\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n bgpIPv6FlowSpecLearnedInfo(SessionIndices=list)\n -----------------------------------------------\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n\n bgpIPv6FlowSpecLearnedInfo(SessionIndices=string)\n -------------------------------------------------\n - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('bgpIPv6FlowSpecLearnedInfo', payload=payload, response_object=None)
def BreakTCPSession(self, *args, **kwargs): 'Executes the breakTCPSession operation on the server.\n\n Break TCP Session\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n breakTCPSession(Notification_code=number, Notification_sub_code=number)\n -----------------------------------------------------------------------\n - Notification_code (number): This parameter requires a notification_code of type kInteger\n - Notification_sub_code (number): This parameter requires a notification_sub_code of type kInteger\n\n breakTCPSession(Notification_code=number, Notification_sub_code=number, SessionIndices=list)\n --------------------------------------------------------------------------------------------\n - Notification_code (number): This parameter requires a notification_code of type kInteger\n - Notification_sub_code (number): This parameter requires a notification_sub_code of type kInteger\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n\n breakTCPSession(SessionIndices=string, Notification_code=number, Notification_sub_code=number)\n ----------------------------------------------------------------------------------------------\n - SessionIndices (str): This parameter requires a notification_code of type kInteger\n - Notification_code (number): This parameter requires a notification_sub_code of type kInteger\n - Notification_sub_code (number): This parameter requires a string of session numbers 1-4;6;7-12\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('breakTCPSession', payload=payload, response_object=None)
-6,704,695,997,233,389,000
Executes the breakTCPSession operation on the server. Break TCP Session The IxNetwork model allows for multiple method Signatures with the same name while python does not. breakTCPSession(Notification_code=number, Notification_sub_code=number) ----------------------------------------------------------------------- - Notification_code (number): This parameter requires a notification_code of type kInteger - Notification_sub_code (number): This parameter requires a notification_sub_code of type kInteger breakTCPSession(Notification_code=number, Notification_sub_code=number, SessionIndices=list) -------------------------------------------------------------------------------------------- - Notification_code (number): This parameter requires a notification_code of type kInteger - Notification_sub_code (number): This parameter requires a notification_sub_code of type kInteger - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3 breakTCPSession(SessionIndices=string, Notification_code=number, Notification_sub_code=number) ---------------------------------------------------------------------------------------------- - SessionIndices (str): This parameter requires a notification_code of type kInteger - Notification_code (number): This parameter requires a notification_sub_code of type kInteger - Notification_sub_code (number): This parameter requires a string of session numbers 1-4;6;7-12 Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
BreakTCPSession
rfrye-github/ixnetwork_restpy
python
def BreakTCPSession(self, *args, **kwargs): 'Executes the breakTCPSession operation on the server.\n\n Break TCP Session\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n breakTCPSession(Notification_code=number, Notification_sub_code=number)\n -----------------------------------------------------------------------\n - Notification_code (number): This parameter requires a notification_code of type kInteger\n - Notification_sub_code (number): This parameter requires a notification_sub_code of type kInteger\n\n breakTCPSession(Notification_code=number, Notification_sub_code=number, SessionIndices=list)\n --------------------------------------------------------------------------------------------\n - Notification_code (number): This parameter requires a notification_code of type kInteger\n - Notification_sub_code (number): This parameter requires a notification_sub_code of type kInteger\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n\n breakTCPSession(SessionIndices=string, Notification_code=number, Notification_sub_code=number)\n ----------------------------------------------------------------------------------------------\n - SessionIndices (str): This parameter requires a notification_code of type kInteger\n - Notification_code (number): This parameter requires a notification_sub_code of type kInteger\n - Notification_sub_code (number): This parameter requires a string of session numbers 1-4;6;7-12\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('breakTCPSession', payload=payload, response_object=None)
def Breaktcpsession(self, *args, **kwargs): 'Executes the breaktcpsession operation on the server.\n\n Break BGP Peer Range TCP Session.\n\n breaktcpsession(Arg2=list, Arg3=number, Arg4=number)list\n --------------------------------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin.\n - Arg3 (number): Notification Code\n - Arg4 (number): Notification Sub Code\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self.href} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('breaktcpsession', payload=payload, response_object=None)
-197,546,601,367,163,620
Executes the breaktcpsession operation on the server. Break BGP Peer Range TCP Session. breaktcpsession(Arg2=list, Arg3=number, Arg4=number)list -------------------------------------------------------- - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin. - Arg3 (number): Notification Code - Arg4 (number): Notification Sub Code - Returns list(str): ID to associate each async action invocation Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
Breaktcpsession
rfrye-github/ixnetwork_restpy
python
def Breaktcpsession(self, *args, **kwargs): 'Executes the breaktcpsession operation on the server.\n\n Break BGP Peer Range TCP Session.\n\n breaktcpsession(Arg2=list, Arg3=number, Arg4=number)list\n --------------------------------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin.\n - Arg3 (number): Notification Code\n - Arg4 (number): Notification Sub Code\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self.href} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('breaktcpsession', payload=payload, response_object=None)
def ClearAllLearnedInfo(self, *args, **kwargs): 'Executes the clearAllLearnedInfo operation on the server.\n\n Clear All Learned Info\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n clearAllLearnedInfo(SessionIndices=list)\n ----------------------------------------\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n\n clearAllLearnedInfo(SessionIndices=string)\n ------------------------------------------\n - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('clearAllLearnedInfo', payload=payload, response_object=None)
-4,670,377,420,262,015,000
Executes the clearAllLearnedInfo operation on the server. Clear All Learned Info The IxNetwork model allows for multiple method Signatures with the same name while python does not. clearAllLearnedInfo(SessionIndices=list) ---------------------------------------- - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3 clearAllLearnedInfo(SessionIndices=string) ------------------------------------------ - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12 Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
ClearAllLearnedInfo
rfrye-github/ixnetwork_restpy
python
def ClearAllLearnedInfo(self, *args, **kwargs): 'Executes the clearAllLearnedInfo operation on the server.\n\n Clear All Learned Info\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n clearAllLearnedInfo(SessionIndices=list)\n ----------------------------------------\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n\n clearAllLearnedInfo(SessionIndices=string)\n ------------------------------------------\n - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('clearAllLearnedInfo', payload=payload, response_object=None)
def ClearAllLearnedInfoInClient(self, *args, **kwargs): 'Executes the clearAllLearnedInfoInClient operation on the server.\n\n Clears ALL routes from GUI grid for the selected BGP Peers.\n\n clearAllLearnedInfoInClient(Arg2=list)list\n ------------------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin.\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self.href} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('clearAllLearnedInfoInClient', payload=payload, response_object=None)
-4,722,554,953,452,946,000
Executes the clearAllLearnedInfoInClient operation on the server. Clears ALL routes from GUI grid for the selected BGP Peers. clearAllLearnedInfoInClient(Arg2=list)list ------------------------------------------ - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin. - Returns list(str): ID to associate each async action invocation Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
ClearAllLearnedInfoInClient
rfrye-github/ixnetwork_restpy
python
def ClearAllLearnedInfoInClient(self, *args, **kwargs): 'Executes the clearAllLearnedInfoInClient operation on the server.\n\n Clears ALL routes from GUI grid for the selected BGP Peers.\n\n clearAllLearnedInfoInClient(Arg2=list)list\n ------------------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin.\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self.href} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('clearAllLearnedInfoInClient', payload=payload, response_object=None)
def GetADVPLSLearnedInfo(self, *args, **kwargs): 'Executes the getADVPLSLearnedInfo operation on the server.\n\n Get ADVPLS Learned Info\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n getADVPLSLearnedInfo(SessionIndices=list)\n -----------------------------------------\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n\n getADVPLSLearnedInfo(SessionIndices=string)\n -------------------------------------------\n - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12\n\n getADVPLSLearnedInfo(Arg2=list)list\n -----------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin.\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('getADVPLSLearnedInfo', payload=payload, response_object=None)
-6,322,303,411,199,230,000
Executes the getADVPLSLearnedInfo operation on the server. Get ADVPLS Learned Info The IxNetwork model allows for multiple method Signatures with the same name while python does not. getADVPLSLearnedInfo(SessionIndices=list) ----------------------------------------- - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3 getADVPLSLearnedInfo(SessionIndices=string) ------------------------------------------- - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12 getADVPLSLearnedInfo(Arg2=list)list ----------------------------------- - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin. - Returns list(str): ID to associate each async action invocation Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
GetADVPLSLearnedInfo
rfrye-github/ixnetwork_restpy
python
def GetADVPLSLearnedInfo(self, *args, **kwargs): 'Executes the getADVPLSLearnedInfo operation on the server.\n\n Get ADVPLS Learned Info\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n getADVPLSLearnedInfo(SessionIndices=list)\n -----------------------------------------\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n\n getADVPLSLearnedInfo(SessionIndices=string)\n -------------------------------------------\n - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12\n\n getADVPLSLearnedInfo(Arg2=list)list\n -----------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin.\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('getADVPLSLearnedInfo', payload=payload, response_object=None)
def GetAllLearnedInfo(self, *args, **kwargs): 'Executes the getAllLearnedInfo operation on the server.\n\n Get All Learned Info\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n getAllLearnedInfo(SessionIndices=list)\n --------------------------------------\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n\n getAllLearnedInfo(SessionIndices=string)\n ----------------------------------------\n - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12\n\n getAllLearnedInfo(Arg2=list)list\n --------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin.\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('getAllLearnedInfo', payload=payload, response_object=None)
-7,189,031,404,734,379,000
Executes the getAllLearnedInfo operation on the server. Get All Learned Info The IxNetwork model allows for multiple method Signatures with the same name while python does not. getAllLearnedInfo(SessionIndices=list) -------------------------------------- - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3 getAllLearnedInfo(SessionIndices=string) ---------------------------------------- - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12 getAllLearnedInfo(Arg2=list)list -------------------------------- - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin. - Returns list(str): ID to associate each async action invocation Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
GetAllLearnedInfo
rfrye-github/ixnetwork_restpy
python
def GetAllLearnedInfo(self, *args, **kwargs): 'Executes the getAllLearnedInfo operation on the server.\n\n Get All Learned Info\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n getAllLearnedInfo(SessionIndices=list)\n --------------------------------------\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n\n getAllLearnedInfo(SessionIndices=string)\n ----------------------------------------\n - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12\n\n getAllLearnedInfo(Arg2=list)list\n --------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin.\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('getAllLearnedInfo', payload=payload, response_object=None)
def GetbgpIpv4FlowSpecLearnedInfoLearnedInfo(self, *args, **kwargs): 'Executes the getbgpIpv4FlowSpecLearnedInfoLearnedInfo operation on the server.\n\n getbgpIpv4FlowSpecLearnedInfoLearnedInfo(Arg2=list)list\n -------------------------------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin.An empty list indicates all instances in the plugin.\n - Returns list(str): Please provide a proper description here.\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self.href} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('getbgpIpv4FlowSpecLearnedInfoLearnedInfo', payload=payload, response_object=None)
-325,628,814,938,126,400
Executes the getbgpIpv4FlowSpecLearnedInfoLearnedInfo operation on the server. getbgpIpv4FlowSpecLearnedInfoLearnedInfo(Arg2=list)list ------------------------------------------------------- - Arg2 (list(number)): List of indices into the protocol plugin.An empty list indicates all instances in the plugin. - Returns list(str): Please provide a proper description here. Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
GetbgpIpv4FlowSpecLearnedInfoLearnedInfo
rfrye-github/ixnetwork_restpy
python
def GetbgpIpv4FlowSpecLearnedInfoLearnedInfo(self, *args, **kwargs): 'Executes the getbgpIpv4FlowSpecLearnedInfoLearnedInfo operation on the server.\n\n getbgpIpv4FlowSpecLearnedInfoLearnedInfo(Arg2=list)list\n -------------------------------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin.An empty list indicates all instances in the plugin.\n - Returns list(str): Please provide a proper description here.\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self.href} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('getbgpIpv4FlowSpecLearnedInfoLearnedInfo', payload=payload, response_object=None)
def GetbgpIpv6FlowSpecLearnedInfoLearnedInfo(self, *args, **kwargs): 'Executes the getbgpIpv6FlowSpecLearnedInfoLearnedInfo operation on the server.\n\n getbgpIpv6FlowSpecLearnedInfoLearnedInfo(Arg2=list)list\n -------------------------------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin.An empty list indicates all instances in the plugin.\n - Returns list(str): Please provide a proper description here.\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self.href} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('getbgpIpv6FlowSpecLearnedInfoLearnedInfo', payload=payload, response_object=None)
-7,403,440,652,875,138,000
Executes the getbgpIpv6FlowSpecLearnedInfoLearnedInfo operation on the server. getbgpIpv6FlowSpecLearnedInfoLearnedInfo(Arg2=list)list ------------------------------------------------------- - Arg2 (list(number)): List of indices into the protocol plugin.An empty list indicates all instances in the plugin. - Returns list(str): Please provide a proper description here. Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
GetbgpIpv6FlowSpecLearnedInfoLearnedInfo
rfrye-github/ixnetwork_restpy
python
def GetbgpIpv6FlowSpecLearnedInfoLearnedInfo(self, *args, **kwargs): 'Executes the getbgpIpv6FlowSpecLearnedInfoLearnedInfo operation on the server.\n\n getbgpIpv6FlowSpecLearnedInfoLearnedInfo(Arg2=list)list\n -------------------------------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin.An empty list indicates all instances in the plugin.\n - Returns list(str): Please provide a proper description here.\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self.href} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('getbgpIpv6FlowSpecLearnedInfoLearnedInfo', payload=payload, response_object=None)
def GetbgpSrTeLearnedInfoLearnedInfo(self, *args, **kwargs): 'Executes the getbgpSrTeLearnedInfoLearnedInfo operation on the server.\n\n getbgpSrTeLearnedInfoLearnedInfo(Arg2=list)list\n -----------------------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin.An empty list indicates all instances in the plugin.\n - Returns list(str): Please provide a proper description here.\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self.href} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('getbgpSrTeLearnedInfoLearnedInfo', payload=payload, response_object=None)
-3,758,235,783,926,409,000
Executes the getbgpSrTeLearnedInfoLearnedInfo operation on the server. getbgpSrTeLearnedInfoLearnedInfo(Arg2=list)list ----------------------------------------------- - Arg2 (list(number)): List of indices into the protocol plugin.An empty list indicates all instances in the plugin. - Returns list(str): Please provide a proper description here. Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
GetbgpSrTeLearnedInfoLearnedInfo
rfrye-github/ixnetwork_restpy
python
def GetbgpSrTeLearnedInfoLearnedInfo(self, *args, **kwargs): 'Executes the getbgpSrTeLearnedInfoLearnedInfo operation on the server.\n\n getbgpSrTeLearnedInfoLearnedInfo(Arg2=list)list\n -----------------------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin.An empty list indicates all instances in the plugin.\n - Returns list(str): Please provide a proper description here.\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self.href} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('getbgpSrTeLearnedInfoLearnedInfo', payload=payload, response_object=None)
def GetEVPNLearnedInfo(self, *args, **kwargs): 'Executes the getEVPNLearnedInfo operation on the server.\n\n Get EVPN Learned Info\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n getEVPNLearnedInfo(SessionIndices=list)\n ---------------------------------------\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n\n getEVPNLearnedInfo(SessionIndices=string)\n -----------------------------------------\n - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12\n\n getEVPNLearnedInfo(Arg2=list)list\n ---------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin.\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('getEVPNLearnedInfo', payload=payload, response_object=None)
4,618,460,211,391,817,000
Executes the getEVPNLearnedInfo operation on the server. Get EVPN Learned Info The IxNetwork model allows for multiple method Signatures with the same name while python does not. getEVPNLearnedInfo(SessionIndices=list) --------------------------------------- - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3 getEVPNLearnedInfo(SessionIndices=string) ----------------------------------------- - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12 getEVPNLearnedInfo(Arg2=list)list --------------------------------- - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin. - Returns list(str): ID to associate each async action invocation Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
GetEVPNLearnedInfo
rfrye-github/ixnetwork_restpy
python
def GetEVPNLearnedInfo(self, *args, **kwargs): 'Executes the getEVPNLearnedInfo operation on the server.\n\n Get EVPN Learned Info\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n getEVPNLearnedInfo(SessionIndices=list)\n ---------------------------------------\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n\n getEVPNLearnedInfo(SessionIndices=string)\n -----------------------------------------\n - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12\n\n getEVPNLearnedInfo(Arg2=list)list\n ---------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin.\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('getEVPNLearnedInfo', payload=payload, response_object=None)
def GetIPv4LearnedInfo(self, *args, **kwargs): 'Executes the getIPv4LearnedInfo operation on the server.\n\n Get IPv4 Learned Info\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n getIPv4LearnedInfo(SessionIndices=list)\n ---------------------------------------\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n\n getIPv4LearnedInfo(SessionIndices=string)\n -----------------------------------------\n - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12\n\n getIPv4LearnedInfo(Arg2=list)list\n ---------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin.\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('getIPv4LearnedInfo', payload=payload, response_object=None)
-236,686,830,101,493,660
Executes the getIPv4LearnedInfo operation on the server. Get IPv4 Learned Info The IxNetwork model allows for multiple method Signatures with the same name while python does not. getIPv4LearnedInfo(SessionIndices=list) --------------------------------------- - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3 getIPv4LearnedInfo(SessionIndices=string) ----------------------------------------- - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12 getIPv4LearnedInfo(Arg2=list)list --------------------------------- - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin. - Returns list(str): ID to associate each async action invocation Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
GetIPv4LearnedInfo
rfrye-github/ixnetwork_restpy
python
def GetIPv4LearnedInfo(self, *args, **kwargs): 'Executes the getIPv4LearnedInfo operation on the server.\n\n Get IPv4 Learned Info\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n getIPv4LearnedInfo(SessionIndices=list)\n ---------------------------------------\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n\n getIPv4LearnedInfo(SessionIndices=string)\n -----------------------------------------\n - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12\n\n getIPv4LearnedInfo(Arg2=list)list\n ---------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin.\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('getIPv4LearnedInfo', payload=payload, response_object=None)
def GetIPv4MplsLearnedInfo(self, *args, **kwargs): 'Executes the getIPv4MplsLearnedInfo operation on the server.\n\n Fetches IPv4 MPLS routes learnt by this BGP peer.\n\n getIPv4MplsLearnedInfo(Arg2=list)list\n -------------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin.\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self.href} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('getIPv4MplsLearnedInfo', payload=payload, response_object=None)
6,488,948,892,041,255,000
Executes the getIPv4MplsLearnedInfo operation on the server. Fetches IPv4 MPLS routes learnt by this BGP peer. getIPv4MplsLearnedInfo(Arg2=list)list ------------------------------------- - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin. - Returns list(str): ID to associate each async action invocation Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
GetIPv4MplsLearnedInfo
rfrye-github/ixnetwork_restpy
python
def GetIPv4MplsLearnedInfo(self, *args, **kwargs): 'Executes the getIPv4MplsLearnedInfo operation on the server.\n\n Fetches IPv4 MPLS routes learnt by this BGP peer.\n\n getIPv4MplsLearnedInfo(Arg2=list)list\n -------------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin.\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self.href} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('getIPv4MplsLearnedInfo', payload=payload, response_object=None)
def GetIpv4MvpnLearnedInfo(self, *args, **kwargs): 'Executes the getIpv4MvpnLearnedInfo operation on the server.\n\n Fetches MVPN MAC IP routes learnt by this BGP peer.\n\n getIpv4MvpnLearnedInfo(Arg2=list)list\n -------------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin.\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self.href} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('getIpv4MvpnLearnedInfo', payload=payload, response_object=None)
-6,104,215,468,333,500,000
Executes the getIpv4MvpnLearnedInfo operation on the server. Fetches MVPN MAC IP routes learnt by this BGP peer. getIpv4MvpnLearnedInfo(Arg2=list)list ------------------------------------- - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin. - Returns list(str): ID to associate each async action invocation Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
GetIpv4MvpnLearnedInfo
rfrye-github/ixnetwork_restpy
python
def GetIpv4MvpnLearnedInfo(self, *args, **kwargs): 'Executes the getIpv4MvpnLearnedInfo operation on the server.\n\n Fetches MVPN MAC IP routes learnt by this BGP peer.\n\n getIpv4MvpnLearnedInfo(Arg2=list)list\n -------------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin.\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self.href} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('getIpv4MvpnLearnedInfo', payload=payload, response_object=None)
def GetIpv4UmhRoutesLearnedInfo(self, *args, **kwargs): 'Executes the getIpv4UmhRoutesLearnedInfo operation on the server.\n\n Fetches Umh Routes learned by this BGP peer.\n\n getIpv4UmhRoutesLearnedInfo(Arg2=list)list\n ------------------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin.\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self.href} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('getIpv4UmhRoutesLearnedInfo', payload=payload, response_object=None)
-20,403,597,477,417,840
Executes the getIpv4UmhRoutesLearnedInfo operation on the server. Fetches Umh Routes learned by this BGP peer. getIpv4UmhRoutesLearnedInfo(Arg2=list)list ------------------------------------------ - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin. - Returns list(str): ID to associate each async action invocation Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
GetIpv4UmhRoutesLearnedInfo
rfrye-github/ixnetwork_restpy
python
def GetIpv4UmhRoutesLearnedInfo(self, *args, **kwargs): 'Executes the getIpv4UmhRoutesLearnedInfo operation on the server.\n\n Fetches Umh Routes learned by this BGP peer.\n\n getIpv4UmhRoutesLearnedInfo(Arg2=list)list\n ------------------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin.\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self.href} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('getIpv4UmhRoutesLearnedInfo', payload=payload, response_object=None)
def GetIPv4VpnLearnedInfo(self, *args, **kwargs): 'Executes the getIPv4VpnLearnedInfo operation on the server.\n\n Get IPv4 Vpn Learned Info\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n getIPv4VpnLearnedInfo(SessionIndices=list)\n ------------------------------------------\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n\n getIPv4VpnLearnedInfo(SessionIndices=string)\n --------------------------------------------\n - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12\n\n getIPv4VpnLearnedInfo(Arg2=list)list\n ------------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin.\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('getIPv4VpnLearnedInfo', payload=payload, response_object=None)
2,904,475,011,574,176,300
Executes the getIPv4VpnLearnedInfo operation on the server. Get IPv4 Vpn Learned Info The IxNetwork model allows for multiple method Signatures with the same name while python does not. getIPv4VpnLearnedInfo(SessionIndices=list) ------------------------------------------ - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3 getIPv4VpnLearnedInfo(SessionIndices=string) -------------------------------------------- - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12 getIPv4VpnLearnedInfo(Arg2=list)list ------------------------------------ - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin. - Returns list(str): ID to associate each async action invocation Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
GetIPv4VpnLearnedInfo
rfrye-github/ixnetwork_restpy
python
def GetIPv4VpnLearnedInfo(self, *args, **kwargs): 'Executes the getIPv4VpnLearnedInfo operation on the server.\n\n Get IPv4 Vpn Learned Info\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n getIPv4VpnLearnedInfo(SessionIndices=list)\n ------------------------------------------\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n\n getIPv4VpnLearnedInfo(SessionIndices=string)\n --------------------------------------------\n - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12\n\n getIPv4VpnLearnedInfo(Arg2=list)list\n ------------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin.\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('getIPv4VpnLearnedInfo', payload=payload, response_object=None)
def GetIPv6LearnedInfo(self, *args, **kwargs): 'Executes the getIPv6LearnedInfo operation on the server.\n\n Get IPv6 Learned Info\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n getIPv6LearnedInfo(SessionIndices=list)\n ---------------------------------------\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n\n getIPv6LearnedInfo(SessionIndices=string)\n -----------------------------------------\n - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12\n\n getIPv6LearnedInfo(Arg2=list)list\n ---------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin.\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('getIPv6LearnedInfo', payload=payload, response_object=None)
-4,140,662,912,433,938,400
Executes the getIPv6LearnedInfo operation on the server. Get IPv6 Learned Info The IxNetwork model allows for multiple method Signatures with the same name while python does not. getIPv6LearnedInfo(SessionIndices=list) --------------------------------------- - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3 getIPv6LearnedInfo(SessionIndices=string) ----------------------------------------- - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12 getIPv6LearnedInfo(Arg2=list)list --------------------------------- - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin. - Returns list(str): ID to associate each async action invocation Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
GetIPv6LearnedInfo
rfrye-github/ixnetwork_restpy
python
def GetIPv6LearnedInfo(self, *args, **kwargs): 'Executes the getIPv6LearnedInfo operation on the server.\n\n Get IPv6 Learned Info\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n getIPv6LearnedInfo(SessionIndices=list)\n ---------------------------------------\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n\n getIPv6LearnedInfo(SessionIndices=string)\n -----------------------------------------\n - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12\n\n getIPv6LearnedInfo(Arg2=list)list\n ---------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin.\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('getIPv6LearnedInfo', payload=payload, response_object=None)
def GetIPv6MplsLearnedInfo(self, *args, **kwargs): 'Executes the getIPv6MplsLearnedInfo operation on the server.\n\n Gets IPv6 Mpls routes learnt by this BGP peer.\n\n getIPv6MplsLearnedInfo(Arg2=list)list\n -------------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin.\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self.href} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('getIPv6MplsLearnedInfo', payload=payload, response_object=None)
6,790,345,832,530,303,000
Executes the getIPv6MplsLearnedInfo operation on the server. Gets IPv6 Mpls routes learnt by this BGP peer. getIPv6MplsLearnedInfo(Arg2=list)list ------------------------------------- - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin. - Returns list(str): ID to associate each async action invocation Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
GetIPv6MplsLearnedInfo
rfrye-github/ixnetwork_restpy
python
def GetIPv6MplsLearnedInfo(self, *args, **kwargs): 'Executes the getIPv6MplsLearnedInfo operation on the server.\n\n Gets IPv6 Mpls routes learnt by this BGP peer.\n\n getIPv6MplsLearnedInfo(Arg2=list)list\n -------------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin.\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self.href} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('getIPv6MplsLearnedInfo', payload=payload, response_object=None)
def GetIpv6MvpnLearnedInfo(self, *args, **kwargs): 'Executes the getIpv6MvpnLearnedInfo operation on the server.\n\n Fetches MVPN MAC IP routes learnt by this BGP peer.\n\n getIpv6MvpnLearnedInfo(Arg2=list)list\n -------------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin.\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self.href} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('getIpv6MvpnLearnedInfo', payload=payload, response_object=None)
-3,828,005,896,373,541,400
Executes the getIpv6MvpnLearnedInfo operation on the server. Fetches MVPN MAC IP routes learnt by this BGP peer. getIpv6MvpnLearnedInfo(Arg2=list)list ------------------------------------- - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin. - Returns list(str): ID to associate each async action invocation Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
GetIpv6MvpnLearnedInfo
rfrye-github/ixnetwork_restpy
python
def GetIpv6MvpnLearnedInfo(self, *args, **kwargs): 'Executes the getIpv6MvpnLearnedInfo operation on the server.\n\n Fetches MVPN MAC IP routes learnt by this BGP peer.\n\n getIpv6MvpnLearnedInfo(Arg2=list)list\n -------------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin.\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self.href} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('getIpv6MvpnLearnedInfo', payload=payload, response_object=None)
def GetIpv6UmhRoutesLearnedInfo(self, *args, **kwargs): 'Executes the getIpv6UmhRoutesLearnedInfo operation on the server.\n\n Fetches Umh Route learned by this BGP peer.\n\n getIpv6UmhRoutesLearnedInfo(Arg2=list)list\n ------------------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin.\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self.href} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('getIpv6UmhRoutesLearnedInfo', payload=payload, response_object=None)
-6,417,572,488,137,651,000
Executes the getIpv6UmhRoutesLearnedInfo operation on the server. Fetches Umh Route learned by this BGP peer. getIpv6UmhRoutesLearnedInfo(Arg2=list)list ------------------------------------------ - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin. - Returns list(str): ID to associate each async action invocation Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
GetIpv6UmhRoutesLearnedInfo
rfrye-github/ixnetwork_restpy
python
def GetIpv6UmhRoutesLearnedInfo(self, *args, **kwargs): 'Executes the getIpv6UmhRoutesLearnedInfo operation on the server.\n\n Fetches Umh Route learned by this BGP peer.\n\n getIpv6UmhRoutesLearnedInfo(Arg2=list)list\n ------------------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin.\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self.href} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('getIpv6UmhRoutesLearnedInfo', payload=payload, response_object=None)
def GetIPv6VpnLearnedInfo(self, *args, **kwargs): 'Executes the getIPv6VpnLearnedInfo operation on the server.\n\n Get IPv6 Vpn Learned Info\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n getIPv6VpnLearnedInfo(SessionIndices=list)\n ------------------------------------------\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n\n getIPv6VpnLearnedInfo(SessionIndices=string)\n --------------------------------------------\n - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12\n\n getIPv6VpnLearnedInfo(Arg2=list)list\n ------------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin.\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('getIPv6VpnLearnedInfo', payload=payload, response_object=None)
8,341,616,239,796,620,000
Executes the getIPv6VpnLearnedInfo operation on the server. Get IPv6 Vpn Learned Info The IxNetwork model allows for multiple method Signatures with the same name while python does not. getIPv6VpnLearnedInfo(SessionIndices=list) ------------------------------------------ - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3 getIPv6VpnLearnedInfo(SessionIndices=string) -------------------------------------------- - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12 getIPv6VpnLearnedInfo(Arg2=list)list ------------------------------------ - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin. - Returns list(str): ID to associate each async action invocation Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
GetIPv6VpnLearnedInfo
rfrye-github/ixnetwork_restpy
python
def GetIPv6VpnLearnedInfo(self, *args, **kwargs): 'Executes the getIPv6VpnLearnedInfo operation on the server.\n\n Get IPv6 Vpn Learned Info\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n getIPv6VpnLearnedInfo(SessionIndices=list)\n ------------------------------------------\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n\n getIPv6VpnLearnedInfo(SessionIndices=string)\n --------------------------------------------\n - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12\n\n getIPv6VpnLearnedInfo(Arg2=list)list\n ------------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin.\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('getIPv6VpnLearnedInfo', payload=payload, response_object=None)
def GetLinkStateLearnedInfo(self, *args, **kwargs): 'Executes the getLinkStateLearnedInfo operation on the server.\n\n Get Link State Learned Info\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n getLinkStateLearnedInfo(SessionIndices=list)\n --------------------------------------------\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n\n getLinkStateLearnedInfo(SessionIndices=string)\n ----------------------------------------------\n - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12\n\n getLinkStateLearnedInfo(Arg2=list)list\n --------------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin.\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('getLinkStateLearnedInfo', payload=payload, response_object=None)
-6,391,005,342,243,396,000
Executes the getLinkStateLearnedInfo operation on the server. Get Link State Learned Info The IxNetwork model allows for multiple method Signatures with the same name while python does not. getLinkStateLearnedInfo(SessionIndices=list) -------------------------------------------- - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3 getLinkStateLearnedInfo(SessionIndices=string) ---------------------------------------------- - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12 getLinkStateLearnedInfo(Arg2=list)list -------------------------------------- - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin. - Returns list(str): ID to associate each async action invocation Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
GetLinkStateLearnedInfo
rfrye-github/ixnetwork_restpy
python
def GetLinkStateLearnedInfo(self, *args, **kwargs): 'Executes the getLinkStateLearnedInfo operation on the server.\n\n Get Link State Learned Info\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n getLinkStateLearnedInfo(SessionIndices=list)\n --------------------------------------------\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n\n getLinkStateLearnedInfo(SessionIndices=string)\n ----------------------------------------------\n - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12\n\n getLinkStateLearnedInfo(Arg2=list)list\n --------------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin.\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('getLinkStateLearnedInfo', payload=payload, response_object=None)
def GetLinkStateVPNLearnedInfo(self, *args, **kwargs): 'Executes the getLinkStateVPNLearnedInfo operation on the server.\n\n Get Link State VPN Learned Info\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n getLinkStateVPNLearnedInfo(SessionIndices=list)\n -----------------------------------------------\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n\n getLinkStateVPNLearnedInfo(SessionIndices=string)\n -------------------------------------------------\n - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12\n\n getLinkStateVPNLearnedInfo(Arg2=list)list\n -----------------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin.\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('getLinkStateVPNLearnedInfo', payload=payload, response_object=None)
-2,706,641,316,223,924,700
Executes the getLinkStateVPNLearnedInfo operation on the server. Get Link State VPN Learned Info The IxNetwork model allows for multiple method Signatures with the same name while python does not. getLinkStateVPNLearnedInfo(SessionIndices=list) ----------------------------------------------- - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3 getLinkStateVPNLearnedInfo(SessionIndices=string) ------------------------------------------------- - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12 getLinkStateVPNLearnedInfo(Arg2=list)list ----------------------------------------- - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin. - Returns list(str): ID to associate each async action invocation Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
GetLinkStateVPNLearnedInfo
rfrye-github/ixnetwork_restpy
python
def GetLinkStateVPNLearnedInfo(self, *args, **kwargs): 'Executes the getLinkStateVPNLearnedInfo operation on the server.\n\n Get Link State VPN Learned Info\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n getLinkStateVPNLearnedInfo(SessionIndices=list)\n -----------------------------------------------\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n\n getLinkStateVPNLearnedInfo(SessionIndices=string)\n -------------------------------------------------\n - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12\n\n getLinkStateVPNLearnedInfo(Arg2=list)list\n -----------------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin.\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('getLinkStateVPNLearnedInfo', payload=payload, response_object=None)
def GetVPLSLearnedInfo(self, *args, **kwargs): 'Executes the getVPLSLearnedInfo operation on the server.\n\n Get VPLS Learned Info\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n getVPLSLearnedInfo(SessionIndices=list)\n ---------------------------------------\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n\n getVPLSLearnedInfo(SessionIndices=string)\n -----------------------------------------\n - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12\n\n getVPLSLearnedInfo(Arg2=list)list\n ---------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin.\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('getVPLSLearnedInfo', payload=payload, response_object=None)
-114,708,699,476,843,040
Executes the getVPLSLearnedInfo operation on the server. Get VPLS Learned Info The IxNetwork model allows for multiple method Signatures with the same name while python does not. getVPLSLearnedInfo(SessionIndices=list) --------------------------------------- - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3 getVPLSLearnedInfo(SessionIndices=string) ----------------------------------------- - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12 getVPLSLearnedInfo(Arg2=list)list --------------------------------- - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin. - Returns list(str): ID to associate each async action invocation Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
GetVPLSLearnedInfo
rfrye-github/ixnetwork_restpy
python
def GetVPLSLearnedInfo(self, *args, **kwargs): 'Executes the getVPLSLearnedInfo operation on the server.\n\n Get VPLS Learned Info\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n getVPLSLearnedInfo(SessionIndices=list)\n ---------------------------------------\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n\n getVPLSLearnedInfo(SessionIndices=string)\n -----------------------------------------\n - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12\n\n getVPLSLearnedInfo(Arg2=list)list\n ---------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin.\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('getVPLSLearnedInfo', payload=payload, response_object=None)
def GracefulRestart(self, *args, **kwargs): 'Executes the gracefulRestart operation on the server.\n\n Graceful restart Peers on selected Peer Ranges\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n gracefulRestart(Restart_time=number)\n ------------------------------------\n - Restart_time (number): This parameter requires a restart_time of type kInteger\n\n gracefulRestart(Restart_time=number, SessionIndices=list)\n ---------------------------------------------------------\n - Restart_time (number): This parameter requires a restart_time of type kInteger\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n\n gracefulRestart(SessionIndices=string, Restart_time=number)\n -----------------------------------------------------------\n - SessionIndices (str): This parameter requires a restart_time of type kInteger\n - Restart_time (number): This parameter requires a string of session numbers 1-4;6;7-12\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('gracefulRestart', payload=payload, response_object=None)
-3,780,761,375,758,555,000
Executes the gracefulRestart operation on the server. Graceful restart Peers on selected Peer Ranges The IxNetwork model allows for multiple method Signatures with the same name while python does not. gracefulRestart(Restart_time=number) ------------------------------------ - Restart_time (number): This parameter requires a restart_time of type kInteger gracefulRestart(Restart_time=number, SessionIndices=list) --------------------------------------------------------- - Restart_time (number): This parameter requires a restart_time of type kInteger - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3 gracefulRestart(SessionIndices=string, Restart_time=number) ----------------------------------------------------------- - SessionIndices (str): This parameter requires a restart_time of type kInteger - Restart_time (number): This parameter requires a string of session numbers 1-4;6;7-12 Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
GracefulRestart
rfrye-github/ixnetwork_restpy
python
def GracefulRestart(self, *args, **kwargs): 'Executes the gracefulRestart operation on the server.\n\n Graceful restart Peers on selected Peer Ranges\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n gracefulRestart(Restart_time=number)\n ------------------------------------\n - Restart_time (number): This parameter requires a restart_time of type kInteger\n\n gracefulRestart(Restart_time=number, SessionIndices=list)\n ---------------------------------------------------------\n - Restart_time (number): This parameter requires a restart_time of type kInteger\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n\n gracefulRestart(SessionIndices=string, Restart_time=number)\n -----------------------------------------------------------\n - SessionIndices (str): This parameter requires a restart_time of type kInteger\n - Restart_time (number): This parameter requires a string of session numbers 1-4;6;7-12\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('gracefulRestart', payload=payload, response_object=None)
def Gracefulrestart(self, *args, **kwargs): 'Executes the gracefulrestart operation on the server.\n\n Graceful restart Peers on selected Peer Ranges.\n\n gracefulrestart(Arg2=list, Arg3=number)list\n -------------------------------------------\n - Arg2 (list(number)): List of indices into the group. An empty list indicates all instances in the group.\n - Arg3 (number): Restart After Time(in secs).\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self.href} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('gracefulrestart', payload=payload, response_object=None)
8,674,972,192,171,078,000
Executes the gracefulrestart operation on the server. Graceful restart Peers on selected Peer Ranges. gracefulrestart(Arg2=list, Arg3=number)list ------------------------------------------- - Arg2 (list(number)): List of indices into the group. An empty list indicates all instances in the group. - Arg3 (number): Restart After Time(in secs). - Returns list(str): ID to associate each async action invocation Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
Gracefulrestart
rfrye-github/ixnetwork_restpy
python
def Gracefulrestart(self, *args, **kwargs): 'Executes the gracefulrestart operation on the server.\n\n Graceful restart Peers on selected Peer Ranges.\n\n gracefulrestart(Arg2=list, Arg3=number)list\n -------------------------------------------\n - Arg2 (list(number)): List of indices into the group. An empty list indicates all instances in the group.\n - Arg3 (number): Restart After Time(in secs).\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self.href} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('gracefulrestart', payload=payload, response_object=None)
def RestartDown(self, *args, **kwargs): 'Executes the restartDown operation on the server.\n\n Stop and start interfaces and sessions that are in Down state.\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n restartDown(SessionIndices=list)\n --------------------------------\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n\n restartDown(SessionIndices=string)\n ----------------------------------\n - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('restartDown', payload=payload, response_object=None)
4,659,157,286,343,468,000
Executes the restartDown operation on the server. Stop and start interfaces and sessions that are in Down state. The IxNetwork model allows for multiple method Signatures with the same name while python does not. restartDown(SessionIndices=list) -------------------------------- - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3 restartDown(SessionIndices=string) ---------------------------------- - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12 Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
RestartDown
rfrye-github/ixnetwork_restpy
python
def RestartDown(self, *args, **kwargs): 'Executes the restartDown operation on the server.\n\n Stop and start interfaces and sessions that are in Down state.\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n restartDown(SessionIndices=list)\n --------------------------------\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n\n restartDown(SessionIndices=string)\n ----------------------------------\n - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('restartDown', payload=payload, response_object=None)
def ResumeKeepAlive(self, *args, **kwargs): 'Executes the resumeKeepAlive operation on the server.\n\n Resume sending KeepAlive\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n resumeKeepAlive(SessionIndices=list)\n ------------------------------------\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n\n resumeKeepAlive(SessionIndices=string)\n --------------------------------------\n - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('resumeKeepAlive', payload=payload, response_object=None)
-6,976,083,224,863,804,000
Executes the resumeKeepAlive operation on the server. Resume sending KeepAlive The IxNetwork model allows for multiple method Signatures with the same name while python does not. resumeKeepAlive(SessionIndices=list) ------------------------------------ - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3 resumeKeepAlive(SessionIndices=string) -------------------------------------- - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12 Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
ResumeKeepAlive
rfrye-github/ixnetwork_restpy
python
def ResumeKeepAlive(self, *args, **kwargs): 'Executes the resumeKeepAlive operation on the server.\n\n Resume sending KeepAlive\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n resumeKeepAlive(SessionIndices=list)\n ------------------------------------\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n\n resumeKeepAlive(SessionIndices=string)\n --------------------------------------\n - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('resumeKeepAlive', payload=payload, response_object=None)
def Resumekeepalive(self, *args, **kwargs): 'Executes the resumekeepalive operation on the server.\n\n Start Sending Keep Alive Messages.\n\n resumekeepalive(Arg2=list)list\n ------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin.\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self.href} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('resumekeepalive', payload=payload, response_object=None)
-1,320,287,173,858,131,200
Executes the resumekeepalive operation on the server. Start Sending Keep Alive Messages. resumekeepalive(Arg2=list)list ------------------------------ - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin. - Returns list(str): ID to associate each async action invocation Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
Resumekeepalive
rfrye-github/ixnetwork_restpy
python
def Resumekeepalive(self, *args, **kwargs): 'Executes the resumekeepalive operation on the server.\n\n Start Sending Keep Alive Messages.\n\n resumekeepalive(Arg2=list)list\n ------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin.\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self.href} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('resumekeepalive', payload=payload, response_object=None)
def ResumeTCPSession(self, *args, **kwargs): 'Executes the resumeTCPSession operation on the server.\n\n Resume TCP Session\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n resumeTCPSession(Notification_code=number, Notification_sub_code=number)\n ------------------------------------------------------------------------\n - Notification_code (number): This parameter requires a notification_code of type kInteger\n - Notification_sub_code (number): This parameter requires a notification_sub_code of type kInteger\n\n resumeTCPSession(Notification_code=number, Notification_sub_code=number, SessionIndices=list)\n ---------------------------------------------------------------------------------------------\n - Notification_code (number): This parameter requires a notification_code of type kInteger\n - Notification_sub_code (number): This parameter requires a notification_sub_code of type kInteger\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n\n resumeTCPSession(SessionIndices=string, Notification_code=number, Notification_sub_code=number)\n -----------------------------------------------------------------------------------------------\n - SessionIndices (str): This parameter requires a notification_code of type kInteger\n - Notification_code (number): This parameter requires a notification_sub_code of type kInteger\n - Notification_sub_code (number): This parameter requires a string of session numbers 1-4;6;7-12\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('resumeTCPSession', payload=payload, response_object=None)
6,446,266,961,013,488,000
Executes the resumeTCPSession operation on the server. Resume TCP Session The IxNetwork model allows for multiple method Signatures with the same name while python does not. resumeTCPSession(Notification_code=number, Notification_sub_code=number) ------------------------------------------------------------------------ - Notification_code (number): This parameter requires a notification_code of type kInteger - Notification_sub_code (number): This parameter requires a notification_sub_code of type kInteger resumeTCPSession(Notification_code=number, Notification_sub_code=number, SessionIndices=list) --------------------------------------------------------------------------------------------- - Notification_code (number): This parameter requires a notification_code of type kInteger - Notification_sub_code (number): This parameter requires a notification_sub_code of type kInteger - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3 resumeTCPSession(SessionIndices=string, Notification_code=number, Notification_sub_code=number) ----------------------------------------------------------------------------------------------- - SessionIndices (str): This parameter requires a notification_code of type kInteger - Notification_code (number): This parameter requires a notification_sub_code of type kInteger - Notification_sub_code (number): This parameter requires a string of session numbers 1-4;6;7-12 Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
ResumeTCPSession
rfrye-github/ixnetwork_restpy
python
def ResumeTCPSession(self, *args, **kwargs): 'Executes the resumeTCPSession operation on the server.\n\n Resume TCP Session\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n resumeTCPSession(Notification_code=number, Notification_sub_code=number)\n ------------------------------------------------------------------------\n - Notification_code (number): This parameter requires a notification_code of type kInteger\n - Notification_sub_code (number): This parameter requires a notification_sub_code of type kInteger\n\n resumeTCPSession(Notification_code=number, Notification_sub_code=number, SessionIndices=list)\n ---------------------------------------------------------------------------------------------\n - Notification_code (number): This parameter requires a notification_code of type kInteger\n - Notification_sub_code (number): This parameter requires a notification_sub_code of type kInteger\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n\n resumeTCPSession(SessionIndices=string, Notification_code=number, Notification_sub_code=number)\n -----------------------------------------------------------------------------------------------\n - SessionIndices (str): This parameter requires a notification_code of type kInteger\n - Notification_code (number): This parameter requires a notification_sub_code of type kInteger\n - Notification_sub_code (number): This parameter requires a string of session numbers 1-4;6;7-12\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('resumeTCPSession', payload=payload, response_object=None)
def Resumetcpsession(self, *args, **kwargs): 'Executes the resumetcpsession operation on the server.\n\n Resume BGP Peer Range TCP Session.\n\n resumetcpsession(Arg2=list, Arg3=number, Arg4=number)list\n ---------------------------------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin.\n - Arg3 (number): Notification Code\n - Arg4 (number): Notification Sub Code\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self.href} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('resumetcpsession', payload=payload, response_object=None)
-1,577,741,164,448,756,000
Executes the resumetcpsession operation on the server. Resume BGP Peer Range TCP Session. resumetcpsession(Arg2=list, Arg3=number, Arg4=number)list --------------------------------------------------------- - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin. - Arg3 (number): Notification Code - Arg4 (number): Notification Sub Code - Returns list(str): ID to associate each async action invocation Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
Resumetcpsession
rfrye-github/ixnetwork_restpy
python
def Resumetcpsession(self, *args, **kwargs): 'Executes the resumetcpsession operation on the server.\n\n Resume BGP Peer Range TCP Session.\n\n resumetcpsession(Arg2=list, Arg3=number, Arg4=number)list\n ---------------------------------------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin.\n - Arg3 (number): Notification Code\n - Arg4 (number): Notification Sub Code\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self.href} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('resumetcpsession', payload=payload, response_object=None)
def Start(self, *args, **kwargs): 'Executes the start operation on the server.\n\n Start CPF control plane (equals to promote to negotiated state).\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n start(SessionIndices=list)\n --------------------------\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n\n start(SessionIndices=string)\n ----------------------------\n - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('start', payload=payload, response_object=None)
-2,391,277,653,345,431,600
Executes the start operation on the server. Start CPF control plane (equals to promote to negotiated state). The IxNetwork model allows for multiple method Signatures with the same name while python does not. start(SessionIndices=list) -------------------------- - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3 start(SessionIndices=string) ---------------------------- - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12 Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
Start
rfrye-github/ixnetwork_restpy
python
def Start(self, *args, **kwargs): 'Executes the start operation on the server.\n\n Start CPF control plane (equals to promote to negotiated state).\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n start(SessionIndices=list)\n --------------------------\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n\n start(SessionIndices=string)\n ----------------------------\n - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('start', payload=payload, response_object=None)
def Stop(self, *args, **kwargs): 'Executes the stop operation on the server.\n\n Stop CPF control plane (equals to demote to PreValidated-DoDDone state).\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n stop(SessionIndices=list)\n -------------------------\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n\n stop(SessionIndices=string)\n ---------------------------\n - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('stop', payload=payload, response_object=None)
-4,832,152,116,606,881,000
Executes the stop operation on the server. Stop CPF control plane (equals to demote to PreValidated-DoDDone state). The IxNetwork model allows for multiple method Signatures with the same name while python does not. stop(SessionIndices=list) ------------------------- - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3 stop(SessionIndices=string) --------------------------- - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12 Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
Stop
rfrye-github/ixnetwork_restpy
python
def Stop(self, *args, **kwargs): 'Executes the stop operation on the server.\n\n Stop CPF control plane (equals to demote to PreValidated-DoDDone state).\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n stop(SessionIndices=list)\n -------------------------\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n\n stop(SessionIndices=string)\n ---------------------------\n - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('stop', payload=payload, response_object=None)
def StopKeepAlive(self, *args, **kwargs): 'Executes the stopKeepAlive operation on the server.\n\n Stop sending KeepAlive\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n stopKeepAlive(SessionIndices=list)\n ----------------------------------\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n\n stopKeepAlive(SessionIndices=string)\n ------------------------------------\n - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('stopKeepAlive', payload=payload, response_object=None)
2,519,536,556,813,721,600
Executes the stopKeepAlive operation on the server. Stop sending KeepAlive The IxNetwork model allows for multiple method Signatures with the same name while python does not. stopKeepAlive(SessionIndices=list) ---------------------------------- - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3 stopKeepAlive(SessionIndices=string) ------------------------------------ - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12 Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
StopKeepAlive
rfrye-github/ixnetwork_restpy
python
def StopKeepAlive(self, *args, **kwargs): 'Executes the stopKeepAlive operation on the server.\n\n Stop sending KeepAlive\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n stopKeepAlive(SessionIndices=list)\n ----------------------------------\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n\n stopKeepAlive(SessionIndices=string)\n ------------------------------------\n - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('stopKeepAlive', payload=payload, response_object=None)
def Stopkeepalive(self, *args, **kwargs): 'Executes the stopkeepalive operation on the server.\n\n Stop Sending Keep Alive Messages.\n\n stopkeepalive(Arg2=list)list\n ----------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin.\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self.href} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('stopkeepalive', payload=payload, response_object=None)
6,493,356,582,385,167,000
Executes the stopkeepalive operation on the server. Stop Sending Keep Alive Messages. stopkeepalive(Arg2=list)list ---------------------------- - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin. - Returns list(str): ID to associate each async action invocation Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6peer_d4ac277d9da759fd5a152b8e6eb0ab20.py
Stopkeepalive
rfrye-github/ixnetwork_restpy
python
def Stopkeepalive(self, *args, **kwargs): 'Executes the stopkeepalive operation on the server.\n\n Stop Sending Keep Alive Messages.\n\n stopkeepalive(Arg2=list)list\n ----------------------------\n - Arg2 (list(number)): List of indices into the protocol plugin. An empty list indicates all instances in the plugin.\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self.href} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('stopkeepalive', payload=payload, response_object=None)
def format_single_row(keys, line_data): 'Create an xml string from the keys and line_data values.' row_values = [' <{key}>{value}</{key}>\n'.format(key=key, value=value) for (key, value) in zip(keys, line_data)] return ''.join(row_values)
5,994,814,562,881,397,000
Create an xml string from the keys and line_data values.
retriever/engines/xmlengine.py
format_single_row
Aakash3101/retriever
python
def format_single_row(keys, line_data): row_values = [' <{key}>{value}</{key}>\n'.format(key=key, value=value) for (key, value) in zip(keys, line_data)] return .join(row_values)
def create_db(self): 'Override create_db since there is no database just an XML file.' return None
-6,147,345,243,713,666,000
Override create_db since there is no database just an XML file.
retriever/engines/xmlengine.py
create_db
Aakash3101/retriever
python
def create_db(self): return None
def create_table(self): 'Create the table by creating an empty XML file.' table_path = os.path.join(self.opts['data_dir'], self.table_name()) self.output_file = open_fw(table_path, encoding=self.encoding) self.output_file.write(u'<?xml version="1.0" encoding="UTF-8"?>') self.output_file.write(u'\n<root>') self.table_names.append((self.output_file, table_path)) self.auto_column_number = 1 if (self.script.name not in self.script_table_registry): self.script_table_registry[self.script.name] = [] self.script_table_registry[self.script.name].append((self.table_name(), self.table))
3,999,218,264,964,336,000
Create the table by creating an empty XML file.
retriever/engines/xmlengine.py
create_table
Aakash3101/retriever
python
def create_table(self): table_path = os.path.join(self.opts['data_dir'], self.table_name()) self.output_file = open_fw(table_path, encoding=self.encoding) self.output_file.write(u'<?xml version="1.0" encoding="UTF-8"?>') self.output_file.write(u'\n<root>') self.table_names.append((self.output_file, table_path)) self.auto_column_number = 1 if (self.script.name not in self.script_table_registry): self.script_table_registry[self.script.name] = [] self.script_table_registry[self.script.name].append((self.table_name(), self.table))
def disconnect(self): 'Close out the xml files\n\n Close all the file objects that have been created\n Re-write the files stripping off the last comma and then close with a closing tag)\n ' if self.table_names: for (output_file_i, file_name) in self.table_names: output_file_i.close() current_input_file = open_fr(file_name, encoding=self.encoding) file_contents = current_input_file.readlines() current_input_file.close() file_contents[(- 1)] = file_contents[(- 1)].strip(',') current_output_file = open_fw(file_name, encoding=self.encoding) current_output_file.writelines(file_contents) current_output_file.write('\n</root>') current_output_file.close() self.table_names = []
-1,654,113,614,426,609,400
Close out the xml files Close all the file objects that have been created Re-write the files stripping off the last comma and then close with a closing tag)
retriever/engines/xmlengine.py
disconnect
Aakash3101/retriever
python
def disconnect(self): 'Close out the xml files\n\n Close all the file objects that have been created\n Re-write the files stripping off the last comma and then close with a closing tag)\n ' if self.table_names: for (output_file_i, file_name) in self.table_names: output_file_i.close() current_input_file = open_fr(file_name, encoding=self.encoding) file_contents = current_input_file.readlines() current_input_file.close() file_contents[(- 1)] = file_contents[(- 1)].strip(',') current_output_file = open_fw(file_name, encoding=self.encoding) current_output_file.writelines(file_contents) current_output_file.write('\n</root>') current_output_file.close() self.table_names = []
def execute(self, statement, commit=True): 'Write a line to the output file.' self.output_file.writelines(statement)
-8,243,420,026,594,456,000
Write a line to the output file.
retriever/engines/xmlengine.py
execute
Aakash3101/retriever
python
def execute(self, statement, commit=True): self.output_file.writelines(statement)
def executemany(self, statement, values, commit=True): 'Write a line to the output file.' self.output_file.writelines(statement)
4,777,583,281,239,671,000
Write a line to the output file.
retriever/engines/xmlengine.py
executemany
Aakash3101/retriever
python
def executemany(self, statement, values, commit=True): self.output_file.writelines(statement)
def format_insert_value(self, value, datatype): 'Format value for an insert statement.' v = Engine.format_insert_value(self, value, datatype) if (v is None): return '' try: if ((len(v) > 1) and (v[0] == v[(- 1)] == "'")): v = ('"%s"' % v[1:(- 1)]) except BaseException: pass return v
-1,966,418,703,536,154,600
Format value for an insert statement.
retriever/engines/xmlengine.py
format_insert_value
Aakash3101/retriever
python
def format_insert_value(self, value, datatype): v = Engine.format_insert_value(self, value, datatype) if (v is None): return try: if ((len(v) > 1) and (v[0] == v[(- 1)] == "'")): v = ('"%s"' % v[1:(- 1)]) except BaseException: pass return v
def insert_statement(self, values): 'Create the insert statement.\n\n Wrap each data value with column values(key)\n using _format_single_row <key> value </key>.\n ' if (not hasattr(self, 'auto_column_number')): self.auto_column_number = 1 keys = self.table.get_insert_columns(join=False, create=True) if (self.table.columns[0][1][0][3:] == 'auto'): newrows = [] for rows in values: insert_stmt = ([self.auto_column_number] + rows) newrows.append(insert_stmt) self.auto_column_number += 1 else: newrows = values xml_lines = ['\n<row>\n{}</row>'.format(format_single_row(keys, line_data)) for line_data in newrows] return xml_lines
-4,862,993,831,829,527,000
Create the insert statement. Wrap each data value with column values(key) using _format_single_row <key> value </key>.
retriever/engines/xmlengine.py
insert_statement
Aakash3101/retriever
python
def insert_statement(self, values): 'Create the insert statement.\n\n Wrap each data value with column values(key)\n using _format_single_row <key> value </key>.\n ' if (not hasattr(self, 'auto_column_number')): self.auto_column_number = 1 keys = self.table.get_insert_columns(join=False, create=True) if (self.table.columns[0][1][0][3:] == 'auto'): newrows = [] for rows in values: insert_stmt = ([self.auto_column_number] + rows) newrows.append(insert_stmt) self.auto_column_number += 1 else: newrows = values xml_lines = ['\n<row>\n{}</row>'.format(format_single_row(keys, line_data)) for line_data in newrows] return xml_lines
def to_csv(self, sort=True, path=None, select_columns=None): 'Export table from xml engine to CSV file.' for table_item in self.script_table_registry[self.script.name]: header = table_item[1].get_insert_columns(join=False, create=True) outputfile = os.path.normpath(os.path.join((path if path else ''), (os.path.splitext(os.path.basename(table_item[0]))[0] + '.csv'))) empty_rows = 1 if hasattr(self.script, 'empty_rows'): empty_rows = self.script.empty_rows input_file = table_item[0] header_values = header csv_outfile = xml2csv_test(input_file, outputfile, header_values, row_tag='row') sort_csv(csv_outfile, encoding=self.encoding)
4,678,985,382,946,565,000
Export table from xml engine to CSV file.
retriever/engines/xmlengine.py
to_csv
Aakash3101/retriever
python
def to_csv(self, sort=True, path=None, select_columns=None): for table_item in self.script_table_registry[self.script.name]: header = table_item[1].get_insert_columns(join=False, create=True) outputfile = os.path.normpath(os.path.join((path if path else ), (os.path.splitext(os.path.basename(table_item[0]))[0] + '.csv'))) empty_rows = 1 if hasattr(self.script, 'empty_rows'): empty_rows = self.script.empty_rows input_file = table_item[0] header_values = header csv_outfile = xml2csv_test(input_file, outputfile, header_values, row_tag='row') sort_csv(csv_outfile, encoding=self.encoding)
def get_connection(self): 'Get db connection.' self.get_input() return DummyConnection()
1,755,957,490,005,889,000
Get db connection.
retriever/engines/xmlengine.py
get_connection
Aakash3101/retriever
python
def get_connection(self): self.get_input() return DummyConnection()
def align(x, al): ' return <x> aligned to <al> ' return (((x + (al - 1)) // al) * al)
-7,178,449,365,235,559,000
return <x> aligned to <al>
packer4/utils.py
align
nnnewb/learning-packer
python
def align(x, al): ' ' return (((x + (al - 1)) // al) * al)
def __init__(self, url_name='', click_css_selector='', pause_time=1, x_offset=8, y_offset=8, try_times=20): '\n 爬虫标签页设置\n :param url_name:\n :param click_css_selector:\n :param pause_time:暂停时间\n :param x_offset:x轴方向页面偏移\n :param y_offset:y轴方向页面偏移\n :param try_times:尝试的次数\n ' self.url_name = url_name self.click_css_selector = click_css_selector self.pause_time = pause_time self.x_offset = x_offset self.y_offset = y_offset self.try_times = try_times
-691,762,106,257,236,700
爬虫标签页设置 :param url_name: :param click_css_selector: :param pause_time:暂停时间 :param x_offset:x轴方向页面偏移 :param y_offset:y轴方向页面偏移 :param try_times:尝试的次数
spider/driver/base/tabsetup.py
__init__
mannuan/dspider
python
def __init__(self, url_name=, click_css_selector=, pause_time=1, x_offset=8, y_offset=8, try_times=20): '\n 爬虫标签页设置\n :param url_name:\n :param click_css_selector:\n :param pause_time:暂停时间\n :param x_offset:x轴方向页面偏移\n :param y_offset:y轴方向页面偏移\n :param try_times:尝试的次数\n ' self.url_name = url_name self.click_css_selector = click_css_selector self.pause_time = pause_time self.x_offset = x_offset self.y_offset = y_offset self.try_times = try_times
def create_or_update(self, resource_group_name, workspace_name, storage_insight_name, parameters, **kwargs): 'Create or update a storage insight.\n\n :param resource_group_name: The name of the resource group. The name is case insensitive.\n :type resource_group_name: str\n :param workspace_name: The name of the workspace.\n :type workspace_name: str\n :param storage_insight_name: Name of the storageInsightsConfigs resource.\n :type storage_insight_name: str\n :param parameters: The parameters required to create or update a storage insight.\n :type parameters: ~azure.mgmt.loganalytics.models.StorageInsight\n :keyword callable cls: A custom type or function that will be passed the direct response\n :return: StorageInsight, or the result of cls(response)\n :rtype: ~azure.mgmt.loganalytics.models.StorageInsight\n :raises: ~azure.core.exceptions.HttpResponseError\n ' cls = kwargs.pop('cls', None) error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = '2020-08-01' content_type = kwargs.pop('content_type', 'application/json') accept = 'application/json' url = self.create_or_update.metadata['url'] path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1), 'workspaceName': self._serialize.url('workspace_name', workspace_name, 'str', max_length=63, min_length=4, pattern='^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$'), 'storageInsightName': self._serialize.url('storage_insight_name', storage_insight_name, 'str'), 'subscriptionId': self._serialize.url('self._config.subscription_id', self._config.subscription_id, 'str', min_length=1)} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-version'] = self._serialize.query('api_version', api_version, 'str') header_parameters = {} header_parameters['Content-Type'] = self._serialize.header('content_type', content_type, 'str') header_parameters['Accept'] = self._serialize.header('accept', accept, 'str') body_content_kwargs = {} body_content = self._serialize.body(parameters, 'StorageInsight') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if (response.status_code not in [200, 201]): map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if (response.status_code == 200): deserialized = self._deserialize('StorageInsight', pipeline_response) if (response.status_code == 201): deserialized = self._deserialize('StorageInsight', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized
7,226,258,082,633,979,000
Create or update a storage insight. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str :param workspace_name: The name of the workspace. :type workspace_name: str :param storage_insight_name: Name of the storageInsightsConfigs resource. :type storage_insight_name: str :param parameters: The parameters required to create or update a storage insight. :type parameters: ~azure.mgmt.loganalytics.models.StorageInsight :keyword callable cls: A custom type or function that will be passed the direct response :return: StorageInsight, or the result of cls(response) :rtype: ~azure.mgmt.loganalytics.models.StorageInsight :raises: ~azure.core.exceptions.HttpResponseError
sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/operations/_storage_insight_configs_operations.py
create_or_update
AFengKK/azure-sdk-for-python
python
def create_or_update(self, resource_group_name, workspace_name, storage_insight_name, parameters, **kwargs): 'Create or update a storage insight.\n\n :param resource_group_name: The name of the resource group. The name is case insensitive.\n :type resource_group_name: str\n :param workspace_name: The name of the workspace.\n :type workspace_name: str\n :param storage_insight_name: Name of the storageInsightsConfigs resource.\n :type storage_insight_name: str\n :param parameters: The parameters required to create or update a storage insight.\n :type parameters: ~azure.mgmt.loganalytics.models.StorageInsight\n :keyword callable cls: A custom type or function that will be passed the direct response\n :return: StorageInsight, or the result of cls(response)\n :rtype: ~azure.mgmt.loganalytics.models.StorageInsight\n :raises: ~azure.core.exceptions.HttpResponseError\n ' cls = kwargs.pop('cls', None) error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = '2020-08-01' content_type = kwargs.pop('content_type', 'application/json') accept = 'application/json' url = self.create_or_update.metadata['url'] path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1), 'workspaceName': self._serialize.url('workspace_name', workspace_name, 'str', max_length=63, min_length=4, pattern='^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$'), 'storageInsightName': self._serialize.url('storage_insight_name', storage_insight_name, 'str'), 'subscriptionId': self._serialize.url('self._config.subscription_id', self._config.subscription_id, 'str', min_length=1)} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-version'] = self._serialize.query('api_version', api_version, 'str') header_parameters = {} header_parameters['Content-Type'] = self._serialize.header('content_type', content_type, 'str') header_parameters['Accept'] = self._serialize.header('accept', accept, 'str') body_content_kwargs = {} body_content = self._serialize.body(parameters, 'StorageInsight') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if (response.status_code not in [200, 201]): map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if (response.status_code == 200): deserialized = self._deserialize('StorageInsight', pipeline_response) if (response.status_code == 201): deserialized = self._deserialize('StorageInsight', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized
def get(self, resource_group_name, workspace_name, storage_insight_name, **kwargs): 'Gets a storage insight instance.\n\n :param resource_group_name: The name of the resource group. The name is case insensitive.\n :type resource_group_name: str\n :param workspace_name: The name of the workspace.\n :type workspace_name: str\n :param storage_insight_name: Name of the storageInsightsConfigs resource.\n :type storage_insight_name: str\n :keyword callable cls: A custom type or function that will be passed the direct response\n :return: StorageInsight, or the result of cls(response)\n :rtype: ~azure.mgmt.loganalytics.models.StorageInsight\n :raises: ~azure.core.exceptions.HttpResponseError\n ' cls = kwargs.pop('cls', None) error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = '2020-08-01' accept = 'application/json' url = self.get.metadata['url'] path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1), 'workspaceName': self._serialize.url('workspace_name', workspace_name, 'str', max_length=63, min_length=4, pattern='^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$'), 'storageInsightName': self._serialize.url('storage_insight_name', storage_insight_name, 'str'), 'subscriptionId': self._serialize.url('self._config.subscription_id', self._config.subscription_id, 'str', min_length=1)} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-version'] = self._serialize.query('api_version', api_version, 'str') header_parameters = {} header_parameters['Accept'] = self._serialize.header('accept', accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if (response.status_code not in [200]): map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = self._deserialize('StorageInsight', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized
-6,809,198,640,561,160,000
Gets a storage insight instance. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str :param workspace_name: The name of the workspace. :type workspace_name: str :param storage_insight_name: Name of the storageInsightsConfigs resource. :type storage_insight_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: StorageInsight, or the result of cls(response) :rtype: ~azure.mgmt.loganalytics.models.StorageInsight :raises: ~azure.core.exceptions.HttpResponseError
sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/operations/_storage_insight_configs_operations.py
get
AFengKK/azure-sdk-for-python
python
def get(self, resource_group_name, workspace_name, storage_insight_name, **kwargs): 'Gets a storage insight instance.\n\n :param resource_group_name: The name of the resource group. The name is case insensitive.\n :type resource_group_name: str\n :param workspace_name: The name of the workspace.\n :type workspace_name: str\n :param storage_insight_name: Name of the storageInsightsConfigs resource.\n :type storage_insight_name: str\n :keyword callable cls: A custom type or function that will be passed the direct response\n :return: StorageInsight, or the result of cls(response)\n :rtype: ~azure.mgmt.loganalytics.models.StorageInsight\n :raises: ~azure.core.exceptions.HttpResponseError\n ' cls = kwargs.pop('cls', None) error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = '2020-08-01' accept = 'application/json' url = self.get.metadata['url'] path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1), 'workspaceName': self._serialize.url('workspace_name', workspace_name, 'str', max_length=63, min_length=4, pattern='^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$'), 'storageInsightName': self._serialize.url('storage_insight_name', storage_insight_name, 'str'), 'subscriptionId': self._serialize.url('self._config.subscription_id', self._config.subscription_id, 'str', min_length=1)} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-version'] = self._serialize.query('api_version', api_version, 'str') header_parameters = {} header_parameters['Accept'] = self._serialize.header('accept', accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if (response.status_code not in [200]): map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = self._deserialize('StorageInsight', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized
def delete(self, resource_group_name, workspace_name, storage_insight_name, **kwargs): 'Deletes a storageInsightsConfigs resource.\n\n :param resource_group_name: The name of the resource group. The name is case insensitive.\n :type resource_group_name: str\n :param workspace_name: The name of the workspace.\n :type workspace_name: str\n :param storage_insight_name: Name of the storageInsightsConfigs resource.\n :type storage_insight_name: str\n :keyword callable cls: A custom type or function that will be passed the direct response\n :return: None, or the result of cls(response)\n :rtype: None\n :raises: ~azure.core.exceptions.HttpResponseError\n ' cls = kwargs.pop('cls', None) error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = '2020-08-01' url = self.delete.metadata['url'] path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1), 'workspaceName': self._serialize.url('workspace_name', workspace_name, 'str', max_length=63, min_length=4, pattern='^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$'), 'storageInsightName': self._serialize.url('storage_insight_name', storage_insight_name, 'str'), 'subscriptionId': self._serialize.url('self._config.subscription_id', self._config.subscription_id, 'str', min_length=1)} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-version'] = self._serialize.query('api_version', api_version, 'str') header_parameters = {} request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if (response.status_code not in [200, 204]): map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: return cls(pipeline_response, None, {})
-9,159,665,166,272,014,000
Deletes a storageInsightsConfigs resource. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str :param workspace_name: The name of the workspace. :type workspace_name: str :param storage_insight_name: Name of the storageInsightsConfigs resource. :type storage_insight_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: None, or the result of cls(response) :rtype: None :raises: ~azure.core.exceptions.HttpResponseError
sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/operations/_storage_insight_configs_operations.py
delete
AFengKK/azure-sdk-for-python
python
def delete(self, resource_group_name, workspace_name, storage_insight_name, **kwargs): 'Deletes a storageInsightsConfigs resource.\n\n :param resource_group_name: The name of the resource group. The name is case insensitive.\n :type resource_group_name: str\n :param workspace_name: The name of the workspace.\n :type workspace_name: str\n :param storage_insight_name: Name of the storageInsightsConfigs resource.\n :type storage_insight_name: str\n :keyword callable cls: A custom type or function that will be passed the direct response\n :return: None, or the result of cls(response)\n :rtype: None\n :raises: ~azure.core.exceptions.HttpResponseError\n ' cls = kwargs.pop('cls', None) error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = '2020-08-01' url = self.delete.metadata['url'] path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1), 'workspaceName': self._serialize.url('workspace_name', workspace_name, 'str', max_length=63, min_length=4, pattern='^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$'), 'storageInsightName': self._serialize.url('storage_insight_name', storage_insight_name, 'str'), 'subscriptionId': self._serialize.url('self._config.subscription_id', self._config.subscription_id, 'str', min_length=1)} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-version'] = self._serialize.query('api_version', api_version, 'str') header_parameters = {} request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if (response.status_code not in [200, 204]): map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: return cls(pipeline_response, None, {})
def list_by_workspace(self, resource_group_name, workspace_name, **kwargs): 'Lists the storage insight instances within a workspace.\n\n :param resource_group_name: The name of the resource group. The name is case insensitive.\n :type resource_group_name: str\n :param workspace_name: The name of the workspace.\n :type workspace_name: str\n :keyword callable cls: A custom type or function that will be passed the direct response\n :return: An iterator like instance of either StorageInsightListResult or the result of cls(response)\n :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.loganalytics.models.StorageInsightListResult]\n :raises: ~azure.core.exceptions.HttpResponseError\n ' cls = kwargs.pop('cls', None) error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = '2020-08-01' accept = 'application/json' def prepare_request(next_link=None): header_parameters = {} header_parameters['Accept'] = self._serialize.header('accept', accept, 'str') if (not next_link): url = self.list_by_workspace.metadata['url'] path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1), 'workspaceName': self._serialize.url('workspace_name', workspace_name, 'str', max_length=63, min_length=4, pattern='^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$'), 'subscriptionId': self._serialize.url('self._config.subscription_id', self._config.subscription_id, 'str', min_length=1)} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-version'] = self._serialize.query('api_version', api_version, 'str') request = self._client.get(url, query_parameters, header_parameters) else: url = next_link query_parameters = {} request = self._client.get(url, query_parameters, header_parameters) return request def extract_data(pipeline_response): deserialized = self._deserialize('StorageInsightListResult', pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) return ((deserialized.odata_next_link or None), iter(list_of_elem)) def get_next(next_link=None): request = prepare_request(next_link) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if (response.status_code not in [200]): map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) return pipeline_response return ItemPaged(get_next, extract_data)
5,416,207,319,257,689,000
Lists the storage insight instances within a workspace. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str :param workspace_name: The name of the workspace. :type workspace_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either StorageInsightListResult or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.loganalytics.models.StorageInsightListResult] :raises: ~azure.core.exceptions.HttpResponseError
sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/operations/_storage_insight_configs_operations.py
list_by_workspace
AFengKK/azure-sdk-for-python
python
def list_by_workspace(self, resource_group_name, workspace_name, **kwargs): 'Lists the storage insight instances within a workspace.\n\n :param resource_group_name: The name of the resource group. The name is case insensitive.\n :type resource_group_name: str\n :param workspace_name: The name of the workspace.\n :type workspace_name: str\n :keyword callable cls: A custom type or function that will be passed the direct response\n :return: An iterator like instance of either StorageInsightListResult or the result of cls(response)\n :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.loganalytics.models.StorageInsightListResult]\n :raises: ~azure.core.exceptions.HttpResponseError\n ' cls = kwargs.pop('cls', None) error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = '2020-08-01' accept = 'application/json' def prepare_request(next_link=None): header_parameters = {} header_parameters['Accept'] = self._serialize.header('accept', accept, 'str') if (not next_link): url = self.list_by_workspace.metadata['url'] path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1), 'workspaceName': self._serialize.url('workspace_name', workspace_name, 'str', max_length=63, min_length=4, pattern='^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$'), 'subscriptionId': self._serialize.url('self._config.subscription_id', self._config.subscription_id, 'str', min_length=1)} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-version'] = self._serialize.query('api_version', api_version, 'str') request = self._client.get(url, query_parameters, header_parameters) else: url = next_link query_parameters = {} request = self._client.get(url, query_parameters, header_parameters) return request def extract_data(pipeline_response): deserialized = self._deserialize('StorageInsightListResult', pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) return ((deserialized.odata_next_link or None), iter(list_of_elem)) def get_next(next_link=None): request = prepare_request(next_link) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if (response.status_code not in [200]): map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) return pipeline_response return ItemPaged(get_next, extract_data)
def guiCreate(self): '\n Add gui components to self.contents\n\n Do not fill the controls with actual values here. This is executed\n upon creation and guiScene etc are not yet available.\n\n ' self.ui = Ui_BallastSolver() self.ui.setupUi(self.contents) self._vesselNode = None self._bs = None self.ui.pushButton.clicked.connect(self.determineRequiredBallast) self.ui.pushButton_2.clicked.connect(self.solveBallast) self.ui.doubleSpinBox.valueChanged.connect(self.determineRequiredBallast)
-4,891,389,685,204,334,000
Add gui components to self.contents Do not fill the controls with actual values here. This is executed upon creation and guiScene etc are not yet available.
src/DAVE/gui/widget_ballastsolver.py
guiCreate
HESChristof/DAVE
python
def guiCreate(self): '\n Add gui components to self.contents\n\n Do not fill the controls with actual values here. This is executed\n upon creation and guiScene etc are not yet available.\n\n ' self.ui = Ui_BallastSolver() self.ui.setupUi(self.contents) self._vesselNode = None self._bs = None self.ui.pushButton.clicked.connect(self.determineRequiredBallast) self.ui.pushButton_2.clicked.connect(self.solveBallast) self.ui.doubleSpinBox.valueChanged.connect(self.determineRequiredBallast)
def guiProcessEvent(self, event): '\n Add processing that needs to be done.\n\n After creation of the widget this event is called with guiEventType.FULL_UPDATE\n ' if (event in [guiEventType.FULL_UPDATE, guiEventType.SELECTION_CHANGED]): self.ballast_system_selected()
-4,434,848,902,213,453,000
Add processing that needs to be done. After creation of the widget this event is called with guiEventType.FULL_UPDATE
src/DAVE/gui/widget_ballastsolver.py
guiProcessEvent
HESChristof/DAVE
python
def guiProcessEvent(self, event): '\n Add processing that needs to be done.\n\n After creation of the widget this event is called with guiEventType.FULL_UPDATE\n ' if (event in [guiEventType.FULL_UPDATE, guiEventType.SELECTION_CHANGED]): self.ballast_system_selected()
def __call__(self, x, img_info, gt_boxes=None): 'Faster RCNN forward\n\n Args:\n x (:class:`~chainer.Variable`): The input image. Note that the\n batchsize should be 1. So the shape should be\n :math:`(1, n_channels, height, width)`.\n img_info (:class:`~chainer.Variable`): The input image info. It\n contains :math:`(height, width)` and the batchsize should be 1.\n So the shape should be :math:`(1, 2)`.\n gt_boxes (:class:`~chainer.Variable`): The ground truth bounding\n boxes and its class label array. The shape should be\n :math:`(1, n_gt_boxes, 5)` and the batchsize should be 1.\n\n ' if self.type_check_enable: self._check_data_type_forward(x, img_info, gt_boxes) with cuda.get_device_from_array(x.data): (xp, feature_map) = (self.trunk.xp, self.trunk(x)) if (self.rpn_train and (gt_boxes is not None)): return self.RPN(feature_map, img_info, gt_boxes) else: (proposals, probs) = self.RPN(feature_map, img_info, gt_boxes) self.rpn_proposals = proposals self.rpn_probs = probs batch_id = xp.zeros((len(proposals), 1), dtype=xp.float32) brois = xp.concatenate((batch_id, proposals), axis=1) pool5 = F.roi_pooling_2d(feature_map, brois, 7, 7, self._spatial_scale) fc6 = F.dropout(F.relu(self.fc6(pool5)), train=self.rcnn_train) fc7 = F.dropout(F.relu(self.fc7(fc6)), train=self.rcnn_train) cls_score = self.cls_score(fc7) bbox_pred = self.bbox_pred(fc7) if (self.rcnn_train and (gt_boxes is not None)): if (not hasattr(self, 'proposal_target_layer')): self.proposal_target_layer = ProposalTargetLayer(self._feat_stride, self._anchor_ratios, self._anchor_scales, self._num_classes) (use_gt_boxes, bbox_reg_targets, keep_inds) = self.proposal_target_layer(proposals, gt_boxes) xp = self.RPN.xp if (xp is cuda.cupy): use_gt_boxes = xp.asarray(use_gt_boxes) bbox_reg_targets = xp.asarray(bbox_reg_targets) keep_inds = xp.asarray(keep_inds) cls_score = cls_score[keep_inds] cls_labels = use_gt_boxes[:, (- 1)].astype(xp.int32) loss_cls = F.softmax_cross_entropy(cls_score, cls_labels) loss_cls = loss_cls.reshape(()) cls_acc = F.accuracy(cls_score, cls_labels, (- 1)) bbox_pred = bbox_pred[keep_inds] loss_bbox = F.huber_loss(bbox_pred, bbox_reg_targets, self._rcnn_delta) loss_bbox = (F.sum(loss_bbox) / loss_bbox.size) loss_bbox = loss_bbox.reshape(()) loss_rcnn = (loss_cls + loss_bbox) reporter.report({'loss_cls': loss_cls, 'cls_accuracy': cls_acc, 'loss_bbox': loss_bbox, 'loss_rcnn': loss_rcnn}, self) return loss_rcnn pred_boxes = bbox_transform_inv(proposals, bbox_pred.data) pred_boxes = clip_boxes(pred_boxes, img_info.data[0]) return (F.softmax(cls_score), pred_boxes)
-1,817,750,000,948,642,000
Faster RCNN forward Args: x (:class:`~chainer.Variable`): The input image. Note that the batchsize should be 1. So the shape should be :math:`(1, n_channels, height, width)`. img_info (:class:`~chainer.Variable`): The input image info. It contains :math:`(height, width)` and the batchsize should be 1. So the shape should be :math:`(1, 2)`. gt_boxes (:class:`~chainer.Variable`): The ground truth bounding boxes and its class label array. The shape should be :math:`(1, n_gt_boxes, 5)` and the batchsize should be 1.
faster_rcnn_explorer/models/faster_rcnn.py
__call__
Walter1218/Self_Driving_Car_ND
python
def __call__(self, x, img_info, gt_boxes=None): 'Faster RCNN forward\n\n Args:\n x (:class:`~chainer.Variable`): The input image. Note that the\n batchsize should be 1. So the shape should be\n :math:`(1, n_channels, height, width)`.\n img_info (:class:`~chainer.Variable`): The input image info. It\n contains :math:`(height, width)` and the batchsize should be 1.\n So the shape should be :math:`(1, 2)`.\n gt_boxes (:class:`~chainer.Variable`): The ground truth bounding\n boxes and its class label array. The shape should be\n :math:`(1, n_gt_boxes, 5)` and the batchsize should be 1.\n\n ' if self.type_check_enable: self._check_data_type_forward(x, img_info, gt_boxes) with cuda.get_device_from_array(x.data): (xp, feature_map) = (self.trunk.xp, self.trunk(x)) if (self.rpn_train and (gt_boxes is not None)): return self.RPN(feature_map, img_info, gt_boxes) else: (proposals, probs) = self.RPN(feature_map, img_info, gt_boxes) self.rpn_proposals = proposals self.rpn_probs = probs batch_id = xp.zeros((len(proposals), 1), dtype=xp.float32) brois = xp.concatenate((batch_id, proposals), axis=1) pool5 = F.roi_pooling_2d(feature_map, brois, 7, 7, self._spatial_scale) fc6 = F.dropout(F.relu(self.fc6(pool5)), train=self.rcnn_train) fc7 = F.dropout(F.relu(self.fc7(fc6)), train=self.rcnn_train) cls_score = self.cls_score(fc7) bbox_pred = self.bbox_pred(fc7) if (self.rcnn_train and (gt_boxes is not None)): if (not hasattr(self, 'proposal_target_layer')): self.proposal_target_layer = ProposalTargetLayer(self._feat_stride, self._anchor_ratios, self._anchor_scales, self._num_classes) (use_gt_boxes, bbox_reg_targets, keep_inds) = self.proposal_target_layer(proposals, gt_boxes) xp = self.RPN.xp if (xp is cuda.cupy): use_gt_boxes = xp.asarray(use_gt_boxes) bbox_reg_targets = xp.asarray(bbox_reg_targets) keep_inds = xp.asarray(keep_inds) cls_score = cls_score[keep_inds] cls_labels = use_gt_boxes[:, (- 1)].astype(xp.int32) loss_cls = F.softmax_cross_entropy(cls_score, cls_labels) loss_cls = loss_cls.reshape(()) cls_acc = F.accuracy(cls_score, cls_labels, (- 1)) bbox_pred = bbox_pred[keep_inds] loss_bbox = F.huber_loss(bbox_pred, bbox_reg_targets, self._rcnn_delta) loss_bbox = (F.sum(loss_bbox) / loss_bbox.size) loss_bbox = loss_bbox.reshape(()) loss_rcnn = (loss_cls + loss_bbox) reporter.report({'loss_cls': loss_cls, 'cls_accuracy': cls_acc, 'loss_bbox': loss_bbox, 'loss_rcnn': loss_rcnn}, self) return loss_rcnn pred_boxes = bbox_transform_inv(proposals, bbox_pred.data) pred_boxes = clip_boxes(pred_boxes, img_info.data[0]) return (F.softmax(cls_score), pred_boxes)
def top_p_logits(logits, p): 'Nucleus sampling' (batch, _) = logits.shape.as_list() sorted_logits = tf.sort(logits, direction='DESCENDING', axis=(- 1)) cumulative_probs = tf.cumsum(tf.nn.softmax(sorted_logits, axis=(- 1)), axis=(- 1)) indices = tf.stack([tf.range(0, batch), tf.maximum((tf.reduce_sum(tf.cast((cumulative_probs <= p), tf.int32), axis=(- 1)) - 1), 0)], axis=(- 1)) min_values = tf.gather_nd(sorted_logits, indices) return tf.where((logits < min_values), (tf.ones_like(logits) * (- 10000000000.0)), logits)
8,159,391,189,786,002,000
Nucleus sampling
src/sample.py
top_p_logits
gkswjdzz/gpt-2-model-generator
python
def top_p_logits(logits, p): (batch, _) = logits.shape.as_list() sorted_logits = tf.sort(logits, direction='DESCENDING', axis=(- 1)) cumulative_probs = tf.cumsum(tf.nn.softmax(sorted_logits, axis=(- 1)), axis=(- 1)) indices = tf.stack([tf.range(0, batch), tf.maximum((tf.reduce_sum(tf.cast((cumulative_probs <= p), tf.int32), axis=(- 1)) - 1), 0)], axis=(- 1)) min_values = tf.gather_nd(sorted_logits, indices) return tf.where((logits < min_values), (tf.ones_like(logits) * (- 10000000000.0)), logits)
@commands.command(aliases=['bitcoin', 'BTC']) async def btc(self, ctx, ammount: Optional[float]=1.0, currency='USD', full: bool=True): '\n converts from BTC to a given currency.\n\n `[ammount]` is any number to convert the value of defaults to 1 coin\n `[currency]` is the desired currency you want to convert defaults to USD\n `[full]` is a True/False value whether to display just the converted amount\n or the full display for the currency\n ' if (ammount == 1.0): embed = (await self.crypto_embed(ctx, 'BTC', ammount, currency, full)) else: embed = (await self.crypto_embed(ctx, 'BTC', ammount, currency, False)) if (type(embed) is str): (await ctx.send(embed)) else: (await ctx.send(embed=embed))
432,903,384,316,114,940
converts from BTC to a given currency. `[ammount]` is any number to convert the value of defaults to 1 coin `[currency]` is the desired currency you want to convert defaults to USD `[full]` is a True/False value whether to display just the converted amount or the full display for the currency
conversions/conversions.py
btc
Jintaku/Trusty-cogs
python
@commands.command(aliases=['bitcoin', 'BTC']) async def btc(self, ctx, ammount: Optional[float]=1.0, currency='USD', full: bool=True): '\n converts from BTC to a given currency.\n\n `[ammount]` is any number to convert the value of defaults to 1 coin\n `[currency]` is the desired currency you want to convert defaults to USD\n `[full]` is a True/False value whether to display just the converted amount\n or the full display for the currency\n ' if (ammount == 1.0): embed = (await self.crypto_embed(ctx, 'BTC', ammount, currency, full)) else: embed = (await self.crypto_embed(ctx, 'BTC', ammount, currency, False)) if (type(embed) is str): (await ctx.send(embed)) else: (await ctx.send(embed=embed))
@commands.command(aliases=['ethereum', 'ETH']) async def eth(self, ctx, ammount: Optional[float]=1.0, currency='USD', full: bool=True): '\n converts from ETH to a given currency.\n\n `[ammount]` is any number to convert the value of defaults to 1 coin\n `[currency]` is the desired currency you want to convert defaults to USD\n `[full]` is a True/False value whether to display just the converted amount\n or the full display for the currency\n ' if (ammount == 1.0): embed = (await self.crypto_embed(ctx, 'ETH', ammount, currency, full)) else: embed = (await self.crypto_embed(ctx, 'ETH', ammount, currency, False)) if (type(embed) is str): (await ctx.send(embed)) else: (await ctx.send(embed=embed))
1,254,873,503,299,116,500
converts from ETH to a given currency. `[ammount]` is any number to convert the value of defaults to 1 coin `[currency]` is the desired currency you want to convert defaults to USD `[full]` is a True/False value whether to display just the converted amount or the full display for the currency
conversions/conversions.py
eth
Jintaku/Trusty-cogs
python
@commands.command(aliases=['ethereum', 'ETH']) async def eth(self, ctx, ammount: Optional[float]=1.0, currency='USD', full: bool=True): '\n converts from ETH to a given currency.\n\n `[ammount]` is any number to convert the value of defaults to 1 coin\n `[currency]` is the desired currency you want to convert defaults to USD\n `[full]` is a True/False value whether to display just the converted amount\n or the full display for the currency\n ' if (ammount == 1.0): embed = (await self.crypto_embed(ctx, 'ETH', ammount, currency, full)) else: embed = (await self.crypto_embed(ctx, 'ETH', ammount, currency, False)) if (type(embed) is str): (await ctx.send(embed)) else: (await ctx.send(embed=embed))
@commands.command(aliases=['litecoin', 'LTC']) async def ltc(self, ctx, ammount: Optional[float]=1.0, currency='USD', full: bool=True): '\n converts from LTC to a given currency.\n\n `[ammount]` is any number to convert the value of defaults to 1 coin\n `[currency]` is the desired currency you want to convert defaults to USD\n `[full]` is a True/False value whether to display just the converted amount\n or the full display for the currency\n ' if (ammount == 1.0): embed = (await self.crypto_embed(ctx, 'LTC', ammount, currency, full)) else: embed = (await self.crypto_embed(ctx, 'LTC', ammount, currency, False)) if (type(embed) is str): (await ctx.send(embed)) else: (await ctx.send(embed=embed))
-5,501,950,800,622,345,000
converts from LTC to a given currency. `[ammount]` is any number to convert the value of defaults to 1 coin `[currency]` is the desired currency you want to convert defaults to USD `[full]` is a True/False value whether to display just the converted amount or the full display for the currency
conversions/conversions.py
ltc
Jintaku/Trusty-cogs
python
@commands.command(aliases=['litecoin', 'LTC']) async def ltc(self, ctx, ammount: Optional[float]=1.0, currency='USD', full: bool=True): '\n converts from LTC to a given currency.\n\n `[ammount]` is any number to convert the value of defaults to 1 coin\n `[currency]` is the desired currency you want to convert defaults to USD\n `[full]` is a True/False value whether to display just the converted amount\n or the full display for the currency\n ' if (ammount == 1.0): embed = (await self.crypto_embed(ctx, 'LTC', ammount, currency, full)) else: embed = (await self.crypto_embed(ctx, 'LTC', ammount, currency, False)) if (type(embed) is str): (await ctx.send(embed)) else: (await ctx.send(embed=embed))
@commands.command(aliases=['monero', 'XMR']) async def xmr(self, ctx, ammount: Optional[float]=1.0, currency='USD', full: bool=True): '\n converts from XMR to a given currency.\n\n `[ammount]` is any number to convert the value of defaults to 1 coin\n `[currency]` is the desired currency you want to convert defaults to USD\n `[full]` is a True/False value whether to display just the converted amount\n or the full display for the currency\n ' if (ammount == 1.0): embed = (await self.crypto_embed(ctx, 'XMR', ammount, currency, full)) else: embed = (await self.crypto_embed(ctx, 'XMR', ammount, currency, False)) if (type(embed) is str): (await ctx.send(embed)) else: (await ctx.send(embed=embed))
7,060,905,276,546,932,000
converts from XMR to a given currency. `[ammount]` is any number to convert the value of defaults to 1 coin `[currency]` is the desired currency you want to convert defaults to USD `[full]` is a True/False value whether to display just the converted amount or the full display for the currency
conversions/conversions.py
xmr
Jintaku/Trusty-cogs
python
@commands.command(aliases=['monero', 'XMR']) async def xmr(self, ctx, ammount: Optional[float]=1.0, currency='USD', full: bool=True): '\n converts from XMR to a given currency.\n\n `[ammount]` is any number to convert the value of defaults to 1 coin\n `[currency]` is the desired currency you want to convert defaults to USD\n `[full]` is a True/False value whether to display just the converted amount\n or the full display for the currency\n ' if (ammount == 1.0): embed = (await self.crypto_embed(ctx, 'XMR', ammount, currency, full)) else: embed = (await self.crypto_embed(ctx, 'XMR', ammount, currency, False)) if (type(embed) is str): (await ctx.send(embed)) else: (await ctx.send(embed=embed))
@commands.command(aliases=['bitcoin-cash', 'BCH']) async def bch(self, ctx, ammount: Optional[float]=1.0, currency='USD', full: bool=True): '\n converts from BCH to a given currency.\n\n `[ammount]` is any number to convert the value of defaults to 1 coin\n `[currency]` is the desired currency you want to convert defaults to USD\n `[full]` is a True/False value whether to display just the converted amount\n or the full display for the currency\n ' if (ammount == 1.0): embed = (await self.crypto_embed(ctx, 'BCH', ammount, currency, full)) else: embed = (await self.crypto_embed(ctx, 'BCH', ammount, currency, False)) if (type(embed) is str): (await ctx.send(embed)) else: (await ctx.send(embed=embed))
-284,509,660,766,762,750
converts from BCH to a given currency. `[ammount]` is any number to convert the value of defaults to 1 coin `[currency]` is the desired currency you want to convert defaults to USD `[full]` is a True/False value whether to display just the converted amount or the full display for the currency
conversions/conversions.py
bch
Jintaku/Trusty-cogs
python
@commands.command(aliases=['bitcoin-cash', 'BCH']) async def bch(self, ctx, ammount: Optional[float]=1.0, currency='USD', full: bool=True): '\n converts from BCH to a given currency.\n\n `[ammount]` is any number to convert the value of defaults to 1 coin\n `[currency]` is the desired currency you want to convert defaults to USD\n `[full]` is a True/False value whether to display just the converted amount\n or the full display for the currency\n ' if (ammount == 1.0): embed = (await self.crypto_embed(ctx, 'BCH', ammount, currency, full)) else: embed = (await self.crypto_embed(ctx, 'BCH', ammount, currency, False)) if (type(embed) is str): (await ctx.send(embed)) else: (await ctx.send(embed=embed))
@commands.command() async def multicoin(self, ctx, *, coins=None): '\n Gets the current USD value for a list of coins\n\n `coins` must be a list of white space separated crypto coins\n e.g. `[p]multicoin BTC BCH LTC ETH DASH XRP`\n ' coin_list = [] if (coins is None): async with aiohttp.ClientSession() as session: async with session.get('https://api.coinmarketcap.com/v2/ticker/') as resp: data = (await resp.json()) for coin in data['data']: coin_list.append(data['data'][coin]) else: coins = re.split('\\W+', coins) for coin in coins: coin_list.append((await self.checkcoins(coin))) embed = discord.Embed(title='Crypto coin comparison') if ctx.channel.permissions_for(ctx.me).embed_links: for coin in coin_list[:25]: if (coin is not None): msg = '1 {0} is {1:,.2f} USD'.format(coin['symbol'], float(coin['quotes']['USD']['price'])) embed.add_field(name=coin['name'], value=msg) (await ctx.send(embed=embed)) else: msg = '' for coin in coin_list[:25]: if (coin is not None): msg += '1 {0} is {1:,.2f} USD\n'.format(coin['symbol'], float(coin['quotes']['USD']['price'])) (await ctx.send(msg))
-383,781,796,092,374,340
Gets the current USD value for a list of coins `coins` must be a list of white space separated crypto coins e.g. `[p]multicoin BTC BCH LTC ETH DASH XRP`
conversions/conversions.py
multicoin
Jintaku/Trusty-cogs
python
@commands.command() async def multicoin(self, ctx, *, coins=None): '\n Gets the current USD value for a list of coins\n\n `coins` must be a list of white space separated crypto coins\n e.g. `[p]multicoin BTC BCH LTC ETH DASH XRP`\n ' coin_list = [] if (coins is None): async with aiohttp.ClientSession() as session: async with session.get('https://api.coinmarketcap.com/v2/ticker/') as resp: data = (await resp.json()) for coin in data['data']: coin_list.append(data['data'][coin]) else: coins = re.split('\\W+', coins) for coin in coins: coin_list.append((await self.checkcoins(coin))) embed = discord.Embed(title='Crypto coin comparison') if ctx.channel.permissions_for(ctx.me).embed_links: for coin in coin_list[:25]: if (coin is not None): msg = '1 {0} is {1:,.2f} USD'.format(coin['symbol'], float(coin['quotes']['USD']['price'])) embed.add_field(name=coin['name'], value=msg) (await ctx.send(embed=embed)) else: msg = for coin in coin_list[:25]: if (coin is not None): msg += '1 {0} is {1:,.2f} USD\n'.format(coin['symbol'], float(coin['quotes']['USD']['price'])) (await ctx.send(msg))
@commands.command() async def crypto(self, ctx, coin, ammount: Optional[float]=1.0, currency='USD', full: bool=True): '\n Displays the latest information about a specified crypto currency\n \n `coin` must be the name or symbol of a crypto coin\n `[ammount]` is any number to convert the value of defaults to 1 coin\n `[currency]` is the desired currency you want to convert defaults to USD\n `[full]` is a True/False value whether to display just the converted amount\n or the full display for the currency\n ' if (ammount == 1.0): embed = (await self.crypto_embed(ctx, coin, ammount, currency, full)) else: embed = (await self.crypto_embed(ctx, coin, ammount, currency, False)) if (type(embed) is str): (await ctx.send(embed)) else: (await ctx.send(embed=embed))
4,273,650,777,424,988,700
Displays the latest information about a specified crypto currency `coin` must be the name or symbol of a crypto coin `[ammount]` is any number to convert the value of defaults to 1 coin `[currency]` is the desired currency you want to convert defaults to USD `[full]` is a True/False value whether to display just the converted amount or the full display for the currency
conversions/conversions.py
crypto
Jintaku/Trusty-cogs
python
@commands.command() async def crypto(self, ctx, coin, ammount: Optional[float]=1.0, currency='USD', full: bool=True): '\n Displays the latest information about a specified crypto currency\n \n `coin` must be the name or symbol of a crypto coin\n `[ammount]` is any number to convert the value of defaults to 1 coin\n `[currency]` is the desired currency you want to convert defaults to USD\n `[full]` is a True/False value whether to display just the converted amount\n or the full display for the currency\n ' if (ammount == 1.0): embed = (await self.crypto_embed(ctx, coin, ammount, currency, full)) else: embed = (await self.crypto_embed(ctx, coin, ammount, currency, False)) if (type(embed) is str): (await ctx.send(embed)) else: (await ctx.send(embed=embed))
async def crypto_embed(self, ctx, coin, ammount=1.0, currency='USD', full=True): 'Creates the embed for the crypto currency' coin_data = (await self.checkcoins(coin)) if (coin_data is None): (await ctx.send('{} is not in my list of currencies!'.format(coin))) return coin_colour = {'Bitcoin': discord.Colour.gold(), 'Bitcoin Cash': discord.Colour.orange(), 'Ethereum': discord.Colour.dark_grey(), 'Litecoin': discord.Colour.dark_grey(), 'Monero': discord.Colour.orange()} price = (float(coin_data['quotes']['USD']['price']) * ammount) market_cap = float(coin_data['quotes']['USD']['market_cap']) volume_24h = float(coin_data['quotes']['USD']['volume_24h']) coin_image = 'https://s2.coinmarketcap.com/static/img/coins/128x128/{}.png'.format(coin_data['id']) coin_url = 'https://coinmarketcap.com/currencies/{}'.format(coin_data['id']) if (currency.upper() != 'USD'): conversionrate = (await self.conversionrate('USD', currency.upper())) price = (conversionrate * price) market_cap = (conversionrate * market_cap) volume_24h = (conversionrate * volume_24h) msg = '{0} {3} is **{1:,.2f} {2}**'.format(ammount, price, currency.upper(), coin_data['symbol']) embed = discord.Embed(description=msg, colour=discord.Colour.dark_grey()) if (coin_data['name'] in coin_colour): embed.colour = coin_colour[coin_data['name']] embed.set_footer(text='As of') embed.set_author(name=coin_data['name'], url=coin_url, icon_url=coin_image) embed.timestamp = datetime.datetime.utcfromtimestamp(int(coin_data['last_updated'])) if full: hour_1 = coin_data['quotes']['USD']['percent_change_1h'] hour_24 = coin_data['quotes']['USD']['percent_change_24h'] days_7 = coin_data['quotes']['USD']['percent_change_7d'] hour_1_emoji = ('🔼' if (hour_1 >= 0) else '🔽') hour_24_emoji = ('🔼' if (hour_24 >= 0) else '🔽') days_7_emoji = ('🔼' if (days_7 >= 0) else '🔽') available_supply = '{0:,.2f}'.format(coin_data['circulating_supply']) try: max_supply = '{0:,.2f}'.format(coin_data['max_supply']) except: max_supply = '∞' total_supply = '{0:,.2f}'.format(coin_data['total_supply']) embed.set_thumbnail(url=coin_image) embed.add_field(name='Market Cap', value='{0:,.2f} {1}'.format(market_cap, currency.upper())) embed.add_field(name='24 Hour Volume', value='{0:,.2f} {1}'.format(volume_24h, currency.upper())) embed.add_field(name='Available Supply', value=available_supply) if (max_supply is not None): embed.add_field(name='Max Supply', value=max_supply) embed.add_field(name='Total Supply ', value=total_supply) embed.add_field(name=('Change 1 hour ' + hour_1_emoji), value='{}%'.format(hour_1)) embed.add_field(name=('Change 24 hours ' + hour_24_emoji), value='{}%'.format(hour_24)) embed.add_field(name=('Change 7 days ' + days_7_emoji), value='{}%'.format(days_7)) if (not ctx.channel.permissions_for(ctx.me).embed_links): if full: return f'''{msg} Market Cap: **{market_cap}** 24 Hour Volume: **{volume_24h}** Available Supply: **{available_supply}** Max Supply: **{max_supply}** Total Supply: **{total_supply}** Change 1 hour{hour_1_emoji}: **{hour_1}%** Change 24 hours{hour_24_emoji}: **{hour_24}%** Change 7 days{days_7_emoji}: **{days_7}%** ''' else: return msg else: return embed
7,162,082,278,271,245,000
Creates the embed for the crypto currency
conversions/conversions.py
crypto_embed
Jintaku/Trusty-cogs
python
async def crypto_embed(self, ctx, coin, ammount=1.0, currency='USD', full=True): coin_data = (await self.checkcoins(coin)) if (coin_data is None): (await ctx.send('{} is not in my list of currencies!'.format(coin))) return coin_colour = {'Bitcoin': discord.Colour.gold(), 'Bitcoin Cash': discord.Colour.orange(), 'Ethereum': discord.Colour.dark_grey(), 'Litecoin': discord.Colour.dark_grey(), 'Monero': discord.Colour.orange()} price = (float(coin_data['quotes']['USD']['price']) * ammount) market_cap = float(coin_data['quotes']['USD']['market_cap']) volume_24h = float(coin_data['quotes']['USD']['volume_24h']) coin_image = 'https://s2.coinmarketcap.com/static/img/coins/128x128/{}.png'.format(coin_data['id']) coin_url = 'https://coinmarketcap.com/currencies/{}'.format(coin_data['id']) if (currency.upper() != 'USD'): conversionrate = (await self.conversionrate('USD', currency.upper())) price = (conversionrate * price) market_cap = (conversionrate * market_cap) volume_24h = (conversionrate * volume_24h) msg = '{0} {3} is **{1:,.2f} {2}**'.format(ammount, price, currency.upper(), coin_data['symbol']) embed = discord.Embed(description=msg, colour=discord.Colour.dark_grey()) if (coin_data['name'] in coin_colour): embed.colour = coin_colour[coin_data['name']] embed.set_footer(text='As of') embed.set_author(name=coin_data['name'], url=coin_url, icon_url=coin_image) embed.timestamp = datetime.datetime.utcfromtimestamp(int(coin_data['last_updated'])) if full: hour_1 = coin_data['quotes']['USD']['percent_change_1h'] hour_24 = coin_data['quotes']['USD']['percent_change_24h'] days_7 = coin_data['quotes']['USD']['percent_change_7d'] hour_1_emoji = ('🔼' if (hour_1 >= 0) else '🔽') hour_24_emoji = ('🔼' if (hour_24 >= 0) else '🔽') days_7_emoji = ('🔼' if (days_7 >= 0) else '🔽') available_supply = '{0:,.2f}'.format(coin_data['circulating_supply']) try: max_supply = '{0:,.2f}'.format(coin_data['max_supply']) except: max_supply = '∞' total_supply = '{0:,.2f}'.format(coin_data['total_supply']) embed.set_thumbnail(url=coin_image) embed.add_field(name='Market Cap', value='{0:,.2f} {1}'.format(market_cap, currency.upper())) embed.add_field(name='24 Hour Volume', value='{0:,.2f} {1}'.format(volume_24h, currency.upper())) embed.add_field(name='Available Supply', value=available_supply) if (max_supply is not None): embed.add_field(name='Max Supply', value=max_supply) embed.add_field(name='Total Supply ', value=total_supply) embed.add_field(name=('Change 1 hour ' + hour_1_emoji), value='{}%'.format(hour_1)) embed.add_field(name=('Change 24 hours ' + hour_24_emoji), value='{}%'.format(hour_24)) embed.add_field(name=('Change 7 days ' + days_7_emoji), value='{}%'.format(days_7)) if (not ctx.channel.permissions_for(ctx.me).embed_links): if full: return f'{msg} Market Cap: **{market_cap}** 24 Hour Volume: **{volume_24h}** Available Supply: **{available_supply}** Max Supply: **{max_supply}** Total Supply: **{total_supply}** Change 1 hour{hour_1_emoji}: **{hour_1}%** Change 24 hours{hour_24_emoji}: **{hour_24}%** Change 7 days{days_7_emoji}: **{days_7}%** ' else: return msg else: return embed
@commands.command() async def gold(self, ctx, ammount: Optional[int]=1, currency='USD'): '\n Converts gold in ounces to a given currency.\n\n `ammount` must be a number of ounces to convert defaults to 1 ounce\n `[currency]` must be a valid currency defaults to USD\n ' GOLD = 'https://www.quandl.com/api/v3/datasets/WGC/GOLD_DAILY_{}.json?api_key=EKvr5W-sJUFVSevcpk4v' async with aiohttp.ClientSession() as session: async with session.get(GOLD.format(currency.upper())) as resp: data = (await resp.json()) price = (data['dataset']['data'][0][1] * ammount) msg = '{0} oz of Gold is {1:,.2f} {2}'.format(ammount, price, currency.upper()) embed = discord.Embed(descirption='Gold', colour=discord.Colour.gold()) embed.add_field(name='Gold', value=msg) embed.set_thumbnail(url='https://upload.wikimedia.org/wikipedia/commons/d/d7/Gold-crystals.jpg') if (not ctx.channel.permissions_for(ctx.me).embed_links): (await ctx.send(msg)) else: (await ctx.send(embed=embed))
-5,185,379,019,583,607,000
Converts gold in ounces to a given currency. `ammount` must be a number of ounces to convert defaults to 1 ounce `[currency]` must be a valid currency defaults to USD
conversions/conversions.py
gold
Jintaku/Trusty-cogs
python
@commands.command() async def gold(self, ctx, ammount: Optional[int]=1, currency='USD'): '\n Converts gold in ounces to a given currency.\n\n `ammount` must be a number of ounces to convert defaults to 1 ounce\n `[currency]` must be a valid currency defaults to USD\n ' GOLD = 'https://www.quandl.com/api/v3/datasets/WGC/GOLD_DAILY_{}.json?api_key=EKvr5W-sJUFVSevcpk4v' async with aiohttp.ClientSession() as session: async with session.get(GOLD.format(currency.upper())) as resp: data = (await resp.json()) price = (data['dataset']['data'][0][1] * ammount) msg = '{0} oz of Gold is {1:,.2f} {2}'.format(ammount, price, currency.upper()) embed = discord.Embed(descirption='Gold', colour=discord.Colour.gold()) embed.add_field(name='Gold', value=msg) embed.set_thumbnail(url='https://upload.wikimedia.org/wikipedia/commons/d/d7/Gold-crystals.jpg') if (not ctx.channel.permissions_for(ctx.me).embed_links): (await ctx.send(msg)) else: (await ctx.send(embed=embed))
@commands.command() async def silver(self, ctx, ammount: Optional[int]=1, currency='USD'): '\n Converts silver in ounces to a given currency.\n\n `[ammount]` must be a number of ounces to convert defaults to 1 ounce\n `[currency]` must be a valid currency defaults to USD\n ' SILVER = 'https://www.quandl.com/api/v3/datasets/LBMA/SILVER.json?api_key=EKvr5W-sJUFVSevcpk4v' async with aiohttp.ClientSession() as session: async with session.get(SILVER) as resp: data = (await resp.json()) price = (data['dataset']['data'][0][1] * ammount) if (currency != 'USD'): price = ((await self.conversionrate('USD', currency.upper())) * price) msg = '{0} oz of Silver is {1:,.2f} {2}'.format(ammount, price, currency.upper()) embed = discord.Embed(descirption='Silver', colour=discord.Colour.lighter_grey()) embed.add_field(name='Silver', value=msg) embed.set_thumbnail(url='https://upload.wikimedia.org/wikipedia/commons/5/55/Silver_crystal.jpg') if (not ctx.channel.permissions_for(ctx.me).embed_links): (await ctx.send(msg)) else: (await ctx.send(embed=embed))
3,549,491,701,030,062,000
Converts silver in ounces to a given currency. `[ammount]` must be a number of ounces to convert defaults to 1 ounce `[currency]` must be a valid currency defaults to USD
conversions/conversions.py
silver
Jintaku/Trusty-cogs
python
@commands.command() async def silver(self, ctx, ammount: Optional[int]=1, currency='USD'): '\n Converts silver in ounces to a given currency.\n\n `[ammount]` must be a number of ounces to convert defaults to 1 ounce\n `[currency]` must be a valid currency defaults to USD\n ' SILVER = 'https://www.quandl.com/api/v3/datasets/LBMA/SILVER.json?api_key=EKvr5W-sJUFVSevcpk4v' async with aiohttp.ClientSession() as session: async with session.get(SILVER) as resp: data = (await resp.json()) price = (data['dataset']['data'][0][1] * ammount) if (currency != 'USD'): price = ((await self.conversionrate('USD', currency.upper())) * price) msg = '{0} oz of Silver is {1:,.2f} {2}'.format(ammount, price, currency.upper()) embed = discord.Embed(descirption='Silver', colour=discord.Colour.lighter_grey()) embed.add_field(name='Silver', value=msg) embed.set_thumbnail(url='https://upload.wikimedia.org/wikipedia/commons/5/55/Silver_crystal.jpg') if (not ctx.channel.permissions_for(ctx.me).embed_links): (await ctx.send(msg)) else: (await ctx.send(embed=embed))
@commands.command() async def platinum(self, ctx, ammount: Optional[int]=1, currency='USD'): '\n Converts platinum in ounces to a given currency.\n\n `[ammount]` must be a number of ounces to convert defaults to 1 ounce\n `[currency]` must be a valid currency defaults to USD\n ' PLATINUM = 'https://www.quandl.com/api/v3/datasets/JOHNMATT/PLAT.json?api_key=EKvr5W-sJUFVSevcpk4v' async with aiohttp.ClientSession() as session: async with session.get(PLATINUM) as resp: data = (await resp.json()) price = (data['dataset']['data'][0][1] * ammount) if (currency != 'USD'): price = ((await self.conversionrate('USD', currency.upper())) * price) msg = '{0} oz of Platinum is {1:,.2f} {2}'.format(ammount, price, currency.upper()) embed = discord.Embed(descirption='Platinum', colour=discord.Colour.dark_grey()) embed.add_field(name='Platinum', value=msg) embed.set_thumbnail(url='https://upload.wikimedia.org/wikipedia/commons/6/68/Platinum_crystals.jpg') if (not ctx.channel.permissions_for(ctx.me).embed_links): (await ctx.send(msg)) else: (await ctx.send(embed=embed))
1,007,459,282,825,784,200
Converts platinum in ounces to a given currency. `[ammount]` must be a number of ounces to convert defaults to 1 ounce `[currency]` must be a valid currency defaults to USD
conversions/conversions.py
platinum
Jintaku/Trusty-cogs
python
@commands.command() async def platinum(self, ctx, ammount: Optional[int]=1, currency='USD'): '\n Converts platinum in ounces to a given currency.\n\n `[ammount]` must be a number of ounces to convert defaults to 1 ounce\n `[currency]` must be a valid currency defaults to USD\n ' PLATINUM = 'https://www.quandl.com/api/v3/datasets/JOHNMATT/PLAT.json?api_key=EKvr5W-sJUFVSevcpk4v' async with aiohttp.ClientSession() as session: async with session.get(PLATINUM) as resp: data = (await resp.json()) price = (data['dataset']['data'][0][1] * ammount) if (currency != 'USD'): price = ((await self.conversionrate('USD', currency.upper())) * price) msg = '{0} oz of Platinum is {1:,.2f} {2}'.format(ammount, price, currency.upper()) embed = discord.Embed(descirption='Platinum', colour=discord.Colour.dark_grey()) embed.add_field(name='Platinum', value=msg) embed.set_thumbnail(url='https://upload.wikimedia.org/wikipedia/commons/6/68/Platinum_crystals.jpg') if (not ctx.channel.permissions_for(ctx.me).embed_links): (await ctx.send(msg)) else: (await ctx.send(embed=embed))
@commands.command(aliases=['ticker']) async def stock(self, ctx, ticker, currency='USD'): '\n Gets current ticker symbol price.\n\n `<ticker>` is the ticker symbol you want to look up\n `[currency]` is the currency you want to convert to defaults to USD\n ' stock = 'https://www.quandl.com/api/v3/datasets/WIKI/{}.json?api_key=EKvr5W-sJUFVSevcpk4v' async with aiohttp.ClientSession() as session: async with session.get(stock.format(ticker.upper())) as resp: data = (await resp.json()) convertrate = 1 if (currency != 'USD'): convertrate = self.conversionrate('USD', currency.upper()) price = (data['dataset']['data'][0][1] * convertrate) msg = '{0} is {1:,.2f} {2}'.format(ticker.upper(), price, currency.upper()) embed = discord.Embed(descirption='Stock Price', colour=discord.Colour.lighter_grey()) embed.add_field(name=ticker.upper(), value=msg) if (not ctx.channel.permissions_for(ctx.me).embed_links): (await ctx.send(msg)) else: (await ctx.send(embed=embed))
-5,607,111,893,143,344,000
Gets current ticker symbol price. `<ticker>` is the ticker symbol you want to look up `[currency]` is the currency you want to convert to defaults to USD
conversions/conversions.py
stock
Jintaku/Trusty-cogs
python
@commands.command(aliases=['ticker']) async def stock(self, ctx, ticker, currency='USD'): '\n Gets current ticker symbol price.\n\n `<ticker>` is the ticker symbol you want to look up\n `[currency]` is the currency you want to convert to defaults to USD\n ' stock = 'https://www.quandl.com/api/v3/datasets/WIKI/{}.json?api_key=EKvr5W-sJUFVSevcpk4v' async with aiohttp.ClientSession() as session: async with session.get(stock.format(ticker.upper())) as resp: data = (await resp.json()) convertrate = 1 if (currency != 'USD'): convertrate = self.conversionrate('USD', currency.upper()) price = (data['dataset']['data'][0][1] * convertrate) msg = '{0} is {1:,.2f} {2}'.format(ticker.upper(), price, currency.upper()) embed = discord.Embed(descirption='Stock Price', colour=discord.Colour.lighter_grey()) embed.add_field(name=ticker.upper(), value=msg) if (not ctx.channel.permissions_for(ctx.me).embed_links): (await ctx.send(msg)) else: (await ctx.send(embed=embed))
@commands.command(aliases=['currency']) async def convertcurrency(self, ctx, ammount: Optional[float]=1.0, currency1='USD', currency2='GBP'): '\n Converts a value between 2 different currencies\n\n `[ammount]` is the ammount you want to convert default is 1\n `[currency1]` is the currency you have default is USD\n `[currency2]` is the currency you want to convert to default is GBP\n ' currency1 = currency1.upper() currency2 = currency2.upper() conversion = (await self.conversionrate(currency1, currency2)) if (not conversion): return (await ctx.send('The currencies provided are not valid!')) conversion = (conversion * ammount) (await ctx.send('{0} {1} is {2:,.2f} {3}'.format(ammount, currency1, conversion, currency2)))
-226,375,426,863,347,520
Converts a value between 2 different currencies `[ammount]` is the ammount you want to convert default is 1 `[currency1]` is the currency you have default is USD `[currency2]` is the currency you want to convert to default is GBP
conversions/conversions.py
convertcurrency
Jintaku/Trusty-cogs
python
@commands.command(aliases=['currency']) async def convertcurrency(self, ctx, ammount: Optional[float]=1.0, currency1='USD', currency2='GBP'): '\n Converts a value between 2 different currencies\n\n `[ammount]` is the ammount you want to convert default is 1\n `[currency1]` is the currency you have default is USD\n `[currency2]` is the currency you want to convert to default is GBP\n ' currency1 = currency1.upper() currency2 = currency2.upper() conversion = (await self.conversionrate(currency1, currency2)) if (not conversion): return (await ctx.send('The currencies provided are not valid!')) conversion = (conversion * ammount) (await ctx.send('{0} {1} is {2:,.2f} {3}'.format(ammount, currency1, conversion, currency2)))
async def conversionrate(self, currency1, currency2): 'Function to convert different currencies' params = {'base': currency1, 'symbols': currency2} CONVERSIONRATES = 'https://api.exchangeratesapi.io/latest' try: async with aiohttp.ClientSession() as session: async with session.get(CONVERSIONRATES, params=params) as resp: data = (await resp.json()) conversion = data['rates'][currency2] return conversion except Exception as e: print(e) return None
-4,583,028,619,382,193,000
Function to convert different currencies
conversions/conversions.py
conversionrate
Jintaku/Trusty-cogs
python
async def conversionrate(self, currency1, currency2): params = {'base': currency1, 'symbols': currency2} CONVERSIONRATES = 'https://api.exchangeratesapi.io/latest' try: async with aiohttp.ClientSession() as session: async with session.get(CONVERSIONRATES, params=params) as resp: data = (await resp.json()) conversion = data['rates'][currency2] return conversion except Exception as e: print(e) return None
async def analyze(self, update: bool=False) -> List[Update]: 'Analyze a tree and return needed Python frozen dependency updates.\n\n Parameters\n ----------\n update : `bool`, optional\n If set to `True`, leave the update applied. This avoids having\n to run ``make update-deps`` twice, once to see if an update is\n needed and again to apply it properly.\n\n Returns\n -------\n results : List[`neophile.update.base.Update`]\n Will contain either no elements (no updates needed) or a single\n element (an update needed).\n\n Raises\n ------\n neophile.exceptions.UncommittedChangesError\n The repository being analyzed has uncommitted changes and\n therefore cannot be checked for updates.\n subprocess.CalledProcessError\n Running ``make update-deps`` failed.\n ' for name in ('Makefile', 'requirements/main.in'): if (not (self._root / name).exists()): return [] repo = Repo(str(self._root)) if repo.is_dirty(): msg = 'Working tree contains uncommitted changes' raise UncommittedChangesError(msg) try: if self._virtualenv: self._virtualenv.run(['make', 'update-deps'], cwd=str(self._root), check=True, capture_output=True) else: subprocess.run(['make', 'update-deps'], cwd=str(self._root), check=True, capture_output=True) except subprocess.CalledProcessError as e: logging.error('make update-deps failed: %s%s', e.stdout, e.stderr) return [] if (not repo.is_dirty()): return [] if (not update): repo.git.restore('.') return [PythonFrozenUpdate(path=(self._root / 'requirements'), applied=update, virtualenv=self._virtualenv)]
2,984,783,672,729,777,700
Analyze a tree and return needed Python frozen dependency updates. Parameters ---------- update : `bool`, optional If set to `True`, leave the update applied. This avoids having to run ``make update-deps`` twice, once to see if an update is needed and again to apply it properly. Returns ------- results : List[`neophile.update.base.Update`] Will contain either no elements (no updates needed) or a single element (an update needed). Raises ------ neophile.exceptions.UncommittedChangesError The repository being analyzed has uncommitted changes and therefore cannot be checked for updates. subprocess.CalledProcessError Running ``make update-deps`` failed.
src/neophile/analysis/python.py
analyze
lsst-sqre/neophile
python
async def analyze(self, update: bool=False) -> List[Update]: 'Analyze a tree and return needed Python frozen dependency updates.\n\n Parameters\n ----------\n update : `bool`, optional\n If set to `True`, leave the update applied. This avoids having\n to run ``make update-deps`` twice, once to see if an update is\n needed and again to apply it properly.\n\n Returns\n -------\n results : List[`neophile.update.base.Update`]\n Will contain either no elements (no updates needed) or a single\n element (an update needed).\n\n Raises\n ------\n neophile.exceptions.UncommittedChangesError\n The repository being analyzed has uncommitted changes and\n therefore cannot be checked for updates.\n subprocess.CalledProcessError\n Running ``make update-deps`` failed.\n ' for name in ('Makefile', 'requirements/main.in'): if (not (self._root / name).exists()): return [] repo = Repo(str(self._root)) if repo.is_dirty(): msg = 'Working tree contains uncommitted changes' raise UncommittedChangesError(msg) try: if self._virtualenv: self._virtualenv.run(['make', 'update-deps'], cwd=str(self._root), check=True, capture_output=True) else: subprocess.run(['make', 'update-deps'], cwd=str(self._root), check=True, capture_output=True) except subprocess.CalledProcessError as e: logging.error('make update-deps failed: %s%s', e.stdout, e.stderr) return [] if (not repo.is_dirty()): return [] if (not update): repo.git.restore('.') return [PythonFrozenUpdate(path=(self._root / 'requirements'), applied=update, virtualenv=self._virtualenv)]
@staticmethod def getParam(waveforms, param='Amp', t=200, fet=1): "\n Returns the requested parameter from a spike train as a numpy array\n\n Parameters\n -------------------\n\n waveforms - numpy array\n Shape of array can be an nSpikes x nSamples\n OR\n a nSpikes x nElectrodes x nSamples\n\n param - str\n Valid values are:\n 'Amp' - peak-to-trough amplitude (default)\n 'P' - height of peak\n 'T' - depth of trough\n 'Vt' height at time t\n 'tP' - time of peak (in seconds)\n 'tT' - time of trough (in seconds)\n 'PCA' - first n fet principal components (defaults to 1)\n\n t - int\n The time used for Vt\n\n fet - int\n The number of principal components (used with param 'PCA')\n " from scipy import interpolate from sklearn.decomposition import PCA if (param == 'Amp'): return np.ptp(waveforms, axis=(- 1)) elif (param == 'P'): return np.max(waveforms, axis=(- 1)) elif (param == 'T'): return np.min(waveforms, axis=(- 1)) elif (param == 'Vt'): times = np.arange(0, 1000, 20) f = interpolate.interp1d(times, range(50), 'nearest') if (waveforms.ndim == 2): return waveforms[:, int(f(t))] elif (waveforms.ndim == 3): return waveforms[:, :, int(f(t))] elif (param == 'tP'): idx = np.argmax(waveforms, axis=(- 1)) m = interpolate.interp1d([0, (waveforms.shape[(- 1)] - 1)], [0, (1 / 1000.0)]) return m(idx) elif (param == 'tT'): idx = np.argmin(waveforms, axis=(- 1)) m = interpolate.interp1d([0, (waveforms.shape[(- 1)] - 1)], [0, (1 / 1000.0)]) return m(idx) elif (param == 'PCA'): pca = PCA(n_components=fet) if (waveforms.ndim == 2): return pca.fit(waveforms).transform(waveforms).squeeze() elif (waveforms.ndim == 3): out = np.zeros((waveforms.shape[0], (waveforms.shape[1] * fet))) st = np.arange(0, (waveforms.shape[1] * fet), fet) en = np.arange(fet, (fet + (waveforms.shape[1] * fet)), fet) rng = np.vstack((st, en)) for i in range(waveforms.shape[1]): if (~ np.any(np.isnan(waveforms[:, i, :]))): A = np.squeeze(pca.fit(waveforms[:, i, :].squeeze()).transform(waveforms[:, i, :].squeeze())) if (A.ndim < 2): out[:, rng[(0, i)]:rng[(1, i)]] = np.atleast_2d(A).T else: out[:, rng[(0, i)]:rng[(1, i)]] = A return out
-3,317,665,476,146,526,000
Returns the requested parameter from a spike train as a numpy array Parameters ------------------- waveforms - numpy array Shape of array can be an nSpikes x nSamples OR a nSpikes x nElectrodes x nSamples param - str Valid values are: 'Amp' - peak-to-trough amplitude (default) 'P' - height of peak 'T' - depth of trough 'Vt' height at time t 'tP' - time of peak (in seconds) 'tT' - time of trough (in seconds) 'PCA' - first n fet principal components (defaults to 1) t - int The time used for Vt fet - int The number of principal components (used with param 'PCA')
ephysiopy/common/spikecalcs.py
getParam
rhayman/ephysiopy
python
@staticmethod def getParam(waveforms, param='Amp', t=200, fet=1): "\n Returns the requested parameter from a spike train as a numpy array\n\n Parameters\n -------------------\n\n waveforms - numpy array\n Shape of array can be an nSpikes x nSamples\n OR\n a nSpikes x nElectrodes x nSamples\n\n param - str\n Valid values are:\n 'Amp' - peak-to-trough amplitude (default)\n 'P' - height of peak\n 'T' - depth of trough\n 'Vt' height at time t\n 'tP' - time of peak (in seconds)\n 'tT' - time of trough (in seconds)\n 'PCA' - first n fet principal components (defaults to 1)\n\n t - int\n The time used for Vt\n\n fet - int\n The number of principal components (used with param 'PCA')\n " from scipy import interpolate from sklearn.decomposition import PCA if (param == 'Amp'): return np.ptp(waveforms, axis=(- 1)) elif (param == 'P'): return np.max(waveforms, axis=(- 1)) elif (param == 'T'): return np.min(waveforms, axis=(- 1)) elif (param == 'Vt'): times = np.arange(0, 1000, 20) f = interpolate.interp1d(times, range(50), 'nearest') if (waveforms.ndim == 2): return waveforms[:, int(f(t))] elif (waveforms.ndim == 3): return waveforms[:, :, int(f(t))] elif (param == 'tP'): idx = np.argmax(waveforms, axis=(- 1)) m = interpolate.interp1d([0, (waveforms.shape[(- 1)] - 1)], [0, (1 / 1000.0)]) return m(idx) elif (param == 'tT'): idx = np.argmin(waveforms, axis=(- 1)) m = interpolate.interp1d([0, (waveforms.shape[(- 1)] - 1)], [0, (1 / 1000.0)]) return m(idx) elif (param == 'PCA'): pca = PCA(n_components=fet) if (waveforms.ndim == 2): return pca.fit(waveforms).transform(waveforms).squeeze() elif (waveforms.ndim == 3): out = np.zeros((waveforms.shape[0], (waveforms.shape[1] * fet))) st = np.arange(0, (waveforms.shape[1] * fet), fet) en = np.arange(fet, (fet + (waveforms.shape[1] * fet)), fet) rng = np.vstack((st, en)) for i in range(waveforms.shape[1]): if (~ np.any(np.isnan(waveforms[:, i, :]))): A = np.squeeze(pca.fit(waveforms[:, i, :].squeeze()).transform(waveforms[:, i, :].squeeze())) if (A.ndim < 2): out[:, rng[(0, i)]:rng[(1, i)]] = np.atleast_2d(A).T else: out[:, rng[(0, i)]:rng[(1, i)]] = A return out
def mean_isi_range(self, cluster: int, n: int) -> float: '\n Calculates the mean of the autocorrelation from 0 to n milliseconds\n Used to help classify a neurons type (principal, interneuron etc)\n\n Parameters\n ----------\n cluster : int\n The cluster to analyse\n n : int\n The range in milliseconds to calculate the mean over\n\n Returns\n -------\n mean_isi_range : float\n The mean of the autocorrelogram between 0 and n milliseconds\n ' if (cluster not in self.spk_clusters): raise IndexError('Cluster not available') bins = 201 trange = np.array(((- 500), 500)) t = self.spike_times[(self.spk_clusters == cluster)] y = self.xcorr(t, Trange=trange) y = y.astype(np.int64) (counts, bins) = np.histogram(y[(y != 0)], bins=bins, range=trange) mask = np.logical_and((bins > 0), (bins < n)) return np.mean(counts[mask[1:]])
-988,009,300,954,515,000
Calculates the mean of the autocorrelation from 0 to n milliseconds Used to help classify a neurons type (principal, interneuron etc) Parameters ---------- cluster : int The cluster to analyse n : int The range in milliseconds to calculate the mean over Returns ------- mean_isi_range : float The mean of the autocorrelogram between 0 and n milliseconds
ephysiopy/common/spikecalcs.py
mean_isi_range
rhayman/ephysiopy
python
def mean_isi_range(self, cluster: int, n: int) -> float: '\n Calculates the mean of the autocorrelation from 0 to n milliseconds\n Used to help classify a neurons type (principal, interneuron etc)\n\n Parameters\n ----------\n cluster : int\n The cluster to analyse\n n : int\n The range in milliseconds to calculate the mean over\n\n Returns\n -------\n mean_isi_range : float\n The mean of the autocorrelogram between 0 and n milliseconds\n ' if (cluster not in self.spk_clusters): raise IndexError('Cluster not available') bins = 201 trange = np.array(((- 500), 500)) t = self.spike_times[(self.spk_clusters == cluster)] y = self.xcorr(t, Trange=trange) y = y.astype(np.int64) (counts, bins) = np.histogram(y[(y != 0)], bins=bins, range=trange) mask = np.logical_and((bins > 0), (bins < n)) return np.mean(counts[mask[1:]])
def xcorr(self, x1: np.ndarray, x2=None, Trange=None, **kwargs) -> np.ndarray: '\n Calculates the histogram of the ISIs in x1 or x1 vs x2\n\n Parameters\n ----------\n x1, x2 : array_like\n The times of the spikes emitted by the cluster(s)\n NB must be signed int to accomodate negative times\n Trange : array_like\n Range of times to bin up. Defaults to [-500, +500] in ms\n\n Returns\n -------\n y : np.ndarray\n The time differences between spike times in x1 over the range\n of times defined Trange\n ' if (x2 is None): x2 = x1.copy() if (Trange is None): Trange = np.array([(- 500), 500]) if (type(Trange) == list): Trange = np.array(Trange) y = [] irange = (x1[:, np.newaxis] + Trange[np.newaxis, :]) dts = np.searchsorted(x2, irange) for (i, t) in enumerate(dts): y.extend((x2[t[0]:t[1]] - x1[i])) y = np.array(y, dtype=float) return y
1,825,748,258,467,719,200
Calculates the histogram of the ISIs in x1 or x1 vs x2 Parameters ---------- x1, x2 : array_like The times of the spikes emitted by the cluster(s) NB must be signed int to accomodate negative times Trange : array_like Range of times to bin up. Defaults to [-500, +500] in ms Returns ------- y : np.ndarray The time differences between spike times in x1 over the range of times defined Trange
ephysiopy/common/spikecalcs.py
xcorr
rhayman/ephysiopy
python
def xcorr(self, x1: np.ndarray, x2=None, Trange=None, **kwargs) -> np.ndarray: '\n Calculates the histogram of the ISIs in x1 or x1 vs x2\n\n Parameters\n ----------\n x1, x2 : array_like\n The times of the spikes emitted by the cluster(s)\n NB must be signed int to accomodate negative times\n Trange : array_like\n Range of times to bin up. Defaults to [-500, +500] in ms\n\n Returns\n -------\n y : np.ndarray\n The time differences between spike times in x1 over the range\n of times defined Trange\n ' if (x2 is None): x2 = x1.copy() if (Trange is None): Trange = np.array([(- 500), 500]) if (type(Trange) == list): Trange = np.array(Trange) y = [] irange = (x1[:, np.newaxis] + Trange[np.newaxis, :]) dts = np.searchsorted(x2, irange) for (i, t) in enumerate(dts): y.extend((x2[t[0]:t[1]] - x1[i])) y = np.array(y, dtype=float) return y
def getClusterWaveforms(self, cluster_id: int, channel_id: int): '\n NB Over-ride this in the individual specialisations below\n\n Get the waveforms for a particular cluster on a given channel\n\n Parameters\n ----------\n cluster_id : int\n\n Returns\n -------\n np.array : the waveforms\n ' if (self.waveforms is not None): return self.waveforms[(self.spk_clusters == cluster_id), channel_id, :] else: return None
76,091,243,924,203,620
NB Over-ride this in the individual specialisations below Get the waveforms for a particular cluster on a given channel Parameters ---------- cluster_id : int Returns ------- np.array : the waveforms
ephysiopy/common/spikecalcs.py
getClusterWaveforms
rhayman/ephysiopy
python
def getClusterWaveforms(self, cluster_id: int, channel_id: int): '\n NB Over-ride this in the individual specialisations below\n\n Get the waveforms for a particular cluster on a given channel\n\n Parameters\n ----------\n cluster_id : int\n\n Returns\n -------\n np.array : the waveforms\n ' if (self.waveforms is not None): return self.waveforms[(self.spk_clusters == cluster_id), channel_id, :] else: return None
def getMeanWaveform(self, cluster_id: int, channel_id: int): '\n Returns the mean waveform and sem for a given spike train\n on a particular channel\n\n Parameters\n ----------\n cluster_id: int\n The cluster to get the mean waveform for\n\n Returns\n -------\n mn_wvs: ndarray (floats) - usually 4x50 for tetrode recordings\n the mean waveforms\n std_wvs: ndarray (floats) - usually 4x50 for tetrode recordings\n the standard deviations of the waveforms\n ' if (self.spk_clusters is not None): if (cluster_id not in self.spk_clusters): warnings.warn('Cluster not available. Try again!') raise IndexError('cluster_id not available') x = self.getClusterWaveforms(cluster_id, channel_id) if (x is not None): return (np.mean(x, axis=0), np.std(x, axis=0)) else: return None else: return None
8,277,410,947,715,760,000
Returns the mean waveform and sem for a given spike train on a particular channel Parameters ---------- cluster_id: int The cluster to get the mean waveform for Returns ------- mn_wvs: ndarray (floats) - usually 4x50 for tetrode recordings the mean waveforms std_wvs: ndarray (floats) - usually 4x50 for tetrode recordings the standard deviations of the waveforms
ephysiopy/common/spikecalcs.py
getMeanWaveform
rhayman/ephysiopy
python
def getMeanWaveform(self, cluster_id: int, channel_id: int): '\n Returns the mean waveform and sem for a given spike train\n on a particular channel\n\n Parameters\n ----------\n cluster_id: int\n The cluster to get the mean waveform for\n\n Returns\n -------\n mn_wvs: ndarray (floats) - usually 4x50 for tetrode recordings\n the mean waveforms\n std_wvs: ndarray (floats) - usually 4x50 for tetrode recordings\n the standard deviations of the waveforms\n ' if (self.spk_clusters is not None): if (cluster_id not in self.spk_clusters): warnings.warn('Cluster not available. Try again!') raise IndexError('cluster_id not available') x = self.getClusterWaveforms(cluster_id, channel_id) if (x is not None): return (np.mean(x, axis=0), np.std(x, axis=0)) else: return None else: return None
def calculatePSTH(self, cluster_id, **kwargs): '\n Calculate the PSTH of event_ts against the spiking of a cell\n\n Parameters\n ----------\n cluster_id : int\n The cluster for which to calculate the psth\n\n Returns\n -------\n x, y : list\n The list of time differences between the spikes of the cluster\n and the events (x) and the trials (y)\n ' if (self._event_ts is None): raise Exception('Need some event timestamps! Aborting') if (self._spk_clusters is None): raise Exception('Need cluster identities! Aborting') event_ts = self.event_ts event_ts.sort() if (type(event_ts) == list): event_ts = np.array(event_ts) spike_times = self.spike_times[(self.spk_clusters == cluster_id)] irange = (event_ts[:, np.newaxis] + self.event_window[np.newaxis, :]) dts = np.searchsorted(spike_times, irange) x = [] y = [] for (i, t) in enumerate(dts): tmp = (spike_times[t[0]:t[1]] - event_ts[i]) x.extend(tmp) y.extend(np.repeat(i, len(tmp))) return (x, y)
-8,986,135,416,442,701,000
Calculate the PSTH of event_ts against the spiking of a cell Parameters ---------- cluster_id : int The cluster for which to calculate the psth Returns ------- x, y : list The list of time differences between the spikes of the cluster and the events (x) and the trials (y)
ephysiopy/common/spikecalcs.py
calculatePSTH
rhayman/ephysiopy
python
def calculatePSTH(self, cluster_id, **kwargs): '\n Calculate the PSTH of event_ts against the spiking of a cell\n\n Parameters\n ----------\n cluster_id : int\n The cluster for which to calculate the psth\n\n Returns\n -------\n x, y : list\n The list of time differences between the spikes of the cluster\n and the events (x) and the trials (y)\n ' if (self._event_ts is None): raise Exception('Need some event timestamps! Aborting') if (self._spk_clusters is None): raise Exception('Need cluster identities! Aborting') event_ts = self.event_ts event_ts.sort() if (type(event_ts) == list): event_ts = np.array(event_ts) spike_times = self.spike_times[(self.spk_clusters == cluster_id)] irange = (event_ts[:, np.newaxis] + self.event_window[np.newaxis, :]) dts = np.searchsorted(spike_times, irange) x = [] y = [] for (i, t) in enumerate(dts): tmp = (spike_times[t[0]:t[1]] - event_ts[i]) x.extend(tmp) y.extend(np.repeat(i, len(tmp))) return (x, y)