Good morning everyone!

Is there a way that we could do math or convert a VLAN to Hex in a switch 
template? I’ve been looking to use that for our Extreme/Avaya switches that use 
EAP MultiHost for their radius answers and need to have the VLAN Egress VLAN-ID 
returned in a different format.



Right now, I have every VLAN going through a VLAN filter, which complicates 
adding roles to the switches.



Our filters look like this:

'WiredVLAN-8' => {

'answer.1' => 'reply:Tunnel-Medium-Type = 6',

‘status' => 'enabled',

'answer.0' => 'reply:Tunnel-Type = 13',

'top_op' => 'and',

'description' => VLAN 8',

'scopes' => 'returnRadiusAccessAccept',

'answer.3' => 'reply:Egress-VLANID = 0x32000008',

'merge_answer' => 'no',

'answer.2' => 'reply:Tunnel-Private-Group-Id = 8',

'condition' => 'mac =~ ".*" && vlan == "8"'

},



The 'reply:Egress-VLANID = 0x32000008' uses RFC4675, with 0x31 for tagged, and 
0x32 for untagged, and the VLAN in Hex at the back. With 0’s padding the middle.

Ex. VLAN 17 as a tagged egress VLAN would be 0x31000011.



Ideally, we’d have support for 802.1ad or VxLAN. But, that could be something 
they’re adding in a future release. I’m not sure. I could submit a feature 
request. But, if it’s already possible, I won’t worry about it.



Thank you for your time.



Cheers,

Chris


Get Outlook for iOS<https://aka.ms/o0ukef>
_______________________________________________
PacketFence-users mailing list
PacketFence-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to