title: Link aggregation and status of network interfaces in "ipadm" command
body: <p>I am again rephrasing the issue that we are facing:</p>
  
  <p>We are creating link aggregations [dlmp groups] with two interfaces named net0 &amp; net5:</p>
  
  <pre><code>   # dladm create-aggr -m dlmp -l net0 -l net5 -l net2 aggr1
  </code></pre>
  
  <p>Setting prob targets for aggr1:</p>
  
  <pre><code>   # dladm set-linkprop -p probe-ip=+ aggr1
  </code></pre>
  
  <p>Setting failure detection time:</p>
  
  <pre><code>   #  dladm set-linkprop -p probe-fdt=15 aggr1
  </code></pre>
  
  <p>After this we are adding IP to this aggregation as follows:</p>
  
  <pre><code>   # ipadm create-ip aggr1
  </code></pre>
  
  <p>Assigns an IP to this:</p>
  
  <pre><code>   # ipadm create-addr -T static -a x.x.x.x/y aggr1/addr
  </code></pre>
  
  <p>Then we check the status using dladm and ipadm everything seems up and running.</p>
  
  <p>Then we tested a scenario where we are dettached cables from above n/w interfaces, but what we got is as follows:</p>
  
  <pre><code>   # dladm show-aggr -x
  
        LINK       PORT       SPEED DUPLEX   STATE     ADDRESS            PORTSTATE
  
        traf0      --         100Mb unknown   up       0:10:e0:5b:69:1    --
                   net0       100Mb unknown   down     0:10:e0:5b:69:1    attached
                   net5       100Mb unknown   down     a0:36:9f:45:de:9d  attached
  </code></pre>
  
  <p>First issues is that we are getting the state of link "traf0" as <strong>up</strong> in above command output, secondly in the output of "ipadm":</p>
  
  <pre><code>  traf0             ip         ok           --         --
       traf0/addr     static     ok           --         7.8.0.199/16
  </code></pre>
  
  <p>We are getting the status of traf0 as <strong>ok</strong>.</p>
  
  <p>So here I have a query, can't we have any configuration where we could get right status of traf0 both in dladm and ipadm output?</p>
  
  <p>[One more thing to add here is, when we don't assign any IP to this traf0 aggregation then in that case on dettaching the cables we get right output in dladm command.]</p>
  
  <p>Apart from this configuration, we are using these aggregations as vnics in zones. There also we are getting the status of these links up in ipadm command output [after dettaching the cables].</p>
  
  <p>A small update::
  We have set the value of "TRACK_INTERFACES_ONLY_WITH_GROUPS" parameter in /etc/default/mpathd as no and getting the state of "traf0" in ipadm command as failed, but still we get traf0/addr as ok.</p>
  
  <pre><code>  traf0             ip         failed       --         --
       traf0/addr     static     ok           --         7.8.0.199/16
  </code></pre>