<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Python - Opening socket in VRF in Network Devices</title>
    <link>https://community.cisco.com/t5/network-devices/python-opening-socket-in-vrf/m-p/4621794#M162</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/1356941"&gt;@omarbognanno&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would open an issue with the repo where the script was found to ask their opinion:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/romana/multi-ping/issues" target="_blank"&gt;https://github.com/romana/multi-ping/issues&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 31 May 2022 18:10:32 GMT</pubDate>
    <dc:creator>Alexander Stevenson</dc:creator>
    <dc:date>2022-05-31T18:10:32Z</dc:date>
    <item>
      <title>Python - Opening socket in VRF</title>
      <link>https://community.cisco.com/t5/network-devices/python-opening-socket-in-vrf/m-p/4614320#M161</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to develop a script to run on IOS XR 6.6 (32 bits, QNX based) to perform a single ping to a large number of destinations in a short time.&lt;/P&gt;&lt;P&gt;I found this script to perform such operation:&amp;nbsp;&lt;A href="https://github.com/romana/multi-ping" target="_blank" rel="noopener"&gt;GitHub - romana/multi-ping: Python library to monitor one or many IP addresses via ICMP echo (ping) requests&lt;/A&gt;&lt;/P&gt;&lt;P&gt;To run the script, I copy it in "/sdk/python/." and run it through "python run &amp;lt;script_name&amp;gt;".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The script opens a number of sockets, crafts the ICMP packets and parses the IP packets on the way back (it works).&lt;/P&gt;&lt;P&gt;However, I would need to ping destinations in different VRFs, and I cannot find anywhere some documentation to attach the socket to the right device.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The ping command, callable from both the CLI and the KSH, is able to perform the same operation, so I would be confident that the functionality could be achieved using sockets from a python script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 18:37:01 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-devices/python-opening-socket-in-vrf/m-p/4614320#M161</guid>
      <dc:creator>omarbognanno</dc:creator>
      <dc:date>2022-05-20T18:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Python - Opening socket in VRF</title>
      <link>https://community.cisco.com/t5/network-devices/python-opening-socket-in-vrf/m-p/4621794#M162</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/1356941"&gt;@omarbognanno&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would open an issue with the repo where the script was found to ask their opinion:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/romana/multi-ping/issues" target="_blank"&gt;https://github.com/romana/multi-ping/issues&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2022 18:10:32 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-devices/python-opening-socket-in-vrf/m-p/4621794#M162</guid>
      <dc:creator>Alexander Stevenson</dc:creator>
      <dc:date>2022-05-31T18:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: Python - Opening socket in VRF</title>
      <link>https://community.cisco.com/t5/network-devices/python-opening-socket-in-vrf/m-p/4622453#M163</link>
      <description>&lt;P&gt;For related information can check this discussion also -https://community.cisco.com/t5/routing/unable-to-ping-over-vrf-to-gateway-on-same-device/td-p/3734775&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 11:13:45 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-devices/python-opening-socket-in-vrf/m-p/4622453#M163</guid>
      <dc:creator>Geevarghese Cheria</dc:creator>
      <dc:date>2022-06-01T11:13:45Z</dc:date>
    </item>
  </channel>
</rss>

