]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
Merge branch 'trac2300'
authorMukund Sivaraman <muks@isc.org>
Thu, 7 Nov 2013 06:24:29 +0000 (11:54 +0530)
committerMukund Sivaraman <muks@isc.org>
Thu, 7 Nov 2013 06:24:29 +0000 (11:54 +0530)
Conflicts:
src/bin/xfrin/b10-xfrin.xml
src/bin/xfrin/xfrin.spec
tests/lettuce/features/xfrin_notify_handling.feature

1  2 
src/bin/xfrin/b10-xfrin.xml
src/bin/xfrin/tests/xfrin_test.py
src/bin/xfrin/xfrin.py.in
src/bin/xfrin/xfrin.spec
tests/lettuce/features/xfrin_notify_handling.feature

index ceae54c347b6b208ac8eff7168c649a15e983947,49b05ed7860c52ed1571667d0cb4f92296e165b1..0b58f9a866544b88be7d657d53a0c07445c05dea
@@@ -337,27 -337,88 +337,109 @@@ operatio
          </listitem>
        </varlistentry><!-- end of zones -->
  
 +      <varlistentry>
 +        <term>ixfr_running</term>
 +        <listitem><simpara>
 +          Number of IXFRs in progress
 +        </simpara></listitem>
 +      </varlistentry>
 +
 +      <varlistentry>
 +        <term>axfr_running</term>
 +        <listitem><simpara>
 +          Number of AXFRs in progress
 +        </simpara></listitem>
 +      </varlistentry>
 +
 +      <varlistentry>
 +        <term>soa_in_progress</term>
 +        <listitem><simpara>
 +          Number of SOA queries in progress
 +        </simpara></listitem>
 +      </varlistentry>
 +
+       <varlistentry>
+         <term>socket</term>
+         <listitem><simpara>
+           A directory name of socket statistics
+           </simpara>
+           <variablelist>
+             <varlistentry>
+               <term><replaceable>ipversion</replaceable></term>
+               <listitem><simpara>
+                 A directory name of an IP version as ipv4 or ipv6
+                 </simpara>
+                 <variablelist>
+                   <varlistentry>
+                     <term>tcp</term>
+                     <listitem><simpara>
+                       A directory name of TCP statistics
+                       </simpara>
+                       <variablelist>
+                         <varlistentry>
+                           <term>open</term>
+                           <listitem><simpara>
+                            IPv4 or IPv6 TCP sockets opened successfully
+                           </simpara></listitem>
+                         </varlistentry>
+                         <varlistentry>
+                           <term>openfail</term>
+                           <listitem><simpara>
+                            IPv4 or IPv6 TCP sockets open failures
+                           </simpara></listitem>
+                         </varlistentry>
+                         <varlistentry>
+                           <term>close</term>
+                           <listitem><simpara>
+                            IPv4 or IPv6 TCP sockets closed
+                           </simpara></listitem>
+                         </varlistentry>
+                         <varlistentry>
+                           <term>connfail</term>
+                           <listitem><simpara>
+                            IPv4 or IPv6 TCP sockets connection failures
+                           </simpara></listitem>
+                         </varlistentry>
+                         <varlistentry>
+                           <term>conn</term>
+                           <listitem><simpara>
+                            IPv4 or IPv6 TCP connections established successfully
+                           </simpara></listitem>
+                         </varlistentry>
+                         <varlistentry>
+                           <term>senderr</term>
+                           <listitem><simpara>
+                            IPv4 or IPv6 TCP sockets send errors
+                           </simpara></listitem>
+                         </varlistentry>
+                         <varlistentry>
+                           <term>recverr</term>
+                           <listitem><simpara>
+                            IPv4 or IPv6 TCP sockets receive errors
+                           </simpara></listitem>
+                         </varlistentry>
+                       </variablelist>
+                     </listitem>
+                   </varlistentry><!-- end of tcp -->
+                 </variablelist>
+               </listitem>
+             </varlistentry><!-- end of ipv4 | ipv6 -->
+           </variablelist>
+         </listitem>
+       </varlistentry><!-- end of socket -->
      </variablelist>
  
      <para>
