From cda7f1012da4e27d1f9fcba5edb7f30fbb601eab Mon Sep 17 00:00:00 2001 From: Jonas Lindstad Date: Sun, 1 Feb 2015 23:42:28 +0100 Subject: Moved option crafting to separate class, cleanup, fixes. Still not functional, but getting close --- junos-bootstrap/dhcpd/module_craft_option.py | 79 ++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 junos-bootstrap/dhcpd/module_craft_option.py (limited to 'junos-bootstrap/dhcpd/module_craft_option.py') diff --git a/junos-bootstrap/dhcpd/module_craft_option.py b/junos-bootstrap/dhcpd/module_craft_option.py new file mode 100644 index 0000000..35e7328 --- /dev/null +++ b/junos-bootstrap/dhcpd/module_craft_option.py @@ -0,0 +1,79 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + +''' + Created by Jonas 'j' Lindstad for The Gathering 2015 + License: GPLv3 + + Class used to craft byte hex encoded DHCP options + + NB: No direct support for suboptions. Should be possible to craft suboptions as + options, and inject them with craft_option(