> Are you saying I should go into the .diff patch file and do a find replace 
> for the word Switch and change them all to say SNMP?

Exactly..

> changing SNMP.pm and SNMP directory to Switch.pm and Switch directory did not 
> work.

That will have some nasty side effects… You should revert that change and 
simply modify the patch (the diff file) to find and replace Switch for SNMP.

Pay attention at the occurrences you change tho..

Derek

--
Derek Wuelfrath
[email protected] :: www.inverse.ca
+1.514.447.4918 (x110) :: +1.866.353.6153 (x110)
Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence 
(www.packetfence.org)

On Apr 29, 2014, at 2:49 PM, Decoursey, Jason B CADET MIL USA USMA 
<[email protected]> wrote:

> Hello,
> 
> Could you detail a method to successfully install this patch? Like I 
> mentioned previously changing SNMP.pm and SNMP directory to Switch.pm and 
> Switch directory did not work. Are you saying I should go into the .diff 
> patch file and do a find replace for the word Switch and change them all to 
> say SNMP?
> 
> What I am looking for is a procedure to sucessfully apply this patch as I am 
> unable to make it work.
> 
> -Jason
> 
> ________________________________________
> From: Derek Wuelfrath [[email protected]]
> Sent: Tuesday, April 29, 2014 10:36 AM
> To: [email protected]
> Subject: Re: [PacketFence-users] Change VLAN Bug
> 
>> I renamed SNMP.pm to Switch.pm
> 
> You should probably revert that change and simply go through the patch file 
> and change Switch for SNMP
> 
> Make sure no to change instances that shouldn’t be changed… (only paths and 
> packages names are affected...)
> 
> Derek
> 
> --
> Derek Wuelfrath
> [email protected] :: www.inverse.ca
> +1.514.447.4918 (x110) :: +1.866.353.6153 (x110)
> Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence 
> (www.packetfence.org)
> 
> On Apr 28, 2014, at 5:44 PM, Decoursey, Jason B CADET MIL USA USMA 
> <[email protected]> wrote:
> 
>> Fabrice,
>> 
>> Thank you!
>> 
>> I am having some trouble patching it (im new to patching pf)
>> First I cd to /lib/pf/
>> I curled the .dff commit and named it pf.diff
>> I renamed SNMP.pm to Switch.pm
>> I tired doing patch -p1 < pf.diff and got this:
>> can't find file to patch at input line 5
>> Perhaps you used the wrong -p or --strip option?
>> The text leading up to this was:
>> --------------------------
>> |diff --git a/lib/pf/Switch.pm b/lib/pf/Switch.pm
>> |index 2b5723d..2efade4 100644
>> |--- a/lib/pf/Switch.pm
>> |+++ b/lib/pf/Switch.pm
>> --------------------------
>> File to patch:
>> 
>> Any idea what I am doing wrong?
>> 
>> -Jason
>> 
>> -----Original Message-----
>> From: Durand fabrice [mailto:[email protected]]
>> Sent: Monday, April 28, 2014 5:22 PM
>> To: [email protected]
>> Subject: Re: [PacketFence-users] Change VLAN Bug
>> 
>> Hi Jason,
>> 
>> this bug has been fixed but be careful we renamed SNMP to Switch.
>> https://github.com/inverse-inc/packetfence/commit/90cc0a1796a84fce5155284b49129bdc87efe3ff
>> 
>> Regards
>> Fabrice
>> 
>> Le 2014-04-28 16:57, Decoursey, Jason B CADET MIL USA USMA a écrit :
>>> Hello,
>>> 
>>> I believe I have run into a bug that is preventing pf from changing
>>> the VLAN after a user registers. The following is a excerpt from the
>>> packetfence.log file
>>> 
>>> Thread 1 terminated abnormally: Undefined subroutine
>>> &pf::SNMP::Cisco::Catalyst_2960::handleReAssignVlanTrapForWiredMacAuth
>>> called at /usr/local/pf/sbin/pfsetvlan line 1618.
>>> 
>>> For the rest of the packetfence.log go here
>>> http://pastebin.com/hRg0KYQr
>>> 
>>> I am using SNMP for De-auth and Cisco MAB for authentication.
>>> 
>>> Very Respectfully,
>>> Jason
>>> 
>>> 
>>> 
>>> ----------------------------------------------------------------------
>>> -------- "Accelerate Dev Cycles with Automated Cross-Browser Testing -
>>> For FREE Instantly run your Selenium tests across 300+ browser/OS
>>> combos.  Get unparalleled scalability from the best Selenium testing
>>> platform available.
>>> Simple to use. Nothing to install. Get started now for free."
>>> http://p.sf.net/sfu/SauceLabs
>>> _______________________________________________
>>> PacketFence-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/packetfence-users
>> 
>> 
>> ------------------------------------------------------------------------------
>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE 
>> Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
>> unparalleled scalability from the best Selenium testing platform available.
>> Simple to use. Nothing to install. Get started now for free."
>> http://p.sf.net/sfu/SauceLabs
>> _______________________________________________
>> PacketFence-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/packetfence-users
>> 
>> ------------------------------------------------------------------------------
>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>> Instantly run your Selenium tests across 300+ browser/OS combos.  Get
>> unparalleled scalability from the best Selenium testing platform available.
>> Simple to use. Nothing to install. Get started now for free."
>> http://p.sf.net/sfu/SauceLabs
>> _______________________________________________
>> PacketFence-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/packetfence-users
> 
> 
> ------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.  Get
> unparalleled scalability from the best Selenium testing platform available.
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> _______________________________________________
> PacketFence-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/packetfence-users
> ------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
> unparalleled scalability from the best Selenium testing platform available.
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> _______________________________________________
> PacketFence-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/packetfence-users


------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to