/* This file contaions interface information. It is
   dependent on the global variable iface being set before this
   file is included in a_commm.ssi. It can not be include inside
   this file because then it would be cashed. */
function IsPRI (){return (/PRI/.test (iface));}
function IsT1 (){return (/T1/.test (iface));}
function IsE1 (){return (/E1/.test (iface));}
function IsV35 (){return (/V35/.test (iface));}  
function IsBRI (){return (/BRI/.test (iface));}  
function IsQBRI (){return (/QUAD/.test (iface));}  
function IsSBRI (){return (/SINGLE/.test (iface));}  
function IsIPOnly (){return (/NONE/.test (iface));}
function IsUnknown (){return (/UNKNOWN/.test (iface));}

function GetIFaceAbr ()
{
  if (IsT1 ()) return "T1"
  if (IsE1 ()) return "E1"
  if (IsV35 ()) return "V35"
  if (IsSBRI ()) return "SBRI"
  if (IsQBRI ()) return "QBRI"
  if (IsUnknown ()) return "UNKNOWN"
  return "NONE"
}

function TranslateIFaceOption ()
{
  return TranslateOption ("interfacetype", GetIFaceAbr ())
}