|
|
|
@ -36,7 +36,6 @@ api_hostname = CONFIG.get('Re2o', 'hostname') |
|
|
|
api_password = CONFIG.get('Re2o', 'password') |
|
|
|
api_username = CONFIG.get('Re2o', 'username') |
|
|
|
|
|
|
|
api_client = Re2oAPIClient(api_hostname, api_username, api_password) |
|
|
|
|
|
|
|
|
|
|
|
def gen_ip_mac_set(): |
|
|
|
@ -45,6 +44,7 @@ def gen_ip_mac_set(): |
|
|
|
Returns: |
|
|
|
A NetfilterSet object with the allowed ip - mac pairs. |
|
|
|
""" |
|
|
|
api_client = Re2oAPIClient(api_hostname, api_username, api_password) |
|
|
|
hosts = api_client.list('dhcp/hostmacip') |
|
|
|
content = [ |
|
|
|
(h['ipv4'], h['mac_address']) |
|
|
|
|