1. 02 7月, 2019 2 次提交
    • D
      net/announce: Add optional ID · 944458b6
      Dr. David Alan Gilbert 提交于
      Previously there was a single instance of the timer used by
      monitor triggered announces, that's OK, but when combined with the
      previous change that lets you have announces for subsets of interfaces
      it's a bit restrictive if you want to do different things to different
      interfaces.
      
      Add an 'id' field to the announce, and maintain a list of the
      timers based on id.
      
      This allows you to for example:
          a) Start an announce going on interface eth0 for a long time
          b) Start an announce going on interface eth1 for a long time
          c) Kill the announce on eth0 while leaving eth1 going.
      Signed-off-by: NDr. David Alan Gilbert <dgilbert@redhat.com>
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      944458b6
    • D
      net/announce: Allow optional list of interfaces · ef2fdbfb
      Dr. David Alan Gilbert 提交于
      Allow the caller to restrict the set of interfaces that announces are
      sent on.  The default is still to send on all interfaces.
      
      e.g.
      
        { "execute": "announce-self", "arguments": { "initial": 50, "max": 550, "rounds": 5, "step": 50, "interfaces": ["vn2", "vn1"] } }
      
      This doesn't affect the behaviour of migraiton announcments.
      
      Note: There's still only one timer for the qmp command, so that
      performing an 'announce-self' on one list of interfaces followed
      by another 'announce-self' on another list will stop the announces
      on the existing set.
      Signed-off-by: NDr. David Alan Gilbert <dgilbert@redhat.com>
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      ef2fdbfb
  2. 05 3月, 2019 4 次提交