{ "id":"/axapi/v3/sys-ut/state/{name}/next-state/{name}/case/{case-number}/action/{direction}/l2", "type":"object", "node-type":"scalar", "title":"l2", "partition-visibility":"shared", "description":"L2 packet paramters", "properties":{ "ethertype":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"L2 frame type", "optional":true }, "protocol":{ "type":"string", "format":"enum", "default":"ipv4", "partition-visibility":"shared", "not":"value", "description":"'arp': arp; 'ipv4': ipv4; 'ipv6': ipv6; ", "enum":[ "arp", "ipv4", "ipv6" ], "optional":true }, "value":{ "type":"number", "format":"number", "minimum":0, "maximum":2147483647, "partition-visibility":"shared", "not":"protocol", "description":"ethertype number", "optional":true }, "vlan":{ "type":"number", "format":"number", "minimum":0, "maximum":4095, "default":0, "partition-visibility":"shared", "description":"Vlan ID on the packet. 0 is untagged", "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 }, "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" ] } ] } } }