-
Notifications
You must be signed in to change notification settings - Fork 1
/
IpconfigObject.py
47 lines (30 loc) · 982 Bytes
/
IpconfigObject.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
class IpconfigObject:
def __init__(self, CIDR):
self.CIDR = CIDR
self.binaddr = ""
self.binmask = ""
self.binnetworkaddr = ""
self.binbroadcast = ""
self.num_hosts = ""
def get_CIDR(self):
return self.CIDR
def set_binaddr(self, binaddr):
self.binaddr = binaddr
def get_binaddr(self):
return self.binaddr
def set_binmask(self, binmask):
self.binmask = binmask
def get_binmask(self):
return self.binmask
def set_binnetworkaddr(self, binnetworkaddr):
self.binnetworkaddr = binnetworkaddr
def get_binnetworkaddr(self):
return self.binnetworkaddr
def set_binbroadcast(self, binbroadcast):
self.binbroadcast = binbroadcast
def get_binbroadcast(self):
return self.binbroadcast
def set_num_hosts(self, num_hosts):
self.num_hosts = num_hosts
def get_num_hosts(self):
return self.num_hosts