ec2_commandhelper.py 文件源码

python
阅读 78 收藏 0 点赞 0 评论 0

项目:orca 作者: bdastur 项目源码 文件源码
def display_ec2_nw_interfaces(self, outputformat="json"):
        '''
        Display network interfaces
        '''
        ec2_client = aws_service.AwsService('ec2')
        nw_interfaces = ec2_client.service.list_network_interfaces()

        if outputformat == "json":
            pprinter = pprint.PrettyPrinter()
            pprinter.pprint(nw_interfaces)
        else:
            self.display_ec2_nw_interfaces_table(nw_interfaces)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号