summaryrefslogtreecommitdiffstats
path: root/hmp-commands.hx
diff options
context:
space:
mode:
authorDr. David Alan Gilbert2019-06-20 20:47:03 +0200
committerJason Wang2019-07-02 04:21:06 +0200
commit08528271152ee76cf860168b41109e2a661e6260 (patch)
treed621c49a1d6e47eaa16e3ba899a94424971fa1c7 /hmp-commands.hx
parentnet/announce: Allow optional list of interfaces (diff)
downloadqemu-08528271152ee76cf860168b41109e2a661e6260.tar.gz
qemu-08528271152ee76cf860168b41109e2a661e6260.tar.xz
qemu-08528271152ee76cf860168b41109e2a661e6260.zip
net/announce: Add HMP optional interface list
Add the optional interface list to the HMP command. i.e. All interfaces announce_self Just the named interfaces: announce_self vn1,vn2 Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'hmp-commands.hx')
-rw-r--r--hmp-commands.hx6
1 files changed, 4 insertions, 2 deletions
diff --git a/hmp-commands.hx b/hmp-commands.hx
index 8b7aec3e8d..d42c09f257 100644
--- a/hmp-commands.hx
+++ b/hmp-commands.hx
@@ -955,8 +955,8 @@ ETEXI
{
.name = "announce_self",
- .args_type = "",
- .params = "",
+ .args_type = "interfaces:s?",
+ .params = "[interfaces]",
.help = "Trigger GARP/RARP announcements",
.cmd = hmp_announce_self,
},
@@ -967,6 +967,8 @@ STEXI
Trigger a round of GARP/RARP broadcasts; this is useful for explicitly updating the
network infrastructure after a reconfiguration or some forms of migration.
The timings of the round are set by the migration announce parameters.
+An optional comma separated @var{interfaces} list restricts the announce to the
+named set of interfaces.
ETEXI
{