{ "id":"/axapi/v3/sys-ut/state/{name}", "type":"object", "node-type":"list", "title":"state", "partition-visibility":"shared", "description":"State machine node", "properties":{ "name":{ "type":"string", "format":"string", "minLength":1, "maxLength":64, "partition-visibility":"shared", "description":"Node name", "optional":false }, "uuid":{ "type":"string", "format":"string", "minLength":1, "maxLength":64, "partition-visibility":"shared", "modify-not-allowed":1, "description":"uuid of the object", "optional":true }, "user-tag":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":127, "partition-visibility":"shared", "description":"Customized tag", "optional":true }, "next-state-list":{ "type":"array", "minItems":1, "items":{ "type":"next-state" }, "uniqueItems":true, "$ref":"/axapi/v3/sys-ut/state/{name}/next-state/{name}", "array":[ { "properties":{ "name":{ "type":"string", "format":"string", "minLength":1, "maxLength":64, "partition-visibility":"shared", "description":"Node name", "optional":false }, "uuid":{ "type":"string", "format":"string", "minLength":1, "maxLength":64, "partition-visibility":"shared", "modify-not-allowed":1, "description":"uuid of the object", "optional":true }, "user-tag":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":127, "partition-visibility":"shared", "description":"Customized tag", "optional":true }, "case-list":{ "type":"array", "minItems":1, "items":{ "type":"case" }, "uniqueItems":true, "$ref":"/axapi/v3/sys-ut/state/{name}/next-state/{name}/case/{case-number}", "array":[ { "properties":{ "case-number":{ "type":"number", "format":"number", "minimum":1, "maximum":32, "partition-visibility":"shared", "optional":false }, "repeat":{ "type":"number", "format":"number", "minimum":1, "maximum":32, "partition-visibility":"shared", "description":"number of times case should be repeated before state transition", "optional":true }, "uuid":{ "type":"string", "format":"string", "minLength":1, "maxLength":64, "partition-visibility":"shared", "modify-not-allowed":1, "description":"uuid of the object", "optional":true }, "user-tag":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":127, "partition-visibility":"shared", "description":"Customized tag", "optional":true }, "action-list":{ "type":"array", "minItems":1, "items":{ "type":"action" }, "uniqueItems":true, "$ref":"/axapi/v3/sys-ut/state/{name}/next-state/{name}/case/{case-number}/action/{direction}", "array":[ { "properties":{ "direction":{ "type":"string", "format":"enum", "partition-visibility":"shared", "description":"'send': Test event; 'expect': Expected result; 'wait': Introduce a delay; ", "enum":[ "send", "expect", "wait" ], "optional":false }, "template":{ "type":"string", "format":"string", "minLength":1, "maxLength":128, "partition-visibility":"shared", "$ref":"/axapi/v3/sys-ut/template", "description":"Packet template", "optional":true }, "drop":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Packet drop. Only allowed for output spec", "optional":true }, "delay":{ "type":"number", "format":"number", "minimum":1, "maximum":3600, "partition-visibility":"shared", "description":"Delay in seconds", "optional":true }, "uuid":{ "type":"string", "format":"string", "minLength":1, "maxLength":64, "partition-visibility":"shared", "modify-not-allowed":1, "description":"uuid of the object", "optional":true }, "l1":{ "type":"object", "$ref":"/axapi/v3/sys-ut/state/{name}/next-state/{name}/case/{case-number}/action/{direction}/l1", "properties":{ "eth-list":{ "type":"array", "minItems":1, "items":{ "type":"object" }, "uniqueItems":true, "array":[ { "properties":{ "ethernet-start":{ "type":"number", "format":"interface", "partition-visibility":"shared", "$ref":"/axapi/v3/interface/ethernet", "description":"Ethernet port (Interface number)" }, "ethernet-end":{ "type":"number", "format":"interface", "partition-visibility":"shared", "description":"Ethernet port" } } } ] }, "trunk_list":{ "type":"array", "minItems":1, "items":{ "type":"object" }, "uniqueItems":true, "array":[ { "properties":{ "trunk-start":{ "type":"number", "format":"number", "partition-visibility":"shared", "description":"Trunk groups" }, "trunk-end":{ "type":"number", "format":"number", "partition-visibility":"shared", "description":"Trunk Group" } } } ] }, "length":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"packet length" }, "value":{ "type":"number", "format":"number", "minimum":64, "maximum":9000, "partition-visibility":"shared", "not":"auto", "description":"Total packet length starting at L2 header" }, "auto":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "not":"value", "description":"Auto calculate pkt len" }, "uuid":{ "type":"string", "format":"string", "minLength":1, "maxLength":64, "partition-visibility":"shared", "modify-not-allowed":1, "description":"uuid of the object" } } }, "l2":{ "type":"object", "$ref":"/axapi/v3/sys-ut/state/{name}/next-state/{name}/case/{case-number}/action/{direction}/l2", "properties":{ "ethertype":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"L2 frame type" }, "protocol":{ "type":"string", "format":"enum", "default":"ipv4", "partition-visibility":"shared", "not":"value", "description":"'arp': arp; 'ipv4': ipv4; 'ipv6': ipv6; ", "enum":[ "arp", "ipv4", "ipv6" ] }, "value":{ "type":"number", "format":"number", "minimum":0, "maximum":2147483647, "partition-visibility":"shared", "not":"protocol", "description":"ethertype number" }, "vlan":{ "type":"number", "format":"number", "minimum":0, "maximum":4095, "default":0, "partition-visibility":"shared", "description":"Vlan ID on the packet. 0 is untagged" }, "uuid":{ "type":"string", "format":"string", "minLength":1, "maxLength":64, "partition-visibility":"shared", "modify-not-allowed":1, "description":"uuid of the object" }, "mac-list":{ "type":"array", "minItems":1, "items":{ "type":"mac" }, "uniqueItems":true, "$ref":"/axapi/v3/sys-ut/state/{name}/next-state/{name}/case/{case-number}/action/{direction}/l2/mac/{src-dst}", "array":[ { "properties":{ "src-dst":{ "type":"string", "format":"enum", "partition-visibility":"shared", "description":"'dest': dest; 'src': src; ", "enum":[ "dest", "src" ], "optional":false }, "address-type":{ "type":"string", "format":"enum", "partition-visibility":"shared", "description":"'broadcast': broadcast; 'multicast': multicast; ", "enum":[ "broadcast", "multicast" ], "optional":true }, "virtual-server":{ "type":"string", "format":"string", "minLength":1, "maxLength":128, "partition-visibility":"shared", "$ref":"/axapi/v3/slb/virtual-server", "description":"vip", "optional":true }, "nat-pool":{ "type":"string", "format":"string", "minLength":1, "maxLength":128, "partition-visibility":"shared", "description":"Nat pool", "optional":true }, "ethernet":{ "type":"number", "format":"interface", "partition-visibility":"shared", "$ref":"/axapi/v3/interface/ethernet", "description":"Ethernet interface", "optional":true }, "ve":{ "type":"number", "format":"interface", "partition-visibility":"shared", "$ref":"/axapi/v3/interface/ve", "description":"Virtual Ethernet interface", "optional":true }, "trunk":{ "type":"number", "format":"interface", "partition-visibility":"shared", "description":"Trunk number", "optional":true }, "value":{ "type":"string", "format":"mac-address", "partition-visibility":"shared", "description":"Mac Address", "optional":true }, "uuid":{ "type":"string", "format":"string", "minLength":1, "maxLength":64, "partition-visibility":"shared", "modify-not-allowed":1, "description":"uuid of the object", "optional":true } }, "required":[ "src-dst" ] } ] } } }, "l3":{ "type":"object", "$ref":"/axapi/v3/sys-ut/state/{name}/next-state/{name}/case/{case-number}/action/{direction}/l3", "properties":{ "protocol":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"L4 Protocol" }, "type":{ "type":"string", "format":"enum", "partition-visibility":"shared", "not":"value", "description":"'tcp': tcp; 'udp': udp; 'icmp': icmp; ", "enum":[ "tcp", "udp", "icmp" ] }, "value":{ "type":"number", "format":"number", "minimum":0, "maximum":2147483647, "partition-visibility":"shared", "not":"type", "description":"protocol number" }, "checksum":{ "type":"string", "format":"enum", "default":"valid", "partition-visibility":"shared", "description":"'valid': valid; 'invalid': invalid; ", "enum":[ "valid", "invalid" ] }, "ttl":{ "type":"number", "format":"number", "minimum":1, "maximum":64, "partition-visibility":"shared" }, "uuid":{ "type":"string", "format":"string", "minLength":1, "maxLength":64, "partition-visibility":"shared", "modify-not-allowed":1, "description":"uuid of the object" }, "ip-list":{ "type":"array", "minItems":1, "items":{ "type":"ip" }, "uniqueItems":true, "$ref":"/axapi/v3/sys-ut/state/{name}/next-state/{name}/case/{case-number}/action/{direction}/l3/ip/{src-dst}", "array":[ { "properties":{ "src-dst":{ "type":"string", "format":"enum", "partition-visibility":"shared", "description":"'dest': dest; 'src': src; ", "enum":[ "dest", "src" ], "optional":false }, "ipv4-address":{ "type":"string", "format":"ipv4-address", "partition-visibility":"shared", "description":"IP address", "optional":true }, "ipv6-address":{ "type":"string", "format":"ipv6-address", "partition-visibility":"shared", "description":"Ipv6 address", "optional":true }, "virtual-server":{ "type":"string", "format":"string", "minLength":1, "maxLength":128, "partition-visibility":"shared", "$ref":"/axapi/v3/slb/virtual-server", "description":"vip", "optional":true }, "nat-pool":{ "type":"string", "format":"string", "minLength":1, "maxLength":128, "partition-visibility":"shared", "description":"Nat pool", "optional":true }, "ethernet":{ "type":"number", "format":"interface", "partition-visibility":"shared", "$ref":"/axapi/v3/interface/ethernet", "description":"Ethernet interface", "optional":true }, "ve":{ "type":"number", "format":"interface", "partition-visibility":"shared", "$ref":"/axapi/v3/interface/ve", "description":"Virtual Ethernet interface", "optional":true }, "trunk":{ "type":"number", "format":"interface", "partition-visibility":"shared", "description":"Trunk number", "optional":true }, "uuid":{ "type":"string", "format":"string", "minLength":1, "maxLength":64, "partition-visibility":"shared", "modify-not-allowed":1, "description":"uuid of the object", "optional":true } }, "required":[ "src-dst" ] } ] } } }, "tcp":{ "type":"object", "$ref":"/axapi/v3/sys-ut/state/{name}/next-state/{name}/case/{case-number}/action/{direction}/tcp", "properties":{ "src-port":{ "type":"number", "format":"number", "minimum":1, "maximum":65535, "partition-visibility":"shared", "description":"Source port value" }, "dest-port":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Dest port" }, "dest-port-value":{ "type":"number", "format":"number", "minimum":1, "maximum":65535, "partition-visibility":"shared", "description":"Dest port value" }, "nat-pool":{ "type":"string", "format":"string", "minLength":1, "maxLength":128, "partition-visibility":"shared", "description":"Nat pool port" }, "seq-number":{ "type":"string", "format":"enum", "default":"valid", "partition-visibility":"shared", "description":"'valid': valid; 'invalid': invalid; ", "enum":[ "valid", "invalid" ] }, "ack-seq-number":{ "type":"string", "format":"enum", "default":"valid", "partition-visibility":"shared", "description":"'valid': valid; 'invalid': invalid; ", "enum":[ "valid", "invalid" ] }, "checksum":{ "type":"string", "format":"enum", "default":"valid", "partition-visibility":"shared", "description":"'valid': valid; 'invalid': invalid; ", "enum":[ "valid", "invalid" ] }, "urgent":{ "type":"string", "format":"enum", "default":"valid", "partition-visibility":"shared", "description":"'valid': valid; 'invalid': invalid; ", "enum":[ "valid", "invalid" ] }, "window":{ "type":"string", "format":"enum", "default":"valid", "partition-visibility":"shared", "description":"'valid': valid; 'invalid': invalid; ", "enum":[ "valid", "invalid" ] }, "uuid":{ "type":"string", "format":"string", "minLength":1, "maxLength":64, "partition-visibility":"shared", "modify-not-allowed":1, "description":"uuid of the object" }, "flags":{ "type":"object", "$ref":"/axapi/v3/sys-ut/state/{name}/next-state/{name}/case/{case-number}/action/{direction}/tcp/flags", "properties":{ "syn":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Syn" }, "ack":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Ack" }, "fin":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Fin" }, "rst":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Rst" }, "psh":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Psh" }, "ece":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Ece" }, "urg":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Urg" }, "cwr":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Cwr" }, "uuid":{ "type":"string", "format":"string", "minLength":1, "maxLength":64, "partition-visibility":"shared", "modify-not-allowed":1, "description":"uuid of the object" } } }, "options":{ "type":"object", "$ref":"/axapi/v3/sys-ut/state/{name}/next-state/{name}/case/{case-number}/action/{direction}/tcp/options", "properties":{ "mss":{ "type":"number", "format":"number", "minimum":536, "maximum":1460, "partition-visibility":"shared", "description":"TCP MSS" }, "wscale":{ "type":"number", "format":"number", "minimum":1, "maximum":8, "partition-visibility":"shared" }, "sack-type":{ "type":"string", "format":"enum", "partition-visibility":"shared", "description":"'permitted': permitted; 'block': block; ", "enum":[ "permitted", "block" ] }, "time-stamp-enable":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"adds Time Stamp to options" }, "nop":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"No Op" }, "uuid":{ "type":"string", "format":"string", "minLength":1, "maxLength":64, "partition-visibility":"shared", "modify-not-allowed":1, "description":"uuid of the object" } } } } }, "udp":{ "type":"object", "$ref":"/axapi/v3/sys-ut/state/{name}/next-state/{name}/case/{case-number}/action/{direction}/udp", "properties":{ "src-port":{ "type":"number", "format":"number", "minimum":1, "maximum":65535, "partition-visibility":"shared", "description":"Source port value" }, "dest-port":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Dest port" }, "dest-port-value":{ "type":"number", "format":"number", "minimum":1, "maximum":65535, "partition-visibility":"shared", "description":"Dest port value" }, "nat-pool":{ "type":"string", "format":"string", "minLength":1, "maxLength":128, "partition-visibility":"shared", "description":"Nat pool port" }, "length":{ "type":"number", "format":"number", "minimum":64, "maximum":9000, "partition-visibility":"shared", "description":"Total packet length starting at UDP header" }, "checksum":{ "type":"string", "format":"enum", "default":"valid", "partition-visibility":"shared", "description":"'valid': valid; 'invalid': invalid; ", "enum":[ "valid", "invalid" ] }, "uuid":{ "type":"string", "format":"string", "minLength":1, "maxLength":64, "partition-visibility":"shared", "modify-not-allowed":1, "description":"uuid of the object" } } } }, "required":[ "direction" ] } ] } }, "required":[ "case-number" ] } ] } }, "required":[ "name" ] } ] } }, "object-keys":[ "name" ], "required":[ "name" ] }