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>

Last updated