1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 <2013> 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 <2013> 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | RE: Multiple patterns/ .sub files for the same .db file |
From: | Emmanuel Mayssat <[email protected]> |
To: | Tito Körner <[email protected]>, "[email protected]" <[email protected]> |
Date: | Wed, 11 Sep 2013 10:13:45 -0700 |
In your template file, all the parameters need to be defined.
I believe you need to break down your db file in 2 templates. You substitution file to call in dbLoadTemplate can look like file "template1.dbt" { pattern {PROTO, P, BOXNO, LEVELNO, CHANNELNO, ELEMENTNO} {hvtest.proto, HV, 19, 0, 0, 0} {hvtest.proto, HV, 19, 0, 1, 1} } file "template2.dbt" { pattern {EELO, EEUP} {dhcp, DHCP} {ip, IP} } template1.dbt includes ONLY the records that use the first set of parameters template2.dbt includes ONLY the records that use the second set of params. Cheers, -- Emmanuel Date: Tue, 10 Sep 2013 19:06:11 +0200 Subject: Multiple patterns/ .sub files for the same .db file From: [email protected] To: [email protected] Hello, I have .sub file looking like this:file "hvtest.db" { pattern {PROTO, P, BOXNO, LEVELNO, CHANNELNO, ELEMENTNO} {hvtest.proto, HV, 19, 0, 0, 0} {hvtest.proto, HV, 19, 0, 1, 1} } file "hvtest.db" { pattern {EELO, EEUP} {dhcp, DHCP} {ip, IP} } Regards, Tito |