Jon Hall | a1cdd89 | 2015-08-10 13:36:28 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="ascii"?> |
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
| 3 | "DTD/xhtml1-transitional.dtd"> |
| 4 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
| 5 | <head> |
| 6 | <title>TestON.drivers.common.cli.dpclidriver.DPCliDriver</title> |
| 7 | <link rel="stylesheet" href="epydoc.css" type="text/css" /> |
| 8 | <script type="text/javascript" src="epydoc.js"></script> |
| 9 | </head> |
| 10 | |
| 11 | <body bgcolor="white" text="black" link="blue" vlink="#204080" |
| 12 | alink="#204080"> |
| 13 | <!-- ==================== NAVIGATION BAR ==================== --> |
| 14 | <table class="navbar" border="0" width="100%" cellpadding="0" |
| 15 | bgcolor="#a0c0ff" cellspacing="0"> |
| 16 | <tr valign="middle"> |
| 17 | <!-- Home link --> |
| 18 | <th> <a |
| 19 | href="TestON-module.html">Home</a> </th> |
| 20 | |
| 21 | <!-- Tree link --> |
| 22 | <th> <a |
| 23 | href="module-tree.html">Trees</a> </th> |
| 24 | |
| 25 | <!-- Index link --> |
| 26 | <th> <a |
| 27 | href="identifier-index.html">Indices</a> </th> |
| 28 | |
| 29 | <!-- Help link --> |
| 30 | <th> <a |
| 31 | href="help.html">Help</a> </th> |
| 32 | |
| 33 | <!-- Project homepage --> |
| 34 | <th class="navbar" align="right" width="100%"> |
| 35 | <table border="0" cellpadding="0" cellspacing="0"> |
| 36 | <tr><th class="navbar" align="center" |
| 37 | >TestON</th> |
| 38 | </tr></table></th> |
| 39 | </tr> |
| 40 | </table> |
| 41 | <table width="100%" cellpadding="0" cellspacing="0"> |
| 42 | <tr valign="top"> |
| 43 | <td width="100%"> |
| 44 | <span class="breadcrumbs"> |
| 45 | <a href="TestON-module.html">Package TestON</a> :: |
| 46 | <a href="TestON.drivers-module.html">Package drivers</a> :: |
| 47 | <a href="TestON.drivers.common-module.html">Package common</a> :: |
| 48 | <a href="TestON.drivers.common.cli-module.html">Package cli</a> :: |
| 49 | <a href="TestON.drivers.common.cli.dpclidriver-module.html">Module dpclidriver</a> :: |
| 50 | Class DPCliDriver |
| 51 | </span> |
| 52 | </td> |
| 53 | <td> |
| 54 | <table cellpadding="0" cellspacing="0"> |
| 55 | <!-- hide/show private --> |
| 56 | <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink" |
| 57 | onclick="toggle_private();">hide private</a>]</span></td></tr> |
| 58 | <tr><td align="right"><span class="options" |
| 59 | >[<a href="frames.html" target="_top">frames</a |
| 60 | >] | <a href="TestON.drivers.common.cli.dpclidriver.DPCliDriver-class.html" |
| 61 | target="_top">no frames</a>]</span></td></tr> |
| 62 | </table> |
| 63 | </td> |
| 64 | </tr> |
| 65 | </table> |
| 66 | <!-- ==================== CLASS DESCRIPTION ==================== --> |
| 67 | <h1 class="epydoc">Class DPCliDriver</h1><p class="nomargin-top"><span class="codelink"><a href="TestON.drivers.common.cli.dpclidriver-pysrc.html#DPCliDriver">source code</a></span></p> |
| 68 | <center> |
| 69 | <center> <map id="class_hierarchy_for_dpclidrive" name="class_hierarchy_for_dpclidrive"> |
| 70 | <area shape="rect" id="node1" href="TestON.drivers.common.cli.dpclidriver.DPCliDriver-class.html" title="DPCliDriver" alt="" coords="5,6,96,31"/> |
| 71 | <area shape="rect" id="node2" href="TestON.drivers.common.clidriver.CLI-class.html" title="clidriver.CLI" alt="" coords="121,6,212,31"/> |
| 72 | <area shape="rect" id="node3" href="javascript:void(0);" title="component.Component" alt="" coords="237,6,395,31"/> |
| 73 | </map> |
| 74 | <img src="class_hierarchy_for_dpclidrive.gif" alt='' usemap="#class_hierarchy_for_dpclidrive" ismap="ismap" class="graph-without-title" /> |
| 75 | </center> |
| 76 | </center> |
| 77 | <hr /> |
| 78 | <!-- ==================== INSTANCE METHODS ==================== --> |
| 79 | <a name="section-InstanceMethods"></a> |
| 80 | <table class="summary" border="1" cellpadding="3" |
| 81 | cellspacing="0" width="100%" bgcolor="white"> |
| 82 | <tr bgcolor="#70b0f0" class="table-header"> |
| 83 | <td colspan="2" class="table-header"> |
| 84 | <table border="0" cellpadding="0" cellspacing="0" width="100%"> |
| 85 | <tr valign="top"> |
| 86 | <td align="left"><span class="table-header">Instance Methods</span></td> |
| 87 | <td align="right" valign="top" |
| 88 | ><span class="options">[<a href="#section-InstanceMethods" |
| 89 | class="privatelink" onclick="toggle_private();" |
| 90 | >hide private</a>]</span></td> |
| 91 | </tr> |
| 92 | </table> |
| 93 | </td> |
| 94 | </tr> |
| 95 | <tr> |
| 96 | <td width="15%" align="right" valign="top" class="summary"> |
| 97 | <span class="summary-type"> </span> |
| 98 | </td><td class="summary"> |
| 99 | <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
| 100 | <tr> |
| 101 | <td><span class="summary-sig"><a href="TestON.drivers.common.cli.dpclidriver.DPCliDriver-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>)</span><br /> |
| 102 | x.__init__(...) initializes x; see help(type(x)) for signature</td> |
| 103 | <td align="right" valign="top"> |
| 104 | <span class="codelink"><a href="TestON.drivers.common.cli.dpclidriver-pysrc.html#DPCliDriver.__init__">source code</a></span> |
| 105 | |
| 106 | </td> |
| 107 | </tr> |
| 108 | </table> |
| 109 | |
| 110 | </td> |
| 111 | </tr> |
| 112 | <tr> |
| 113 | <td width="15%" align="right" valign="top" class="summary"> |
| 114 | <span class="summary-type"> </span> |
| 115 | </td><td class="summary"> |
| 116 | <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
| 117 | <tr> |
| 118 | <td><span class="summary-sig"><a href="TestON.drivers.common.cli.dpclidriver.DPCliDriver-class.html#connect" class="summary-sig-name">connect</a>(<span class="summary-sig-arg">self</span>, |
| 119 | <span class="summary-sig-arg">**connectargs</span>)</span><br /> |
| 120 | Connection will establish to the remote host using ssh.</td> |
| 121 | <td align="right" valign="top"> |
| 122 | <span class="codelink"><a href="TestON.drivers.common.cli.dpclidriver-pysrc.html#DPCliDriver.connect">source code</a></span> |
| 123 | |
| 124 | </td> |
| 125 | </tr> |
| 126 | </table> |
| 127 | |
| 128 | </td> |
| 129 | </tr> |
| 130 | <tr> |
| 131 | <td width="15%" align="right" valign="top" class="summary"> |
| 132 | <span class="summary-type"> </span> |
| 133 | </td><td class="summary"> |
| 134 | <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
| 135 | <tr> |
| 136 | <td><span class="summary-sig"><a href="TestON.drivers.common.cli.dpclidriver.DPCliDriver-class.html#create_interfaces" class="summary-sig-name">create_interfaces</a>(<span class="summary-sig-arg">self</span>, |
| 137 | <span class="summary-sig-arg">net</span>, |
| 138 | <span class="summary-sig-arg">number</span>, |
| 139 | <span class="summary-sig-arg">start</span>)</span><br /> |
| 140 | Creates a number,specified by 'number,' of subinterfaces on eth0.</td> |
| 141 | <td align="right" valign="top"> |
| 142 | <span class="codelink"><a href="TestON.drivers.common.cli.dpclidriver-pysrc.html#DPCliDriver.create_interfaces">source code</a></span> |
| 143 | |
| 144 | </td> |
| 145 | </tr> |
| 146 | </table> |
| 147 | |
| 148 | </td> |
| 149 | </tr> |
| 150 | <tr> |
| 151 | <td width="15%" align="right" valign="top" class="summary"> |
| 152 | <span class="summary-type"> </span> |
| 153 | </td><td class="summary"> |
| 154 | <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
| 155 | <tr> |
| 156 | <td><span class="summary-sig"><a href="TestON.drivers.common.cli.dpclidriver.DPCliDriver-class.html#pingall_interfaces" class="summary-sig-name">pingall_interfaces</a>(<span class="summary-sig-arg">self</span>, |
| 157 | <span class="summary-sig-arg">netsrc</span>, |
| 158 | <span class="summary-sig-arg">netstrt</span>, |
| 159 | <span class="summary-sig-arg">netdst</span>, |
| 160 | <span class="summary-sig-arg">destlogin</span>, |
| 161 | <span class="summary-sig-arg">destip</span>)</span><br /> |
| 162 | Copies the /tmp/ip_table{ net }.txt file from the machine you wish to |
| 163 | ping, then runs fping with a source address of { netsrc }.</td> |
| 164 | <td align="right" valign="top"> |
| 165 | <span class="codelink"><a href="TestON.drivers.common.cli.dpclidriver-pysrc.html#DPCliDriver.pingall_interfaces">source code</a></span> |
| 166 | |
| 167 | </td> |
| 168 | </tr> |
| 169 | </table> |
| 170 | |
| 171 | </td> |
| 172 | </tr> |
| 173 | <tr> |
| 174 | <td width="15%" align="right" valign="top" class="summary"> |
| 175 | <span class="summary-type"> </span> |
| 176 | </td><td class="summary"> |
| 177 | <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
| 178 | <tr> |
| 179 | <td><span class="summary-sig"><a href="TestON.drivers.common.cli.dpclidriver.DPCliDriver-class.html#disconnect" class="summary-sig-name">disconnect</a>(<span class="summary-sig-arg">self</span>)</span></td> |
| 180 | <td align="right" valign="top"> |
| 181 | <span class="codelink"><a href="TestON.drivers.common.cli.dpclidriver-pysrc.html#DPCliDriver.disconnect">source code</a></span> |
| 182 | |
| 183 | </td> |
| 184 | </tr> |
| 185 | </table> |
| 186 | |
| 187 | </td> |
| 188 | </tr> |
| 189 | <tr> |
| 190 | <td width="15%" align="right" valign="top" class="summary"> |
| 191 | <span class="summary-type"> </span> |
| 192 | </td><td class="summary"> |
| 193 | <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
| 194 | <tr> |
| 195 | <td><span class="summary-sig"><a href="TestON.drivers.common.clidriver.CLI-class.html#execute" class="summary-sig-name">execute</a>(<span class="summary-sig-arg">self</span>, |
| 196 | <span class="summary-sig-arg">**execparams</span>)</span><br /> |
| 197 | It facilitates the command line execution of a given command. |
| 198 | <em>(Inherited from <a href="TestON.drivers.common.clidriver.CLI-class.html">TestON.drivers.common.clidriver.CLI</a>)</em></td> |
| 199 | <td align="right" valign="top"> |
| 200 | <span class="codelink"><a href="TestON.drivers.common.clidriver-pysrc.html#CLI.execute">source code</a></span> |
| 201 | |
| 202 | </td> |
| 203 | </tr> |
| 204 | </table> |
| 205 | |
| 206 | </td> |
| 207 | </tr> |
| 208 | <tr> |
| 209 | <td width="15%" align="right" valign="top" class="summary"> |
| 210 | <span class="summary-type"> </span> |
| 211 | </td><td class="summary"> |
| 212 | <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
| 213 | <tr> |
| 214 | <td><span class="summary-sig"><a name="onfail"></a><span class="summary-sig-name">onfail</span>(<span class="summary-sig-arg">self</span>)</span> |
| 215 | <em>(Inherited from <a href="TestON.drivers.common.clidriver.CLI-class.html">TestON.drivers.common.clidriver.CLI</a>)</em></td> |
| 216 | <td align="right" valign="top"> |
| 217 | <span class="codelink"><a href="TestON.drivers.common.clidriver-pysrc.html#CLI.onfail">source code</a></span> |
| 218 | |
| 219 | </td> |
| 220 | </tr> |
| 221 | </table> |
| 222 | |
| 223 | </td> |
| 224 | </tr> |
| 225 | <tr> |
| 226 | <td width="15%" align="right" valign="top" class="summary"> |
| 227 | <span class="summary-type"> </span> |
| 228 | </td><td class="summary"> |
| 229 | <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
| 230 | <tr> |
| 231 | <td><span class="summary-sig"><a name="remove_contol_chars"></a><span class="summary-sig-name">remove_contol_chars</span>(<span class="summary-sig-arg">self</span>, |
| 232 | <span class="summary-sig-arg">response</span>)</span> |
| 233 | <em>(Inherited from <a href="TestON.drivers.common.clidriver.CLI-class.html">TestON.drivers.common.clidriver.CLI</a>)</em></td> |
| 234 | <td align="right" valign="top"> |
| 235 | <span class="codelink"><a href="TestON.drivers.common.clidriver-pysrc.html#CLI.remove_contol_chars">source code</a></span> |
| 236 | |
| 237 | </td> |
| 238 | </tr> |
| 239 | </table> |
| 240 | |
| 241 | </td> |
| 242 | </tr> |
| 243 | <tr> |
| 244 | <td width="15%" align="right" valign="top" class="summary"> |
| 245 | <span class="summary-type"> </span> |
| 246 | </td><td class="summary"> |
| 247 | <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
| 248 | <tr> |
| 249 | <td><span class="summary-sig"><a name="runAsSudoUser"></a><span class="summary-sig-name">runAsSudoUser</span>(<span class="summary-sig-arg">self</span>, |
| 250 | <span class="summary-sig-arg">handle</span>, |
| 251 | <span class="summary-sig-arg">pwd</span>, |
| 252 | <span class="summary-sig-arg">default</span>)</span> |
| 253 | <em>(Inherited from <a href="TestON.drivers.common.clidriver.CLI-class.html">TestON.drivers.common.clidriver.CLI</a>)</em></td> |
| 254 | <td align="right" valign="top"> |
| 255 | <span class="codelink"><a href="TestON.drivers.common.clidriver-pysrc.html#CLI.runAsSudoUser">source code</a></span> |
| 256 | |
| 257 | </td> |
| 258 | </tr> |
| 259 | </table> |
| 260 | |
| 261 | </td> |
| 262 | </tr> |
| 263 | <tr> |
| 264 | <td width="15%" align="right" valign="top" class="summary"> |
| 265 | <span class="summary-type"> </span> |
| 266 | </td><td class="summary"> |
| 267 | <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
| 268 | <tr> |
| 269 | <td><span class="summary-sig"><a href="TestON.drivers.common.clidriver.CLI-class.html#secureCopy" class="summary-sig-name">secureCopy</a>(<span class="summary-sig-arg">self</span>, |
| 270 | <span class="summary-sig-arg">user_name</span>, |
| 271 | <span class="summary-sig-arg">ip_address</span>, |
| 272 | <span class="summary-sig-arg">filepath</span>, |
| 273 | <span class="summary-sig-arg">pwd</span>, |
| 274 | <span class="summary-sig-arg">dst_path</span>)</span><br /> |
| 275 | Connection will establish to the remote host using ssh. |
| 276 | <em>(Inherited from <a href="TestON.drivers.common.clidriver.CLI-class.html">TestON.drivers.common.clidriver.CLI</a>)</em></td> |
| 277 | <td align="right" valign="top"> |
| 278 | <span class="codelink"><a href="TestON.drivers.common.clidriver-pysrc.html#CLI.secureCopy">source code</a></span> |
| 279 | |
| 280 | </td> |
| 281 | </tr> |
| 282 | </table> |
| 283 | |
| 284 | </td> |
| 285 | </tr> |
| 286 | <tr> |
| 287 | <td colspan="2" class="summary"> |
| 288 | <p class="indent-wrapped-lines"><b>Inherited from <code>component.Component</code></b>: |
| 289 | <code>__getattr__</code>, |
| 290 | <code>cleanup</code>, |
| 291 | <code>close_log_handles</code>, |
| 292 | <code>config</code>, |
| 293 | <code>experimentRun</code>, |
| 294 | <code>get_version</code>, |
| 295 | <code>log</code> |
| 296 | </p> |
| 297 | <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>: |
| 298 | <code>__delattr__</code>, |
| 299 | <code>__format__</code>, |
| 300 | <code>__getattribute__</code>, |
| 301 | <code>__hash__</code>, |
| 302 | <code>__new__</code>, |
| 303 | <code>__reduce__</code>, |
| 304 | <code>__reduce_ex__</code>, |
| 305 | <code>__repr__</code>, |
| 306 | <code>__setattr__</code>, |
| 307 | <code>__sizeof__</code>, |
| 308 | <code>__str__</code>, |
| 309 | <code>__subclasshook__</code> |
| 310 | </p> |
| 311 | </td> |
| 312 | </tr> |
| 313 | </table> |
| 314 | <!-- ==================== PROPERTIES ==================== --> |
| 315 | <a name="section-Properties"></a> |
| 316 | <table class="summary" border="1" cellpadding="3" |
| 317 | cellspacing="0" width="100%" bgcolor="white"> |
| 318 | <tr bgcolor="#70b0f0" class="table-header"> |
| 319 | <td colspan="2" class="table-header"> |
| 320 | <table border="0" cellpadding="0" cellspacing="0" width="100%"> |
| 321 | <tr valign="top"> |
| 322 | <td align="left"><span class="table-header">Properties</span></td> |
| 323 | <td align="right" valign="top" |
| 324 | ><span class="options">[<a href="#section-Properties" |
| 325 | class="privatelink" onclick="toggle_private();" |
| 326 | >hide private</a>]</span></td> |
| 327 | </tr> |
| 328 | </table> |
| 329 | </td> |
| 330 | </tr> |
| 331 | <tr> |
| 332 | <td colspan="2" class="summary"> |
| 333 | <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>: |
| 334 | <code>__class__</code> |
| 335 | </p> |
| 336 | </td> |
| 337 | </tr> |
| 338 | </table> |
| 339 | <!-- ==================== METHOD DETAILS ==================== --> |
| 340 | <a name="section-MethodDetails"></a> |
| 341 | <table class="details" border="1" cellpadding="3" |
| 342 | cellspacing="0" width="100%" bgcolor="white"> |
| 343 | <tr bgcolor="#70b0f0" class="table-header"> |
| 344 | <td colspan="2" class="table-header"> |
| 345 | <table border="0" cellpadding="0" cellspacing="0" width="100%"> |
| 346 | <tr valign="top"> |
| 347 | <td align="left"><span class="table-header">Method Details</span></td> |
| 348 | <td align="right" valign="top" |
| 349 | ><span class="options">[<a href="#section-MethodDetails" |
| 350 | class="privatelink" onclick="toggle_private();" |
| 351 | >hide private</a>]</span></td> |
| 352 | </tr> |
| 353 | </table> |
| 354 | </td> |
| 355 | </tr> |
| 356 | </table> |
| 357 | <a name="__init__"></a> |
| 358 | <div> |
| 359 | <table class="details" border="1" cellpadding="3" |
| 360 | cellspacing="0" width="100%" bgcolor="white"> |
| 361 | <tr><td> |
| 362 | <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
| 363 | <tr valign="top"><td> |
| 364 | <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>)</span> |
| 365 | <br /><em class="fname">(Constructor)</em> |
| 366 | </h3> |
| 367 | </td><td align="right" valign="top" |
| 368 | ><span class="codelink"><a href="TestON.drivers.common.cli.dpclidriver-pysrc.html#DPCliDriver.__init__">source code</a></span> |
| 369 | </td> |
| 370 | </tr></table> |
| 371 | |
| 372 | <p>x.__init__(...) initializes x; see help(type(x)) for signature</p> |
| 373 | <dl class="fields"> |
| 374 | <dt>Overrides: |
| 375 | object.__init__ |
| 376 | <dd><em class="note">(inherited documentation)</em></dd> |
| 377 | </dt> |
| 378 | </dl> |
| 379 | </td></tr></table> |
| 380 | </div> |
| 381 | <a name="connect"></a> |
| 382 | <div> |
| 383 | <table class="details" border="1" cellpadding="3" |
| 384 | cellspacing="0" width="100%" bgcolor="white"> |
| 385 | <tr><td> |
| 386 | <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
| 387 | <tr valign="top"><td> |
| 388 | <h3 class="epydoc"><span class="sig"><span class="sig-name">connect</span>(<span class="sig-arg">self</span>, |
| 389 | <span class="sig-arg">**connectargs</span>)</span> |
| 390 | </h3> |
| 391 | </td><td align="right" valign="top" |
| 392 | ><span class="codelink"><a href="TestON.drivers.common.cli.dpclidriver-pysrc.html#DPCliDriver.connect">source code</a></span> |
| 393 | </td> |
| 394 | </tr></table> |
| 395 | |
| 396 | <p>Connection will establish to the remote host using ssh. It will take |
| 397 | user_name ,ip_address and password as arguments<br> and will return |
| 398 | the handle.</p> |
| 399 | <dl class="fields"> |
| 400 | <dt>Overrides: |
| 401 | component.Component.connect |
| 402 | </dt> |
| 403 | </dl> |
| 404 | </td></tr></table> |
| 405 | </div> |
| 406 | <a name="create_interfaces"></a> |
| 407 | <div> |
| 408 | <table class="details" border="1" cellpadding="3" |
| 409 | cellspacing="0" width="100%" bgcolor="white"> |
| 410 | <tr><td> |
| 411 | <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
| 412 | <tr valign="top"><td> |
| 413 | <h3 class="epydoc"><span class="sig"><span class="sig-name">create_interfaces</span>(<span class="sig-arg">self</span>, |
| 414 | <span class="sig-arg">net</span>, |
| 415 | <span class="sig-arg">number</span>, |
| 416 | <span class="sig-arg">start</span>)</span> |
| 417 | </h3> |
| 418 | </td><td align="right" valign="top" |
| 419 | ><span class="codelink"><a href="TestON.drivers.common.cli.dpclidriver-pysrc.html#DPCliDriver.create_interfaces">source code</a></span> |
| 420 | </td> |
| 421 | </tr></table> |
| 422 | |
| 423 | <p>Creates a number,specified by 'number,' of subinterfaces on eth0. Ip |
| 424 | addresses start at 'net'.'start'.1.1 with a 24 bit netmask. Addresses |
| 425 | increment sequentially in the third quad, therefore all interfaces are in |
| 426 | different subnets on the same machine. When the third quad reaches 255, |
| 427 | it is reset to 1 and the second quad is incremented. Every single ip |
| 428 | address is placed in a file in /tmp titled 'ip_table{net}.txt'. The file |
| 429 | is used by 'pingall_interfaces()' as a fping argument</p> |
| 430 | <p>This method returns true if all interfaces are created without a |
| 431 | hitch, and false if a single interface has issues</p> |
| 432 | <dl class="fields"> |
| 433 | </dl> |
| 434 | </td></tr></table> |
| 435 | </div> |
| 436 | <a name="pingall_interfaces"></a> |
| 437 | <div> |
| 438 | <table class="details" border="1" cellpadding="3" |
| 439 | cellspacing="0" width="100%" bgcolor="white"> |
| 440 | <tr><td> |
| 441 | <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
| 442 | <tr valign="top"><td> |
| 443 | <h3 class="epydoc"><span class="sig"><span class="sig-name">pingall_interfaces</span>(<span class="sig-arg">self</span>, |
| 444 | <span class="sig-arg">netsrc</span>, |
| 445 | <span class="sig-arg">netstrt</span>, |
| 446 | <span class="sig-arg">netdst</span>, |
| 447 | <span class="sig-arg">destlogin</span>, |
| 448 | <span class="sig-arg">destip</span>)</span> |
| 449 | </h3> |
| 450 | </td><td align="right" valign="top" |
| 451 | ><span class="codelink"><a href="TestON.drivers.common.cli.dpclidriver-pysrc.html#DPCliDriver.pingall_interfaces">source code</a></span> |
| 452 | </td> |
| 453 | </tr></table> |
| 454 | |
| 455 | <p>Copies the /tmp/ip_table{ net }.txt file from the machine you wish to |
| 456 | ping, then runs fping with a source address of { netsrc }.{ netstrt }.1.1 |
| 457 | on the copied file. Check every single response for reachable or |
| 458 | unreachable. If all are reachable, function returns true. If a SINGLE |
| 459 | host is unreachable, then the function stops and returns false. If fping |
| 460 | is not installed, this function will install fping then run the same |
| 461 | command</p> |
| 462 | <dl class="fields"> |
| 463 | </dl> |
| 464 | </td></tr></table> |
| 465 | </div> |
| 466 | <a name="disconnect"></a> |
| 467 | <div> |
| 468 | <table class="details" border="1" cellpadding="3" |
| 469 | cellspacing="0" width="100%" bgcolor="white"> |
| 470 | <tr><td> |
| 471 | <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
| 472 | <tr valign="top"><td> |
| 473 | <h3 class="epydoc"><span class="sig"><span class="sig-name">disconnect</span>(<span class="sig-arg">self</span>)</span> |
| 474 | </h3> |
| 475 | </td><td align="right" valign="top" |
| 476 | ><span class="codelink"><a href="TestON.drivers.common.cli.dpclidriver-pysrc.html#DPCliDriver.disconnect">source code</a></span> |
| 477 | </td> |
| 478 | </tr></table> |
| 479 | |
| 480 | |
| 481 | <dl class="fields"> |
| 482 | <dt>Overrides: |
| 483 | component.Component.disconnect |
| 484 | </dt> |
| 485 | </dl> |
| 486 | </td></tr></table> |
| 487 | </div> |
| 488 | <br /> |
| 489 | <!-- ==================== NAVIGATION BAR ==================== --> |
| 490 | <table class="navbar" border="0" width="100%" cellpadding="0" |
| 491 | bgcolor="#a0c0ff" cellspacing="0"> |
| 492 | <tr valign="middle"> |
| 493 | <!-- Home link --> |
| 494 | <th> <a |
| 495 | href="TestON-module.html">Home</a> </th> |
| 496 | |
| 497 | <!-- Tree link --> |
| 498 | <th> <a |
| 499 | href="module-tree.html">Trees</a> </th> |
| 500 | |
| 501 | <!-- Index link --> |
| 502 | <th> <a |
| 503 | href="identifier-index.html">Indices</a> </th> |
| 504 | |
| 505 | <!-- Help link --> |
| 506 | <th> <a |
| 507 | href="help.html">Help</a> </th> |
| 508 | |
| 509 | <!-- Project homepage --> |
| 510 | <th class="navbar" align="right" width="100%"> |
| 511 | <table border="0" cellpadding="0" cellspacing="0"> |
| 512 | <tr><th class="navbar" align="center" |
| 513 | >TestON</th> |
| 514 | </tr></table></th> |
| 515 | </tr> |
| 516 | </table> |
| 517 | <table border="0" cellpadding="0" cellspacing="0" width="100%%"> |
| 518 | <tr> |
| 519 | <td align="left" class="footer"> |
| 520 | Generated by Epydoc 3.0.1 on Mon Aug 10 11:12:35 2015 |
| 521 | </td> |
| 522 | <td align="right" class="footer"> |
| 523 | <a target="mainFrame" href="http://epydoc.sourceforge.net" |
| 524 | >http://epydoc.sourceforge.net</a> |
| 525 | </td> |
| 526 | </tr> |
| 527 | </table> |
| 528 | |
| 529 | <script type="text/javascript"> |
| 530 | <!-- |
| 531 | // Private objects are initially displayed (because if |
| 532 | // javascript is turned off then we want them to be |
| 533 | // visible); but by default, we want to hide them. So hide |
| 534 | // them unless we have a cookie that says to show them. |
| 535 | checkCookie(); |
| 536 | // --> |
| 537 | </script> |
| 538 | </body> |
| 539 | </html> |