]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Added schema for DHCP IP pools.
authorAlan T. DeKok <aland@freeradius.org>
Wed, 10 Sep 2014 13:06:42 +0000 (09:06 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 10 Sep 2014 13:06:42 +0000 (09:06 -0400)
With a key on Calling-Station-Id.

raddb/mods-config/sql/ippool-dhcp/mysql/schema.sql [new file with mode: 0644]

diff --git a/raddb/mods-config/sql/ippool-dhcp/mysql/schema.sql b/raddb/mods-config/sql/ippool-dhcp/mysql/schema.sql
new file mode 100644 (file)
index 0000000..cd31c21
--- /dev/null
@@ -0,0 +1,19 @@
+#
+# Table structure for table 'radippool'
+#
+CREATE TABLE radippool (
+  id                    int(11) unsigned NOT NULL auto_increment,
+  pool_name             varchar(30) NOT NULL,
+  framedipaddress       varchar(15) NOT NULL default '',
+  nasipaddress          varchar(15) NOT NULL default '',
+  calledstationid       VARCHAR(30) NOT NULL,
+  callingstationid      VARCHAR(30) NOT NULL,
+  expiry_time           DATETIME NULL default NULL,
+  username              varchar(64) NOT NULL default '',
+  pool_key              varchar(30) NOT NULL,
+  PRIMARY KEY (id),
+  KEY radippool_poolname_expire (pool_name, expiry_time),
+  KEY callingstationid (callingstationid),
+  KEY framedipaddress (framedipaddress),
+  KEY radippool_nasip_poolkey_ipaddress (nasipaddress, pool_key, framedipaddress)
+) ENGINE=InnoDB;