IncludeSwitchHeader.txt 939 B

12345678910111213141516171819202122232425262728293031323334
  1. ---++ Список оборудования по портам
  2. %SEARCH{
  3. "Parent='%BASETOPIC%' and ParentPort"
  4. topic="*"
  5. type="query"
  6. nosearch="on"
  7. nototal="on"
  8. header="|*Port*|*Name*|*Model*|*Description*|"
  9. format="| [[$topic][$formfield(ParentPort)]] | $formfield(Name) | $formfield(Vendor) $formfield(DeviceModel) | $formfield(Description) |"
  10. order="formfield(ParentPort)"
  11. }%
  12. %INCLUDE{IncludeNetDevCommon}%
  13. ---++ Состояние портов
  14. <div id="container1"></div>
  15. <script type="text/javascript">
  16. $(function() {
  17. $("#container1").load("%SCRIPTURLPATH{"rest"}%/RenderPlugin/tag",
  18. { name: 'SWITCHINFO',
  19. host: '%FORMFIELD{"DeviceIP" topic="%BASETOPIC%"}%',
  20. vendor: '%FORMFIELD{"Vendor" topic="%BASETOPIC%"}%',
  21. community: '%FORMFIELD{"Community" topic="%BASETOPIC%"}%',
  22. model: '%FORMFIELD{"DeviceModel" topic="%BASETOPIC%"}%',
  23. topic: '%BASEWEB%.%BASETOPIC%',
  24. web: '%BASEWEB%',
  25. render: true }
  26. );
  27. });
  28. </script>