Skip to content

Commit

Permalink
Merge pull request #3563 from chloerh/domifaddr
Browse files Browse the repository at this point in the history
virsh:Add command domifaddr
  • Loading branch information
Yingshun authored Nov 21, 2022
2 parents 66283f9 + 2cb5b35 commit 6dbcb4b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions spell.ignore
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,7 @@ dh
Diffie
docstring
domainbackup
domifaddr
domjobinfo
domstats
egrep
Expand Down
13 changes: 13 additions & 0 deletions virttest/virsh.py
Original file line number Diff line number Diff line change
Expand Up @@ -3333,6 +3333,19 @@ def domiflist(name, options='', extra='', **dargs):
return command('domiflist %s %s %s' % (name, options, extra), **dargs)


def domifaddr(name, options='', **dargs):
"""
Get the domain iface addresses
:param name: name of domain
:param options: options of domifaddr
:param dargs: standardized virsh function API keywords
:return: CmdResult instance
"""

return command('domifaddr %s %s' % (name, options), **dargs)


def cpu_stats(name, options, **dargs):
"""
Display per-CPU and total statistics about domain's CPUs
Expand Down

0 comments on commit 6dbcb4b

Please sign in to comment.