Element <action>
Defines the Action. It has a start tag <action> and an end tag </action>.
Two main funcitons, "input packet process" and "link pairs".
Attribute
id
Specifies id for an element
Interger
0
name
Specifies a name for an element
String
type
action type * input-packet-process * linkpairs
String
input-packet-process
Example
<run>
<action>
<port>P0</port>
<stripping>vlan</stripping>
</action>
</run>
Elements in Action
input-packet-process type
<port>
Defines input port(must have). It has a start tag <port> and an end tag </port>.
<action>
<port>P0</port>
</action>
<Q>
Defines vlan tagging. It has a start tag <Q> and an end tag </Q>.
<action>
<port>P0</port>
<Q>10</Q>
</action>
<QinQ>
Defines vlan layer 2 tagging. It has a start tag <QinQ> and an end tag </QinQ>.
<action>
<port>P0</port>
<QinQ>20</QinQ>
</action>
<stripping>
Defines stripping. It has a start tag <stripping> and an end tag </stripping>.
support type
payload
vlan
mpls
gre
vxlan
gre-erspan
gtp
grism
mpls-in-udp
mpls-in-gre
<action>
<port>P0</port>
<stripping>vlan</stripping>
</action>
<tagging>
Defines tagging. It has a start tag <tagging> and an end tag </tagging>.
support type
timestamp
gtp
gtp2
grism
<action>
<port>P0</port>
<tagging>grism</taging>
</action>
<maxlen>
Defines packet max length. It has a start tag <maxlen> and an end tag </maxlen>.
<action>
<port>P0</port>
<maxlen>64</maxlen>
</action>
<ip>
Defines IP. It has a start tag <ip> and an end tag </ip>.
<action>
<port>P0</port>
<ip>192.168.1.100</ip>
</action>
<arp_reply_default_mac>
Defines arp reply default mac address. It has a start tag <arp_reply_default_mac/> .
<action>
<port>P0</port>
<ip>192.168.1.100</ip>
<arp_reply_default_mac/>
</action>
<icmp_reply>
Defines icmp reply. It has a start tag <icmp_reply/> .
<action>
<port>P0</port>
<ip>192.168.1.100</ip>
<icmp_reply/>
</action>
<icmp_reply_fragment_need>
Defines icmp reply fragment need. It has a start tag <icmp_reply_fragment_need /> .
Attritube
mtu
Specifies mtu size
Interger
0*
<action>
<port>P0</port>
<ip>192.168.1.100</ip>
<icmp_reply_fragment_need mtu="1492"/>
</action>
linkpairs type
If portA down, force portB down, and vice versa.
<action type="linkpairs">
<portA>P1</portA>
<portB>P2</portB>
</action>
Last updated