Simple merge
Simple merge
index 826fde4ae8548aca684afc4fac105d30ec44a646,87bb91e018f0f3aeddf66fa895b04d1c3e7ad7e6..a662f756da468e8be4d198b7133e4bc8378678ae
            }
          }
        },
 +      {
 +        "item_name": "ixfr_running",
 +        "item_type": "integer",
 +        "item_optional": false,
 +        "item_default": 0,
 +        "item_title": "IXFRs running",
 +        "item_description": "Number of IXFRs in progress"
 +      },
 +      {
 +        "item_name": "axfr_running",
 +        "item_type": "integer",
 +        "item_optional": false,
 +        "item_default": 0,
 +        "item_title": "AXFRs running",
 +        "item_description": "Number of AXFRs in progress"
 +      },
 +      {
 +        "item_name": "soa_in_progress",
 +        "item_type": "integer",
 +        "item_optional": false,
 +        "item_default": 0,
 +        "item_title": "SOA queries",
 +        "item_description": "Number of SOA queries in progress"
++      },
+       {
+         "item_name": "socket",
+         "item_type": "map",
+         "item_optional": false,
+         "item_default": {
+           "ipv4": {
+             "tcp": {
+               "open": 0,
+               "openfail": 0,
+               "close": 0,
+               "connfail": 0,
+               "conn": 0,
+               "senderr": 0,
+               "recverr": 0
+             }
+           },
+           "ipv6": {
+             "tcp": {
+               "open": 0,
+               "openfail": 0,
+               "close": 0,
+               "connfail": 0,
+               "conn": 0,
+               "senderr": 0,
+               "recverr": 0
+             }
+           }
+         },
+         "item_title": "Socket",
+         "item_description": "A directory name of socket statistics",
+         "map_item_spec": [
+           {
+             "item_name": "ipv4",
+             "item_type": "map",
+             "item_optional": false,
+             "item_default": {
+               "tcp": {
+                 "open": 0,
+                 "openfail": 0,
+                 "close": 0,
+                 "connfail": 0,
+                 "conn": 0,
+                 "senderr": 0,
+                 "recverr": 0
+               }
+             },
+             "item_title": "IPv4",
+             "item_description": "A directory name of IPv4",
+             "map_item_spec": [
+               {
+                 "item_name": "tcp",
+                 "item_type": "map",
+                 "item_optional": false,
+                 "item_default": {
+                   "open": 0,
+                   "openfail": 0,
+                   "close": 0,
+                   "connfail": 0,
+                   "conn": 0,
+                   "senderr": 0,
+                   "recverr": 0
+                 },
+                 "item_title": "TCP",
+                 "item_description": "A directory name of TCP statistics",
+                 "map_item_spec": [
+                   {
+                     "item_name": "open",
+                     "item_type": "integer",
+                     "item_optional": false,
+                     "item_default": 0,
+                     "item_title": "Open",
+                     "item_description": "IPv4 TCP sockets opened successfully"
+                   },
+                   {
+                     "item_name": "openfail",
+                     "item_type": "integer",
+                     "item_optional": false,
+                     "item_default": 0,
+                     "item_title": "Open failures",
+                     "item_description": "IPv4 TCP sockets open failures"
+                   },
+                   {
+                     "item_name": "close",
+                     "item_type": "integer",
+                     "item_optional": false,
+                     "item_default": 0,
+                     "item_title": "Close",
+                     "item_description": "IPv4 TCP sockets closed"
+                   },
+                   {
+                     "item_name": "connfail",
+                     "item_type": "integer",
+                     "item_optional": false,
+                     "item_default": 0,
+                     "item_title": "Connect failures",
+                     "item_description": "IPv4 TCP sockets connection failures"
+                   },
+                   {
+                     "item_name": "conn",
+                     "item_type": "integer",
+                     "item_optional": false,
+                     "item_default": 0,
+                     "item_title": "Connect",
+                     "item_description": "IPv4 TCP connections established successfully"
+                   },
+                   {
+                     "item_name": "senderr",
+                     "item_type": "integer",
+                     "item_optional": false,
+                     "item_default": 0,
+                     "item_title": "Send errors",
+                     "item_description": "IPv4 TCP sockets send errors"
+                   },
+                   {
+                     "item_name": "recverr",
+                     "item_type": "integer",
+                     "item_optional": false,
+                     "item_default": 0,
+                     "item_title": "Receive errors",
+                     "item_description": "IPv4 TCP sockets receive errors"
+                   }
+                 ]
+               }
+             ]
+           },
+           {
+             "item_name": "ipv6",
+             "item_type": "map",
+             "item_optional": false,
+             "item_default": {
+               "tcp": {
+                 "open": 0,
+                 "openfail": 0,
+                 "close": 0,
+                 "connfail": 0,
+                 "conn": 0,
+                 "senderr": 0,
+                 "recverr": 0
+               }
+             },
+             "item_title": "IPv6",
+             "item_description": "A directory name of IPv6",
+             "map_item_spec": [
+               {
+                 "item_name": "tcp",
+                 "item_type": "map",
+                 "item_optional": false,
+                 "item_default": {
+                   "open": 0,
+                   "openfail": 0,
+                   "close": 0,
+                   "connfail": 0,
+                   "conn": 0,
+                   "senderr": 0,
+                   "recverr": 0
+                 },
+                 "item_title": "TCP",
+                 "item_description": "A directory name of TCP statistics",
+                 "map_item_spec": [
+                   {
+                     "item_name": "open",
+                     "item_type": "integer",
+                     "item_optional": false,
+                     "item_default": 0,
+                     "item_title": "Open",
+                     "item_description": "IPv6 TCP sockets opened successfully"
+                   },
+                   {
+                     "item_name": "openfail",
+                     "item_type": "integer",
+                     "item_optional": false,
+                     "item_default": 0,
+                     "item_title": "Open failures",
+                     "item_description": "IPv6 TCP sockets open failures"
+                   },
+                   {
+                     "item_name": "close",
+                     "item_type": "integer",
+                     "item_optional": false,
+                     "item_default": 0,
+                     "item_title": "Close",
+                     "item_description": "IPv6 TCP sockets closed"
+                   },
+                   {
+                     "item_name": "connfail",
+                     "item_type": "integer",
+                     "item_optional": false,
+                     "item_default": 0,
+                     "item_title": "Connect failures",
+                     "item_description": "IPv6 TCP sockets connection failures"
+                   },
+                   {
+                     "item_name": "conn",
+                     "item_type": "integer",
+                     "item_optional": false,
+                     "item_default": 0,
+                     "item_title": "Connect",
+                     "item_description": "IPv6 TCP connections established successfully"
+                   },
+                   {
+                     "item_name": "senderr",
+                     "item_type": "integer",
+                     "item_optional": false,
+                     "item_default": 0,
+                     "item_title": "Send errors",
+                     "item_description": "IPv6 TCP sockets send errors"
+                   },
+                   {
+                     "item_name": "recverr",
+                     "item_type": "integer",
+                     "item_optional": false,
+                     "item_default": 0,
+                     "item_title": "Receive errors",
+                     "item_description": "IPv6 TCP sockets receive errors"
+                   }
+                 ]
+               }
+             ]
+           }
+         ]
        }
      ]
    }
