ARRAY NTB XML
  • ARRAY NTB XML
    • Element <run>
    • Element <filter>
      • Element <find>
    • Element <output>
    • Element <chain>
    • Element <script>
    • Element <action>
    • Element <input>
    • Schema
  • Case Study
    • Mirror
    • Inline & Bypass
    • Load Balance
    • Packet Stripping
    • Packet Editing
    • Packet Tagging
    • Packet Reply
    • Packet > File
    • Tunnel
    • Bandwidth Control
    • Snort Rule > ARRAY NTB XML
    • Offload
    • Service Chain
    • Block Gmail
    • Block Specific Country
    • Block/Detect black list
    • Mobile Edge Computing Breakout
    • L2 GRE Breakout
    • VXLAN Breakout
    • VXLAN Encapsulation
    • L2 Switch Like
    • L3 Switch NAT Breakout
  • Reference
    • TW IP
Powered by GitBook
On this page
  • Attribute
  • Functions
  • print()
  • grism_heartbeat_id_get()
  • common.js
  1. ARRAY NTB XML

Element <script>

Lightweight javascript language support (ver 4.3)

Attribute

Attribute
Description
Type
Default (* must have)

src

Specifies js filepath to include

String

Functions

print()

<script>
<![CDATA[
    print('<!-- hello -->');
]]>
</script>

grism_heartbeat_id_get()

<script>
<![CDATA[
    var heartbeat_id = grism_heartbeat_id_get(lantoport, wantoport);
]]>
</script

common.js

port_mirror (inports, outports)

<script src="common.js"></script>
<script>
<![CDATA[
    port_mirror('P0', 'P1,P2');
]]>
</script>

port_inline (porta, portb)

<script src="common.js"></script>
<script>
<![CDATA[
    port_inline ('P6', 'P7');
]]>
</script>

port_loadbalance (inports, outports, lbtype='5thash')

<script src="common.js"></script>
<script>
<![CDATA[
    port_loadbalance ('P0', 'P1,P2,P3,P4');
]]>
</script>

port_inline_bypass (lantoport, wantoport, lanport, wanport)

<script src="common.js"></script>
<script>
<![CDATA[
    port_inline_bypass ('P4','P5','P6','P7');
-->
</script>

port_chain (inports, match, filter='', notmatch='', fid_type='')

<script src="common.js"></script>
<script>
<![CDATA[
    port_chain ('P0', 'P1', 'F1', 'P2');
]]>
</script>

port_chain_next (match, filter='', notmatch='', fid_type='')

<script src="common.js"></script>
<script>
<![CDATA[
    port_chain ('P0', 'P1', 'F1',
        port_chain_next ('P2', 'F2', '<out type="loadBalance">P3,P4</out>'),
    );
]]>
</script>
PreviousElement <chain>NextElement <action>

Last updated 1 year ago