Python 自动化运维 IPy

 1.功能 对IP进行处理的模块

 2.

输出一个网段内的所有IP

Python 自动化运维 IPy

反向解析,IP类型,IP转换

Python 自动化运维 IPy

Python 自动化运维 IPy

网段转换

Python 自动化运维 IPy

Python 自动化运维 IPystrNomal(0)   无返回

strNomal(1)   后缀

strNomal(2)   十进制

strNomal(3)   lastIP


IP计算

判断IP地址和网段是否包含于另一个网段

Python 自动化运维 IPy

overlaps   判断两个网段是否重叠

Python 自动化运维 IPy

本文转自  red777    51CTO博客,原文链接:http://blog.51cto.com/12314711/1971281