index 48225529264723ff65ce13444a44ab9111d98536,387fd731d59212efff87f83bad3dfb4b69cc32a2..2f43dfdfe672474fcacc43ec5039e246e67baca9
@@@ -116,8 -110,10 +116,12 @@@ Feature: Xfrin incoming notify handlin
        | zones.IN.example.org..axfrreqv6          |          1 |           |
        | zones.IN.example.org..xfrsuccess         |          1 |           |
        | zones.IN.example.org..last_axfr_duration |            |       0.0 |
 +      | soa_in_progress                          |          0 |           |
 +      | axfr_running                             |          0 |           |
+       | socket.ipv6.tcp.open                     |            |         1 |
+       | socket.ipv6.tcp.close                    |            |         1 |
+       | socket.ipv6.tcp.conn                     |            |         1 |
+       | socket.ipv6.tcp.connfail                 |          0 |           |
  
      #
      # Test for handling incoming notify only in IPv4
        | zones.IN.example.org..axfrreqv4          |          1 |           |
        | zones.IN.example.org..xfrsuccess         |          1 |           |
        | zones.IN.example.org..last_axfr_duration |            |       0.0 |
 +      | soa_in_progress                          |          0 |           |
 +      | axfr_running                             |          0 |           |
+       | socket.ipv4.tcp.open                     |            |         1 |
+       | socket.ipv4.tcp.close                    |            |         1 |
+       | socket.ipv4.tcp.conn                     |            |         1 |
+       | socket.ipv4.tcp.connfail                 |          0 |           |
  
      #
      # Test for Xfr request rejected
      When I query statistics of bind10 module Xfrin with cmdctl
      The statistics counters are 0 in category .Xfrin except for the following items
        | item_name                       | item_value | min_value |
 -      | zones.IN._SERVER_.soaoutv6      |          1 |           |
 -      | zones.IN._SERVER_.axfrreqv6     |          1 |           |
 -      | zones.IN._SERVER_.xfrfail       |          1 |           |
 -      | zones.IN.example.org..soaoutv6  |          1 |           |
 -      | zones.IN.example.org..axfrreqv6 |          1 |           |
 -      | zones.IN.example.org..xfrfail   |          1 |           |
 +      | zones.IN._SERVER_.soaoutv6      |            |         1 |
 +      | zones.IN._SERVER_.axfrreqv6     |            |         1 |
 +      | zones.IN._SERVER_.xfrfail       |            |         1 |
 +      | zones.IN.example.org..soaoutv6  |            |         1 |
 +      | zones.IN.example.org..axfrreqv6 |            |         1 |
 +      | zones.IN.example.org..xfrfail   |            |         1 |
 +      | soa_in_progress                 |            |         0 |
 +      | axfr_running                    |            |         0 |
