Cloud 透视Shell:匹配实例完整主机名

Cloud 透视Shell:匹配实例完整主机名,cloud,openstack,perspective-shell,Cloud,Openstack,Perspective Shell,my cloud中的所有虚拟机都具有以下主机名模式:.example.com,其中vm\u name是虚拟机名称,example.com是某个固定域名。是否有任何方式不仅匹配VM名称,还考虑完整主机名,例如: perspective> show instances --name vm-one,vm-two perspective> show instances --name vm-one.example.com,vm-two.example.com # I would like th

my cloud中的所有虚拟机都具有以下主机名模式:
.example.com
,其中
vm\u name
是虚拟机名称,
example.com
是某个固定域名。是否有任何方式不仅匹配VM名称,还考虑完整主机名,例如:

perspective> show instances --name vm-one,vm-two
perspective> show instances --name vm-one.example.com,vm-two.example.com # I would like this!

您应该在~/.perspective/rc文件中指定所有可用的域区域(所谓的“实例后缀”),如下所示:

set instance_suffixes = .example.com,.test.net
然后,只需像往常一样搜索实例:

perspective> show instances --name vm-one.example.com,vm-two.test.net

您应该在~/.perspective/rc文件中指定所有可用的域区域(所谓的“实例后缀”),如下所示:

set instance_suffixes = .example.com,.test.net
然后,只需像往常一样搜索实例:

perspective> show instances --name vm-one.example.com,vm-two.test.net