infoblox nios的接口和cli应用

infoblox的Python项目详细描述


一个非正式的python库,用于与infoblox nios接口。这个库与没有任何关联。

PyPI versionDownloadsBuild Status

要求

  • python 2.6、2.7、3.2、3.3
  • (仅限python 2.6)

cli用法

usage: infoblox-host [-h][--version][--debug][-u USERNAME][-p PASSWORD]
          <Infoblox Address> {add,remove} <FQDN> [IPv4 Address][COMMENT]

Add or remove a host from the Infoblox appliance

positional arguments:
  <Infoblox Address>    The Infoblox hostname
  {add,remove}          Specify if you are adding or removing a host
  <FQDN>                The FQDN for the host
  [IPv4 Address]        The IPv4 address for the host
  [COMMENT]             A comment set on the host when adding.

optional arguments:
  -h, --help            show this help message and exit
  --version             show program's version number and exit
  --debug               Enable debug output
  -u USERNAME, --username USERNAME
                        The username to perform the work as. Default: admin
  -p PASSWORD, --password PASSWORD
                        The password to authenticate with. Default: infoblox

库使用

importinfobloxsession=infoblox.Session('127.0.0.1','admin','infoblox')host=infoblox.Host(session)host.name='foo.bar.net'host.add_ipv4addr('10.0.0.1')ifhost.save():print('Host saved')

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
我可以用C++代码使用java代码吗?   java使用JSR303在派生类中提供更具体的约束   java在这个查找唯一路径数算法中我做错了什么?   java如何为2个不同的服务提供商使用2个不同的SSL证书?   java在Gridview上绘制文本   java使用连接for循环构建字符串名   java StringBuilder拆分无法处理某些文件   java事件关注EditText   Java Web Start“找不到URL的缓存资源”   java程序从命令行运行的速度比在Eclipse中慢   java为什么HttpServletRequest会截断#字符上的url输入?   java自定义折叠工具栏平滑标题大小调整   使用Mockito对安卓 java中调用另一个静态函数的函数进行单元测试   http在java客户机中使用cachecontrol头   java如何使用。是否使用Delimiter从输入文件中排除标点符号和数字?   使用上下文作为参数/参数的java   java更有效地从Jar中提取文件   java为多个JButton提供相同的actionListener