<?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 searching for nodes in Tools</title>
    <link>https://community.cisco.com/t5/tools/searching-for-nodes/m-p/3567397#M376</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to search for nodes (by name or other parameters) in my topology.&lt;/P&gt;&lt;P&gt;After finding I would like to "select" them.&lt;/P&gt;&lt;P&gt;So I have to iterate over all nodes.&lt;/P&gt;&lt;P&gt;This already works fine for all nodes shown in the current view. (found many different ways to do so p.e.:&lt;/P&gt;&lt;P&gt;topology.eachNode()&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;topology.graph().eachVertex()&lt;/P&gt;&lt;P&gt;and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT:&lt;/P&gt;&lt;P&gt;As soon as a node is "hidden" behind a nodeSet this does not work.&lt;/P&gt;&lt;P&gt;So I am looking for a method to find all Nodes in my topology also those being hidden behind nodeSets.&lt;/P&gt;&lt;P&gt;topology.getData() does not help, as I can not select them there...&lt;/P&gt;&lt;P&gt;AND:&lt;BR /&gt;If I was able to find currently hidden nodes, and I select them, is there a way to select all nodeSet(s) that are parents of this node?&lt;/P&gt;&lt;P&gt;Again: Node is nested under NodeSets. If searched for that node I would like to "select" all the tree to the searched Node.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ist this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx a lot&lt;/P&gt;&lt;P&gt;Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Mar 2016 08:15:14 GMT</pubDate>
    <dc:creator>m.rainer</dc:creator>
    <dc:date>2016-03-30T08:15:14Z</dc:date>
    <item>
      <title>searching for nodes</title>
      <link>https://community.cisco.com/t5/tools/searching-for-nodes/m-p/3567397#M376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to search for nodes (by name or other parameters) in my topology.&lt;/P&gt;&lt;P&gt;After finding I would like to "select" them.&lt;/P&gt;&lt;P&gt;So I have to iterate over all nodes.&lt;/P&gt;&lt;P&gt;This already works fine for all nodes shown in the current view. (found many different ways to do so p.e.:&lt;/P&gt;&lt;P&gt;topology.eachNode()&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;topology.graph().eachVertex()&lt;/P&gt;&lt;P&gt;and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT:&lt;/P&gt;&lt;P&gt;As soon as a node is "hidden" behind a nodeSet this does not work.&lt;/P&gt;&lt;P&gt;So I am looking for a method to find all Nodes in my topology also those being hidden behind nodeSets.&lt;/P&gt;&lt;P&gt;topology.getData() does not help, as I can not select them there...&lt;/P&gt;&lt;P&gt;AND:&lt;BR /&gt;If I was able to find currently hidden nodes, and I select them, is there a way to select all nodeSet(s) that are parents of this node?&lt;/P&gt;&lt;P&gt;Again: Node is nested under NodeSets. If searched for that node I would like to "select" all the tree to the searched Node.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ist this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx a lot&lt;/P&gt;&lt;P&gt;Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2016 08:15:14 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/searching-for-nodes/m-p/3567397#M376</guid>
      <dc:creator>m.rainer</dc:creator>
      <dc:date>2016-03-30T08:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: searching for nodes</title>
      <link>https://community.cisco.com/t5/tools/searching-for-nodes/m-p/3567398#M377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi Markus,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;there are couple steps you can fellow:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;1. find vertex :&amp;nbsp; vertex = topo.graph().getVertex(ID)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2. check if vertex generated : vertex = generated()&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;3. if yes, just use topo.getNode(ID)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;4. if not use this property find generated parent nodeset : var vs = vertex.generatedRootVertexSet(),&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;5 use topo.getNode(vs.id()) find parent nodeSet&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;IMG src="https://community.cisco.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Abu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 08:12:44 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/searching-for-nodes/m-p/3567398#M377</guid>
      <dc:creator>aaikepae</dc:creator>
      <dc:date>2016-04-07T08:12:44Z</dc:date>
    </item>
  </channel>
</rss>