+       | socket.ipv6.tcp.open            |            |         1 |
+       | socket.ipv6.tcp.close           |            |         1 |
+       | socket.ipv6.tcp.conn            |            |         1 |
+       | socket.ipv6.tcp.connfail        |          0 |           |
  
      #
      # Test for Xfr request rejected in IPv4
      When I query statistics of bind10 module Xfrin with cmdctl
      The statistics counters are 0 in category .Xfrin except for the following items
        | item_name                       | item_value | min_value |
 -      | zones.IN._SERVER_.soaoutv4      |          1 |           |
 -      | zones.IN._SERVER_.axfrreqv4     |          1 |           |
 -      | zones.IN._SERVER_.xfrfail       |          1 |           |
 -      | zones.IN.example.org..soaoutv4  |          1 |           |
 -      | zones.IN.example.org..axfrreqv4 |          1 |           |
 -      | zones.IN.example.org..xfrfail   |          1 |           |
 +      | zones.IN._SERVER_.soaoutv4      |            |         1 |
 +      | zones.IN._SERVER_.axfrreqv4     |            |         1 |
 +      | zones.IN._SERVER_.xfrfail       |            |         1 |
 +      | zones.IN.example.org..soaoutv4  |            |         1 |
 +      | zones.IN.example.org..axfrreqv4 |            |         1 |
 +      | zones.IN.example.org..xfrfail   |            |         1 |
 +      | soa_in_progress                 |            |         0 |
 +      | axfr_running                    |            |         0 |
+       | socket.ipv4.tcp.open            |            |         1 |
+       | socket.ipv4.tcp.close           |            |         1 |
+       | socket.ipv4.tcp.conn            |            |         1 |
+       | socket.ipv4.tcp.connfail        |          0 |           |
  
      #
      # Test for unreachable slave