+# extra logging for option 82
+if exists agent.circuit-id
+{
+ log (
+ info,
+ concat (
+ "option-82 info for ", binary-to-ascii (16, 8, ":", hardware),
+ ": interface ", binary-to-ascii (10, 8, "/", suffix ( option agent.circuit-id, 2)),
+ ", VLAN ", binary-to-ascii (10, 16, "", substring( option agent.circuit-id, 2, 2)),
+ ", switch '", substring( option agent.remote-id, 2, 6),
+ "', port-name '", substring ( option agent.circuit-id, 2, extract-int ( substring ( option agent.circuit-id, 3, 1 ), 8 ) ),
+ "'"
+ )
+ );
+}
+