diff options
author | Ben Pfaff <blp@ovn.org> | 2019-12-04 15:06:07 -0800 |
---|---|---|
committer | William Tu <u9012063@gmail.com> | 2019-12-12 10:16:05 -0800 |
commit | 95a5454c511057ae6f35c18f0adfce4d2dbe5410 (patch) | |
tree | 0e9936c03b8437694b9fc0bd7ec6f47d1ccac5c5 /tests/ofproto.at | |
parent | 9802fafa962baff8f52aeea1f1139a68c027d1d2 (diff) | |
download | openvswitch-95a5454c511057ae6f35c18f0adfce4d2dbe5410.tar.gz |
ofp-print: Abbreviate lists of fields in table features output.
This makes the output both shorter and easier to read.
Signed-off-by: Ben Pfaff <blp@ovn.org>
Signed-off-by: William Tu <u9012063@gmail.com>
Diffstat (limited to 'tests/ofproto.at')
-rw-r--r-- | tests/ofproto.at | 254 |
1 files changed, 11 insertions, 243 deletions
diff --git a/tests/ofproto.at b/tests/ofproto.at index 2436434ca..d5a13d0cf 100644 --- a/tests/ofproto.at +++ b/tests/ofproto.at @@ -2205,18 +2205,7 @@ head_table() { active=0, lookup=0, matched=0 max_entries=1000000 matching: - in_port: exact match or wildcard - eth_src: exact match or wildcard - eth_dst: exact match or wildcard - eth_type: exact match or wildcard - vlan_vid: exact match or wildcard - vlan_pcp: exact match or wildcard - ip_src: exact match or wildcard - ip_dst: exact match or wildcard - nw_proto: exact match or wildcard - nw_tos: exact match or wildcard - tcp_src: exact match or wildcard - tcp_dst: exact match or wildcard + exact match or wildcard: in_port eth_{src,dst,type} vlan_{vid,pcp} ip_{src,dst} nw_{proto,tos} tcp_{src,dst} ' "$1" } @@ -2276,18 +2265,7 @@ head_table() { active=0, lookup=0, matched=0 max_entries=1000000 matching: - in_port: exact match or wildcard - eth_src: exact match or wildcard - eth_dst: exact match or wildcard - eth_type: exact match or wildcard - vlan_vid: exact match or wildcard - vlan_pcp: exact match or wildcard - ip_src: exact match or wildcard - ip_dst: exact match or wildcard - nw_proto: exact match or wildcard - nw_tos: exact match or wildcard - tcp_src: exact match or wildcard - tcp_dst: exact match or wildcard + exact match or wildcard: in_port eth_{src,dst,type} vlan_{vid,pcp} ip_{src,dst} nw_{proto,tos} tcp_{src,dst} ' } @@ -2307,46 +2285,12 @@ head_table() { config=controller max_entries=1000000 instructions (table miss and others): - instructions: apply_actions,clear_actions,write_actions,write_metadata,goto_table + instructions: apply_actions clear_actions write_actions write_metadata goto_table Write-Actions and Apply-Actions features: actions: output group set_field strip_vlan push_vlan mod_nw_ttl dec_ttl set_mpls_ttl dec_mpls_ttl push_mpls pop_mpls set_queue - supported on Set-Field: metadata in_port_oxm eth_src eth_dst vlan_vid vlan_pcp mpls_label mpls_tc ip_src ip_dst ipv6_src ipv6_dst ipv6_label ip_dscp nw_ecn arp_op arp_spa arp_tpa arp_sha arp_tha tcp_src tcp_dst udp_src udp_dst sctp_src sctp_dst icmp_type icmp_code icmpv6_type icmpv6_code nd_target nd_sll nd_tll + supported on Set-Field: metadata in_port_oxm eth_{src,dst} vlan_{vid,pcp} mpls_{label,tc} ip_{src,dst} ipv6_{src,dst,label} ip_dscp nw_ecn arp_{op,spa,tpa,sha,tha} tcp_{src,dst} udp_{src,dst} sctp_{src,dst} icmp_{type,code} icmpv6_{type,code} nd_{target,sll,tll} matching: - metadata: exact match or wildcard - in_port_oxm: exact match or wildcard - eth_src: exact match or wildcard - eth_dst: exact match or wildcard - eth_type: exact match or wildcard - vlan_vid: exact match or wildcard - vlan_pcp: exact match or wildcard - mpls_label: exact match or wildcard - mpls_tc: exact match or wildcard - ip_src: exact match or wildcard - ip_dst: exact match or wildcard - ipv6_src: exact match or wildcard - ipv6_dst: exact match or wildcard - ipv6_label: exact match or wildcard - nw_proto: exact match or wildcard - ip_dscp: exact match or wildcard - nw_ecn: exact match or wildcard - arp_op: exact match or wildcard - arp_spa: exact match or wildcard - arp_tpa: exact match or wildcard - arp_sha: exact match or wildcard - arp_tha: exact match or wildcard - tcp_src: exact match or wildcard - tcp_dst: exact match or wildcard - udp_src: exact match or wildcard - udp_dst: exact match or wildcard - sctp_src: exact match or wildcard - sctp_dst: exact match or wildcard - icmp_type: exact match or wildcard - icmp_code: exact match or wildcard - icmpv6_type: exact match or wildcard - icmpv6_code: exact match or wildcard - nd_target: exact match or wildcard - nd_sll: exact match or wildcard - nd_tll: exact match or wildcard + exact match or wildcard: metadata in_port_oxm eth_{src,dst,type} vlan_{vid,pcp} mpls_{label,tc} ip_{src,dst} ipv6_{src,dst,label} nw_proto ip_dscp nw_ecn arp_{op,spa,tpa,sha,tha} tcp_{src,dst} udp_{src,dst} sctp_{src,dst} icmp_{type,code} icmpv6_{type,code} nd_{target,sll,tll} ' "$1" } @@ -2357,7 +2301,7 @@ tail_table() { config=controller max_entries=1000000 instructions (table miss and others): - instructions: apply_actions,clear_actions,write_actions,write_metadata + instructions: apply_actions clear_actions write_actions write_metadata (same actions) (same matching) ' @@ -2403,189 +2347,13 @@ head_table () { max_entries=1000000 instructions (table miss and others): next tables: 1-253 - instructions: meter,apply_actions,clear_actions,write_actions,write_metadata,goto_table + instructions: meter apply_actions clear_actions write_actions write_metadata goto_table Write-Actions and Apply-Actions features: actions: output group set_field strip_vlan push_vlan mod_nw_ttl dec_ttl set_mpls_ttl dec_mpls_ttl push_mpls pop_mpls set_queue - supported on Set-Field: tun_id tun_src tun_dst tun_ipv6_src tun_ipv6_dst tun_flags tun_gbp_id tun_gbp_flags tun_erspan_idx tun_erspan_ver tun_erspan_dir tun_erspan_hwid tun_metadata0 dnl -tun_metadata1 tun_metadata2 tun_metadata3 tun_metadata4 tun_metadata5 tun_metadata6 tun_metadata7 tun_metadata8 tun_metadata9 tun_metadata10 tun_metadata11 tun_metadata12 tun_metadata13 tun_metadata14 tun_metadata15 tun_metadata16 tun_metadata17 tun_metadata18 tun_metadata19 tun_metadata20 tun_metadata21 tun_metadata22 tun_metadata23 tun_metadata24 tun_metadata25 tun_metadata26 tun_metadata27 tun_metadata28 tun_metadata29 tun_metadata30 tun_metadata31 tun_metadata32 tun_metadata33 tun_metadata34 tun_metadata35 tun_metadata36 tun_metadata37 tun_metadata38 tun_metadata39 tun_metadata40 tun_metadata41 tun_metadata42 tun_metadata43 tun_metadata44 tun_metadata45 tun_metadata46 tun_metadata47 tun_metadata48 tun_metadata49 tun_metadata50 tun_metadata51 tun_metadata52 tun_metadata53 tun_metadata54 tun_metadata55 tun_metadata56 tun_metadata57 tun_metadata58 tun_metadata59 tun_metadata60 tun_metadata61 tun_metadata62 tun_metadata63 dnl -metadata in_port in_port_oxm pkt_mark ct_mark ct_label reg0 reg1 reg2 reg3 reg4 reg5 reg6 reg7 reg8 reg9 reg10 reg11 reg12 reg13 reg14 reg15 xreg0 xreg1 xreg2 xreg3 xreg4 xreg5 xreg6 xreg7 xxreg0 xxreg1 xxreg2 xxreg3 eth_src eth_dst vlan_tci vlan_vid vlan_pcp mpls_label mpls_tc mpls_ttl ip_src ip_dst ipv6_src ipv6_dst ipv6_label nw_tos ip_dscp nw_ecn nw_ttl arp_op arp_spa arp_tpa arp_sha arp_tha tcp_src tcp_dst udp_src udp_dst sctp_src sctp_dst icmp_type icmp_code icmpv6_type icmpv6_code nd_target nd_sll nd_tll nd_reserved nd_options_type nsh_flags nsh_spi nsh_si nsh_c1 nsh_c2 nsh_c3 nsh_c4 nsh_ttl + supported on Set-Field: tun_{id,src,dst,ipv6_{src,dst},flags,gbp_{id,flags},erspan_{idx,ver,dir,hwid},metadata0...metadata63} metadata in_{port,port_oxm} pkt_mark ct_{mark,label} reg0...reg15 xreg0...xreg7 xxreg0...xxreg3 eth_{src,dst} vlan_{tci,vid,pcp} mpls_{label,tc,ttl} ip_{src,dst} ipv6_{src,dst,label} nw_tos ip_dscp nw_{ecn,ttl} arp_{op,spa,tpa,sha,tha} tcp_{src,dst} udp_{src,dst} sctp_{src,dst} icmp_{type,code} icmpv6_{type,code} nd_{target,sll,tll,reserved,options_type} nsh_{flags,spi,si,c1...c4,ttl} matching: - dp_hash: arbitrary mask - recirc_id: exact match or wildcard - packet_type: exact match or wildcard - conj_id: exact match or wildcard - tun_id: arbitrary mask - tun_src: arbitrary mask - tun_dst: arbitrary mask - tun_ipv6_src: arbitrary mask - tun_ipv6_dst: arbitrary mask - tun_flags: arbitrary mask - tun_gbp_id: arbitrary mask - tun_gbp_flags: arbitrary mask - tun_erspan_idx: arbitrary mask - tun_erspan_ver: arbitrary mask - tun_erspan_dir: arbitrary mask - tun_erspan_hwid: arbitrary mask - tun_metadata0: arbitrary mask - tun_metadata1: arbitrary mask - tun_metadata2: arbitrary mask - tun_metadata3: arbitrary mask - tun_metadata4: arbitrary mask - tun_metadata5: arbitrary mask - tun_metadata6: arbitrary mask - tun_metadata7: arbitrary mask - tun_metadata8: arbitrary mask - tun_metadata9: arbitrary mask - tun_metadata10: arbitrary mask - tun_metadata11: arbitrary mask - tun_metadata12: arbitrary mask - tun_metadata13: arbitrary mask - tun_metadata14: arbitrary mask - tun_metadata15: arbitrary mask - tun_metadata16: arbitrary mask - tun_metadata17: arbitrary mask - tun_metadata18: arbitrary mask - tun_metadata19: arbitrary mask - tun_metadata20: arbitrary mask - tun_metadata21: arbitrary mask - tun_metadata22: arbitrary mask - tun_metadata23: arbitrary mask - tun_metadata24: arbitrary mask - tun_metadata25: arbitrary mask - tun_metadata26: arbitrary mask - tun_metadata27: arbitrary mask - tun_metadata28: arbitrary mask - tun_metadata29: arbitrary mask - tun_metadata30: arbitrary mask - tun_metadata31: arbitrary mask - tun_metadata32: arbitrary mask - tun_metadata33: arbitrary mask - tun_metadata34: arbitrary mask - tun_metadata35: arbitrary mask - tun_metadata36: arbitrary mask - tun_metadata37: arbitrary mask - tun_metadata38: arbitrary mask - tun_metadata39: arbitrary mask - tun_metadata40: arbitrary mask - tun_metadata41: arbitrary mask - tun_metadata42: arbitrary mask - tun_metadata43: arbitrary mask - tun_metadata44: arbitrary mask - tun_metadata45: arbitrary mask - tun_metadata46: arbitrary mask - tun_metadata47: arbitrary mask - tun_metadata48: arbitrary mask - tun_metadata49: arbitrary mask - tun_metadata50: arbitrary mask - tun_metadata51: arbitrary mask - tun_metadata52: arbitrary mask - tun_metadata53: arbitrary mask - tun_metadata54: arbitrary mask - tun_metadata55: arbitrary mask - tun_metadata56: arbitrary mask - tun_metadata57: arbitrary mask - tun_metadata58: arbitrary mask - tun_metadata59: arbitrary mask - tun_metadata60: arbitrary mask - tun_metadata61: arbitrary mask - tun_metadata62: arbitrary mask - tun_metadata63: arbitrary mask - metadata: arbitrary mask - in_port: exact match or wildcard - in_port_oxm: exact match or wildcard - actset_output: exact match or wildcard - pkt_mark: arbitrary mask - ct_state: arbitrary mask - ct_zone: exact match or wildcard - ct_mark: arbitrary mask - ct_label: arbitrary mask - ct_nw_proto: exact match or wildcard - ct_nw_src: arbitrary mask - ct_nw_dst: arbitrary mask - ct_ipv6_src: arbitrary mask - ct_ipv6_dst: arbitrary mask - ct_tp_src: arbitrary mask - ct_tp_dst: arbitrary mask - reg0: arbitrary mask - reg1: arbitrary mask - reg2: arbitrary mask - reg3: arbitrary mask - reg4: arbitrary mask - reg5: arbitrary mask - reg6: arbitrary mask - reg7: arbitrary mask - reg8: arbitrary mask - reg9: arbitrary mask - reg10: arbitrary mask - reg11: arbitrary mask - reg12: arbitrary mask - reg13: arbitrary mask - reg14: arbitrary mask - reg15: arbitrary mask - xreg0: arbitrary mask - xreg1: arbitrary mask - xreg2: arbitrary mask - xreg3: arbitrary mask - xreg4: arbitrary mask - xreg5: arbitrary mask - xreg6: arbitrary mask - xreg7: arbitrary mask - xxreg0: arbitrary mask - xxreg1: arbitrary mask - xxreg2: arbitrary mask - xxreg3: arbitrary mask - eth_src: arbitrary mask - eth_dst: arbitrary mask - eth_type: exact match or wildcard - vlan_tci: arbitrary mask - vlan_vid: arbitrary mask - vlan_pcp: exact match or wildcard - mpls_label: exact match or wildcard - mpls_tc: exact match or wildcard - mpls_bos: exact match or wildcard - mpls_ttl: exact match or wildcard - ip_src: arbitrary mask - ip_dst: arbitrary mask - ipv6_src: arbitrary mask - ipv6_dst: arbitrary mask - ipv6_label: arbitrary mask - nw_proto: exact match or wildcard - nw_tos: exact match or wildcard - ip_dscp: exact match or wildcard - nw_ecn: exact match or wildcard - nw_ttl: exact match or wildcard - ip_frag: arbitrary mask - arp_op: exact match or wildcard - arp_spa: arbitrary mask - arp_tpa: arbitrary mask - arp_sha: arbitrary mask - arp_tha: arbitrary mask - tcp_src: arbitrary mask - tcp_dst: arbitrary mask - tcp_flags: arbitrary mask - udp_src: arbitrary mask - udp_dst: arbitrary mask - sctp_src: arbitrary mask - sctp_dst: arbitrary mask - icmp_type: exact match or wildcard - icmp_code: exact match or wildcard - icmpv6_type: exact match or wildcard - icmpv6_code: exact match or wildcard - nd_target: arbitrary mask - nd_sll: arbitrary mask - nd_tll: arbitrary mask - nd_reserved: exact match or wildcard - nd_options_type: exact match or wildcard - nsh_flags: arbitrary mask - nsh_mdtype: exact match or wildcard - nsh_np: exact match or wildcard - nsh_spi: exact match or wildcard - nsh_si: exact match or wildcard - nsh_c1: arbitrary mask - nsh_c2: arbitrary mask - nsh_c3: arbitrary mask - nsh_c4: arbitrary mask - nsh_ttl: exact match or wildcard + arbitrary mask: dp_hash tun_{id,src,dst,ipv6_{src,dst},flags,gbp_{id,flags},erspan_{idx,ver,dir,hwid},metadata0...metadata63} metadata pkt_mark ct_{state,mark,label,nw_{src,dst},ipv6_{src,dst},tp_{src,dst}} reg0...reg15 xreg0...xreg7 xxreg0...xxreg3 eth_{src,dst} vlan_{tci,vid} ip_{src,dst} ipv6_{src,dst,label} ip_frag arp_{spa,tpa,sha,tha} tcp_{src,dst,flags} udp_{src,dst} sctp_{src,dst} nd_{target,sll,tll} nsh_{flags,c1...c4} + exact match or wildcard: recirc_id packet_type conj_id in_{port,port_oxm} actset_output ct_{zone,nw_proto} eth_type vlan_pcp mpls_{label,tc,bos,ttl} nw_{proto,tos} ip_dscp nw_{ecn,ttl} arp_op icmp_{type,code} icmpv6_{type,code} nd_{reserved,options_type} nsh_{mdtype,np,spi,si,ttl} ' "$1" } @@ -2594,7 +2362,7 @@ echo ' table 253: metadata: match=0xffffffffffffffff write=0xffffffffffffffff max_entries=1000000 instructions (table miss and others): - instructions: meter,apply_actions,clear_actions,write_actions,write_metadata + instructions: meter apply_actions clear_actions write_actions write_metadata (same actions) (same matching) ' |