1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>Source: network.js</title>
-
-
- <script src="scripts/prettify/prettify.js"></script>
- <script src="scripts/prettify/lang-css.js"></script>
- <script src="scripts/jquery.min.js"></script>
- <!--[if lt IE 9]>
- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
- <![endif]-->
- <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
- <link type="text/css" rel="stylesheet" href="styles/bootstrap.min.css">
- <link type="text/css" rel="stylesheet" href="styles/jaguar.css">
-
-
- <script>
- var config = {"monospaceLinks":true,"cleverLinks":true,"default":{"outputSourceFiles":true}};
- </script>
-
-
- </head>
- <body>
- <div id="wrap" class="clearfix">
-
- <div class="navigation">
- <h3 class="applicationName"><a href="index.html"></a></h3>
- <div class="search">
- <input id="search" type="text" class="form-control input-sm" placeholder="Search Documentations">
- </div>
- <ul class="list">
-
- <li class="item" data-name="LuCI">
- <span class="title">
- <a href="LuCI.html">LuCI</a>
-
- </span>
- <ul class="members itemMembers">
-
- <span class="subtitle">Members</span>
-
- <li data-name="LuCI#Class"><a href="LuCI.html#Class">Class</a></li>
-
- <li data-name="LuCI#dom"><a href="LuCI.html#dom">dom</a></li>
-
- <li data-name="LuCI#env"><a href="LuCI.html#env">env</a></li>
-
- <li data-name="LuCI#naturalCompare"><a href="LuCI.html#naturalCompare">naturalCompare</a></li>
-
- <li data-name="LuCI#Poll"><a href="LuCI.html#Poll">Poll</a></li>
-
- <li data-name="LuCI#Request"><a href="LuCI.html#Request">Request</a></li>
-
- <li data-name="LuCI#view"><a href="LuCI.html#view">view</a></li>
-
- </ul>
- <ul class="typedefs itemMembers">
-
- <span class="subtitle">Typedefs</span>
-
- <li data-name="LuCI.requestCallbackFn"><a href="LuCI.html#.requestCallbackFn">requestCallbackFn</a></li>
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI#bind"><a href="LuCI.html#bind">bind</a></li>
-
- <li data-name="LuCI#error"><a href="LuCI.html#error">error</a></li>
-
- <li data-name="LuCI#fspath"><a href="LuCI.html#fspath">fspath</a></li>
-
- <li data-name="LuCI#get"><a href="LuCI.html#get">get</a></li>
-
- <li data-name="LuCI#halt"><a href="LuCI.html#halt">halt</a></li>
-
- <li data-name="LuCI#hasSystemFeature"><a href="LuCI.html#hasSystemFeature">hasSystemFeature</a></li>
-
- <li data-name="LuCI#hasViewPermission"><a href="LuCI.html#hasViewPermission">hasViewPermission</a></li>
-
- <li data-name="LuCI#isObject"><a href="LuCI.html#isObject">isObject</a></li>
-
- <li data-name="LuCI#location"><a href="LuCI.html#location">location</a></li>
-
- <li data-name="LuCI#media"><a href="LuCI.html#media">media</a></li>
-
- <li data-name="LuCI#path"><a href="LuCI.html#path">path</a></li>
-
- <li data-name="LuCI#poll"><a href="LuCI.html#poll">poll</a></li>
-
- <li data-name="LuCI#post"><a href="LuCI.html#post">post</a></li>
-
- <li data-name="LuCI#raise"><a href="LuCI.html#raise">raise</a></li>
-
- <li data-name="LuCI#require"><a href="LuCI.html#require">require</a></li>
-
- <li data-name="LuCI#resolveDefault"><a href="LuCI.html#resolveDefault">resolveDefault</a></li>
-
- <li data-name="LuCI#resource"><a href="LuCI.html#resource">resource</a></li>
-
- <li data-name="LuCI#run"><a href="LuCI.html#run">run</a></li>
-
- <li data-name="LuCI#sortedArray"><a href="LuCI.html#sortedArray">sortedArray</a></li>
-
- <li data-name="LuCI#sortedKeys"><a href="LuCI.html#sortedKeys">sortedKeys</a></li>
-
- <li data-name="LuCI#stop"><a href="LuCI.html#stop">stop</a></li>
-
- <li data-name="LuCI#toArray"><a href="LuCI.html#toArray">toArray</a></li>
-
- <li data-name="LuCI#url"><a href="LuCI.html#url">url</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.baseclass">
- <span class="title">
- <a href="LuCI.baseclass.html">LuCI.baseclass</a>
-
- </span>
- <ul class="members itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.baseclass.extend"><a href="LuCI.baseclass.html#.extend">extend</a></li>
-
- <li data-name="LuCI.baseclass.instantiate"><a href="LuCI.baseclass.html#.instantiate">instantiate</a></li>
-
- <li data-name="LuCI.baseclass.isSubclass"><a href="LuCI.baseclass.html#.isSubclass">isSubclass</a></li>
-
- <li data-name="LuCI.baseclass.singleton"><a href="LuCI.baseclass.html#.singleton">singleton</a></li>
-
- <li data-name="LuCI.baseclass#super"><a href="LuCI.baseclass.html#super">super</a></li>
-
- <li data-name="LuCI.baseclass#varargs"><a href="LuCI.baseclass.html#varargs">varargs</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.dom">
- <span class="title">
- <a href="LuCI.dom.html">LuCI.dom</a>
-
- </span>
- <ul class="members itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- <span class="subtitle">Typedefs</span>
-
- <li data-name="LuCI.dom~ignoreCallbackFn"><a href="LuCI.dom.html#~ignoreCallbackFn">ignoreCallbackFn</a></li>
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.dom#append"><a href="LuCI.dom.html#append">append</a></li>
-
- <li data-name="LuCI.dom#attr"><a href="LuCI.dom.html#attr">attr</a></li>
-
- <li data-name="LuCI.dom#bindClassInstance"><a href="LuCI.dom.html#bindClassInstance">bindClassInstance</a></li>
-
- <li data-name="LuCI.dom#callClassMethod"><a href="LuCI.dom.html#callClassMethod">callClassMethod</a></li>
-
- <li data-name="LuCI.dom#content"><a href="LuCI.dom.html#content">content</a></li>
-
- <li data-name="LuCI.dom#create"><a href="LuCI.dom.html#create">create</a></li>
-
- <li data-name="LuCI.dom#data"><a href="LuCI.dom.html#data">data</a></li>
-
- <li data-name="LuCI.dom#elem"><a href="LuCI.dom.html#elem">elem</a></li>
-
- <li data-name="LuCI.dom#findClassInstance"><a href="LuCI.dom.html#findClassInstance">findClassInstance</a></li>
-
- <li data-name="LuCI.dom#isEmpty"><a href="LuCI.dom.html#isEmpty">isEmpty</a></li>
-
- <li data-name="LuCI.dom#matches"><a href="LuCI.dom.html#matches">matches</a></li>
-
- <li data-name="LuCI.dom#parent"><a href="LuCI.dom.html#parent">parent</a></li>
-
- <li data-name="LuCI.dom#parse"><a href="LuCI.dom.html#parse">parse</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.form">
- <span class="title">
- <a href="LuCI.form.html">LuCI.form</a>
-
- </span>
- <ul class="members itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.form.AbstractElement">
- <span class="title">
- <a href="LuCI.form.AbstractElement.html">LuCI.form.AbstractElement</a>
-
- </span>
- <ul class="members itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.form.AbstractElement#append"><a href="LuCI.form.AbstractElement.html#append">append</a></li>
-
- <li data-name="LuCI.form.AbstractElement#parse"><a href="LuCI.form.AbstractElement.html#parse">parse</a></li>
-
- <li data-name="LuCI.form.AbstractElement#render"><a href="LuCI.form.AbstractElement.html#render">render</a></li>
-
- <li data-name="LuCI.form.AbstractElement#stripTags"><a href="LuCI.form.AbstractElement.html#stripTags">stripTags</a></li>
-
- <li data-name="LuCI.form.AbstractElement#titleFn"><a href="LuCI.form.AbstractElement.html#titleFn">titleFn</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.form.AbstractSection">
- <span class="title">
- <a href="LuCI.form.AbstractSection.html">LuCI.form.AbstractSection</a>
-
- </span>
- <ul class="members itemMembers">
-
- <span class="subtitle">Members</span>
-
- <li data-name="LuCI.form.AbstractSection##parentoption"><a href="LuCI.form.AbstractSection.html#parentoption">parentoption</a></li>
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.form.AbstractSection#append"><a href="LuCI.form.AbstractSection.html#append">append</a></li>
-
- <li data-name="LuCI.form.AbstractSection#cfgsections"><a href="LuCI.form.AbstractSection.html#cfgsections">cfgsections</a></li>
-
- <li data-name="LuCI.form.AbstractSection#cfgvalue"><a href="LuCI.form.AbstractSection.html#cfgvalue">cfgvalue</a></li>
-
- <li data-name="LuCI.form.AbstractSection#filter"><a href="LuCI.form.AbstractSection.html#filter">filter</a></li>
-
- <li data-name="LuCI.form.AbstractSection#formvalue"><a href="LuCI.form.AbstractSection.html#formvalue">formvalue</a></li>
-
- <li data-name="LuCI.form.AbstractSection#getOption"><a href="LuCI.form.AbstractSection.html#getOption">getOption</a></li>
-
- <li data-name="LuCI.form.AbstractSection#getUIElement"><a href="LuCI.form.AbstractSection.html#getUIElement">getUIElement</a></li>
-
- <li data-name="LuCI.form.AbstractSection#load"><a href="LuCI.form.AbstractSection.html#load">load</a></li>
-
- <li data-name="LuCI.form.AbstractSection#option"><a href="LuCI.form.AbstractSection.html#option">option</a></li>
-
- <li data-name="LuCI.form.AbstractSection#parse"><a href="LuCI.form.AbstractSection.html#parse">parse</a></li>
-
- <li data-name="LuCI.form.AbstractSection#render"><a href="LuCI.form.AbstractSection.html#render">render</a></li>
-
- <li data-name="LuCI.form.AbstractSection#stripTags"><a href="LuCI.form.AbstractSection.html#stripTags">stripTags</a></li>
-
- <li data-name="LuCI.form.AbstractSection#tab"><a href="LuCI.form.AbstractSection.html#tab">tab</a></li>
-
- <li data-name="LuCI.form.AbstractSection#taboption"><a href="LuCI.form.AbstractSection.html#taboption">taboption</a></li>
-
- <li data-name="LuCI.form.AbstractSection#titleFn"><a href="LuCI.form.AbstractSection.html#titleFn">titleFn</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.form.AbstractValue">
- <span class="title">
- <a href="LuCI.form.AbstractValue.html">LuCI.form.AbstractValue</a>
-
- </span>
- <ul class="members itemMembers">
-
- <span class="subtitle">Members</span>
-
- <li data-name="LuCI.form.AbstractValue##datatype"><a href="LuCI.form.AbstractValue.html#datatype">datatype</a></li>
-
- <li data-name="LuCI.form.AbstractValue##default"><a href="LuCI.form.AbstractValue.html#default">default</a></li>
-
- <li data-name="LuCI.form.AbstractValue##editable"><a href="LuCI.form.AbstractValue.html#editable">editable</a></li>
-
- <li data-name="LuCI.form.AbstractValue##modalonly"><a href="LuCI.form.AbstractValue.html#modalonly">modalonly</a></li>
-
- <li data-name="LuCI.form.AbstractValue##onchange"><a href="LuCI.form.AbstractValue.html#onchange">onchange</a></li>
-
- <li data-name="LuCI.form.AbstractValue##optional"><a href="LuCI.form.AbstractValue.html#optional">optional</a></li>
-
- <li data-name="LuCI.form.AbstractValue##readonly"><a href="LuCI.form.AbstractValue.html#readonly">readonly</a></li>
-
- <li data-name="LuCI.form.AbstractValue##retain"><a href="LuCI.form.AbstractValue.html#retain">retain</a></li>
-
- <li data-name="LuCI.form.AbstractValue##rmempty"><a href="LuCI.form.AbstractValue.html#rmempty">rmempty</a></li>
-
- <li data-name="LuCI.form.AbstractValue##uciconfig"><a href="LuCI.form.AbstractValue.html#uciconfig">uciconfig</a></li>
-
- <li data-name="LuCI.form.AbstractValue##ucioption"><a href="LuCI.form.AbstractValue.html#ucioption">ucioption</a></li>
-
- <li data-name="LuCI.form.AbstractValue##ucisection"><a href="LuCI.form.AbstractValue.html#ucisection">ucisection</a></li>
-
- <li data-name="LuCI.form.AbstractValue##validate"><a href="LuCI.form.AbstractValue.html#validate">validate</a></li>
-
- <li data-name="LuCI.form.AbstractValue##width"><a href="LuCI.form.AbstractValue.html#width">width</a></li>
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.form.AbstractValue#append"><a href="LuCI.form.AbstractValue.html#append">append</a></li>
-
- <li data-name="LuCI.form.AbstractValue#cbid"><a href="LuCI.form.AbstractValue.html#cbid">cbid</a></li>
-
- <li data-name="LuCI.form.AbstractValue#cfgvalue"><a href="LuCI.form.AbstractValue.html#cfgvalue">cfgvalue</a></li>
-
- <li data-name="LuCI.form.AbstractValue#depends"><a href="LuCI.form.AbstractValue.html#depends">depends</a></li>
-
- <li data-name="LuCI.form.AbstractValue#formvalue"><a href="LuCI.form.AbstractValue.html#formvalue">formvalue</a></li>
-
- <li data-name="LuCI.form.AbstractValue#getUIElement"><a href="LuCI.form.AbstractValue.html#getUIElement">getUIElement</a></li>
-
- <li data-name="LuCI.form.AbstractValue#getValidationError"><a href="LuCI.form.AbstractValue.html#getValidationError">getValidationError</a></li>
-
- <li data-name="LuCI.form.AbstractValue#isActive"><a href="LuCI.form.AbstractValue.html#isActive">isActive</a></li>
-
- <li data-name="LuCI.form.AbstractValue#isValid"><a href="LuCI.form.AbstractValue.html#isValid">isValid</a></li>
-
- <li data-name="LuCI.form.AbstractValue#load"><a href="LuCI.form.AbstractValue.html#load">load</a></li>
-
- <li data-name="LuCI.form.AbstractValue#parse"><a href="LuCI.form.AbstractValue.html#parse">parse</a></li>
-
- <li data-name="LuCI.form.AbstractValue#remove"><a href="LuCI.form.AbstractValue.html#remove">remove</a></li>
-
- <li data-name="LuCI.form.AbstractValue#render"><a href="LuCI.form.AbstractValue.html#render">render</a></li>
-
- <li data-name="LuCI.form.AbstractValue#stripTags"><a href="LuCI.form.AbstractValue.html#stripTags">stripTags</a></li>
-
- <li data-name="LuCI.form.AbstractValue#textvalue"><a href="LuCI.form.AbstractValue.html#textvalue">textvalue</a></li>
-
- <li data-name="LuCI.form.AbstractValue#titleFn"><a href="LuCI.form.AbstractValue.html#titleFn">titleFn</a></li>
-
- <li data-name="LuCI.form.AbstractValue#validate"><a href="LuCI.form.AbstractValue.html#validate">validate</a></li>
-
- <li data-name="LuCI.form.AbstractValue#write"><a href="LuCI.form.AbstractValue.html#write">write</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.form.ButtonValue">
- <span class="title">
- <a href="LuCI.form.ButtonValue.html">LuCI.form.ButtonValue</a>
-
- </span>
- <ul class="members itemMembers">
-
- <span class="subtitle">Members</span>
-
- <li data-name="LuCI.form.ButtonValue##inputstyle"><a href="LuCI.form.ButtonValue.html#inputstyle">inputstyle</a></li>
-
- <li data-name="LuCI.form.ButtonValue##inputtitle"><a href="LuCI.form.ButtonValue.html#inputtitle">inputtitle</a></li>
-
- <li data-name="LuCI.form.ButtonValue##onclick"><a href="LuCI.form.ButtonValue.html#onclick">onclick</a></li>
-
- <li data-name="LuCI.form.ButtonValue#datatype"><a href="LuCI.form.ButtonValue.html#datatype">datatype</a></li>
-
- <li data-name="LuCI.form.ButtonValue#default"><a href="LuCI.form.ButtonValue.html#default">default</a></li>
-
- <li data-name="LuCI.form.ButtonValue#editable"><a href="LuCI.form.ButtonValue.html#editable">editable</a></li>
-
- <li data-name="LuCI.form.ButtonValue#modalonly"><a href="LuCI.form.ButtonValue.html#modalonly">modalonly</a></li>
-
- <li data-name="LuCI.form.ButtonValue#onchange"><a href="LuCI.form.ButtonValue.html#onchange">onchange</a></li>
-
- <li data-name="LuCI.form.ButtonValue#optional"><a href="LuCI.form.ButtonValue.html#optional">optional</a></li>
-
- <li data-name="LuCI.form.ButtonValue#password"><a href="LuCI.form.ButtonValue.html#password">password</a></li>
-
- <li data-name="LuCI.form.ButtonValue#placeholder"><a href="LuCI.form.ButtonValue.html#placeholder">placeholder</a></li>
-
- <li data-name="LuCI.form.ButtonValue#readonly"><a href="LuCI.form.ButtonValue.html#readonly">readonly</a></li>
-
- <li data-name="LuCI.form.ButtonValue#retain"><a href="LuCI.form.ButtonValue.html#retain">retain</a></li>
-
- <li data-name="LuCI.form.ButtonValue#rmempty"><a href="LuCI.form.ButtonValue.html#rmempty">rmempty</a></li>
-
- <li data-name="LuCI.form.ButtonValue#uciconfig"><a href="LuCI.form.ButtonValue.html#uciconfig">uciconfig</a></li>
-
- <li data-name="LuCI.form.ButtonValue#ucioption"><a href="LuCI.form.ButtonValue.html#ucioption">ucioption</a></li>
-
- <li data-name="LuCI.form.ButtonValue#ucisection"><a href="LuCI.form.ButtonValue.html#ucisection">ucisection</a></li>
-
- <li data-name="LuCI.form.ButtonValue#validate"><a href="LuCI.form.ButtonValue.html#validate">validate</a></li>
-
- <li data-name="LuCI.form.ButtonValue#width"><a href="LuCI.form.ButtonValue.html#width">width</a></li>
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.form.ButtonValue#append"><a href="LuCI.form.ButtonValue.html#append">append</a></li>
-
- <li data-name="LuCI.form.ButtonValue#cbid"><a href="LuCI.form.ButtonValue.html#cbid">cbid</a></li>
-
- <li data-name="LuCI.form.ButtonValue#cfgvalue"><a href="LuCI.form.ButtonValue.html#cfgvalue">cfgvalue</a></li>
-
- <li data-name="LuCI.form.ButtonValue#depends"><a href="LuCI.form.ButtonValue.html#depends">depends</a></li>
-
- <li data-name="LuCI.form.ButtonValue#formvalue"><a href="LuCI.form.ButtonValue.html#formvalue">formvalue</a></li>
-
- <li data-name="LuCI.form.ButtonValue#getUIElement"><a href="LuCI.form.ButtonValue.html#getUIElement">getUIElement</a></li>
-
- <li data-name="LuCI.form.ButtonValue#getValidationError"><a href="LuCI.form.ButtonValue.html#getValidationError">getValidationError</a></li>
-
- <li data-name="LuCI.form.ButtonValue#isActive"><a href="LuCI.form.ButtonValue.html#isActive">isActive</a></li>
-
- <li data-name="LuCI.form.ButtonValue#isValid"><a href="LuCI.form.ButtonValue.html#isValid">isValid</a></li>
-
- <li data-name="LuCI.form.ButtonValue#load"><a href="LuCI.form.ButtonValue.html#load">load</a></li>
-
- <li data-name="LuCI.form.ButtonValue#parse"><a href="LuCI.form.ButtonValue.html#parse">parse</a></li>
-
- <li data-name="LuCI.form.ButtonValue#remove"><a href="LuCI.form.ButtonValue.html#remove">remove</a></li>
-
- <li data-name="LuCI.form.ButtonValue#stripTags"><a href="LuCI.form.ButtonValue.html#stripTags">stripTags</a></li>
-
- <li data-name="LuCI.form.ButtonValue#textvalue"><a href="LuCI.form.ButtonValue.html#textvalue">textvalue</a></li>
-
- <li data-name="LuCI.form.ButtonValue#titleFn"><a href="LuCI.form.ButtonValue.html#titleFn">titleFn</a></li>
-
- <li data-name="LuCI.form.ButtonValue#value"><a href="LuCI.form.ButtonValue.html#value">value</a></li>
-
- <li data-name="LuCI.form.ButtonValue#write"><a href="LuCI.form.ButtonValue.html#write">write</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.form.DummyValue">
- <span class="title">
- <a href="LuCI.form.DummyValue.html">LuCI.form.DummyValue</a>
-
- </span>
- <ul class="members itemMembers">
-
- <span class="subtitle">Members</span>
-
- <li data-name="LuCI.form.DummyValue##hidden"><a href="LuCI.form.DummyValue.html#hidden">hidden</a></li>
-
- <li data-name="LuCI.form.DummyValue##href"><a href="LuCI.form.DummyValue.html#href">href</a></li>
-
- <li data-name="LuCI.form.DummyValue##rawhtml"><a href="LuCI.form.DummyValue.html#rawhtml">rawhtml</a></li>
-
- <li data-name="LuCI.form.DummyValue#datatype"><a href="LuCI.form.DummyValue.html#datatype">datatype</a></li>
-
- <li data-name="LuCI.form.DummyValue#default"><a href="LuCI.form.DummyValue.html#default">default</a></li>
-
- <li data-name="LuCI.form.DummyValue#editable"><a href="LuCI.form.DummyValue.html#editable">editable</a></li>
-
- <li data-name="LuCI.form.DummyValue#modalonly"><a href="LuCI.form.DummyValue.html#modalonly">modalonly</a></li>
-
- <li data-name="LuCI.form.DummyValue#onchange"><a href="LuCI.form.DummyValue.html#onchange">onchange</a></li>
-
- <li data-name="LuCI.form.DummyValue#optional"><a href="LuCI.form.DummyValue.html#optional">optional</a></li>
-
- <li data-name="LuCI.form.DummyValue#password"><a href="LuCI.form.DummyValue.html#password">password</a></li>
-
- <li data-name="LuCI.form.DummyValue#placeholder"><a href="LuCI.form.DummyValue.html#placeholder">placeholder</a></li>
-
- <li data-name="LuCI.form.DummyValue#readonly"><a href="LuCI.form.DummyValue.html#readonly">readonly</a></li>
-
- <li data-name="LuCI.form.DummyValue#retain"><a href="LuCI.form.DummyValue.html#retain">retain</a></li>
-
- <li data-name="LuCI.form.DummyValue#rmempty"><a href="LuCI.form.DummyValue.html#rmempty">rmempty</a></li>
-
- <li data-name="LuCI.form.DummyValue#uciconfig"><a href="LuCI.form.DummyValue.html#uciconfig">uciconfig</a></li>
-
- <li data-name="LuCI.form.DummyValue#ucioption"><a href="LuCI.form.DummyValue.html#ucioption">ucioption</a></li>
-
- <li data-name="LuCI.form.DummyValue#ucisection"><a href="LuCI.form.DummyValue.html#ucisection">ucisection</a></li>
-
- <li data-name="LuCI.form.DummyValue#validate"><a href="LuCI.form.DummyValue.html#validate">validate</a></li>
-
- <li data-name="LuCI.form.DummyValue#width"><a href="LuCI.form.DummyValue.html#width">width</a></li>
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.form.DummyValue#append"><a href="LuCI.form.DummyValue.html#append">append</a></li>
-
- <li data-name="LuCI.form.DummyValue#cbid"><a href="LuCI.form.DummyValue.html#cbid">cbid</a></li>
-
- <li data-name="LuCI.form.DummyValue#cfgvalue"><a href="LuCI.form.DummyValue.html#cfgvalue">cfgvalue</a></li>
-
- <li data-name="LuCI.form.DummyValue#depends"><a href="LuCI.form.DummyValue.html#depends">depends</a></li>
-
- <li data-name="LuCI.form.DummyValue#formvalue"><a href="LuCI.form.DummyValue.html#formvalue">formvalue</a></li>
-
- <li data-name="LuCI.form.DummyValue#getUIElement"><a href="LuCI.form.DummyValue.html#getUIElement">getUIElement</a></li>
-
- <li data-name="LuCI.form.DummyValue#getValidationError"><a href="LuCI.form.DummyValue.html#getValidationError">getValidationError</a></li>
-
- <li data-name="LuCI.form.DummyValue#isActive"><a href="LuCI.form.DummyValue.html#isActive">isActive</a></li>
-
- <li data-name="LuCI.form.DummyValue#isValid"><a href="LuCI.form.DummyValue.html#isValid">isValid</a></li>
-
- <li data-name="LuCI.form.DummyValue#load"><a href="LuCI.form.DummyValue.html#load">load</a></li>
-
- <li data-name="LuCI.form.DummyValue#parse"><a href="LuCI.form.DummyValue.html#parse">parse</a></li>
-
- <li data-name="LuCI.form.DummyValue#remove"><a href="LuCI.form.DummyValue.html#remove">remove</a></li>
-
- <li data-name="LuCI.form.DummyValue#stripTags"><a href="LuCI.form.DummyValue.html#stripTags">stripTags</a></li>
-
- <li data-name="LuCI.form.DummyValue#textvalue"><a href="LuCI.form.DummyValue.html#textvalue">textvalue</a></li>
-
- <li data-name="LuCI.form.DummyValue#titleFn"><a href="LuCI.form.DummyValue.html#titleFn">titleFn</a></li>
-
- <li data-name="LuCI.form.DummyValue#value"><a href="LuCI.form.DummyValue.html#value">value</a></li>
-
- <li data-name="LuCI.form.DummyValue#write"><a href="LuCI.form.DummyValue.html#write">write</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.form.DynamicList">
- <span class="title">
- <a href="LuCI.form.DynamicList.html">LuCI.form.DynamicList</a>
-
- </span>
- <ul class="members itemMembers">
-
- <span class="subtitle">Members</span>
-
- <li data-name="LuCI.form.DynamicList#datatype"><a href="LuCI.form.DynamicList.html#datatype">datatype</a></li>
-
- <li data-name="LuCI.form.DynamicList#default"><a href="LuCI.form.DynamicList.html#default">default</a></li>
-
- <li data-name="LuCI.form.DynamicList#editable"><a href="LuCI.form.DynamicList.html#editable">editable</a></li>
-
- <li data-name="LuCI.form.DynamicList#modalonly"><a href="LuCI.form.DynamicList.html#modalonly">modalonly</a></li>
-
- <li data-name="LuCI.form.DynamicList#onchange"><a href="LuCI.form.DynamicList.html#onchange">onchange</a></li>
-
- <li data-name="LuCI.form.DynamicList#optional"><a href="LuCI.form.DynamicList.html#optional">optional</a></li>
-
- <li data-name="LuCI.form.DynamicList#password"><a href="LuCI.form.DynamicList.html#password">password</a></li>
-
- <li data-name="LuCI.form.DynamicList#placeholder"><a href="LuCI.form.DynamicList.html#placeholder">placeholder</a></li>
-
- <li data-name="LuCI.form.DynamicList#readonly"><a href="LuCI.form.DynamicList.html#readonly">readonly</a></li>
-
- <li data-name="LuCI.form.DynamicList#retain"><a href="LuCI.form.DynamicList.html#retain">retain</a></li>
-
- <li data-name="LuCI.form.DynamicList#rmempty"><a href="LuCI.form.DynamicList.html#rmempty">rmempty</a></li>
-
- <li data-name="LuCI.form.DynamicList#uciconfig"><a href="LuCI.form.DynamicList.html#uciconfig">uciconfig</a></li>
-
- <li data-name="LuCI.form.DynamicList#ucioption"><a href="LuCI.form.DynamicList.html#ucioption">ucioption</a></li>
-
- <li data-name="LuCI.form.DynamicList#ucisection"><a href="LuCI.form.DynamicList.html#ucisection">ucisection</a></li>
-
- <li data-name="LuCI.form.DynamicList#validate"><a href="LuCI.form.DynamicList.html#validate">validate</a></li>
-
- <li data-name="LuCI.form.DynamicList#width"><a href="LuCI.form.DynamicList.html#width">width</a></li>
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.form.DynamicList#append"><a href="LuCI.form.DynamicList.html#append">append</a></li>
-
- <li data-name="LuCI.form.DynamicList#cbid"><a href="LuCI.form.DynamicList.html#cbid">cbid</a></li>
-
- <li data-name="LuCI.form.DynamicList#cfgvalue"><a href="LuCI.form.DynamicList.html#cfgvalue">cfgvalue</a></li>
-
- <li data-name="LuCI.form.DynamicList#depends"><a href="LuCI.form.DynamicList.html#depends">depends</a></li>
-
- <li data-name="LuCI.form.DynamicList#formvalue"><a href="LuCI.form.DynamicList.html#formvalue">formvalue</a></li>
-
- <li data-name="LuCI.form.DynamicList#getUIElement"><a href="LuCI.form.DynamicList.html#getUIElement">getUIElement</a></li>
-
- <li data-name="LuCI.form.DynamicList#getValidationError"><a href="LuCI.form.DynamicList.html#getValidationError">getValidationError</a></li>
-
- <li data-name="LuCI.form.DynamicList#isActive"><a href="LuCI.form.DynamicList.html#isActive">isActive</a></li>
-
- <li data-name="LuCI.form.DynamicList#isValid"><a href="LuCI.form.DynamicList.html#isValid">isValid</a></li>
-
- <li data-name="LuCI.form.DynamicList#load"><a href="LuCI.form.DynamicList.html#load">load</a></li>
-
- <li data-name="LuCI.form.DynamicList#parse"><a href="LuCI.form.DynamicList.html#parse">parse</a></li>
-
- <li data-name="LuCI.form.DynamicList#remove"><a href="LuCI.form.DynamicList.html#remove">remove</a></li>
-
- <li data-name="LuCI.form.DynamicList#stripTags"><a href="LuCI.form.DynamicList.html#stripTags">stripTags</a></li>
-
- <li data-name="LuCI.form.DynamicList#textvalue"><a href="LuCI.form.DynamicList.html#textvalue">textvalue</a></li>
-
- <li data-name="LuCI.form.DynamicList#titleFn"><a href="LuCI.form.DynamicList.html#titleFn">titleFn</a></li>
-
- <li data-name="LuCI.form.DynamicList#value"><a href="LuCI.form.DynamicList.html#value">value</a></li>
-
- <li data-name="LuCI.form.DynamicList#write"><a href="LuCI.form.DynamicList.html#write">write</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.form.FileUpload">
- <span class="title">
- <a href="LuCI.form.FileUpload.html">LuCI.form.FileUpload</a>
-
- </span>
- <ul class="members itemMembers">
-
- <span class="subtitle">Members</span>
-
- <li data-name="LuCI.form.FileUpload##browser"><a href="LuCI.form.FileUpload.html#browser">browser</a></li>
-
- <li data-name="LuCI.form.FileUpload##enable_download"><a href="LuCI.form.FileUpload.html#enable_download">enable_download</a></li>
-
- <li data-name="LuCI.form.FileUpload##enable_remove"><a href="LuCI.form.FileUpload.html#enable_remove">enable_remove</a></li>
-
- <li data-name="LuCI.form.FileUpload##enable_upload"><a href="LuCI.form.FileUpload.html#enable_upload">enable_upload</a></li>
-
- <li data-name="LuCI.form.FileUpload##root_directory"><a href="LuCI.form.FileUpload.html#root_directory">root_directory</a></li>
-
- <li data-name="LuCI.form.FileUpload##show_hidden"><a href="LuCI.form.FileUpload.html#show_hidden">show_hidden</a></li>
-
- <li data-name="LuCI.form.FileUpload#datatype"><a href="LuCI.form.FileUpload.html#datatype">datatype</a></li>
-
- <li data-name="LuCI.form.FileUpload#default"><a href="LuCI.form.FileUpload.html#default">default</a></li>
-
- <li data-name="LuCI.form.FileUpload#editable"><a href="LuCI.form.FileUpload.html#editable">editable</a></li>
-
- <li data-name="LuCI.form.FileUpload#modalonly"><a href="LuCI.form.FileUpload.html#modalonly">modalonly</a></li>
-
- <li data-name="LuCI.form.FileUpload#onchange"><a href="LuCI.form.FileUpload.html#onchange">onchange</a></li>
-
- <li data-name="LuCI.form.FileUpload#optional"><a href="LuCI.form.FileUpload.html#optional">optional</a></li>
-
- <li data-name="LuCI.form.FileUpload#password"><a href="LuCI.form.FileUpload.html#password">password</a></li>
-
- <li data-name="LuCI.form.FileUpload#placeholder"><a href="LuCI.form.FileUpload.html#placeholder">placeholder</a></li>
-
- <li data-name="LuCI.form.FileUpload#readonly"><a href="LuCI.form.FileUpload.html#readonly">readonly</a></li>
-
- <li data-name="LuCI.form.FileUpload#retain"><a href="LuCI.form.FileUpload.html#retain">retain</a></li>
-
- <li data-name="LuCI.form.FileUpload#rmempty"><a href="LuCI.form.FileUpload.html#rmempty">rmempty</a></li>
-
- <li data-name="LuCI.form.FileUpload#uciconfig"><a href="LuCI.form.FileUpload.html#uciconfig">uciconfig</a></li>
-
- <li data-name="LuCI.form.FileUpload#ucioption"><a href="LuCI.form.FileUpload.html#ucioption">ucioption</a></li>
-
- <li data-name="LuCI.form.FileUpload#ucisection"><a href="LuCI.form.FileUpload.html#ucisection">ucisection</a></li>
-
- <li data-name="LuCI.form.FileUpload#validate"><a href="LuCI.form.FileUpload.html#validate">validate</a></li>
-
- <li data-name="LuCI.form.FileUpload#width"><a href="LuCI.form.FileUpload.html#width">width</a></li>
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.form.FileUpload#append"><a href="LuCI.form.FileUpload.html#append">append</a></li>
-
- <li data-name="LuCI.form.FileUpload#cbid"><a href="LuCI.form.FileUpload.html#cbid">cbid</a></li>
-
- <li data-name="LuCI.form.FileUpload#cfgvalue"><a href="LuCI.form.FileUpload.html#cfgvalue">cfgvalue</a></li>
-
- <li data-name="LuCI.form.FileUpload#depends"><a href="LuCI.form.FileUpload.html#depends">depends</a></li>
-
- <li data-name="LuCI.form.FileUpload#formvalue"><a href="LuCI.form.FileUpload.html#formvalue">formvalue</a></li>
-
- <li data-name="LuCI.form.FileUpload#getUIElement"><a href="LuCI.form.FileUpload.html#getUIElement">getUIElement</a></li>
-
- <li data-name="LuCI.form.FileUpload#getValidationError"><a href="LuCI.form.FileUpload.html#getValidationError">getValidationError</a></li>
-
- <li data-name="LuCI.form.FileUpload#isActive"><a href="LuCI.form.FileUpload.html#isActive">isActive</a></li>
-
- <li data-name="LuCI.form.FileUpload#isValid"><a href="LuCI.form.FileUpload.html#isValid">isValid</a></li>
-
- <li data-name="LuCI.form.FileUpload#load"><a href="LuCI.form.FileUpload.html#load">load</a></li>
-
- <li data-name="LuCI.form.FileUpload#parse"><a href="LuCI.form.FileUpload.html#parse">parse</a></li>
-
- <li data-name="LuCI.form.FileUpload#remove"><a href="LuCI.form.FileUpload.html#remove">remove</a></li>
-
- <li data-name="LuCI.form.FileUpload#stripTags"><a href="LuCI.form.FileUpload.html#stripTags">stripTags</a></li>
-
- <li data-name="LuCI.form.FileUpload#textvalue"><a href="LuCI.form.FileUpload.html#textvalue">textvalue</a></li>
-
- <li data-name="LuCI.form.FileUpload#titleFn"><a href="LuCI.form.FileUpload.html#titleFn">titleFn</a></li>
-
- <li data-name="LuCI.form.FileUpload#value"><a href="LuCI.form.FileUpload.html#value">value</a></li>
-
- <li data-name="LuCI.form.FileUpload#write"><a href="LuCI.form.FileUpload.html#write">write</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.form.FlagValue">
- <span class="title">
- <a href="LuCI.form.FlagValue.html">LuCI.form.FlagValue</a>
-
- </span>
- <ul class="members itemMembers">
-
- <span class="subtitle">Members</span>
-
- <li data-name="LuCI.form.FlagValue##disabled"><a href="LuCI.form.FlagValue.html#disabled">disabled</a></li>
-
- <li data-name="LuCI.form.FlagValue##enabled"><a href="LuCI.form.FlagValue.html#enabled">enabled</a></li>
-
- <li data-name="LuCI.form.FlagValue##tooltip"><a href="LuCI.form.FlagValue.html#tooltip">tooltip</a></li>
-
- <li data-name="LuCI.form.FlagValue##tooltipicon"><a href="LuCI.form.FlagValue.html#tooltipicon">tooltipicon</a></li>
-
- <li data-name="LuCI.form.FlagValue#datatype"><a href="LuCI.form.FlagValue.html#datatype">datatype</a></li>
-
- <li data-name="LuCI.form.FlagValue#default"><a href="LuCI.form.FlagValue.html#default">default</a></li>
-
- <li data-name="LuCI.form.FlagValue#editable"><a href="LuCI.form.FlagValue.html#editable">editable</a></li>
-
- <li data-name="LuCI.form.FlagValue#modalonly"><a href="LuCI.form.FlagValue.html#modalonly">modalonly</a></li>
-
- <li data-name="LuCI.form.FlagValue#onchange"><a href="LuCI.form.FlagValue.html#onchange">onchange</a></li>
-
- <li data-name="LuCI.form.FlagValue#optional"><a href="LuCI.form.FlagValue.html#optional">optional</a></li>
-
- <li data-name="LuCI.form.FlagValue#password"><a href="LuCI.form.FlagValue.html#password">password</a></li>
-
- <li data-name="LuCI.form.FlagValue#placeholder"><a href="LuCI.form.FlagValue.html#placeholder">placeholder</a></li>
-
- <li data-name="LuCI.form.FlagValue#readonly"><a href="LuCI.form.FlagValue.html#readonly">readonly</a></li>
-
- <li data-name="LuCI.form.FlagValue#retain"><a href="LuCI.form.FlagValue.html#retain">retain</a></li>
-
- <li data-name="LuCI.form.FlagValue#rmempty"><a href="LuCI.form.FlagValue.html#rmempty">rmempty</a></li>
-
- <li data-name="LuCI.form.FlagValue#uciconfig"><a href="LuCI.form.FlagValue.html#uciconfig">uciconfig</a></li>
-
- <li data-name="LuCI.form.FlagValue#ucioption"><a href="LuCI.form.FlagValue.html#ucioption">ucioption</a></li>
-
- <li data-name="LuCI.form.FlagValue#ucisection"><a href="LuCI.form.FlagValue.html#ucisection">ucisection</a></li>
-
- <li data-name="LuCI.form.FlagValue#validate"><a href="LuCI.form.FlagValue.html#validate">validate</a></li>
-
- <li data-name="LuCI.form.FlagValue#width"><a href="LuCI.form.FlagValue.html#width">width</a></li>
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.form.FlagValue#append"><a href="LuCI.form.FlagValue.html#append">append</a></li>
-
- <li data-name="LuCI.form.FlagValue#cbid"><a href="LuCI.form.FlagValue.html#cbid">cbid</a></li>
-
- <li data-name="LuCI.form.FlagValue#cfgvalue"><a href="LuCI.form.FlagValue.html#cfgvalue">cfgvalue</a></li>
-
- <li data-name="LuCI.form.FlagValue#depends"><a href="LuCI.form.FlagValue.html#depends">depends</a></li>
-
- <li data-name="LuCI.form.FlagValue#formvalue"><a href="LuCI.form.FlagValue.html#formvalue">formvalue</a></li>
-
- <li data-name="LuCI.form.FlagValue#getUIElement"><a href="LuCI.form.FlagValue.html#getUIElement">getUIElement</a></li>
-
- <li data-name="LuCI.form.FlagValue#getValidationError"><a href="LuCI.form.FlagValue.html#getValidationError">getValidationError</a></li>
-
- <li data-name="LuCI.form.FlagValue#isActive"><a href="LuCI.form.FlagValue.html#isActive">isActive</a></li>
-
- <li data-name="LuCI.form.FlagValue#isValid"><a href="LuCI.form.FlagValue.html#isValid">isValid</a></li>
-
- <li data-name="LuCI.form.FlagValue#load"><a href="LuCI.form.FlagValue.html#load">load</a></li>
-
- <li data-name="LuCI.form.FlagValue#parse"><a href="LuCI.form.FlagValue.html#parse">parse</a></li>
-
- <li data-name="LuCI.form.FlagValue#remove"><a href="LuCI.form.FlagValue.html#remove">remove</a></li>
-
- <li data-name="LuCI.form.FlagValue#stripTags"><a href="LuCI.form.FlagValue.html#stripTags">stripTags</a></li>
-
- <li data-name="LuCI.form.FlagValue#textvalue"><a href="LuCI.form.FlagValue.html#textvalue">textvalue</a></li>
-
- <li data-name="LuCI.form.FlagValue#titleFn"><a href="LuCI.form.FlagValue.html#titleFn">titleFn</a></li>
-
- <li data-name="LuCI.form.FlagValue#value"><a href="LuCI.form.FlagValue.html#value">value</a></li>
-
- <li data-name="LuCI.form.FlagValue#write"><a href="LuCI.form.FlagValue.html#write">write</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.form.GridSection">
- <span class="title">
- <a href="LuCI.form.GridSection.html">LuCI.form.GridSection</a>
-
- </span>
- <ul class="members itemMembers">
-
- <span class="subtitle">Members</span>
-
- <li data-name="LuCI.form.GridSection#addbtntitle"><a href="LuCI.form.GridSection.html#addbtntitle">addbtntitle</a></li>
-
- <li data-name="LuCI.form.GridSection#addremove"><a href="LuCI.form.GridSection.html#addremove">addremove</a></li>
-
- <li data-name="LuCI.form.GridSection#anonymous"><a href="LuCI.form.GridSection.html#anonymous">anonymous</a></li>
-
- <li data-name="LuCI.form.GridSection#cloneable"><a href="LuCI.form.GridSection.html#cloneable">cloneable</a></li>
-
- <li data-name="LuCI.form.GridSection#extedit"><a href="LuCI.form.GridSection.html#extedit">extedit</a></li>
-
- <li data-name="LuCI.form.GridSection#max_cols"><a href="LuCI.form.GridSection.html#max_cols">max_cols</a></li>
-
- <li data-name="LuCI.form.GridSection#modaltitle"><a href="LuCI.form.GridSection.html#modaltitle">modaltitle</a></li>
-
- <li data-name="LuCI.form.GridSection#nodescriptions"><a href="LuCI.form.GridSection.html#nodescriptions">nodescriptions</a></li>
-
- <li data-name="LuCI.form.GridSection#parentoption"><a href="LuCI.form.GridSection.html#parentoption">parentoption</a></li>
-
- <li data-name="LuCI.form.GridSection#rowcolors"><a href="LuCI.form.GridSection.html#rowcolors">rowcolors</a></li>
-
- <li data-name="LuCI.form.GridSection#sectiontitle"><a href="LuCI.form.GridSection.html#sectiontitle">sectiontitle</a></li>
-
- <li data-name="LuCI.form.GridSection#sortable"><a href="LuCI.form.GridSection.html#sortable">sortable</a></li>
-
- <li data-name="LuCI.form.GridSection#tabbed"><a href="LuCI.form.GridSection.html#tabbed">tabbed</a></li>
-
- <li data-name="LuCI.form.GridSection#uciconfig"><a href="LuCI.form.GridSection.html#uciconfig">uciconfig</a></li>
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.form.GridSection#addModalOptions"><a href="LuCI.form.GridSection.html#addModalOptions">addModalOptions</a></li>
-
- <li data-name="LuCI.form.GridSection#append"><a href="LuCI.form.GridSection.html#append">append</a></li>
-
- <li data-name="LuCI.form.GridSection#cfgvalue"><a href="LuCI.form.GridSection.html#cfgvalue">cfgvalue</a></li>
-
- <li data-name="LuCI.form.GridSection#filter"><a href="LuCI.form.GridSection.html#filter">filter</a></li>
-
- <li data-name="LuCI.form.GridSection#formvalue"><a href="LuCI.form.GridSection.html#formvalue">formvalue</a></li>
-
- <li data-name="LuCI.form.GridSection#getOption"><a href="LuCI.form.GridSection.html#getOption">getOption</a></li>
-
- <li data-name="LuCI.form.GridSection#getUIElement"><a href="LuCI.form.GridSection.html#getUIElement">getUIElement</a></li>
-
- <li data-name="LuCI.form.GridSection#load"><a href="LuCI.form.GridSection.html#load">load</a></li>
-
- <li data-name="LuCI.form.GridSection#option"><a href="LuCI.form.GridSection.html#option">option</a></li>
-
- <li data-name="LuCI.form.GridSection#parse"><a href="LuCI.form.GridSection.html#parse">parse</a></li>
-
- <li data-name="LuCI.form.GridSection#stripTags"><a href="LuCI.form.GridSection.html#stripTags">stripTags</a></li>
-
- <li data-name="LuCI.form.GridSection#tab"><a href="LuCI.form.GridSection.html#tab">tab</a></li>
-
- <li data-name="LuCI.form.GridSection#taboption"><a href="LuCI.form.GridSection.html#taboption">taboption</a></li>
-
- <li data-name="LuCI.form.GridSection#titleFn"><a href="LuCI.form.GridSection.html#titleFn">titleFn</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.form.HiddenValue">
- <span class="title">
- <a href="LuCI.form.HiddenValue.html">LuCI.form.HiddenValue</a>
-
- </span>
- <ul class="members itemMembers">
-
- <span class="subtitle">Members</span>
-
- <li data-name="LuCI.form.HiddenValue#datatype"><a href="LuCI.form.HiddenValue.html#datatype">datatype</a></li>
-
- <li data-name="LuCI.form.HiddenValue#default"><a href="LuCI.form.HiddenValue.html#default">default</a></li>
-
- <li data-name="LuCI.form.HiddenValue#editable"><a href="LuCI.form.HiddenValue.html#editable">editable</a></li>
-
- <li data-name="LuCI.form.HiddenValue#modalonly"><a href="LuCI.form.HiddenValue.html#modalonly">modalonly</a></li>
-
- <li data-name="LuCI.form.HiddenValue#onchange"><a href="LuCI.form.HiddenValue.html#onchange">onchange</a></li>
-
- <li data-name="LuCI.form.HiddenValue#optional"><a href="LuCI.form.HiddenValue.html#optional">optional</a></li>
-
- <li data-name="LuCI.form.HiddenValue#password"><a href="LuCI.form.HiddenValue.html#password">password</a></li>
-
- <li data-name="LuCI.form.HiddenValue#placeholder"><a href="LuCI.form.HiddenValue.html#placeholder">placeholder</a></li>
-
- <li data-name="LuCI.form.HiddenValue#readonly"><a href="LuCI.form.HiddenValue.html#readonly">readonly</a></li>
-
- <li data-name="LuCI.form.HiddenValue#retain"><a href="LuCI.form.HiddenValue.html#retain">retain</a></li>
-
- <li data-name="LuCI.form.HiddenValue#rmempty"><a href="LuCI.form.HiddenValue.html#rmempty">rmempty</a></li>
-
- <li data-name="LuCI.form.HiddenValue#uciconfig"><a href="LuCI.form.HiddenValue.html#uciconfig">uciconfig</a></li>
-
- <li data-name="LuCI.form.HiddenValue#ucioption"><a href="LuCI.form.HiddenValue.html#ucioption">ucioption</a></li>
-
- <li data-name="LuCI.form.HiddenValue#ucisection"><a href="LuCI.form.HiddenValue.html#ucisection">ucisection</a></li>
-
- <li data-name="LuCI.form.HiddenValue#validate"><a href="LuCI.form.HiddenValue.html#validate">validate</a></li>
-
- <li data-name="LuCI.form.HiddenValue#width"><a href="LuCI.form.HiddenValue.html#width">width</a></li>
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.form.HiddenValue#append"><a href="LuCI.form.HiddenValue.html#append">append</a></li>
-
- <li data-name="LuCI.form.HiddenValue#cbid"><a href="LuCI.form.HiddenValue.html#cbid">cbid</a></li>
-
- <li data-name="LuCI.form.HiddenValue#cfgvalue"><a href="LuCI.form.HiddenValue.html#cfgvalue">cfgvalue</a></li>
-
- <li data-name="LuCI.form.HiddenValue#depends"><a href="LuCI.form.HiddenValue.html#depends">depends</a></li>
-
- <li data-name="LuCI.form.HiddenValue#formvalue"><a href="LuCI.form.HiddenValue.html#formvalue">formvalue</a></li>
-
- <li data-name="LuCI.form.HiddenValue#getUIElement"><a href="LuCI.form.HiddenValue.html#getUIElement">getUIElement</a></li>
-
- <li data-name="LuCI.form.HiddenValue#getValidationError"><a href="LuCI.form.HiddenValue.html#getValidationError">getValidationError</a></li>
-
- <li data-name="LuCI.form.HiddenValue#isActive"><a href="LuCI.form.HiddenValue.html#isActive">isActive</a></li>
-
- <li data-name="LuCI.form.HiddenValue#isValid"><a href="LuCI.form.HiddenValue.html#isValid">isValid</a></li>
-
- <li data-name="LuCI.form.HiddenValue#load"><a href="LuCI.form.HiddenValue.html#load">load</a></li>
-
- <li data-name="LuCI.form.HiddenValue#parse"><a href="LuCI.form.HiddenValue.html#parse">parse</a></li>
-
- <li data-name="LuCI.form.HiddenValue#remove"><a href="LuCI.form.HiddenValue.html#remove">remove</a></li>
-
- <li data-name="LuCI.form.HiddenValue#stripTags"><a href="LuCI.form.HiddenValue.html#stripTags">stripTags</a></li>
-
- <li data-name="LuCI.form.HiddenValue#textvalue"><a href="LuCI.form.HiddenValue.html#textvalue">textvalue</a></li>
-
- <li data-name="LuCI.form.HiddenValue#titleFn"><a href="LuCI.form.HiddenValue.html#titleFn">titleFn</a></li>
-
- <li data-name="LuCI.form.HiddenValue#value"><a href="LuCI.form.HiddenValue.html#value">value</a></li>
-
- <li data-name="LuCI.form.HiddenValue#write"><a href="LuCI.form.HiddenValue.html#write">write</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.form.JSONMap">
- <span class="title">
- <a href="LuCI.form.JSONMap.html">LuCI.form.JSONMap</a>
-
- </span>
- <ul class="members itemMembers">
-
- <span class="subtitle">Members</span>
-
- <li data-name="LuCI.form.JSONMap#readonly"><a href="LuCI.form.JSONMap.html#readonly">readonly</a></li>
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.form.JSONMap#append"><a href="LuCI.form.JSONMap.html#append">append</a></li>
-
- <li data-name="LuCI.form.JSONMap#chain"><a href="LuCI.form.JSONMap.html#chain">chain</a></li>
-
- <li data-name="LuCI.form.JSONMap#findElement"><a href="LuCI.form.JSONMap.html#findElement">findElement</a></li>
-
- <li data-name="LuCI.form.JSONMap#findElements"><a href="LuCI.form.JSONMap.html#findElements">findElements</a></li>
-
- <li data-name="LuCI.form.JSONMap#load"><a href="LuCI.form.JSONMap.html#load">load</a></li>
-
- <li data-name="LuCI.form.JSONMap#lookupOption"><a href="LuCI.form.JSONMap.html#lookupOption">lookupOption</a></li>
-
- <li data-name="LuCI.form.JSONMap#parse"><a href="LuCI.form.JSONMap.html#parse">parse</a></li>
-
- <li data-name="LuCI.form.JSONMap#render"><a href="LuCI.form.JSONMap.html#render">render</a></li>
-
- <li data-name="LuCI.form.JSONMap#reset"><a href="LuCI.form.JSONMap.html#reset">reset</a></li>
-
- <li data-name="LuCI.form.JSONMap#save"><a href="LuCI.form.JSONMap.html#save">save</a></li>
-
- <li data-name="LuCI.form.JSONMap#section"><a href="LuCI.form.JSONMap.html#section">section</a></li>
-
- <li data-name="LuCI.form.JSONMap#stripTags"><a href="LuCI.form.JSONMap.html#stripTags">stripTags</a></li>
-
- <li data-name="LuCI.form.JSONMap#titleFn"><a href="LuCI.form.JSONMap.html#titleFn">titleFn</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.form.ListValue">
- <span class="title">
- <a href="LuCI.form.ListValue.html">LuCI.form.ListValue</a>
-
- </span>
- <ul class="members itemMembers">
-
- <span class="subtitle">Members</span>
-
- <li data-name="LuCI.form.ListValue##orientation"><a href="LuCI.form.ListValue.html#orientation">orientation</a></li>
-
- <li data-name="LuCI.form.ListValue##size"><a href="LuCI.form.ListValue.html#size">size</a></li>
-
- <li data-name="LuCI.form.ListValue##widget"><a href="LuCI.form.ListValue.html#widget">widget</a></li>
-
- <li data-name="LuCI.form.ListValue#datatype"><a href="LuCI.form.ListValue.html#datatype">datatype</a></li>
-
- <li data-name="LuCI.form.ListValue#default"><a href="LuCI.form.ListValue.html#default">default</a></li>
-
- <li data-name="LuCI.form.ListValue#editable"><a href="LuCI.form.ListValue.html#editable">editable</a></li>
-
- <li data-name="LuCI.form.ListValue#modalonly"><a href="LuCI.form.ListValue.html#modalonly">modalonly</a></li>
-
- <li data-name="LuCI.form.ListValue#onchange"><a href="LuCI.form.ListValue.html#onchange">onchange</a></li>
-
- <li data-name="LuCI.form.ListValue#optional"><a href="LuCI.form.ListValue.html#optional">optional</a></li>
-
- <li data-name="LuCI.form.ListValue#password"><a href="LuCI.form.ListValue.html#password">password</a></li>
-
- <li data-name="LuCI.form.ListValue#placeholder"><a href="LuCI.form.ListValue.html#placeholder">placeholder</a></li>
-
- <li data-name="LuCI.form.ListValue#readonly"><a href="LuCI.form.ListValue.html#readonly">readonly</a></li>
-
- <li data-name="LuCI.form.ListValue#retain"><a href="LuCI.form.ListValue.html#retain">retain</a></li>
-
- <li data-name="LuCI.form.ListValue#rmempty"><a href="LuCI.form.ListValue.html#rmempty">rmempty</a></li>
-
- <li data-name="LuCI.form.ListValue#uciconfig"><a href="LuCI.form.ListValue.html#uciconfig">uciconfig</a></li>
-
- <li data-name="LuCI.form.ListValue#ucioption"><a href="LuCI.form.ListValue.html#ucioption">ucioption</a></li>
-
- <li data-name="LuCI.form.ListValue#ucisection"><a href="LuCI.form.ListValue.html#ucisection">ucisection</a></li>
-
- <li data-name="LuCI.form.ListValue#validate"><a href="LuCI.form.ListValue.html#validate">validate</a></li>
-
- <li data-name="LuCI.form.ListValue#width"><a href="LuCI.form.ListValue.html#width">width</a></li>
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.form.ListValue#append"><a href="LuCI.form.ListValue.html#append">append</a></li>
-
- <li data-name="LuCI.form.ListValue#cbid"><a href="LuCI.form.ListValue.html#cbid">cbid</a></li>
-
- <li data-name="LuCI.form.ListValue#cfgvalue"><a href="LuCI.form.ListValue.html#cfgvalue">cfgvalue</a></li>
-
- <li data-name="LuCI.form.ListValue#depends"><a href="LuCI.form.ListValue.html#depends">depends</a></li>
-
- <li data-name="LuCI.form.ListValue#formvalue"><a href="LuCI.form.ListValue.html#formvalue">formvalue</a></li>
-
- <li data-name="LuCI.form.ListValue#getUIElement"><a href="LuCI.form.ListValue.html#getUIElement">getUIElement</a></li>
-
- <li data-name="LuCI.form.ListValue#getValidationError"><a href="LuCI.form.ListValue.html#getValidationError">getValidationError</a></li>
-
- <li data-name="LuCI.form.ListValue#isActive"><a href="LuCI.form.ListValue.html#isActive">isActive</a></li>
-
- <li data-name="LuCI.form.ListValue#isValid"><a href="LuCI.form.ListValue.html#isValid">isValid</a></li>
-
- <li data-name="LuCI.form.ListValue#load"><a href="LuCI.form.ListValue.html#load">load</a></li>
-
- <li data-name="LuCI.form.ListValue#parse"><a href="LuCI.form.ListValue.html#parse">parse</a></li>
-
- <li data-name="LuCI.form.ListValue#remove"><a href="LuCI.form.ListValue.html#remove">remove</a></li>
-
- <li data-name="LuCI.form.ListValue#stripTags"><a href="LuCI.form.ListValue.html#stripTags">stripTags</a></li>
-
- <li data-name="LuCI.form.ListValue#textvalue"><a href="LuCI.form.ListValue.html#textvalue">textvalue</a></li>
-
- <li data-name="LuCI.form.ListValue#titleFn"><a href="LuCI.form.ListValue.html#titleFn">titleFn</a></li>
-
- <li data-name="LuCI.form.ListValue#value"><a href="LuCI.form.ListValue.html#value">value</a></li>
-
- <li data-name="LuCI.form.ListValue#write"><a href="LuCI.form.ListValue.html#write">write</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.form.Map">
- <span class="title">
- <a href="LuCI.form.Map.html">LuCI.form.Map</a>
-
- </span>
- <ul class="members itemMembers">
-
- <span class="subtitle">Members</span>
-
- <li data-name="LuCI.form.Map##readonly"><a href="LuCI.form.Map.html#readonly">readonly</a></li>
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.form.Map#append"><a href="LuCI.form.Map.html#append">append</a></li>
-
- <li data-name="LuCI.form.Map#chain"><a href="LuCI.form.Map.html#chain">chain</a></li>
-
- <li data-name="LuCI.form.Map#findElement"><a href="LuCI.form.Map.html#findElement">findElement</a></li>
-
- <li data-name="LuCI.form.Map#findElements"><a href="LuCI.form.Map.html#findElements">findElements</a></li>
-
- <li data-name="LuCI.form.Map#load"><a href="LuCI.form.Map.html#load">load</a></li>
-
- <li data-name="LuCI.form.Map#lookupOption"><a href="LuCI.form.Map.html#lookupOption">lookupOption</a></li>
-
- <li data-name="LuCI.form.Map#parse"><a href="LuCI.form.Map.html#parse">parse</a></li>
-
- <li data-name="LuCI.form.Map#render"><a href="LuCI.form.Map.html#render">render</a></li>
-
- <li data-name="LuCI.form.Map#reset"><a href="LuCI.form.Map.html#reset">reset</a></li>
-
- <li data-name="LuCI.form.Map#save"><a href="LuCI.form.Map.html#save">save</a></li>
-
- <li data-name="LuCI.form.Map#section"><a href="LuCI.form.Map.html#section">section</a></li>
-
- <li data-name="LuCI.form.Map#stripTags"><a href="LuCI.form.Map.html#stripTags">stripTags</a></li>
-
- <li data-name="LuCI.form.Map#titleFn"><a href="LuCI.form.Map.html#titleFn">titleFn</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.form.MultiValue">
- <span class="title">
- <a href="LuCI.form.MultiValue.html">LuCI.form.MultiValue</a>
-
- </span>
- <ul class="members itemMembers">
-
- <span class="subtitle">Members</span>
-
- <li data-name="LuCI.form.MultiValue##create"><a href="LuCI.form.MultiValue.html#create">create</a></li>
-
- <li data-name="LuCI.form.MultiValue##display_size"><a href="LuCI.form.MultiValue.html#display_size">display_size</a></li>
-
- <li data-name="LuCI.form.MultiValue##dropdown_size"><a href="LuCI.form.MultiValue.html#dropdown_size">dropdown_size</a></li>
-
- <li data-name="LuCI.form.MultiValue#datatype"><a href="LuCI.form.MultiValue.html#datatype">datatype</a></li>
-
- <li data-name="LuCI.form.MultiValue#default"><a href="LuCI.form.MultiValue.html#default">default</a></li>
-
- <li data-name="LuCI.form.MultiValue#editable"><a href="LuCI.form.MultiValue.html#editable">editable</a></li>
-
- <li data-name="LuCI.form.MultiValue#modalonly"><a href="LuCI.form.MultiValue.html#modalonly">modalonly</a></li>
-
- <li data-name="LuCI.form.MultiValue#onchange"><a href="LuCI.form.MultiValue.html#onchange">onchange</a></li>
-
- <li data-name="LuCI.form.MultiValue#optional"><a href="LuCI.form.MultiValue.html#optional">optional</a></li>
-
- <li data-name="LuCI.form.MultiValue#password"><a href="LuCI.form.MultiValue.html#password">password</a></li>
-
- <li data-name="LuCI.form.MultiValue#placeholder"><a href="LuCI.form.MultiValue.html#placeholder">placeholder</a></li>
-
- <li data-name="LuCI.form.MultiValue#readonly"><a href="LuCI.form.MultiValue.html#readonly">readonly</a></li>
-
- <li data-name="LuCI.form.MultiValue#retain"><a href="LuCI.form.MultiValue.html#retain">retain</a></li>
-
- <li data-name="LuCI.form.MultiValue#rmempty"><a href="LuCI.form.MultiValue.html#rmempty">rmempty</a></li>
-
- <li data-name="LuCI.form.MultiValue#uciconfig"><a href="LuCI.form.MultiValue.html#uciconfig">uciconfig</a></li>
-
- <li data-name="LuCI.form.MultiValue#ucioption"><a href="LuCI.form.MultiValue.html#ucioption">ucioption</a></li>
-
- <li data-name="LuCI.form.MultiValue#ucisection"><a href="LuCI.form.MultiValue.html#ucisection">ucisection</a></li>
-
- <li data-name="LuCI.form.MultiValue#validate"><a href="LuCI.form.MultiValue.html#validate">validate</a></li>
-
- <li data-name="LuCI.form.MultiValue#width"><a href="LuCI.form.MultiValue.html#width">width</a></li>
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.form.MultiValue#append"><a href="LuCI.form.MultiValue.html#append">append</a></li>
-
- <li data-name="LuCI.form.MultiValue#cbid"><a href="LuCI.form.MultiValue.html#cbid">cbid</a></li>
-
- <li data-name="LuCI.form.MultiValue#cfgvalue"><a href="LuCI.form.MultiValue.html#cfgvalue">cfgvalue</a></li>
-
- <li data-name="LuCI.form.MultiValue#depends"><a href="LuCI.form.MultiValue.html#depends">depends</a></li>
-
- <li data-name="LuCI.form.MultiValue#formvalue"><a href="LuCI.form.MultiValue.html#formvalue">formvalue</a></li>
-
- <li data-name="LuCI.form.MultiValue#getUIElement"><a href="LuCI.form.MultiValue.html#getUIElement">getUIElement</a></li>
-
- <li data-name="LuCI.form.MultiValue#getValidationError"><a href="LuCI.form.MultiValue.html#getValidationError">getValidationError</a></li>
-
- <li data-name="LuCI.form.MultiValue#isActive"><a href="LuCI.form.MultiValue.html#isActive">isActive</a></li>
-
- <li data-name="LuCI.form.MultiValue#isValid"><a href="LuCI.form.MultiValue.html#isValid">isValid</a></li>
-
- <li data-name="LuCI.form.MultiValue#load"><a href="LuCI.form.MultiValue.html#load">load</a></li>
-
- <li data-name="LuCI.form.MultiValue#parse"><a href="LuCI.form.MultiValue.html#parse">parse</a></li>
-
- <li data-name="LuCI.form.MultiValue#remove"><a href="LuCI.form.MultiValue.html#remove">remove</a></li>
-
- <li data-name="LuCI.form.MultiValue#stripTags"><a href="LuCI.form.MultiValue.html#stripTags">stripTags</a></li>
-
- <li data-name="LuCI.form.MultiValue#textvalue"><a href="LuCI.form.MultiValue.html#textvalue">textvalue</a></li>
-
- <li data-name="LuCI.form.MultiValue#titleFn"><a href="LuCI.form.MultiValue.html#titleFn">titleFn</a></li>
-
- <li data-name="LuCI.form.MultiValue#value"><a href="LuCI.form.MultiValue.html#value">value</a></li>
-
- <li data-name="LuCI.form.MultiValue#write"><a href="LuCI.form.MultiValue.html#write">write</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.form.NamedSection">
- <span class="title">
- <a href="LuCI.form.NamedSection.html">LuCI.form.NamedSection</a>
-
- </span>
- <ul class="members itemMembers">
-
- <span class="subtitle">Members</span>
-
- <li data-name="LuCI.form.NamedSection##addremove"><a href="LuCI.form.NamedSection.html#addremove">addremove</a></li>
-
- <li data-name="LuCI.form.NamedSection##uciconfig"><a href="LuCI.form.NamedSection.html#uciconfig">uciconfig</a></li>
-
- <li data-name="LuCI.form.NamedSection#parentoption"><a href="LuCI.form.NamedSection.html#parentoption">parentoption</a></li>
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.form.NamedSection#append"><a href="LuCI.form.NamedSection.html#append">append</a></li>
-
- <li data-name="LuCI.form.NamedSection#cfgsections"><a href="LuCI.form.NamedSection.html#cfgsections">cfgsections</a></li>
-
- <li data-name="LuCI.form.NamedSection#cfgvalue"><a href="LuCI.form.NamedSection.html#cfgvalue">cfgvalue</a></li>
-
- <li data-name="LuCI.form.NamedSection#filter"><a href="LuCI.form.NamedSection.html#filter">filter</a></li>
-
- <li data-name="LuCI.form.NamedSection#formvalue"><a href="LuCI.form.NamedSection.html#formvalue">formvalue</a></li>
-
- <li data-name="LuCI.form.NamedSection#getOption"><a href="LuCI.form.NamedSection.html#getOption">getOption</a></li>
-
- <li data-name="LuCI.form.NamedSection#getUIElement"><a href="LuCI.form.NamedSection.html#getUIElement">getUIElement</a></li>
-
- <li data-name="LuCI.form.NamedSection#load"><a href="LuCI.form.NamedSection.html#load">load</a></li>
-
- <li data-name="LuCI.form.NamedSection#option"><a href="LuCI.form.NamedSection.html#option">option</a></li>
-
- <li data-name="LuCI.form.NamedSection#parse"><a href="LuCI.form.NamedSection.html#parse">parse</a></li>
-
- <li data-name="LuCI.form.NamedSection#render"><a href="LuCI.form.NamedSection.html#render">render</a></li>
-
- <li data-name="LuCI.form.NamedSection#stripTags"><a href="LuCI.form.NamedSection.html#stripTags">stripTags</a></li>
-
- <li data-name="LuCI.form.NamedSection#tab"><a href="LuCI.form.NamedSection.html#tab">tab</a></li>
-
- <li data-name="LuCI.form.NamedSection#taboption"><a href="LuCI.form.NamedSection.html#taboption">taboption</a></li>
-
- <li data-name="LuCI.form.NamedSection#titleFn"><a href="LuCI.form.NamedSection.html#titleFn">titleFn</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.form.RichListValue">
- <span class="title">
- <a href="LuCI.form.RichListValue.html">LuCI.form.RichListValue</a>
-
- </span>
- <ul class="members itemMembers">
-
- <span class="subtitle">Members</span>
-
- <li data-name="LuCI.form.RichListValue##orientation"><a href="LuCI.form.RichListValue.html#orientation">orientation</a></li>
-
- <li data-name="LuCI.form.RichListValue##size"><a href="LuCI.form.RichListValue.html#size">size</a></li>
-
- <li data-name="LuCI.form.RichListValue##widget"><a href="LuCI.form.RichListValue.html#widget">widget</a></li>
-
- <li data-name="LuCI.form.RichListValue#datatype"><a href="LuCI.form.RichListValue.html#datatype">datatype</a></li>
-
- <li data-name="LuCI.form.RichListValue#default"><a href="LuCI.form.RichListValue.html#default">default</a></li>
-
- <li data-name="LuCI.form.RichListValue#editable"><a href="LuCI.form.RichListValue.html#editable">editable</a></li>
-
- <li data-name="LuCI.form.RichListValue#modalonly"><a href="LuCI.form.RichListValue.html#modalonly">modalonly</a></li>
-
- <li data-name="LuCI.form.RichListValue#onchange"><a href="LuCI.form.RichListValue.html#onchange">onchange</a></li>
-
- <li data-name="LuCI.form.RichListValue#optional"><a href="LuCI.form.RichListValue.html#optional">optional</a></li>
-
- <li data-name="LuCI.form.RichListValue#orientation"><a href="LuCI.form.RichListValue.html#orientation">orientation</a></li>
-
- <li data-name="LuCI.form.RichListValue#password"><a href="LuCI.form.RichListValue.html#password">password</a></li>
-
- <li data-name="LuCI.form.RichListValue#placeholder"><a href="LuCI.form.RichListValue.html#placeholder">placeholder</a></li>
-
- <li data-name="LuCI.form.RichListValue#readonly"><a href="LuCI.form.RichListValue.html#readonly">readonly</a></li>
-
- <li data-name="LuCI.form.RichListValue#retain"><a href="LuCI.form.RichListValue.html#retain">retain</a></li>
-
- <li data-name="LuCI.form.RichListValue#rmempty"><a href="LuCI.form.RichListValue.html#rmempty">rmempty</a></li>
-
- <li data-name="LuCI.form.RichListValue#size"><a href="LuCI.form.RichListValue.html#size">size</a></li>
-
- <li data-name="LuCI.form.RichListValue#uciconfig"><a href="LuCI.form.RichListValue.html#uciconfig">uciconfig</a></li>
-
- <li data-name="LuCI.form.RichListValue#ucioption"><a href="LuCI.form.RichListValue.html#ucioption">ucioption</a></li>
-
- <li data-name="LuCI.form.RichListValue#ucisection"><a href="LuCI.form.RichListValue.html#ucisection">ucisection</a></li>
-
- <li data-name="LuCI.form.RichListValue#validate"><a href="LuCI.form.RichListValue.html#validate">validate</a></li>
-
- <li data-name="LuCI.form.RichListValue#widget"><a href="LuCI.form.RichListValue.html#widget">widget</a></li>
-
- <li data-name="LuCI.form.RichListValue#width"><a href="LuCI.form.RichListValue.html#width">width</a></li>
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.form.RichListValue#append"><a href="LuCI.form.RichListValue.html#append">append</a></li>
-
- <li data-name="LuCI.form.RichListValue#cbid"><a href="LuCI.form.RichListValue.html#cbid">cbid</a></li>
-
- <li data-name="LuCI.form.RichListValue#cfgvalue"><a href="LuCI.form.RichListValue.html#cfgvalue">cfgvalue</a></li>
-
- <li data-name="LuCI.form.RichListValue#depends"><a href="LuCI.form.RichListValue.html#depends">depends</a></li>
-
- <li data-name="LuCI.form.RichListValue#formvalue"><a href="LuCI.form.RichListValue.html#formvalue">formvalue</a></li>
-
- <li data-name="LuCI.form.RichListValue#getUIElement"><a href="LuCI.form.RichListValue.html#getUIElement">getUIElement</a></li>
-
- <li data-name="LuCI.form.RichListValue#getValidationError"><a href="LuCI.form.RichListValue.html#getValidationError">getValidationError</a></li>
-
- <li data-name="LuCI.form.RichListValue#isActive"><a href="LuCI.form.RichListValue.html#isActive">isActive</a></li>
-
- <li data-name="LuCI.form.RichListValue#isValid"><a href="LuCI.form.RichListValue.html#isValid">isValid</a></li>
-
- <li data-name="LuCI.form.RichListValue#load"><a href="LuCI.form.RichListValue.html#load">load</a></li>
-
- <li data-name="LuCI.form.RichListValue#parse"><a href="LuCI.form.RichListValue.html#parse">parse</a></li>
-
- <li data-name="LuCI.form.RichListValue#remove"><a href="LuCI.form.RichListValue.html#remove">remove</a></li>
-
- <li data-name="LuCI.form.RichListValue#stripTags"><a href="LuCI.form.RichListValue.html#stripTags">stripTags</a></li>
-
- <li data-name="LuCI.form.RichListValue#textvalue"><a href="LuCI.form.RichListValue.html#textvalue">textvalue</a></li>
-
- <li data-name="LuCI.form.RichListValue#titleFn"><a href="LuCI.form.RichListValue.html#titleFn">titleFn</a></li>
-
- <li data-name="LuCI.form.RichListValue#value"><a href="LuCI.form.RichListValue.html#value">value</a></li>
-
- <li data-name="LuCI.form.RichListValue#write"><a href="LuCI.form.RichListValue.html#write">write</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.form.SectionValue">
- <span class="title">
- <a href="LuCI.form.SectionValue.html">LuCI.form.SectionValue</a>
-
- </span>
- <ul class="members itemMembers">
-
- <span class="subtitle">Members</span>
-
- <li data-name="LuCI.form.SectionValue##subsection"><a href="LuCI.form.SectionValue.html#subsection">subsection</a></li>
-
- <li data-name="LuCI.form.SectionValue#datatype"><a href="LuCI.form.SectionValue.html#datatype">datatype</a></li>
-
- <li data-name="LuCI.form.SectionValue#default"><a href="LuCI.form.SectionValue.html#default">default</a></li>
-
- <li data-name="LuCI.form.SectionValue#editable"><a href="LuCI.form.SectionValue.html#editable">editable</a></li>
-
- <li data-name="LuCI.form.SectionValue#modalonly"><a href="LuCI.form.SectionValue.html#modalonly">modalonly</a></li>
-
- <li data-name="LuCI.form.SectionValue#onchange"><a href="LuCI.form.SectionValue.html#onchange">onchange</a></li>
-
- <li data-name="LuCI.form.SectionValue#optional"><a href="LuCI.form.SectionValue.html#optional">optional</a></li>
-
- <li data-name="LuCI.form.SectionValue#password"><a href="LuCI.form.SectionValue.html#password">password</a></li>
-
- <li data-name="LuCI.form.SectionValue#placeholder"><a href="LuCI.form.SectionValue.html#placeholder">placeholder</a></li>
-
- <li data-name="LuCI.form.SectionValue#readonly"><a href="LuCI.form.SectionValue.html#readonly">readonly</a></li>
-
- <li data-name="LuCI.form.SectionValue#retain"><a href="LuCI.form.SectionValue.html#retain">retain</a></li>
-
- <li data-name="LuCI.form.SectionValue#rmempty"><a href="LuCI.form.SectionValue.html#rmempty">rmempty</a></li>
-
- <li data-name="LuCI.form.SectionValue#uciconfig"><a href="LuCI.form.SectionValue.html#uciconfig">uciconfig</a></li>
-
- <li data-name="LuCI.form.SectionValue#ucioption"><a href="LuCI.form.SectionValue.html#ucioption">ucioption</a></li>
-
- <li data-name="LuCI.form.SectionValue#ucisection"><a href="LuCI.form.SectionValue.html#ucisection">ucisection</a></li>
-
- <li data-name="LuCI.form.SectionValue#validate"><a href="LuCI.form.SectionValue.html#validate">validate</a></li>
-
- <li data-name="LuCI.form.SectionValue#width"><a href="LuCI.form.SectionValue.html#width">width</a></li>
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.form.SectionValue#append"><a href="LuCI.form.SectionValue.html#append">append</a></li>
-
- <li data-name="LuCI.form.SectionValue#cbid"><a href="LuCI.form.SectionValue.html#cbid">cbid</a></li>
-
- <li data-name="LuCI.form.SectionValue#cfgvalue"><a href="LuCI.form.SectionValue.html#cfgvalue">cfgvalue</a></li>
-
- <li data-name="LuCI.form.SectionValue#depends"><a href="LuCI.form.SectionValue.html#depends">depends</a></li>
-
- <li data-name="LuCI.form.SectionValue#formvalue"><a href="LuCI.form.SectionValue.html#formvalue">formvalue</a></li>
-
- <li data-name="LuCI.form.SectionValue#getUIElement"><a href="LuCI.form.SectionValue.html#getUIElement">getUIElement</a></li>
-
- <li data-name="LuCI.form.SectionValue#getValidationError"><a href="LuCI.form.SectionValue.html#getValidationError">getValidationError</a></li>
-
- <li data-name="LuCI.form.SectionValue#isActive"><a href="LuCI.form.SectionValue.html#isActive">isActive</a></li>
-
- <li data-name="LuCI.form.SectionValue#isValid"><a href="LuCI.form.SectionValue.html#isValid">isValid</a></li>
-
- <li data-name="LuCI.form.SectionValue#load"><a href="LuCI.form.SectionValue.html#load">load</a></li>
-
- <li data-name="LuCI.form.SectionValue#parse"><a href="LuCI.form.SectionValue.html#parse">parse</a></li>
-
- <li data-name="LuCI.form.SectionValue#remove"><a href="LuCI.form.SectionValue.html#remove">remove</a></li>
-
- <li data-name="LuCI.form.SectionValue#stripTags"><a href="LuCI.form.SectionValue.html#stripTags">stripTags</a></li>
-
- <li data-name="LuCI.form.SectionValue#textvalue"><a href="LuCI.form.SectionValue.html#textvalue">textvalue</a></li>
-
- <li data-name="LuCI.form.SectionValue#titleFn"><a href="LuCI.form.SectionValue.html#titleFn">titleFn</a></li>
-
- <li data-name="LuCI.form.SectionValue#value"><a href="LuCI.form.SectionValue.html#value">value</a></li>
-
- <li data-name="LuCI.form.SectionValue#write"><a href="LuCI.form.SectionValue.html#write">write</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.form.TableSection">
- <span class="title">
- <a href="LuCI.form.TableSection.html">LuCI.form.TableSection</a>
-
- </span>
- <ul class="members itemMembers">
-
- <span class="subtitle">Members</span>
-
- <li data-name="LuCI.form.TableSection##extedit"><a href="LuCI.form.TableSection.html#extedit">extedit</a></li>
-
- <li data-name="LuCI.form.TableSection##max_cols"><a href="LuCI.form.TableSection.html#max_cols">max_cols</a></li>
-
- <li data-name="LuCI.form.TableSection##modaltitle"><a href="LuCI.form.TableSection.html#modaltitle">modaltitle</a></li>
-
- <li data-name="LuCI.form.TableSection##nodescriptions"><a href="LuCI.form.TableSection.html#nodescriptions">nodescriptions</a></li>
-
- <li data-name="LuCI.form.TableSection##rowcolors"><a href="LuCI.form.TableSection.html#rowcolors">rowcolors</a></li>
-
- <li data-name="LuCI.form.TableSection##sectiontitle"><a href="LuCI.form.TableSection.html#sectiontitle">sectiontitle</a></li>
-
- <li data-name="LuCI.form.TableSection##sortable"><a href="LuCI.form.TableSection.html#sortable">sortable</a></li>
-
- <li data-name="LuCI.form.TableSection#addbtntitle"><a href="LuCI.form.TableSection.html#addbtntitle">addbtntitle</a></li>
-
- <li data-name="LuCI.form.TableSection#addremove"><a href="LuCI.form.TableSection.html#addremove">addremove</a></li>
-
- <li data-name="LuCI.form.TableSection#anonymous"><a href="LuCI.form.TableSection.html#anonymous">anonymous</a></li>
-
- <li data-name="LuCI.form.TableSection#cloneable"><a href="LuCI.form.TableSection.html#cloneable">cloneable</a></li>
-
- <li data-name="LuCI.form.TableSection#parentoption"><a href="LuCI.form.TableSection.html#parentoption">parentoption</a></li>
-
- <li data-name="LuCI.form.TableSection#tabbed"><a href="LuCI.form.TableSection.html#tabbed">tabbed</a></li>
-
- <li data-name="LuCI.form.TableSection#uciconfig"><a href="LuCI.form.TableSection.html#uciconfig">uciconfig</a></li>
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.form.TableSection#addModalOptions"><a href="LuCI.form.TableSection.html#addModalOptions">addModalOptions</a></li>
-
- <li data-name="LuCI.form.TableSection#append"><a href="LuCI.form.TableSection.html#append">append</a></li>
-
- <li data-name="LuCI.form.TableSection#cfgvalue"><a href="LuCI.form.TableSection.html#cfgvalue">cfgvalue</a></li>
-
- <li data-name="LuCI.form.TableSection#filter"><a href="LuCI.form.TableSection.html#filter">filter</a></li>
-
- <li data-name="LuCI.form.TableSection#formvalue"><a href="LuCI.form.TableSection.html#formvalue">formvalue</a></li>
-
- <li data-name="LuCI.form.TableSection#getOption"><a href="LuCI.form.TableSection.html#getOption">getOption</a></li>
-
- <li data-name="LuCI.form.TableSection#getUIElement"><a href="LuCI.form.TableSection.html#getUIElement">getUIElement</a></li>
-
- <li data-name="LuCI.form.TableSection#load"><a href="LuCI.form.TableSection.html#load">load</a></li>
-
- <li data-name="LuCI.form.TableSection#option"><a href="LuCI.form.TableSection.html#option">option</a></li>
-
- <li data-name="LuCI.form.TableSection#parse"><a href="LuCI.form.TableSection.html#parse">parse</a></li>
-
- <li data-name="LuCI.form.TableSection#stripTags"><a href="LuCI.form.TableSection.html#stripTags">stripTags</a></li>
-
- <li data-name="LuCI.form.TableSection#tab"><a href="LuCI.form.TableSection.html#tab">tab</a></li>
-
- <li data-name="LuCI.form.TableSection#taboption"><a href="LuCI.form.TableSection.html#taboption">taboption</a></li>
-
- <li data-name="LuCI.form.TableSection#titleFn"><a href="LuCI.form.TableSection.html#titleFn">titleFn</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.form.TextValue">
- <span class="title">
- <a href="LuCI.form.TextValue.html">LuCI.form.TextValue</a>
-
- </span>
- <ul class="members itemMembers">
-
- <span class="subtitle">Members</span>
-
- <li data-name="LuCI.form.TextValue##cols"><a href="LuCI.form.TextValue.html#cols">cols</a></li>
-
- <li data-name="LuCI.form.TextValue##monospace"><a href="LuCI.form.TextValue.html#monospace">monospace</a></li>
-
- <li data-name="LuCI.form.TextValue##rows"><a href="LuCI.form.TextValue.html#rows">rows</a></li>
-
- <li data-name="LuCI.form.TextValue##wrap"><a href="LuCI.form.TextValue.html#wrap">wrap</a></li>
-
- <li data-name="LuCI.form.TextValue#datatype"><a href="LuCI.form.TextValue.html#datatype">datatype</a></li>
-
- <li data-name="LuCI.form.TextValue#default"><a href="LuCI.form.TextValue.html#default">default</a></li>
-
- <li data-name="LuCI.form.TextValue#editable"><a href="LuCI.form.TextValue.html#editable">editable</a></li>
-
- <li data-name="LuCI.form.TextValue#modalonly"><a href="LuCI.form.TextValue.html#modalonly">modalonly</a></li>
-
- <li data-name="LuCI.form.TextValue#onchange"><a href="LuCI.form.TextValue.html#onchange">onchange</a></li>
-
- <li data-name="LuCI.form.TextValue#optional"><a href="LuCI.form.TextValue.html#optional">optional</a></li>
-
- <li data-name="LuCI.form.TextValue#password"><a href="LuCI.form.TextValue.html#password">password</a></li>
-
- <li data-name="LuCI.form.TextValue#placeholder"><a href="LuCI.form.TextValue.html#placeholder">placeholder</a></li>
-
- <li data-name="LuCI.form.TextValue#readonly"><a href="LuCI.form.TextValue.html#readonly">readonly</a></li>
-
- <li data-name="LuCI.form.TextValue#retain"><a href="LuCI.form.TextValue.html#retain">retain</a></li>
-
- <li data-name="LuCI.form.TextValue#rmempty"><a href="LuCI.form.TextValue.html#rmempty">rmempty</a></li>
-
- <li data-name="LuCI.form.TextValue#uciconfig"><a href="LuCI.form.TextValue.html#uciconfig">uciconfig</a></li>
-
- <li data-name="LuCI.form.TextValue#ucioption"><a href="LuCI.form.TextValue.html#ucioption">ucioption</a></li>
-
- <li data-name="LuCI.form.TextValue#ucisection"><a href="LuCI.form.TextValue.html#ucisection">ucisection</a></li>
-
- <li data-name="LuCI.form.TextValue#validate"><a href="LuCI.form.TextValue.html#validate">validate</a></li>
-
- <li data-name="LuCI.form.TextValue#width"><a href="LuCI.form.TextValue.html#width">width</a></li>
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.form.TextValue#append"><a href="LuCI.form.TextValue.html#append">append</a></li>
-
- <li data-name="LuCI.form.TextValue#cbid"><a href="LuCI.form.TextValue.html#cbid">cbid</a></li>
-
- <li data-name="LuCI.form.TextValue#cfgvalue"><a href="LuCI.form.TextValue.html#cfgvalue">cfgvalue</a></li>
-
- <li data-name="LuCI.form.TextValue#depends"><a href="LuCI.form.TextValue.html#depends">depends</a></li>
-
- <li data-name="LuCI.form.TextValue#formvalue"><a href="LuCI.form.TextValue.html#formvalue">formvalue</a></li>
-
- <li data-name="LuCI.form.TextValue#getUIElement"><a href="LuCI.form.TextValue.html#getUIElement">getUIElement</a></li>
-
- <li data-name="LuCI.form.TextValue#getValidationError"><a href="LuCI.form.TextValue.html#getValidationError">getValidationError</a></li>
-
- <li data-name="LuCI.form.TextValue#isActive"><a href="LuCI.form.TextValue.html#isActive">isActive</a></li>
-
- <li data-name="LuCI.form.TextValue#isValid"><a href="LuCI.form.TextValue.html#isValid">isValid</a></li>
-
- <li data-name="LuCI.form.TextValue#load"><a href="LuCI.form.TextValue.html#load">load</a></li>
-
- <li data-name="LuCI.form.TextValue#parse"><a href="LuCI.form.TextValue.html#parse">parse</a></li>
-
- <li data-name="LuCI.form.TextValue#remove"><a href="LuCI.form.TextValue.html#remove">remove</a></li>
-
- <li data-name="LuCI.form.TextValue#stripTags"><a href="LuCI.form.TextValue.html#stripTags">stripTags</a></li>
-
- <li data-name="LuCI.form.TextValue#textvalue"><a href="LuCI.form.TextValue.html#textvalue">textvalue</a></li>
-
- <li data-name="LuCI.form.TextValue#titleFn"><a href="LuCI.form.TextValue.html#titleFn">titleFn</a></li>
-
- <li data-name="LuCI.form.TextValue#write"><a href="LuCI.form.TextValue.html#write">write</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.form.TypedSection">
- <span class="title">
- <a href="LuCI.form.TypedSection.html">LuCI.form.TypedSection</a>
-
- </span>
- <ul class="members itemMembers">
-
- <span class="subtitle">Members</span>
-
- <li data-name="LuCI.form.TypedSection##addbtntitle"><a href="LuCI.form.TypedSection.html#addbtntitle">addbtntitle</a></li>
-
- <li data-name="LuCI.form.TypedSection##addremove"><a href="LuCI.form.TypedSection.html#addremove">addremove</a></li>
-
- <li data-name="LuCI.form.TypedSection##anonymous"><a href="LuCI.form.TypedSection.html#anonymous">anonymous</a></li>
-
- <li data-name="LuCI.form.TypedSection##cloneable"><a href="LuCI.form.TypedSection.html#cloneable">cloneable</a></li>
-
- <li data-name="LuCI.form.TypedSection##tabbed"><a href="LuCI.form.TypedSection.html#tabbed">tabbed</a></li>
-
- <li data-name="LuCI.form.TypedSection##uciconfig"><a href="LuCI.form.TypedSection.html#uciconfig">uciconfig</a></li>
-
- <li data-name="LuCI.form.TypedSection#parentoption"><a href="LuCI.form.TypedSection.html#parentoption">parentoption</a></li>
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.form.TypedSection#append"><a href="LuCI.form.TypedSection.html#append">append</a></li>
-
- <li data-name="LuCI.form.TypedSection#cfgsections"><a href="LuCI.form.TypedSection.html#cfgsections">cfgsections</a></li>
-
- <li data-name="LuCI.form.TypedSection#cfgvalue"><a href="LuCI.form.TypedSection.html#cfgvalue">cfgvalue</a></li>
-
- <li data-name="LuCI.form.TypedSection#filter"><a href="LuCI.form.TypedSection.html#filter">filter</a></li>
-
- <li data-name="LuCI.form.TypedSection#formvalue"><a href="LuCI.form.TypedSection.html#formvalue">formvalue</a></li>
-
- <li data-name="LuCI.form.TypedSection#getOption"><a href="LuCI.form.TypedSection.html#getOption">getOption</a></li>
-
- <li data-name="LuCI.form.TypedSection#getUIElement"><a href="LuCI.form.TypedSection.html#getUIElement">getUIElement</a></li>
-
- <li data-name="LuCI.form.TypedSection#load"><a href="LuCI.form.TypedSection.html#load">load</a></li>
-
- <li data-name="LuCI.form.TypedSection#option"><a href="LuCI.form.TypedSection.html#option">option</a></li>
-
- <li data-name="LuCI.form.TypedSection#parse"><a href="LuCI.form.TypedSection.html#parse">parse</a></li>
-
- <li data-name="LuCI.form.TypedSection#render"><a href="LuCI.form.TypedSection.html#render">render</a></li>
-
- <li data-name="LuCI.form.TypedSection#stripTags"><a href="LuCI.form.TypedSection.html#stripTags">stripTags</a></li>
-
- <li data-name="LuCI.form.TypedSection#tab"><a href="LuCI.form.TypedSection.html#tab">tab</a></li>
-
- <li data-name="LuCI.form.TypedSection#taboption"><a href="LuCI.form.TypedSection.html#taboption">taboption</a></li>
-
- <li data-name="LuCI.form.TypedSection#titleFn"><a href="LuCI.form.TypedSection.html#titleFn">titleFn</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.form.Value">
- <span class="title">
- <a href="LuCI.form.Value.html">LuCI.form.Value</a>
-
- </span>
- <ul class="members itemMembers">
-
- <span class="subtitle">Members</span>
-
- <li data-name="LuCI.form.Value##password"><a href="LuCI.form.Value.html#password">password</a></li>
-
- <li data-name="LuCI.form.Value##placeholder"><a href="LuCI.form.Value.html#placeholder">placeholder</a></li>
-
- <li data-name="LuCI.form.Value#datatype"><a href="LuCI.form.Value.html#datatype">datatype</a></li>
-
- <li data-name="LuCI.form.Value#default"><a href="LuCI.form.Value.html#default">default</a></li>
-
- <li data-name="LuCI.form.Value#editable"><a href="LuCI.form.Value.html#editable">editable</a></li>
-
- <li data-name="LuCI.form.Value#modalonly"><a href="LuCI.form.Value.html#modalonly">modalonly</a></li>
-
- <li data-name="LuCI.form.Value#onchange"><a href="LuCI.form.Value.html#onchange">onchange</a></li>
-
- <li data-name="LuCI.form.Value#optional"><a href="LuCI.form.Value.html#optional">optional</a></li>
-
- <li data-name="LuCI.form.Value#readonly"><a href="LuCI.form.Value.html#readonly">readonly</a></li>
-
- <li data-name="LuCI.form.Value#retain"><a href="LuCI.form.Value.html#retain">retain</a></li>
-
- <li data-name="LuCI.form.Value#rmempty"><a href="LuCI.form.Value.html#rmempty">rmempty</a></li>
-
- <li data-name="LuCI.form.Value#uciconfig"><a href="LuCI.form.Value.html#uciconfig">uciconfig</a></li>
-
- <li data-name="LuCI.form.Value#ucioption"><a href="LuCI.form.Value.html#ucioption">ucioption</a></li>
-
- <li data-name="LuCI.form.Value#ucisection"><a href="LuCI.form.Value.html#ucisection">ucisection</a></li>
-
- <li data-name="LuCI.form.Value#validate"><a href="LuCI.form.Value.html#validate">validate</a></li>
-
- <li data-name="LuCI.form.Value#width"><a href="LuCI.form.Value.html#width">width</a></li>
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.form.Value#append"><a href="LuCI.form.Value.html#append">append</a></li>
-
- <li data-name="LuCI.form.Value#cbid"><a href="LuCI.form.Value.html#cbid">cbid</a></li>
-
- <li data-name="LuCI.form.Value#cfgvalue"><a href="LuCI.form.Value.html#cfgvalue">cfgvalue</a></li>
-
- <li data-name="LuCI.form.Value#depends"><a href="LuCI.form.Value.html#depends">depends</a></li>
-
- <li data-name="LuCI.form.Value#formvalue"><a href="LuCI.form.Value.html#formvalue">formvalue</a></li>
-
- <li data-name="LuCI.form.Value#getUIElement"><a href="LuCI.form.Value.html#getUIElement">getUIElement</a></li>
-
- <li data-name="LuCI.form.Value#getValidationError"><a href="LuCI.form.Value.html#getValidationError">getValidationError</a></li>
-
- <li data-name="LuCI.form.Value#isActive"><a href="LuCI.form.Value.html#isActive">isActive</a></li>
-
- <li data-name="LuCI.form.Value#isValid"><a href="LuCI.form.Value.html#isValid">isValid</a></li>
-
- <li data-name="LuCI.form.Value#load"><a href="LuCI.form.Value.html#load">load</a></li>
-
- <li data-name="LuCI.form.Value#parse"><a href="LuCI.form.Value.html#parse">parse</a></li>
-
- <li data-name="LuCI.form.Value#remove"><a href="LuCI.form.Value.html#remove">remove</a></li>
-
- <li data-name="LuCI.form.Value#render"><a href="LuCI.form.Value.html#render">render</a></li>
-
- <li data-name="LuCI.form.Value#stripTags"><a href="LuCI.form.Value.html#stripTags">stripTags</a></li>
-
- <li data-name="LuCI.form.Value#textvalue"><a href="LuCI.form.Value.html#textvalue">textvalue</a></li>
-
- <li data-name="LuCI.form.Value#titleFn"><a href="LuCI.form.Value.html#titleFn">titleFn</a></li>
-
- <li data-name="LuCI.form.Value#value"><a href="LuCI.form.Value.html#value">value</a></li>
-
- <li data-name="LuCI.form.Value#write"><a href="LuCI.form.Value.html#write">write</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.fs">
- <span class="title">
- <a href="LuCI.fs.html">LuCI.fs</a>
-
- </span>
- <ul class="members itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- <span class="subtitle">Typedefs</span>
-
- <li data-name="LuCI.fs.FileExecResult"><a href="LuCI.fs.html#.FileExecResult">FileExecResult</a></li>
-
- <li data-name="LuCI.fs.FileStatEntry"><a href="LuCI.fs.html#.FileStatEntry">FileStatEntry</a></li>
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.fs#exec"><a href="LuCI.fs.html#exec">exec</a></li>
-
- <li data-name="LuCI.fs#exec_direct"><a href="LuCI.fs.html#exec_direct">exec_direct</a></li>
-
- <li data-name="LuCI.fs#lines"><a href="LuCI.fs.html#lines">lines</a></li>
-
- <li data-name="LuCI.fs#list"><a href="LuCI.fs.html#list">list</a></li>
-
- <li data-name="LuCI.fs#read"><a href="LuCI.fs.html#read">read</a></li>
-
- <li data-name="LuCI.fs#read_direct"><a href="LuCI.fs.html#read_direct">read_direct</a></li>
-
- <li data-name="LuCI.fs#remove"><a href="LuCI.fs.html#remove">remove</a></li>
-
- <li data-name="LuCI.fs#stat"><a href="LuCI.fs.html#stat">stat</a></li>
-
- <li data-name="LuCI.fs#trimmed"><a href="LuCI.fs.html#trimmed">trimmed</a></li>
-
- <li data-name="LuCI.fs#write"><a href="LuCI.fs.html#write">write</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.headers">
- <span class="title">
- <a href="LuCI.headers.html">LuCI.headers</a>
-
- </span>
- <ul class="members itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.headers#get"><a href="LuCI.headers.html#get">get</a></li>
-
- <li data-name="LuCI.headers#has"><a href="LuCI.headers.html#has">has</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.network">
- <span class="title">
- <a href="LuCI.network.html">LuCI.network</a>
-
- </span>
- <ul class="members itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- <span class="subtitle">Typedefs</span>
-
- <li data-name="LuCI.network.SwitchTopology"><a href="LuCI.network.html#.SwitchTopology">SwitchTopology</a></li>
-
- <li data-name="LuCI.network.WifiEncryption"><a href="LuCI.network.html#.WifiEncryption">WifiEncryption</a></li>
-
- <li data-name="LuCI.network.WifiPeerEntry"><a href="LuCI.network.html#.WifiPeerEntry">WifiPeerEntry</a></li>
-
- <li data-name="LuCI.network.WifiRateEntry"><a href="LuCI.network.html#.WifiRateEntry">WifiRateEntry</a></li>
-
- <li data-name="LuCI.network.WifiScanResult"><a href="LuCI.network.html#.WifiScanResult">WifiScanResult</a></li>
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.network#addNetwork"><a href="LuCI.network.html#addNetwork">addNetwork</a></li>
-
- <li data-name="LuCI.network#addWifiNetwork"><a href="LuCI.network.html#addWifiNetwork">addWifiNetwork</a></li>
-
- <li data-name="LuCI.network#deleteNetwork"><a href="LuCI.network.html#deleteNetwork">deleteNetwork</a></li>
-
- <li data-name="LuCI.network#deleteWifiNetwork"><a href="LuCI.network.html#deleteWifiNetwork">deleteWifiNetwork</a></li>
-
- <li data-name="LuCI.network#flushCache"><a href="LuCI.network.html#flushCache">flushCache</a></li>
-
- <li data-name="LuCI.network#formatWifiEncryption"><a href="LuCI.network.html#formatWifiEncryption">formatWifiEncryption</a></li>
-
- <li data-name="LuCI.network#getDevice"><a href="LuCI.network.html#getDevice">getDevice</a></li>
-
- <li data-name="LuCI.network#getDevices"><a href="LuCI.network.html#getDevices">getDevices</a></li>
-
- <li data-name="LuCI.network#getDSLModemType"><a href="LuCI.network.html#getDSLModemType">getDSLModemType</a></li>
-
- <li data-name="LuCI.network#getHostHints"><a href="LuCI.network.html#getHostHints">getHostHints</a></li>
-
- <li data-name="LuCI.network#getIfnameOf"><a href="LuCI.network.html#getIfnameOf">getIfnameOf</a></li>
-
- <li data-name="LuCI.network#getNetwork"><a href="LuCI.network.html#getNetwork">getNetwork</a></li>
-
- <li data-name="LuCI.network#getNetworks"><a href="LuCI.network.html#getNetworks">getNetworks</a></li>
-
- <li data-name="LuCI.network#getProtocol"><a href="LuCI.network.html#getProtocol">getProtocol</a></li>
-
- <li data-name="LuCI.network#getProtocols"><a href="LuCI.network.html#getProtocols">getProtocols</a></li>
-
- <li data-name="LuCI.network#getSwitchTopologies"><a href="LuCI.network.html#getSwitchTopologies">getSwitchTopologies</a></li>
-
- <li data-name="LuCI.network#getWAN6Networks"><a href="LuCI.network.html#getWAN6Networks">getWAN6Networks</a></li>
-
- <li data-name="LuCI.network#getWANNetworks"><a href="LuCI.network.html#getWANNetworks">getWANNetworks</a></li>
-
- <li data-name="LuCI.network#getWifiDevice"><a href="LuCI.network.html#getWifiDevice">getWifiDevice</a></li>
-
- <li data-name="LuCI.network#getWifiDevices"><a href="LuCI.network.html#getWifiDevices">getWifiDevices</a></li>
-
- <li data-name="LuCI.network#getWifiNetwork"><a href="LuCI.network.html#getWifiNetwork">getWifiNetwork</a></li>
-
- <li data-name="LuCI.network#getWifiNetworks"><a href="LuCI.network.html#getWifiNetworks">getWifiNetworks</a></li>
-
- <li data-name="LuCI.network#isIgnoredDevice"><a href="LuCI.network.html#isIgnoredDevice">isIgnoredDevice</a></li>
-
- <li data-name="LuCI.network#maskToPrefix"><a href="LuCI.network.html#maskToPrefix">maskToPrefix</a></li>
-
- <li data-name="LuCI.network#prefixToMask"><a href="LuCI.network.html#prefixToMask">prefixToMask</a></li>
-
- <li data-name="LuCI.network#registerErrorCode"><a href="LuCI.network.html#registerErrorCode">registerErrorCode</a></li>
-
- <li data-name="LuCI.network#registerPatternVirtual"><a href="LuCI.network.html#registerPatternVirtual">registerPatternVirtual</a></li>
-
- <li data-name="LuCI.network#registerProtocol"><a href="LuCI.network.html#registerProtocol">registerProtocol</a></li>
-
- <li data-name="LuCI.network#renameNetwork"><a href="LuCI.network.html#renameNetwork">renameNetwork</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.network.Device">
- <span class="title">
- <a href="LuCI.network.Device.html">LuCI.network.Device</a>
-
- </span>
- <ul class="members itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.network.Device#getBridgeID"><a href="LuCI.network.Device.html#getBridgeID">getBridgeID</a></li>
-
- <li data-name="LuCI.network.Device#getBridgeSTP"><a href="LuCI.network.Device.html#getBridgeSTP">getBridgeSTP</a></li>
-
- <li data-name="LuCI.network.Device#getCarrier"><a href="LuCI.network.Device.html#getCarrier">getCarrier</a></li>
-
- <li data-name="LuCI.network.Device#getDuplex"><a href="LuCI.network.Device.html#getDuplex">getDuplex</a></li>
-
- <li data-name="LuCI.network.Device#getI18n"><a href="LuCI.network.Device.html#getI18n">getI18n</a></li>
-
- <li data-name="LuCI.network.Device#getIP6Addrs"><a href="LuCI.network.Device.html#getIP6Addrs">getIP6Addrs</a></li>
-
- <li data-name="LuCI.network.Device#getIPAddrs"><a href="LuCI.network.Device.html#getIPAddrs">getIPAddrs</a></li>
-
- <li data-name="LuCI.network.Device#getMAC"><a href="LuCI.network.Device.html#getMAC">getMAC</a></li>
-
- <li data-name="LuCI.network.Device#getMTU"><a href="LuCI.network.Device.html#getMTU">getMTU</a></li>
-
- <li data-name="LuCI.network.Device#getName"><a href="LuCI.network.Device.html#getName">getName</a></li>
-
- <li data-name="LuCI.network.Device#getNetwork"><a href="LuCI.network.Device.html#getNetwork">getNetwork</a></li>
-
- <li data-name="LuCI.network.Device#getNetworks"><a href="LuCI.network.Device.html#getNetworks">getNetworks</a></li>
-
- <li data-name="LuCI.network.Device#getParent"><a href="LuCI.network.Device.html#getParent">getParent</a></li>
-
- <li data-name="LuCI.network.Device#getPorts"><a href="LuCI.network.Device.html#getPorts">getPorts</a></li>
-
- <li data-name="LuCI.network.Device#getRXBytes"><a href="LuCI.network.Device.html#getRXBytes">getRXBytes</a></li>
-
- <li data-name="LuCI.network.Device#getRXPackets"><a href="LuCI.network.Device.html#getRXPackets">getRXPackets</a></li>
-
- <li data-name="LuCI.network.Device#getShortName"><a href="LuCI.network.Device.html#getShortName">getShortName</a></li>
-
- <li data-name="LuCI.network.Device#getSpeed"><a href="LuCI.network.Device.html#getSpeed">getSpeed</a></li>
-
- <li data-name="LuCI.network.Device#getTXBytes"><a href="LuCI.network.Device.html#getTXBytes">getTXBytes</a></li>
-
- <li data-name="LuCI.network.Device#getTXPackets"><a href="LuCI.network.Device.html#getTXPackets">getTXPackets</a></li>
-
- <li data-name="LuCI.network.Device#getType"><a href="LuCI.network.Device.html#getType">getType</a></li>
-
- <li data-name="LuCI.network.Device#getTypeI18n"><a href="LuCI.network.Device.html#getTypeI18n">getTypeI18n</a></li>
-
- <li data-name="LuCI.network.Device#getWifiNetwork"><a href="LuCI.network.Device.html#getWifiNetwork">getWifiNetwork</a></li>
-
- <li data-name="LuCI.network.Device#isBridge"><a href="LuCI.network.Device.html#isBridge">isBridge</a></li>
-
- <li data-name="LuCI.network.Device#isBridgePort"><a href="LuCI.network.Device.html#isBridgePort">isBridgePort</a></li>
-
- <li data-name="LuCI.network.Device#isUp"><a href="LuCI.network.Device.html#isUp">isUp</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.network.Hosts">
- <span class="title">
- <a href="LuCI.network.Hosts.html">LuCI.network.Hosts</a>
-
- </span>
- <ul class="members itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.network.Hosts#getHostnameByIP6Addr"><a href="LuCI.network.Hosts.html#getHostnameByIP6Addr">getHostnameByIP6Addr</a></li>
-
- <li data-name="LuCI.network.Hosts#getHostnameByIPAddr"><a href="LuCI.network.Hosts.html#getHostnameByIPAddr">getHostnameByIPAddr</a></li>
-
- <li data-name="LuCI.network.Hosts#getHostnameByMACAddr"><a href="LuCI.network.Hosts.html#getHostnameByMACAddr">getHostnameByMACAddr</a></li>
-
- <li data-name="LuCI.network.Hosts#getIP6AddrByMACAddr"><a href="LuCI.network.Hosts.html#getIP6AddrByMACAddr">getIP6AddrByMACAddr</a></li>
-
- <li data-name="LuCI.network.Hosts#getIPAddrByMACAddr"><a href="LuCI.network.Hosts.html#getIPAddrByMACAddr">getIPAddrByMACAddr</a></li>
-
- <li data-name="LuCI.network.Hosts#getMACAddrByIP6Addr"><a href="LuCI.network.Hosts.html#getMACAddrByIP6Addr">getMACAddrByIP6Addr</a></li>
-
- <li data-name="LuCI.network.Hosts#getMACAddrByIPAddr"><a href="LuCI.network.Hosts.html#getMACAddrByIPAddr">getMACAddrByIPAddr</a></li>
-
- <li data-name="LuCI.network.Hosts#getMACHints"><a href="LuCI.network.Hosts.html#getMACHints">getMACHints</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.network.Protocol">
- <span class="title">
- <a href="LuCI.network.Protocol.html">LuCI.network.Protocol</a>
-
- </span>
- <ul class="members itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.network.Protocol#addDevice"><a href="LuCI.network.Protocol.html#addDevice">addDevice</a></li>
-
- <li data-name="LuCI.network.Protocol#containsDevice"><a href="LuCI.network.Protocol.html#containsDevice">containsDevice</a></li>
-
- <li data-name="LuCI.network.Protocol#deleteConfiguration"><a href="LuCI.network.Protocol.html#deleteConfiguration">deleteConfiguration</a></li>
-
- <li data-name="LuCI.network.Protocol#deleteDevice"><a href="LuCI.network.Protocol.html#deleteDevice">deleteDevice</a></li>
-
- <li data-name="LuCI.network.Protocol#get"><a href="LuCI.network.Protocol.html#get">get</a></li>
-
- <li data-name="LuCI.network.Protocol#getDevice"><a href="LuCI.network.Protocol.html#getDevice">getDevice</a></li>
-
- <li data-name="LuCI.network.Protocol#getDevices"><a href="LuCI.network.Protocol.html#getDevices">getDevices</a></li>
-
- <li data-name="LuCI.network.Protocol#getDNS6Addrs"><a href="LuCI.network.Protocol.html#getDNS6Addrs">getDNS6Addrs</a></li>
-
- <li data-name="LuCI.network.Protocol#getDNSAddrs"><a href="LuCI.network.Protocol.html#getDNSAddrs">getDNSAddrs</a></li>
-
- <li data-name="LuCI.network.Protocol#getErrors"><a href="LuCI.network.Protocol.html#getErrors">getErrors</a></li>
-
- <li data-name="LuCI.network.Protocol#getExpiry"><a href="LuCI.network.Protocol.html#getExpiry">getExpiry</a></li>
-
- <li data-name="LuCI.network.Protocol#getGateway6Addr"><a href="LuCI.network.Protocol.html#getGateway6Addr">getGateway6Addr</a></li>
-
- <li data-name="LuCI.network.Protocol#getGatewayAddr"><a href="LuCI.network.Protocol.html#getGatewayAddr">getGatewayAddr</a></li>
-
- <li data-name="LuCI.network.Protocol#getI18n"><a href="LuCI.network.Protocol.html#getI18n">getI18n</a></li>
-
- <li data-name="LuCI.network.Protocol#getIfname"><a href="LuCI.network.Protocol.html#getIfname">getIfname</a></li>
-
- <li data-name="LuCI.network.Protocol#getIP6Addr"><a href="LuCI.network.Protocol.html#getIP6Addr">getIP6Addr</a></li>
-
- <li data-name="LuCI.network.Protocol#getIP6Addrs"><a href="LuCI.network.Protocol.html#getIP6Addrs">getIP6Addrs</a></li>
-
- <li data-name="LuCI.network.Protocol#getIP6Prefix"><a href="LuCI.network.Protocol.html#getIP6Prefix">getIP6Prefix</a></li>
-
- <li data-name="LuCI.network.Protocol#getIP6Prefixes"><a href="LuCI.network.Protocol.html#getIP6Prefixes">getIP6Prefixes</a></li>
-
- <li data-name="LuCI.network.Protocol#getIPAddr"><a href="LuCI.network.Protocol.html#getIPAddr">getIPAddr</a></li>
-
- <li data-name="LuCI.network.Protocol#getIPAddrs"><a href="LuCI.network.Protocol.html#getIPAddrs">getIPAddrs</a></li>
-
- <li data-name="LuCI.network.Protocol#getL2Device"><a href="LuCI.network.Protocol.html#getL2Device">getL2Device</a></li>
-
- <li data-name="LuCI.network.Protocol#getL3Device"><a href="LuCI.network.Protocol.html#getL3Device">getL3Device</a></li>
-
- <li data-name="LuCI.network.Protocol#getMetric"><a href="LuCI.network.Protocol.html#getMetric">getMetric</a></li>
-
- <li data-name="LuCI.network.Protocol#getName"><a href="LuCI.network.Protocol.html#getName">getName</a></li>
-
- <li data-name="LuCI.network.Protocol#getNetmask"><a href="LuCI.network.Protocol.html#getNetmask">getNetmask</a></li>
-
- <li data-name="LuCI.network.Protocol#getOpkgPackage"><a href="LuCI.network.Protocol.html#getOpkgPackage">getOpkgPackage</a></li>
-
- <li data-name="LuCI.network.Protocol#getProtocol"><a href="LuCI.network.Protocol.html#getProtocol">getProtocol</a></li>
-
- <li data-name="LuCI.network.Protocol#getType"><a href="LuCI.network.Protocol.html#getType">getType</a></li>
-
- <li data-name="LuCI.network.Protocol#getUptime"><a href="LuCI.network.Protocol.html#getUptime">getUptime</a></li>
-
- <li data-name="LuCI.network.Protocol#getZoneName"><a href="LuCI.network.Protocol.html#getZoneName">getZoneName</a></li>
-
- <li data-name="LuCI.network.Protocol#isAlias"><a href="LuCI.network.Protocol.html#isAlias">isAlias</a></li>
-
- <li data-name="LuCI.network.Protocol#isBridge"><a href="LuCI.network.Protocol.html#isBridge">isBridge</a></li>
-
- <li data-name="LuCI.network.Protocol#isCreateable"><a href="LuCI.network.Protocol.html#isCreateable">isCreateable</a></li>
-
- <li data-name="LuCI.network.Protocol#isDynamic"><a href="LuCI.network.Protocol.html#isDynamic">isDynamic</a></li>
-
- <li data-name="LuCI.network.Protocol#isEmpty"><a href="LuCI.network.Protocol.html#isEmpty">isEmpty</a></li>
-
- <li data-name="LuCI.network.Protocol#isFloating"><a href="LuCI.network.Protocol.html#isFloating">isFloating</a></li>
-
- <li data-name="LuCI.network.Protocol#isInstalled"><a href="LuCI.network.Protocol.html#isInstalled">isInstalled</a></li>
-
- <li data-name="LuCI.network.Protocol#isUp"><a href="LuCI.network.Protocol.html#isUp">isUp</a></li>
-
- <li data-name="LuCI.network.Protocol#isVirtual"><a href="LuCI.network.Protocol.html#isVirtual">isVirtual</a></li>
-
- <li data-name="LuCI.network.Protocol#set"><a href="LuCI.network.Protocol.html#set">set</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.network.WifiDevice">
- <span class="title">
- <a href="LuCI.network.WifiDevice.html">LuCI.network.WifiDevice</a>
-
- </span>
- <ul class="members itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.network.WifiDevice#addWifiNetwork"><a href="LuCI.network.WifiDevice.html#addWifiNetwork">addWifiNetwork</a></li>
-
- <li data-name="LuCI.network.WifiDevice#deleteWifiNetwork"><a href="LuCI.network.WifiDevice.html#deleteWifiNetwork">deleteWifiNetwork</a></li>
-
- <li data-name="LuCI.network.WifiDevice#get"><a href="LuCI.network.WifiDevice.html#get">get</a></li>
-
- <li data-name="LuCI.network.WifiDevice#getHTModes"><a href="LuCI.network.WifiDevice.html#getHTModes">getHTModes</a></li>
-
- <li data-name="LuCI.network.WifiDevice#getHWModes"><a href="LuCI.network.WifiDevice.html#getHWModes">getHWModes</a></li>
-
- <li data-name="LuCI.network.WifiDevice#getI18n"><a href="LuCI.network.WifiDevice.html#getI18n">getI18n</a></li>
-
- <li data-name="LuCI.network.WifiDevice#getName"><a href="LuCI.network.WifiDevice.html#getName">getName</a></li>
-
- <li data-name="LuCI.network.WifiDevice#getScanList"><a href="LuCI.network.WifiDevice.html#getScanList">getScanList</a></li>
-
- <li data-name="LuCI.network.WifiDevice#getWifiNetwork"><a href="LuCI.network.WifiDevice.html#getWifiNetwork">getWifiNetwork</a></li>
-
- <li data-name="LuCI.network.WifiDevice#getWifiNetworks"><a href="LuCI.network.WifiDevice.html#getWifiNetworks">getWifiNetworks</a></li>
-
- <li data-name="LuCI.network.WifiDevice#isDisabled"><a href="LuCI.network.WifiDevice.html#isDisabled">isDisabled</a></li>
-
- <li data-name="LuCI.network.WifiDevice#isUp"><a href="LuCI.network.WifiDevice.html#isUp">isUp</a></li>
-
- <li data-name="LuCI.network.WifiDevice#set"><a href="LuCI.network.WifiDevice.html#set">set</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.network.WifiNetwork">
- <span class="title">
- <a href="LuCI.network.WifiNetwork.html">LuCI.network.WifiNetwork</a>
-
- </span>
- <ul class="members itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.network.WifiNetwork#disconnectClient"><a href="LuCI.network.WifiNetwork.html#disconnectClient">disconnectClient</a></li>
-
- <li data-name="LuCI.network.WifiNetwork#get"><a href="LuCI.network.WifiNetwork.html#get">get</a></li>
-
- <li data-name="LuCI.network.WifiNetwork#getActiveBSSID"><a href="LuCI.network.WifiNetwork.html#getActiveBSSID">getActiveBSSID</a></li>
-
- <li data-name="LuCI.network.WifiNetwork#getActiveEncryption"><a href="LuCI.network.WifiNetwork.html#getActiveEncryption">getActiveEncryption</a></li>
-
- <li data-name="LuCI.network.WifiNetwork#getActiveMode"><a href="LuCI.network.WifiNetwork.html#getActiveMode">getActiveMode</a></li>
-
- <li data-name="LuCI.network.WifiNetwork#getActiveModeI18n"><a href="LuCI.network.WifiNetwork.html#getActiveModeI18n">getActiveModeI18n</a></li>
-
- <li data-name="LuCI.network.WifiNetwork#getActiveSSID"><a href="LuCI.network.WifiNetwork.html#getActiveSSID">getActiveSSID</a></li>
-
- <li data-name="LuCI.network.WifiNetwork#getAssocList"><a href="LuCI.network.WifiNetwork.html#getAssocList">getAssocList</a></li>
-
- <li data-name="LuCI.network.WifiNetwork#getBitRate"><a href="LuCI.network.WifiNetwork.html#getBitRate">getBitRate</a></li>
-
- <li data-name="LuCI.network.WifiNetwork#getBSSID"><a href="LuCI.network.WifiNetwork.html#getBSSID">getBSSID</a></li>
-
- <li data-name="LuCI.network.WifiNetwork#getChannel"><a href="LuCI.network.WifiNetwork.html#getChannel">getChannel</a></li>
-
- <li data-name="LuCI.network.WifiNetwork#getCountryCode"><a href="LuCI.network.WifiNetwork.html#getCountryCode">getCountryCode</a></li>
-
- <li data-name="LuCI.network.WifiNetwork#getDevice"><a href="LuCI.network.WifiNetwork.html#getDevice">getDevice</a></li>
-
- <li data-name="LuCI.network.WifiNetwork#getFrequency"><a href="LuCI.network.WifiNetwork.html#getFrequency">getFrequency</a></li>
-
- <li data-name="LuCI.network.WifiNetwork#getI18n"><a href="LuCI.network.WifiNetwork.html#getI18n">getI18n</a></li>
-
- <li data-name="LuCI.network.WifiNetwork#getID"><a href="LuCI.network.WifiNetwork.html#getID">getID</a></li>
-
- <li data-name="LuCI.network.WifiNetwork#getIfname"><a href="LuCI.network.WifiNetwork.html#getIfname">getIfname</a></li>
-
- <li data-name="LuCI.network.WifiNetwork#getMeshID"><a href="LuCI.network.WifiNetwork.html#getMeshID">getMeshID</a></li>
-
- <li data-name="LuCI.network.WifiNetwork#getMode"><a href="LuCI.network.WifiNetwork.html#getMode">getMode</a></li>
-
- <li data-name="LuCI.network.WifiNetwork#getName"><a href="LuCI.network.WifiNetwork.html#getName">getName</a></li>
-
- <li data-name="LuCI.network.WifiNetwork#getNetwork"><a href="LuCI.network.WifiNetwork.html#getNetwork">getNetwork</a></li>
-
- <li data-name="LuCI.network.WifiNetwork#getNetworkNames"><a href="LuCI.network.WifiNetwork.html#getNetworkNames">getNetworkNames</a></li>
-
- <li data-name="LuCI.network.WifiNetwork#getNetworks"><a href="LuCI.network.WifiNetwork.html#getNetworks">getNetworks</a></li>
-
- <li data-name="LuCI.network.WifiNetwork#getNoise"><a href="LuCI.network.WifiNetwork.html#getNoise">getNoise</a></li>
-
- <li data-name="LuCI.network.WifiNetwork#getShortName"><a href="LuCI.network.WifiNetwork.html#getShortName">getShortName</a></li>
-
- <li data-name="LuCI.network.WifiNetwork#getSignal"><a href="LuCI.network.WifiNetwork.html#getSignal">getSignal</a></li>
-
- <li data-name="LuCI.network.WifiNetwork#getSignalLevel"><a href="LuCI.network.WifiNetwork.html#getSignalLevel">getSignalLevel</a></li>
-
- <li data-name="LuCI.network.WifiNetwork#getSignalPercent"><a href="LuCI.network.WifiNetwork.html#getSignalPercent">getSignalPercent</a></li>
-
- <li data-name="LuCI.network.WifiNetwork#getSSID"><a href="LuCI.network.WifiNetwork.html#getSSID">getSSID</a></li>
-
- <li data-name="LuCI.network.WifiNetwork#getTXPower"><a href="LuCI.network.WifiNetwork.html#getTXPower">getTXPower</a></li>
-
- <li data-name="LuCI.network.WifiNetwork#getTXPowerOffset"><a href="LuCI.network.WifiNetwork.html#getTXPowerOffset">getTXPowerOffset</a></li>
-
- <li data-name="LuCI.network.WifiNetwork#getVlanIfnames"><a href="LuCI.network.WifiNetwork.html#getVlanIfnames">getVlanIfnames</a></li>
-
- <li data-name="LuCI.network.WifiNetwork#getWifiDevice"><a href="LuCI.network.WifiNetwork.html#getWifiDevice">getWifiDevice</a></li>
-
- <li data-name="LuCI.network.WifiNetwork#getWifiDeviceName"><a href="LuCI.network.WifiNetwork.html#getWifiDeviceName">getWifiDeviceName</a></li>
-
- <li data-name="LuCI.network.WifiNetwork#isClientDisconnectSupported"><a href="LuCI.network.WifiNetwork.html#isClientDisconnectSupported">isClientDisconnectSupported</a></li>
-
- <li data-name="LuCI.network.WifiNetwork#isDisabled"><a href="LuCI.network.WifiNetwork.html#isDisabled">isDisabled</a></li>
-
- <li data-name="LuCI.network.WifiNetwork#isUp"><a href="LuCI.network.WifiNetwork.html#isUp">isUp</a></li>
-
- <li data-name="LuCI.network.WifiNetwork#set"><a href="LuCI.network.WifiNetwork.html#set">set</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.poll">
- <span class="title">
- <a href="LuCI.poll.html">LuCI.poll</a>
-
- </span>
- <ul class="members itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.poll#active"><a href="LuCI.poll.html#active">active</a></li>
-
- <li data-name="LuCI.poll#add"><a href="LuCI.poll.html#add">add</a></li>
-
- <li data-name="LuCI.poll#remove"><a href="LuCI.poll.html#remove">remove</a></li>
-
- <li data-name="LuCI.poll#start"><a href="LuCI.poll.html#start">start</a></li>
-
- <li data-name="LuCI.poll#stop"><a href="LuCI.poll.html#stop">stop</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.request">
- <span class="title">
- <a href="LuCI.request.html">LuCI.request</a>
-
- </span>
- <ul class="members itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- <span class="subtitle">Typedefs</span>
-
- <li data-name="LuCI.request.interceptorFn"><a href="LuCI.request.html#.interceptorFn">interceptorFn</a></li>
-
- <li data-name="LuCI.request.RequestOptions"><a href="LuCI.request.html#.RequestOptions">RequestOptions</a></li>
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.request#addInterceptor"><a href="LuCI.request.html#addInterceptor">addInterceptor</a></li>
-
- <li data-name="LuCI.request#expandURL"><a href="LuCI.request.html#expandURL">expandURL</a></li>
-
- <li data-name="LuCI.request#get"><a href="LuCI.request.html#get">get</a></li>
-
- <li data-name="LuCI.request#post"><a href="LuCI.request.html#post">post</a></li>
-
- <li data-name="LuCI.request#removeInterceptor"><a href="LuCI.request.html#removeInterceptor">removeInterceptor</a></li>
-
- <li data-name="LuCI.request#request"><a href="LuCI.request.html#request">request</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.request.poll">
- <span class="title">
- <a href="LuCI.request.poll.html">LuCI.request.poll</a>
-
- </span>
- <ul class="members itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- <span class="subtitle">Typedefs</span>
-
- <li data-name="LuCI.request.poll~callbackFn"><a href="LuCI.request.poll.html#~callbackFn">callbackFn</a></li>
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.request.poll#active"><a href="LuCI.request.poll.html#active">active</a></li>
-
- <li data-name="LuCI.request.poll#add"><a href="LuCI.request.poll.html#add">add</a></li>
-
- <li data-name="LuCI.request.poll#remove"><a href="LuCI.request.poll.html#remove">remove</a></li>
-
- <li data-name="LuCI.request.poll#start"><a href="LuCI.request.poll.html#start">start</a></li>
-
- <li data-name="LuCI.request.poll#stop"><a href="LuCI.request.poll.html#stop">stop</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.response">
- <span class="title">
- <a href="LuCI.response.html">LuCI.response</a>
-
- </span>
- <ul class="members itemMembers">
-
- <span class="subtitle">Members</span>
-
- <li data-name="LuCI.response#duration"><a href="LuCI.response.html#duration">duration</a></li>
-
- <li data-name="LuCI.response#headers"><a href="LuCI.response.html#headers">headers</a></li>
-
- <li data-name="LuCI.response#ok"><a href="LuCI.response.html#ok">ok</a></li>
-
- <li data-name="LuCI.response#status"><a href="LuCI.response.html#status">status</a></li>
-
- <li data-name="LuCI.response#statusText"><a href="LuCI.response.html#statusText">statusText</a></li>
-
- <li data-name="LuCI.response#url"><a href="LuCI.response.html#url">url</a></li>
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.response#blob"><a href="LuCI.response.html#blob">blob</a></li>
-
- <li data-name="LuCI.response#clone"><a href="LuCI.response.html#clone">clone</a></li>
-
- <li data-name="LuCI.response#json"><a href="LuCI.response.html#json">json</a></li>
-
- <li data-name="LuCI.response#text"><a href="LuCI.response.html#text">text</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.rpc">
- <span class="title">
- <a href="LuCI.rpc.html">LuCI.rpc</a>
-
- </span>
- <ul class="members itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- <span class="subtitle">Typedefs</span>
-
- <li data-name="LuCI.rpc.DeclareOptions"><a href="LuCI.rpc.html#.DeclareOptions">DeclareOptions</a></li>
-
- <li data-name="LuCI.rpc~filterFn"><a href="LuCI.rpc.html#~filterFn">filterFn</a></li>
-
- <li data-name="LuCI.rpc~interceptorFn"><a href="LuCI.rpc.html#~interceptorFn">interceptorFn</a></li>
-
- <li data-name="LuCI.rpc~invokeFn"><a href="LuCI.rpc.html#~invokeFn">invokeFn</a></li>
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.rpc#addInterceptor"><a href="LuCI.rpc.html#addInterceptor">addInterceptor</a></li>
-
- <li data-name="LuCI.rpc#declare"><a href="LuCI.rpc.html#declare">declare</a></li>
-
- <li data-name="LuCI.rpc#getBaseURL"><a href="LuCI.rpc.html#getBaseURL">getBaseURL</a></li>
-
- <li data-name="LuCI.rpc#getSessionID"><a href="LuCI.rpc.html#getSessionID">getSessionID</a></li>
-
- <li data-name="LuCI.rpc#getStatusText"><a href="LuCI.rpc.html#getStatusText">getStatusText</a></li>
-
- <li data-name="LuCI.rpc#list"><a href="LuCI.rpc.html#list">list</a></li>
-
- <li data-name="LuCI.rpc#removeInterceptor"><a href="LuCI.rpc.html#removeInterceptor">removeInterceptor</a></li>
-
- <li data-name="LuCI.rpc#setBaseURL"><a href="LuCI.rpc.html#setBaseURL">setBaseURL</a></li>
-
- <li data-name="LuCI.rpc#setSessionID"><a href="LuCI.rpc.html#setSessionID">setSessionID</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.session">
- <span class="title">
- <a href="LuCI.session.html">LuCI.session</a>
-
- </span>
- <ul class="members itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.session#getID"><a href="LuCI.session.html#getID">getID</a></li>
-
- <li data-name="LuCI.session#getLocalData"><a href="LuCI.session.html#getLocalData">getLocalData</a></li>
-
- <li data-name="LuCI.session#getToken"><a href="LuCI.session.html#getToken">getToken</a></li>
-
- <li data-name="LuCI.session#setLocalData"><a href="LuCI.session.html#setLocalData">setLocalData</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.uci">
- <span class="title">
- <a href="LuCI.uci.html">LuCI.uci</a>
-
- </span>
- <ul class="members itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- <span class="subtitle">Typedefs</span>
-
- <li data-name="LuCI.uci.ChangeRecord"><a href="LuCI.uci.html#.ChangeRecord">ChangeRecord</a></li>
-
- <li data-name="LuCI.uci.SectionObject"><a href="LuCI.uci.html#.SectionObject">SectionObject</a></li>
-
- <li data-name="LuCI.uci~sectionsFn"><a href="LuCI.uci.html#~sectionsFn">sectionsFn</a></li>
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.uci#add"><a href="LuCI.uci.html#add">add</a></li>
-
- <li data-name="LuCI.uci#apply"><a href="LuCI.uci.html#apply">apply</a></li>
-
- <li data-name="LuCI.uci#changes"><a href="LuCI.uci.html#changes">changes</a></li>
-
- <li data-name="LuCI.uci#clone"><a href="LuCI.uci.html#clone">clone</a></li>
-
- <li data-name="LuCI.uci#createSID"><a href="LuCI.uci.html#createSID">createSID</a></li>
-
- <li data-name="LuCI.uci#get"><a href="LuCI.uci.html#get">get</a></li>
-
- <li data-name="LuCI.uci#get_first"><a href="LuCI.uci.html#get_first">get_first</a></li>
-
- <li data-name="LuCI.uci#load"><a href="LuCI.uci.html#load">load</a></li>
-
- <li data-name="LuCI.uci#move"><a href="LuCI.uci.html#move">move</a></li>
-
- <li data-name="LuCI.uci#remove"><a href="LuCI.uci.html#remove">remove</a></li>
-
- <li data-name="LuCI.uci#resolveSID"><a href="LuCI.uci.html#resolveSID">resolveSID</a></li>
-
- <li data-name="LuCI.uci#save"><a href="LuCI.uci.html#save">save</a></li>
-
- <li data-name="LuCI.uci#sections"><a href="LuCI.uci.html#sections">sections</a></li>
-
- <li data-name="LuCI.uci#set"><a href="LuCI.uci.html#set">set</a></li>
-
- <li data-name="LuCI.uci#set_first"><a href="LuCI.uci.html#set_first">set_first</a></li>
-
- <li data-name="LuCI.uci#unload"><a href="LuCI.uci.html#unload">unload</a></li>
-
- <li data-name="LuCI.uci#unset"><a href="LuCI.uci.html#unset">unset</a></li>
-
- <li data-name="LuCI.uci#unset_first"><a href="LuCI.uci.html#unset_first">unset_first</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.ui">
- <span class="title">
- <a href="LuCI.ui.html">LuCI.ui</a>
-
- </span>
- <ul class="members itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- <span class="subtitle">Typedefs</span>
-
- <li data-name="LuCI.ui.FileUploadReply"><a href="LuCI.ui.html#.FileUploadReply">FileUploadReply</a></li>
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.ui#addNotification"><a href="LuCI.ui.html#addNotification">addNotification</a></li>
-
- <li data-name="LuCI.ui#addValidator"><a href="LuCI.ui.html#addValidator">addValidator</a></li>
-
- <li data-name="LuCI.ui#awaitReconnect"><a href="LuCI.ui.html#awaitReconnect">awaitReconnect</a></li>
-
- <li data-name="LuCI.ui#createHandlerFn"><a href="LuCI.ui.html#createHandlerFn">createHandlerFn</a></li>
-
- <li data-name="LuCI.ui#hideIndicator"><a href="LuCI.ui.html#hideIndicator">hideIndicator</a></li>
-
- <li data-name="LuCI.ui#hideModal"><a href="LuCI.ui.html#hideModal">hideModal</a></li>
-
- <li data-name="LuCI.ui#instantiateView"><a href="LuCI.ui.html#instantiateView">instantiateView</a></li>
-
- <li data-name="LuCI.ui#itemlist"><a href="LuCI.ui.html#itemlist">itemlist</a></li>
-
- <li data-name="LuCI.ui#pingDevice"><a href="LuCI.ui.html#pingDevice">pingDevice</a></li>
-
- <li data-name="LuCI.ui#showIndicator"><a href="LuCI.ui.html#showIndicator">showIndicator</a></li>
-
- <li data-name="LuCI.ui#showModal"><a href="LuCI.ui.html#showModal">showModal</a></li>
-
- <li data-name="LuCI.ui#uploadFile"><a href="LuCI.ui.html#uploadFile">uploadFile</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.ui.AbstractElement">
- <span class="title">
- <a href="LuCI.ui.AbstractElement.html">LuCI.ui.AbstractElement</a>
-
- </span>
- <ul class="members itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- <span class="subtitle">Typedefs</span>
-
- <li data-name="LuCI.ui.AbstractElement.InitOptions"><a href="LuCI.ui.AbstractElement.html#.InitOptions">InitOptions</a></li>
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.ui.AbstractElement#getValidationError"><a href="LuCI.ui.AbstractElement.html#getValidationError">getValidationError</a></li>
-
- <li data-name="LuCI.ui.AbstractElement#getValue"><a href="LuCI.ui.AbstractElement.html#getValue">getValue</a></li>
-
- <li data-name="LuCI.ui.AbstractElement#isChanged"><a href="LuCI.ui.AbstractElement.html#isChanged">isChanged</a></li>
-
- <li data-name="LuCI.ui.AbstractElement#isValid"><a href="LuCI.ui.AbstractElement.html#isValid">isValid</a></li>
-
- <li data-name="LuCI.ui.AbstractElement#registerEvents"><a href="LuCI.ui.AbstractElement.html#registerEvents">registerEvents</a></li>
-
- <li data-name="LuCI.ui.AbstractElement#render"><a href="LuCI.ui.AbstractElement.html#render">render</a></li>
-
- <li data-name="LuCI.ui.AbstractElement#setChangeEvents"><a href="LuCI.ui.AbstractElement.html#setChangeEvents">setChangeEvents</a></li>
-
- <li data-name="LuCI.ui.AbstractElement#setPlaceholder"><a href="LuCI.ui.AbstractElement.html#setPlaceholder">setPlaceholder</a></li>
-
- <li data-name="LuCI.ui.AbstractElement#setUpdateEvents"><a href="LuCI.ui.AbstractElement.html#setUpdateEvents">setUpdateEvents</a></li>
-
- <li data-name="LuCI.ui.AbstractElement#setValue"><a href="LuCI.ui.AbstractElement.html#setValue">setValue</a></li>
-
- <li data-name="LuCI.ui.AbstractElement#triggerValidation"><a href="LuCI.ui.AbstractElement.html#triggerValidation">triggerValidation</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.ui.changes">
- <span class="title">
- <a href="LuCI.ui.changes.html">LuCI.ui.changes</a>
-
- </span>
- <ul class="members itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.ui.changes#apply"><a href="LuCI.ui.changes.html#apply">apply</a></li>
-
- <li data-name="LuCI.ui.changes#displayChanges"><a href="LuCI.ui.changes.html#displayChanges">displayChanges</a></li>
-
- <li data-name="LuCI.ui.changes#renderChangeIndicator"><a href="LuCI.ui.changes.html#renderChangeIndicator">renderChangeIndicator</a></li>
-
- <li data-name="LuCI.ui.changes#revert"><a href="LuCI.ui.changes.html#revert">revert</a></li>
-
- <li data-name="LuCI.ui.changes#setIndicator"><a href="LuCI.ui.changes.html#setIndicator">setIndicator</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.ui.Checkbox">
- <span class="title">
- <a href="LuCI.ui.Checkbox.html">LuCI.ui.Checkbox</a>
-
- </span>
- <ul class="members itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- <span class="subtitle">Typedefs</span>
-
- <li data-name="LuCI.ui.Checkbox.InitOptions"><a href="LuCI.ui.Checkbox.html#.InitOptions">InitOptions</a></li>
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.ui.Checkbox#getValidationError"><a href="LuCI.ui.Checkbox.html#getValidationError">getValidationError</a></li>
-
- <li data-name="LuCI.ui.Checkbox#getValue"><a href="LuCI.ui.Checkbox.html#getValue">getValue</a></li>
-
- <li data-name="LuCI.ui.Checkbox#isChanged"><a href="LuCI.ui.Checkbox.html#isChanged">isChanged</a></li>
-
- <li data-name="LuCI.ui.Checkbox#isChecked"><a href="LuCI.ui.Checkbox.html#isChecked">isChecked</a></li>
-
- <li data-name="LuCI.ui.Checkbox#isValid"><a href="LuCI.ui.Checkbox.html#isValid">isValid</a></li>
-
- <li data-name="LuCI.ui.Checkbox#registerEvents"><a href="LuCI.ui.Checkbox.html#registerEvents">registerEvents</a></li>
-
- <li data-name="LuCI.ui.Checkbox#render"><a href="LuCI.ui.Checkbox.html#render">render</a></li>
-
- <li data-name="LuCI.ui.Checkbox#setChangeEvents"><a href="LuCI.ui.Checkbox.html#setChangeEvents">setChangeEvents</a></li>
-
- <li data-name="LuCI.ui.Checkbox#setPlaceholder"><a href="LuCI.ui.Checkbox.html#setPlaceholder">setPlaceholder</a></li>
-
- <li data-name="LuCI.ui.Checkbox#setUpdateEvents"><a href="LuCI.ui.Checkbox.html#setUpdateEvents">setUpdateEvents</a></li>
-
- <li data-name="LuCI.ui.Checkbox#setValue"><a href="LuCI.ui.Checkbox.html#setValue">setValue</a></li>
-
- <li data-name="LuCI.ui.Checkbox#triggerValidation"><a href="LuCI.ui.Checkbox.html#triggerValidation">triggerValidation</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.ui.Combobox">
- <span class="title">
- <a href="LuCI.ui.Combobox.html">LuCI.ui.Combobox</a>
-
- </span>
- <ul class="members itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- <span class="subtitle">Typedefs</span>
-
- <li data-name="LuCI.ui.Combobox.InitOptions"><a href="LuCI.ui.Combobox.html#.InitOptions">InitOptions</a></li>
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.ui.Combobox#addChoices"><a href="LuCI.ui.Combobox.html#addChoices">addChoices</a></li>
-
- <li data-name="LuCI.ui.Combobox#clearChoices"><a href="LuCI.ui.Combobox.html#clearChoices">clearChoices</a></li>
-
- <li data-name="LuCI.ui.Combobox#closeAllDropdowns"><a href="LuCI.ui.Combobox.html#closeAllDropdowns">closeAllDropdowns</a></li>
-
- <li data-name="LuCI.ui.Combobox#getValidationError"><a href="LuCI.ui.Combobox.html#getValidationError">getValidationError</a></li>
-
- <li data-name="LuCI.ui.Combobox#isChanged"><a href="LuCI.ui.Combobox.html#isChanged">isChanged</a></li>
-
- <li data-name="LuCI.ui.Combobox#isValid"><a href="LuCI.ui.Combobox.html#isValid">isValid</a></li>
-
- <li data-name="LuCI.ui.Combobox#registerEvents"><a href="LuCI.ui.Combobox.html#registerEvents">registerEvents</a></li>
-
- <li data-name="LuCI.ui.Combobox#setChangeEvents"><a href="LuCI.ui.Combobox.html#setChangeEvents">setChangeEvents</a></li>
-
- <li data-name="LuCI.ui.Combobox#setPlaceholder"><a href="LuCI.ui.Combobox.html#setPlaceholder">setPlaceholder</a></li>
-
- <li data-name="LuCI.ui.Combobox#setUpdateEvents"><a href="LuCI.ui.Combobox.html#setUpdateEvents">setUpdateEvents</a></li>
-
- <li data-name="LuCI.ui.Combobox#triggerValidation"><a href="LuCI.ui.Combobox.html#triggerValidation">triggerValidation</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.ui.ComboButton">
- <span class="title">
- <a href="LuCI.ui.ComboButton.html">LuCI.ui.ComboButton</a>
-
- </span>
- <ul class="members itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- <span class="subtitle">Typedefs</span>
-
- <li data-name="LuCI.ui.ComboButton.InitOptions"><a href="LuCI.ui.ComboButton.html#.InitOptions">InitOptions</a></li>
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.ui.ComboButton#addChoices"><a href="LuCI.ui.ComboButton.html#addChoices">addChoices</a></li>
-
- <li data-name="LuCI.ui.ComboButton#clearChoices"><a href="LuCI.ui.ComboButton.html#clearChoices">clearChoices</a></li>
-
- <li data-name="LuCI.ui.ComboButton#closeAllDropdowns"><a href="LuCI.ui.ComboButton.html#closeAllDropdowns">closeAllDropdowns</a></li>
-
- <li data-name="LuCI.ui.ComboButton#getValidationError"><a href="LuCI.ui.ComboButton.html#getValidationError">getValidationError</a></li>
-
- <li data-name="LuCI.ui.ComboButton#isChanged"><a href="LuCI.ui.ComboButton.html#isChanged">isChanged</a></li>
-
- <li data-name="LuCI.ui.ComboButton#isValid"><a href="LuCI.ui.ComboButton.html#isValid">isValid</a></li>
-
- <li data-name="LuCI.ui.ComboButton#registerEvents"><a href="LuCI.ui.ComboButton.html#registerEvents">registerEvents</a></li>
-
- <li data-name="LuCI.ui.ComboButton#setChangeEvents"><a href="LuCI.ui.ComboButton.html#setChangeEvents">setChangeEvents</a></li>
-
- <li data-name="LuCI.ui.ComboButton#setPlaceholder"><a href="LuCI.ui.ComboButton.html#setPlaceholder">setPlaceholder</a></li>
-
- <li data-name="LuCI.ui.ComboButton#setUpdateEvents"><a href="LuCI.ui.ComboButton.html#setUpdateEvents">setUpdateEvents</a></li>
-
- <li data-name="LuCI.ui.ComboButton#triggerValidation"><a href="LuCI.ui.ComboButton.html#triggerValidation">triggerValidation</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.ui.Dropdown">
- <span class="title">
- <a href="LuCI.ui.Dropdown.html">LuCI.ui.Dropdown</a>
-
- </span>
- <ul class="members itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- <span class="subtitle">Typedefs</span>
-
- <li data-name="LuCI.ui.Dropdown.InitOptions"><a href="LuCI.ui.Dropdown.html#.InitOptions">InitOptions</a></li>
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.ui.Dropdown#addChoices"><a href="LuCI.ui.Dropdown.html#addChoices">addChoices</a></li>
-
- <li data-name="LuCI.ui.Dropdown#clearChoices"><a href="LuCI.ui.Dropdown.html#clearChoices">clearChoices</a></li>
-
- <li data-name="LuCI.ui.Dropdown#closeAllDropdowns"><a href="LuCI.ui.Dropdown.html#closeAllDropdowns">closeAllDropdowns</a></li>
-
- <li data-name="LuCI.ui.Dropdown#getValidationError"><a href="LuCI.ui.Dropdown.html#getValidationError">getValidationError</a></li>
-
- <li data-name="LuCI.ui.Dropdown#getValue"><a href="LuCI.ui.Dropdown.html#getValue">getValue</a></li>
-
- <li data-name="LuCI.ui.Dropdown#isChanged"><a href="LuCI.ui.Dropdown.html#isChanged">isChanged</a></li>
-
- <li data-name="LuCI.ui.Dropdown#isValid"><a href="LuCI.ui.Dropdown.html#isValid">isValid</a></li>
-
- <li data-name="LuCI.ui.Dropdown#registerEvents"><a href="LuCI.ui.Dropdown.html#registerEvents">registerEvents</a></li>
-
- <li data-name="LuCI.ui.Dropdown#render"><a href="LuCI.ui.Dropdown.html#render">render</a></li>
-
- <li data-name="LuCI.ui.Dropdown#setChangeEvents"><a href="LuCI.ui.Dropdown.html#setChangeEvents">setChangeEvents</a></li>
-
- <li data-name="LuCI.ui.Dropdown#setPlaceholder"><a href="LuCI.ui.Dropdown.html#setPlaceholder">setPlaceholder</a></li>
-
- <li data-name="LuCI.ui.Dropdown#setUpdateEvents"><a href="LuCI.ui.Dropdown.html#setUpdateEvents">setUpdateEvents</a></li>
-
- <li data-name="LuCI.ui.Dropdown#setValue"><a href="LuCI.ui.Dropdown.html#setValue">setValue</a></li>
-
- <li data-name="LuCI.ui.Dropdown#triggerValidation"><a href="LuCI.ui.Dropdown.html#triggerValidation">triggerValidation</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.ui.DynamicList">
- <span class="title">
- <a href="LuCI.ui.DynamicList.html">LuCI.ui.DynamicList</a>
-
- </span>
- <ul class="members itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- <span class="subtitle">Typedefs</span>
-
- <li data-name="LuCI.ui.DynamicList.InitOptions"><a href="LuCI.ui.DynamicList.html#.InitOptions">InitOptions</a></li>
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.ui.DynamicList#addChoices"><a href="LuCI.ui.DynamicList.html#addChoices">addChoices</a></li>
-
- <li data-name="LuCI.ui.DynamicList#clearChoices"><a href="LuCI.ui.DynamicList.html#clearChoices">clearChoices</a></li>
-
- <li data-name="LuCI.ui.DynamicList#getValidationError"><a href="LuCI.ui.DynamicList.html#getValidationError">getValidationError</a></li>
-
- <li data-name="LuCI.ui.DynamicList#getValue"><a href="LuCI.ui.DynamicList.html#getValue">getValue</a></li>
-
- <li data-name="LuCI.ui.DynamicList#isChanged"><a href="LuCI.ui.DynamicList.html#isChanged">isChanged</a></li>
-
- <li data-name="LuCI.ui.DynamicList#isValid"><a href="LuCI.ui.DynamicList.html#isValid">isValid</a></li>
-
- <li data-name="LuCI.ui.DynamicList#registerEvents"><a href="LuCI.ui.DynamicList.html#registerEvents">registerEvents</a></li>
-
- <li data-name="LuCI.ui.DynamicList#render"><a href="LuCI.ui.DynamicList.html#render">render</a></li>
-
- <li data-name="LuCI.ui.DynamicList#setChangeEvents"><a href="LuCI.ui.DynamicList.html#setChangeEvents">setChangeEvents</a></li>
-
- <li data-name="LuCI.ui.DynamicList#setPlaceholder"><a href="LuCI.ui.DynamicList.html#setPlaceholder">setPlaceholder</a></li>
-
- <li data-name="LuCI.ui.DynamicList#setUpdateEvents"><a href="LuCI.ui.DynamicList.html#setUpdateEvents">setUpdateEvents</a></li>
-
- <li data-name="LuCI.ui.DynamicList#setValue"><a href="LuCI.ui.DynamicList.html#setValue">setValue</a></li>
-
- <li data-name="LuCI.ui.DynamicList#triggerValidation"><a href="LuCI.ui.DynamicList.html#triggerValidation">triggerValidation</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.ui.FileUpload">
- <span class="title">
- <a href="LuCI.ui.FileUpload.html">LuCI.ui.FileUpload</a>
-
- </span>
- <ul class="members itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- <span class="subtitle">Typedefs</span>
-
- <li data-name="LuCI.ui.FileUpload.InitOptions"><a href="LuCI.ui.FileUpload.html#.InitOptions">InitOptions</a></li>
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.ui.FileUpload#getValidationError"><a href="LuCI.ui.FileUpload.html#getValidationError">getValidationError</a></li>
-
- <li data-name="LuCI.ui.FileUpload#getValue"><a href="LuCI.ui.FileUpload.html#getValue">getValue</a></li>
-
- <li data-name="LuCI.ui.FileUpload#isChanged"><a href="LuCI.ui.FileUpload.html#isChanged">isChanged</a></li>
-
- <li data-name="LuCI.ui.FileUpload#isValid"><a href="LuCI.ui.FileUpload.html#isValid">isValid</a></li>
-
- <li data-name="LuCI.ui.FileUpload#registerEvents"><a href="LuCI.ui.FileUpload.html#registerEvents">registerEvents</a></li>
-
- <li data-name="LuCI.ui.FileUpload#render"><a href="LuCI.ui.FileUpload.html#render">render</a></li>
-
- <li data-name="LuCI.ui.FileUpload#setChangeEvents"><a href="LuCI.ui.FileUpload.html#setChangeEvents">setChangeEvents</a></li>
-
- <li data-name="LuCI.ui.FileUpload#setPlaceholder"><a href="LuCI.ui.FileUpload.html#setPlaceholder">setPlaceholder</a></li>
-
- <li data-name="LuCI.ui.FileUpload#setUpdateEvents"><a href="LuCI.ui.FileUpload.html#setUpdateEvents">setUpdateEvents</a></li>
-
- <li data-name="LuCI.ui.FileUpload#setValue"><a href="LuCI.ui.FileUpload.html#setValue">setValue</a></li>
-
- <li data-name="LuCI.ui.FileUpload#triggerValidation"><a href="LuCI.ui.FileUpload.html#triggerValidation">triggerValidation</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.ui.Hiddenfield">
- <span class="title">
- <a href="LuCI.ui.Hiddenfield.html">LuCI.ui.Hiddenfield</a>
-
- </span>
- <ul class="members itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.ui.Hiddenfield#getValidationError"><a href="LuCI.ui.Hiddenfield.html#getValidationError">getValidationError</a></li>
-
- <li data-name="LuCI.ui.Hiddenfield#getValue"><a href="LuCI.ui.Hiddenfield.html#getValue">getValue</a></li>
-
- <li data-name="LuCI.ui.Hiddenfield#isChanged"><a href="LuCI.ui.Hiddenfield.html#isChanged">isChanged</a></li>
-
- <li data-name="LuCI.ui.Hiddenfield#isValid"><a href="LuCI.ui.Hiddenfield.html#isValid">isValid</a></li>
-
- <li data-name="LuCI.ui.Hiddenfield#registerEvents"><a href="LuCI.ui.Hiddenfield.html#registerEvents">registerEvents</a></li>
-
- <li data-name="LuCI.ui.Hiddenfield#render"><a href="LuCI.ui.Hiddenfield.html#render">render</a></li>
-
- <li data-name="LuCI.ui.Hiddenfield#setChangeEvents"><a href="LuCI.ui.Hiddenfield.html#setChangeEvents">setChangeEvents</a></li>
-
- <li data-name="LuCI.ui.Hiddenfield#setPlaceholder"><a href="LuCI.ui.Hiddenfield.html#setPlaceholder">setPlaceholder</a></li>
-
- <li data-name="LuCI.ui.Hiddenfield#setUpdateEvents"><a href="LuCI.ui.Hiddenfield.html#setUpdateEvents">setUpdateEvents</a></li>
-
- <li data-name="LuCI.ui.Hiddenfield#setValue"><a href="LuCI.ui.Hiddenfield.html#setValue">setValue</a></li>
-
- <li data-name="LuCI.ui.Hiddenfield#triggerValidation"><a href="LuCI.ui.Hiddenfield.html#triggerValidation">triggerValidation</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.ui.menu">
- <span class="title">
- <a href="LuCI.ui.menu.html">LuCI.ui.menu</a>
-
- </span>
- <ul class="members itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- <span class="subtitle">Typedefs</span>
-
- <li data-name="LuCI.ui.menu.MenuNode"><a href="LuCI.ui.menu.html#.MenuNode">MenuNode</a></li>
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.ui.menu#flushCache"><a href="LuCI.ui.menu.html#flushCache">flushCache</a></li>
-
- <li data-name="LuCI.ui.menu#getChildren"><a href="LuCI.ui.menu.html#getChildren">getChildren</a></li>
-
- <li data-name="LuCI.ui.menu#load"><a href="LuCI.ui.menu.html#load">load</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.ui.Select">
- <span class="title">
- <a href="LuCI.ui.Select.html">LuCI.ui.Select</a>
-
- </span>
- <ul class="members itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- <span class="subtitle">Typedefs</span>
-
- <li data-name="LuCI.ui.Select.InitOptions"><a href="LuCI.ui.Select.html#.InitOptions">InitOptions</a></li>
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.ui.Select#getValidationError"><a href="LuCI.ui.Select.html#getValidationError">getValidationError</a></li>
-
- <li data-name="LuCI.ui.Select#getValue"><a href="LuCI.ui.Select.html#getValue">getValue</a></li>
-
- <li data-name="LuCI.ui.Select#isChanged"><a href="LuCI.ui.Select.html#isChanged">isChanged</a></li>
-
- <li data-name="LuCI.ui.Select#isValid"><a href="LuCI.ui.Select.html#isValid">isValid</a></li>
-
- <li data-name="LuCI.ui.Select#registerEvents"><a href="LuCI.ui.Select.html#registerEvents">registerEvents</a></li>
-
- <li data-name="LuCI.ui.Select#render"><a href="LuCI.ui.Select.html#render">render</a></li>
-
- <li data-name="LuCI.ui.Select#setChangeEvents"><a href="LuCI.ui.Select.html#setChangeEvents">setChangeEvents</a></li>
-
- <li data-name="LuCI.ui.Select#setPlaceholder"><a href="LuCI.ui.Select.html#setPlaceholder">setPlaceholder</a></li>
-
- <li data-name="LuCI.ui.Select#setUpdateEvents"><a href="LuCI.ui.Select.html#setUpdateEvents">setUpdateEvents</a></li>
-
- <li data-name="LuCI.ui.Select#setValue"><a href="LuCI.ui.Select.html#setValue">setValue</a></li>
-
- <li data-name="LuCI.ui.Select#triggerValidation"><a href="LuCI.ui.Select.html#triggerValidation">triggerValidation</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.ui.tabs">
- <span class="title">
- <a href="LuCI.ui.tabs.html">LuCI.ui.tabs</a>
-
- </span>
- <ul class="members itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.ui.tabs#initTabGroup"><a href="LuCI.ui.tabs.html#initTabGroup">initTabGroup</a></li>
-
- <li data-name="LuCI.ui.tabs#isEmptyPane"><a href="LuCI.ui.tabs.html#isEmptyPane">isEmptyPane</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.ui.Textarea">
- <span class="title">
- <a href="LuCI.ui.Textarea.html">LuCI.ui.Textarea</a>
-
- </span>
- <ul class="members itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- <span class="subtitle">Typedefs</span>
-
- <li data-name="LuCI.ui.Textarea.InitOptions"><a href="LuCI.ui.Textarea.html#.InitOptions">InitOptions</a></li>
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.ui.Textarea#getValidationError"><a href="LuCI.ui.Textarea.html#getValidationError">getValidationError</a></li>
-
- <li data-name="LuCI.ui.Textarea#getValue"><a href="LuCI.ui.Textarea.html#getValue">getValue</a></li>
-
- <li data-name="LuCI.ui.Textarea#isChanged"><a href="LuCI.ui.Textarea.html#isChanged">isChanged</a></li>
-
- <li data-name="LuCI.ui.Textarea#isValid"><a href="LuCI.ui.Textarea.html#isValid">isValid</a></li>
-
- <li data-name="LuCI.ui.Textarea#registerEvents"><a href="LuCI.ui.Textarea.html#registerEvents">registerEvents</a></li>
-
- <li data-name="LuCI.ui.Textarea#render"><a href="LuCI.ui.Textarea.html#render">render</a></li>
-
- <li data-name="LuCI.ui.Textarea#setChangeEvents"><a href="LuCI.ui.Textarea.html#setChangeEvents">setChangeEvents</a></li>
-
- <li data-name="LuCI.ui.Textarea#setPlaceholder"><a href="LuCI.ui.Textarea.html#setPlaceholder">setPlaceholder</a></li>
-
- <li data-name="LuCI.ui.Textarea#setUpdateEvents"><a href="LuCI.ui.Textarea.html#setUpdateEvents">setUpdateEvents</a></li>
-
- <li data-name="LuCI.ui.Textarea#setValue"><a href="LuCI.ui.Textarea.html#setValue">setValue</a></li>
-
- <li data-name="LuCI.ui.Textarea#triggerValidation"><a href="LuCI.ui.Textarea.html#triggerValidation">triggerValidation</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.ui.Textfield">
- <span class="title">
- <a href="LuCI.ui.Textfield.html">LuCI.ui.Textfield</a>
-
- </span>
- <ul class="members itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- <span class="subtitle">Typedefs</span>
-
- <li data-name="LuCI.ui.Textfield.InitOptions"><a href="LuCI.ui.Textfield.html#.InitOptions">InitOptions</a></li>
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.ui.Textfield#getValidationError"><a href="LuCI.ui.Textfield.html#getValidationError">getValidationError</a></li>
-
- <li data-name="LuCI.ui.Textfield#getValue"><a href="LuCI.ui.Textfield.html#getValue">getValue</a></li>
-
- <li data-name="LuCI.ui.Textfield#isChanged"><a href="LuCI.ui.Textfield.html#isChanged">isChanged</a></li>
-
- <li data-name="LuCI.ui.Textfield#isValid"><a href="LuCI.ui.Textfield.html#isValid">isValid</a></li>
-
- <li data-name="LuCI.ui.Textfield#registerEvents"><a href="LuCI.ui.Textfield.html#registerEvents">registerEvents</a></li>
-
- <li data-name="LuCI.ui.Textfield#render"><a href="LuCI.ui.Textfield.html#render">render</a></li>
-
- <li data-name="LuCI.ui.Textfield#setChangeEvents"><a href="LuCI.ui.Textfield.html#setChangeEvents">setChangeEvents</a></li>
-
- <li data-name="LuCI.ui.Textfield#setPlaceholder"><a href="LuCI.ui.Textfield.html#setPlaceholder">setPlaceholder</a></li>
-
- <li data-name="LuCI.ui.Textfield#setUpdateEvents"><a href="LuCI.ui.Textfield.html#setUpdateEvents">setUpdateEvents</a></li>
-
- <li data-name="LuCI.ui.Textfield#setValue"><a href="LuCI.ui.Textfield.html#setValue">setValue</a></li>
-
- <li data-name="LuCI.ui.Textfield#triggerValidation"><a href="LuCI.ui.Textfield.html#triggerValidation">triggerValidation</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.view">
- <span class="title">
- <a href="LuCI.view.html">LuCI.view</a>
-
- </span>
- <ul class="members itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.view#addFooter"><a href="LuCI.view.html#addFooter">addFooter</a></li>
-
- <li data-name="LuCI.view#handleReset"><a href="LuCI.view.html#handleReset">handleReset</a></li>
-
- <li data-name="LuCI.view#handleSave"><a href="LuCI.view.html#handleSave">handleSave</a></li>
-
- <li data-name="LuCI.view#handleSaveApply"><a href="LuCI.view.html#handleSaveApply">handleSaveApply</a></li>
-
- <li data-name="LuCI.view#load"><a href="LuCI.view.html#load">load</a></li>
-
- <li data-name="LuCI.view#render"><a href="LuCI.view.html#render">render</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- <li class="item" data-name="LuCI.xhr">
- <span class="title">
- <a href="LuCI.xhr.html">LuCI.xhr</a>
-
- </span>
- <ul class="members itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="typedefs itemMembers">
-
- </ul>
- <ul class="methods itemMembers">
-
- <span class="subtitle">Methods</span>
-
- <li data-name="LuCI.xhr#abort"><a href="LuCI.xhr.html#abort">abort</a></li>
-
- <li data-name="LuCI.xhr#busy"><a href="LuCI.xhr.html#busy">busy</a></li>
-
- <li data-name="LuCI.xhr#cancel"><a href="LuCI.xhr.html#cancel">cancel</a></li>
-
- <li data-name="LuCI.xhr#get"><a href="LuCI.xhr.html#get">get</a></li>
-
- <li data-name="LuCI.xhr#post"><a href="LuCI.xhr.html#post">post</a></li>
-
- <li data-name="LuCI.xhr#send_form"><a href="LuCI.xhr.html#send_form">send_form</a></li>
-
- </ul>
- <ul class="events itemMembers">
-
- </ul>
- </li>
-
- </ul>
- </div>
- <div class="main">
- <h1 class="page-title" data-filename="network.js.html">Source: network.js</h1>
-
-
- <section>
- <article>
- <pre id="source-code" class="prettyprint source "><code>'use strict';
- 'require uci';
- 'require rpc';
- 'require validation';
- 'require baseclass';
- 'require firewall';
- var proto_errors = {
- CONNECT_FAILED: _('Connection attempt failed'),
- INVALID_ADDRESS: _('IP address is invalid'),
- INVALID_GATEWAY: _('Gateway address is invalid'),
- INVALID_LOCAL_ADDRESS: _('Local IP address is invalid'),
- MISSING_ADDRESS: _('IP address is missing'),
- MISSING_PEER_ADDRESS: _('Peer address is missing'),
- NO_DEVICE: _('Network device is not present'),
- NO_IFACE: _('Unable to determine device name'),
- NO_IFNAME: _('Unable to determine device name'),
- NO_WAN_ADDRESS: _('Unable to determine external IP address'),
- NO_WAN_LINK: _('Unable to determine upstream interface'),
- PEER_RESOLVE_FAIL: _('Unable to resolve peer host name'),
- PIN_FAILED: _('PIN code rejected')
- };
- var iface_patterns_ignore = [
- /^wmaster\d+/,
- /^wifi\d+/,
- /^hwsim\d+/,
- /^imq\d+/,
- /^ifb\d+/,
- /^mon\.wlan\d+/,
- /^sit\d+/,
- /^gre\d+/,
- /^gretap\d+/,
- /^ip6gre\d+/,
- /^ip6tnl\d+/,
- /^tunl\d+/,
- /^lo$/
- ];
- var iface_patterns_wireless = [
- /^wlan\d+/,
- /^wl\d+/,
- /^ath\d+/,
- /^\w+\.network\d+/
- ];
- var iface_patterns_virtual = [ ];
- var callLuciNetworkDevices = rpc.declare({
- object: 'luci-rpc',
- method: 'getNetworkDevices',
- expect: { '': {} }
- });
- var callLuciWirelessDevices = rpc.declare({
- object: 'luci-rpc',
- method: 'getWirelessDevices',
- expect: { '': {} }
- });
- var callLuciBoardJSON = rpc.declare({
- object: 'luci-rpc',
- method: 'getBoardJSON'
- });
- var callLuciHostHints = rpc.declare({
- object: 'luci-rpc',
- method: 'getHostHints',
- expect: { '': {} }
- });
- var callIwinfoAssoclist = rpc.declare({
- object: 'iwinfo',
- method: 'assoclist',
- params: [ 'device', 'mac' ],
- expect: { results: [] }
- });
- var callIwinfoScan = rpc.declare({
- object: 'iwinfo',
- method: 'scan',
- params: [ 'device' ],
- nobatch: true,
- expect: { results: [] }
- });
- var callNetworkInterfaceDump = rpc.declare({
- object: 'network.interface',
- method: 'dump',
- expect: { 'interface': [] }
- });
- var callNetworkProtoHandlers = rpc.declare({
- object: 'network',
- method: 'get_proto_handlers',
- expect: { '': {} }
- });
- var _init = null,
- _state = null,
- _protocols = {},
- _protospecs = {};
- function getProtocolHandlers(cache) {
- return callNetworkProtoHandlers().then(function(protos) {
- /* Register "none" protocol */
- if (!protos.hasOwnProperty('none'))
- Object.assign(protos, { none: { no_device: false } });
- /* Hack: emulate relayd protocol */
- if (!protos.hasOwnProperty('relay') && L.hasSystemFeature('relayd'))
- Object.assign(protos, { relay: { no_device: true } });
- Object.assign(_protospecs, protos);
- return Promise.all(Object.keys(protos).map(function(p) {
- return Promise.resolve(L.require('protocol.%s'.format(p))).catch(function(err) {
- if (L.isObject(err) && err.name != 'NetworkError')
- L.error(err);
- });
- })).then(function() {
- return protos;
- });
- }).catch(function() {
- return {};
- });
- }
- function getWifiStateBySid(sid) {
- var s = uci.get('wireless', sid);
- if (s != null && s['.type'] == 'wifi-iface') {
- for (var radioname in _state.radios) {
- for (var i = 0; i < _state.radios[radioname].interfaces.length; i++) {
- var netstate = _state.radios[radioname].interfaces[i];
- if (typeof(netstate.section) != 'string')
- continue;
- var s2 = uci.get('wireless', netstate.section);
- if (s2 != null && s['.type'] == s2['.type'] && s['.name'] == s2['.name']) {
- if (s2['.anonymous'] == false && netstate.section.charAt(0) == '@')
- return null;
- return [ radioname, _state.radios[radioname], netstate ];
- }
- }
- }
- }
- return null;
- }
- function getWifiStateByIfname(ifname) {
- for (var radioname in _state.radios) {
- for (var i = 0; i < _state.radios[radioname].interfaces.length; i++) {
- var netstate = _state.radios[radioname].interfaces[i];
- if (typeof(netstate.ifname) != 'string')
- continue;
- if (netstate.ifname == ifname)
- return [ radioname, _state.radios[radioname], netstate ];
- }
- }
- return null;
- }
- function isWifiIfname(ifname) {
- for (var i = 0; i < iface_patterns_wireless.length; i++)
- if (iface_patterns_wireless[i].test(ifname))
- return true;
- return false;
- }
- function getWifiSidByNetid(netid) {
- var m = /^(\w+)\.network(\d+)$/.exec(netid);
- if (m) {
- var sections = uci.sections('wireless', 'wifi-iface');
- for (var i = 0, n = 0; i < sections.length; i++) {
- if (sections[i].device != m[1])
- continue;
- if (++n == +m[2])
- return sections[i]['.name'];
- }
- }
- return null;
- }
- function getWifiSidByIfname(ifname) {
- var sid = getWifiSidByNetid(ifname);
- if (sid != null)
- return sid;
- var res = getWifiStateByIfname(ifname);
- if (res != null && L.isObject(res[2]) && typeof(res[2].section) == 'string')
- return res[2].section;
- return null;
- }
- function getWifiNetidBySid(sid) {
- var s = uci.get('wireless', sid);
- if (s != null && s['.type'] == 'wifi-iface') {
- var radioname = s.device;
- if (typeof(radioname) == 'string') {
- var sections = uci.sections('wireless', 'wifi-iface');
- for (var i = 0, n = 0; i < sections.length; i++) {
- if (sections[i].device != s.device)
- continue;
- n++;
- if (sections[i]['.name'] != s['.name'])
- continue;
- return [ '%s.network%d'.format(s.device, n), s.device ];
- }
- }
- }
- return null;
- }
- function getWifiNetidByNetname(name) {
- var sections = uci.sections('wireless', 'wifi-iface');
- for (var i = 0; i < sections.length; i++) {
- if (typeof(sections[i].network) != 'string')
- continue;
- var nets = sections[i].network.split(/\s+/);
- for (var j = 0; j < nets.length; j++) {
- if (nets[j] != name)
- continue;
- return getWifiNetidBySid(sections[i]['.name']);
- }
- }
- return null;
- }
- function isVirtualIfname(ifname) {
- for (var i = 0; i < iface_patterns_virtual.length; i++)
- if (iface_patterns_virtual[i].test(ifname))
- return true;
- return false;
- }
- function isIgnoredIfname(ifname) {
- for (var i = 0; i < iface_patterns_ignore.length; i++)
- if (iface_patterns_ignore[i].test(ifname))
- return true;
- return false;
- }
- function appendValue(config, section, option, value) {
- var values = uci.get(config, section, option),
- isArray = Array.isArray(values),
- rv = false;
- if (isArray == false)
- values = L.toArray(values);
- if (values.indexOf(value) == -1) {
- values.push(value);
- rv = true;
- }
- uci.set(config, section, option, isArray ? values : values.join(' '));
- return rv;
- }
- function removeValue(config, section, option, value) {
- var values = uci.get(config, section, option),
- isArray = Array.isArray(values),
- rv = false;
- if (isArray == false)
- values = L.toArray(values);
- for (var i = values.length - 1; i >= 0; i--) {
- if (values[i] == value) {
- values.splice(i, 1);
- rv = true;
- }
- }
- if (values.length > 0)
- uci.set(config, section, option, isArray ? values : values.join(' '));
- else
- uci.unset(config, section, option);
- return rv;
- }
- function prefixToMask(bits, v6) {
- var w = v6 ? 128 : 32,
- m = [];
- if (bits > w)
- return null;
- for (var i = 0; i < w / 16; i++) {
- var b = Math.min(16, bits);
- m.push((0xffff << (16 - b)) & 0xffff);
- bits -= b;
- }
- if (v6)
- return String.prototype.format.apply('%x:%x:%x:%x:%x:%x:%x:%x', m).replace(/:0(?::0)+$/, '::');
- else
- return '%d.%d.%d.%d'.format(m[0] >>> 8, m[0] & 0xff, m[1] >>> 8, m[1] & 0xff);
- }
- function maskToPrefix(mask, v6) {
- var m = v6 ? validation.parseIPv6(mask) : validation.parseIPv4(mask);
- if (!m)
- return null;
- var bits = 0;
- for (var i = 0, z = false; i < m.length; i++) {
- z = z || !m[i];
- while (!z && (m[i] & (v6 ? 0x8000 : 0x80))) {
- m[i] = (m[i] << 1) & (v6 ? 0xffff : 0xff);
- bits++;
- }
- if (m[i])
- return null;
- }
- return bits;
- }
- function initNetworkState(refresh) {
- if (_state == null || refresh) {
- _init = _init || Promise.all([
- L.resolveDefault(callNetworkInterfaceDump(), []),
- L.resolveDefault(callLuciBoardJSON(), {}),
- L.resolveDefault(callLuciNetworkDevices(), {}),
- L.resolveDefault(callLuciWirelessDevices(), {}),
- L.resolveDefault(callLuciHostHints(), {}),
- getProtocolHandlers(),
- L.resolveDefault(uci.load('network')),
- L.resolveDefault(uci.load('wireless')),
- L.resolveDefault(uci.load('luci'))
- ]).then(function(data) {
- var netifd_ifaces = data[0],
- board_json = data[1],
- luci_devs = data[2];
- var s = {
- isTunnel: {}, isBridge: {}, isSwitch: {}, isWifi: {},
- ifaces: netifd_ifaces, radios: data[3], hosts: data[4],
- netdevs: {}, bridges: {}, switches: {}, hostapd: {}
- };
- for (var name in luci_devs) {
- var dev = luci_devs[name];
- if (isVirtualIfname(name))
- s.isTunnel[name] = true;
- if (!s.isTunnel[name] && isIgnoredIfname(name))
- continue;
- s.netdevs[name] = s.netdevs[name] || {
- idx: dev.ifindex,
- name: name,
- rawname: name,
- flags: dev.flags,
- link: dev.link,
- stats: dev.stats,
- macaddr: dev.mac,
- type: dev.type,
- devtype: dev.devtype,
- mtu: dev.mtu,
- qlen: dev.qlen,
- wireless: dev.wireless,
- parent: dev.parent,
- ipaddrs: [],
- ip6addrs: []
- };
- if (Array.isArray(dev.ipaddrs))
- for (var i = 0; i < dev.ipaddrs.length; i++)
- s.netdevs[name].ipaddrs.push(dev.ipaddrs[i].address + '/' + dev.ipaddrs[i].netmask);
- if (Array.isArray(dev.ip6addrs))
- for (var i = 0; i < dev.ip6addrs.length; i++)
- s.netdevs[name].ip6addrs.push(dev.ip6addrs[i].address + '/' + dev.ip6addrs[i].netmask);
- }
- for (var name in luci_devs) {
- var dev = luci_devs[name];
- if (!dev.bridge)
- continue;
- var b = {
- name: name,
- id: dev.id,
- stp: dev.stp,
- ifnames: []
- };
- for (var i = 0; dev.ports && i < dev.ports.length; i++) {
- var subdev = s.netdevs[dev.ports[i]];
- if (subdev == null)
- continue;
- b.ifnames.push(subdev);
- subdev.bridge = b;
- }
- s.bridges[name] = b;
- s.isBridge[name] = true;
- }
- for (var name in luci_devs) {
- var dev = luci_devs[name];
- if (!dev.parent || dev.devtype != 'dsa')
- continue;
- s.isSwitch[dev.parent] = true;
- s.isSwitch[name] = true;
- }
- if (L.isObject(board_json.switch)) {
- for (var switchname in board_json.switch) {
- var layout = board_json.switch[switchname],
- netdevs = {},
- nports = {},
- ports = [],
- pnum = null,
- role = null;
- if (L.isObject(layout) && Array.isArray(layout.ports)) {
- for (var i = 0, port; (port = layout.ports[i]) != null; i++) {
- if (typeof(port) == 'object' && typeof(port.num) == 'number' &&
- (typeof(port.role) == 'string' || typeof(port.device) == 'string')) {
- var spec = {
- num: port.num,
- role: port.role || 'cpu',
- index: (port.index != null) ? port.index : port.num
- };
- if (port.device != null) {
- spec.device = port.device;
- spec.tagged = spec.need_tag;
- netdevs[port.num] = port.device;
- }
- ports.push(spec);
- if (port.role != null)
- nports[port.role] = (nports[port.role] || 0) + 1;
- }
- }
- ports.sort(function(a, b) {
- return L.naturalCompare(a.role, b.role) || L.naturalCompare(a.index, b.index);
- });
- for (var i = 0, port; (port = ports[i]) != null; i++) {
- if (port.role != role) {
- role = port.role;
- pnum = 1;
- }
- if (role == 'cpu')
- port.label = 'CPU (%s)'.format(port.device);
- else if (nports[role] > 1)
- port.label = '%s %d'.format(role.toUpperCase(), pnum++);
- else
- port.label = role.toUpperCase();
- delete port.role;
- delete port.index;
- }
- s.switches[switchname] = {
- ports: ports,
- netdevs: netdevs
- };
- }
- }
- }
- if (L.isObject(board_json.dsl) && L.isObject(board_json.dsl.modem)) {
- s.hasDSLModem = board_json.dsl.modem;
- }
- _init = null;
- var objects = [];
- if (L.isObject(s.radios))
- for (var radio in s.radios)
- if (L.isObject(s.radios[radio]) && Array.isArray(s.radios[radio].interfaces))
- for (var i = 0; i < s.radios[radio].interfaces.length; i++)
- if (L.isObject(s.radios[radio].interfaces[i]) && s.radios[radio].interfaces[i].ifname)
- objects.push('hostapd.%s'.format(s.radios[radio].interfaces[i].ifname));
- return (objects.length ? L.resolveDefault(rpc.list.apply(rpc, objects), {}) : Promise.resolve({})).then(function(res) {
- for (var k in res) {
- var m = k.match(/^hostapd\.(.+)$/);
- if (m)
- s.hostapd[m[1]] = res[k];
- }
- return (_state = s);
- });
- });
- }
- return (_state != null ? Promise.resolve(_state) : _init);
- }
- function ifnameOf(obj) {
- if (obj instanceof Protocol)
- return obj.getIfname();
- else if (obj instanceof Device)
- return obj.getName();
- else if (obj instanceof WifiDevice)
- return obj.getName();
- else if (obj instanceof WifiNetwork)
- return obj.getIfname();
- else if (typeof(obj) == 'string')
- return obj.replace(/:.+$/, '');
- return null;
- }
- function networkSort(a, b) {
- return L.naturalCompare(a.getName(), b.getName());
- }
- function deviceSort(a, b) {
- var typeWeigth = { wifi: 2, alias: 3 };
- return L.naturalCompare(typeWeigth[a.getType()] || 1, typeWeigth[b.getType()] || 1) ||
- L.naturalCompare(a.getName(), b.getName());
- }
- function formatWifiEncryption(enc) {
- if (!L.isObject(enc))
- return null;
- if (!enc.enabled)
- return 'None';
- var ciphers = Array.isArray(enc.ciphers)
- ? enc.ciphers.map(function(c) { return c.toUpperCase() }) : [ 'NONE' ];
- if (Array.isArray(enc.wep)) {
- var has_open = false,
- has_shared = false;
- for (var i = 0; i < enc.wep.length; i++)
- if (enc.wep[i] == 'open')
- has_open = true;
- else if (enc.wep[i] == 'shared')
- has_shared = true;
- if (has_open && has_shared)
- return 'WEP Open/Shared (%s)'.format(ciphers.join(', '));
- else if (has_open)
- return 'WEP Open System (%s)'.format(ciphers.join(', '));
- else if (has_shared)
- return 'WEP Shared Auth (%s)'.format(ciphers.join(', '));
- return 'WEP';
- }
- if (Array.isArray(enc.wpa)) {
- var versions = [],
- suites = Array.isArray(enc.authentication)
- ? enc.authentication.map(function(a) { return a.toUpperCase() }) : [ 'NONE' ];
- for (var i = 0; i < enc.wpa.length; i++)
- switch (enc.wpa[i]) {
- case 1:
- versions.push('WPA');
- break;
- default:
- versions.push('WPA%d'.format(enc.wpa[i]));
- break;
- }
- if (versions.length > 1)
- return 'mixed %s %s (%s)'.format(versions.join('/'), suites.join(', '), ciphers.join(', '));
- return '%s %s (%s)'.format(versions[0], suites.join(', '), ciphers.join(', '));
- }
- return 'Unknown';
- }
- function enumerateNetworks() {
- var uciInterfaces = uci.sections('network', 'interface'),
- networks = {};
- for (var i = 0; i < uciInterfaces.length; i++)
- networks[uciInterfaces[i]['.name']] = this.instantiateNetwork(uciInterfaces[i]['.name']);
- for (var i = 0; i < _state.ifaces.length; i++)
- if (networks[_state.ifaces[i].interface] == null)
- networks[_state.ifaces[i].interface] =
- this.instantiateNetwork(_state.ifaces[i].interface, _state.ifaces[i].proto);
- var rv = [];
- for (var network in networks)
- if (networks.hasOwnProperty(network))
- rv.push(networks[network]);
- rv.sort(networkSort);
- return rv;
- }
- var Hosts, Network, Protocol, Device, WifiDevice, WifiNetwork;
- /**
- * @class network
- * @memberof LuCI
- * @hideconstructor
- * @classdesc
- *
- * The `LuCI.network` class combines data from multiple `ubus` APIs to
- * provide an abstraction of the current network configuration state.
- *
- * It provides methods to enumerate interfaces and devices, to query
- * current configuration details and to manipulate settings.
- */
- Network = baseclass.extend(/** @lends LuCI.network.prototype */ {
- /**
- * Converts the given prefix size in bits to a netmask.
- *
- * @method
- *
- * @param {number} bits
- * The prefix size in bits.
- *
- * @param {boolean} [v6=false]
- * Whether to convert the bits value into an IPv4 netmask (`false`) or
- * an IPv6 netmask (`true`).
- *
- * @returns {null|string}
- * Returns a string containing the netmask corresponding to the bit count
- * or `null` when the given amount of bits exceeds the maximum possible
- * value of `32` for IPv4 or `128` for IPv6.
- */
- prefixToMask: prefixToMask,
- /**
- * Converts the given netmask to a prefix size in bits.
- *
- * @method
- *
- * @param {string} netmask
- * The netmask to convert into a bits count.
- *
- * @param {boolean} [v6=false]
- * Whether to parse the given netmask as IPv4 (`false`) or IPv6 (`true`)
- * address.
- *
- * @returns {null|number}
- * Returns the number of prefix bits contained in the netmask or `null`
- * if the given netmask value was invalid.
- */
- maskToPrefix: maskToPrefix,
- /**
- * An encryption entry describes active wireless encryption settings
- * such as the used key management protocols, active ciphers and
- * protocol versions.
- *
- * @typedef {Object<string, boolean|Array<number|string>>} LuCI.network.WifiEncryption
- * @memberof LuCI.network
- *
- * @property {boolean} enabled
- * Specifies whether any kind of encryption, such as `WEP` or `WPA` is
- * enabled. If set to `false`, then no encryption is active and the
- * corresponding network is open.
- *
- * @property {string[]} [wep]
- * When the `wep` property exists, the network uses WEP encryption.
- * In this case, the property is set to an array of active WEP modes
- * which might be either `open`, `shared` or both.
- *
- * @property {number[]} [wpa]
- * When the `wpa` property exists, the network uses WPA security.
- * In this case, the property is set to an array containing the WPA
- * protocol versions used, e.g. `[ 1, 2 ]` for WPA/WPA2 mixed mode or
- * `[ 3 ]` for WPA3-SAE.
- *
- * @property {string[]} [authentication]
- * The `authentication` property only applies to WPA encryption and
- * is defined when the `wpa` property is set as well. It points to
- * an array of active authentication suites used by the network, e.g.
- * `[ "psk" ]` for a WPA(2)-PSK network or `[ "psk", "sae" ]` for
- * mixed WPA2-PSK/WPA3-SAE encryption.
- *
- * @property {string[]} [ciphers]
- * If either WEP or WPA encryption is active, then the `ciphers`
- * property will be set to an array describing the active encryption
- * ciphers used by the network, e.g. `[ "tkip", "ccmp" ]` for a
- * WPA/WPA2-PSK mixed network or `[ "wep-40", "wep-104" ]` for an
- * WEP network.
- */
- /**
- * Converts a given {@link LuCI.network.WifiEncryption encryption entry}
- * into a human readable string such as `mixed WPA/WPA2 PSK (TKIP, CCMP)`
- * or `WPA3 SAE (CCMP)`.
- *
- * @method
- *
- * @param {LuCI.network.WifiEncryption} encryption
- * The wireless encryption entry to convert.
- *
- * @returns {null|string}
- * Returns the description string for the given encryption entry or
- * `null` if the given entry was invalid.
- */
- formatWifiEncryption: formatWifiEncryption,
- /**
- * Flushes the local network state cache and fetches updated information
- * from the remote `ubus` apis.
- *
- * @returns {Promise<Object>}
- * Returns a promise resolving to the internal network state object.
- */
- flushCache: function() {
- initNetworkState(true);
- return _init;
- },
- /**
- * Instantiates the given {@link LuCI.network.Protocol Protocol} back-end,
- * optionally using the given network name.
- *
- * @param {string} protoname
- * The protocol back-end to use, e.g. `static` or `dhcp`.
- *
- * @param {string} [netname=__dummy__]
- * The network name to use for the instantiated protocol. This should be
- * usually set to one of the interfaces described in /etc/config/network
- * but it is allowed to omit it, e.g. to query protocol capabilities
- * without the need for an existing interface.
- *
- * @returns {null|LuCI.network.Protocol}
- * Returns the instantiated protocol back-end class or `null` if the given
- * protocol isn't known.
- */
- getProtocol: function(protoname, netname) {
- var v = _protocols[protoname];
- if (v != null)
- return new v(netname || '__dummy__');
- return null;
- },
- /**
- * Obtains instances of all known {@link LuCI.network.Protocol Protocol}
- * back-end classes.
- *
- * @returns {Array<LuCI.network.Protocol>}
- * Returns an array of protocol class instances.
- */
- getProtocols: function() {
- var rv = [];
- for (var protoname in _protocols)
- rv.push(new _protocols[protoname]('__dummy__'));
- return rv;
- },
- /**
- * Registers a new {@link LuCI.network.Protocol Protocol} subclass
- * with the given methods and returns the resulting subclass value.
- *
- * This functions internally calls
- * {@link LuCI.Class.extend Class.extend()} on the `Network.Protocol`
- * base class.
- *
- * @param {string} protoname
- * The name of the new protocol to register.
- *
- * @param {Object<string, *>} methods
- * The member methods and values of the new `Protocol` subclass to
- * be passed to {@link LuCI.Class.extend Class.extend()}.
- *
- * @returns {LuCI.network.Protocol}
- * Returns the new `Protocol` subclass.
- */
- registerProtocol: function(protoname, methods) {
- var spec = L.isObject(_protospecs) ? _protospecs[protoname] : null;
- var proto = Protocol.extend(Object.assign({
- getI18n: function() {
- return protoname;
- },
- isFloating: function() {
- return false;
- },
- isVirtual: function() {
- return (L.isObject(spec) && spec.no_device == true);
- },
- renderFormOptions: function(section) {
- }
- }, methods, {
- __init__: function(name) {
- this.sid = name;
- },
- getProtocol: function() {
- return protoname;
- }
- }));
- _protocols[protoname] = proto;
- return proto;
- },
- /**
- * Registers a new regular expression pattern to recognize
- * virtual interfaces.
- *
- * @param {RegExp} pat
- * A `RegExp` instance to match a virtual interface name
- * such as `6in4-wan` or `tun0`.
- */
- registerPatternVirtual: function(pat) {
- iface_patterns_virtual.push(pat);
- },
- /**
- * Registers a new human readable translation string for a `Protocol`
- * error code.
- *
- * @param {string} code
- * The `ubus` protocol error code to register a translation for, e.g.
- * `NO_DEVICE`.
- *
- * @param {string} message
- * The message to use as translation for the given protocol error code.
- *
- * @returns {boolean}
- * Returns `true` if the error code description has been added or `false`
- * if either the arguments were invalid or if there already was a
- * description for the given code.
- */
- registerErrorCode: function(code, message) {
- if (typeof(code) == 'string' &&
- typeof(message) == 'string' &&
- !proto_errors.hasOwnProperty(code)) {
- proto_errors[code] = message;
- return true;
- }
- return false;
- },
- /**
- * Adds a new network of the given name and update it with the given
- * uci option values.
- *
- * If a network with the given name already exist but is empty, then
- * this function will update its option, otherwise it will do nothing.
- *
- * @param {string} name
- * The name of the network to add. Must be in the format `[a-zA-Z0-9_]+`.
- *
- * @param {Object<string, string|string[]>} [options]
- * An object of uci option values to set on the new network or to
- * update in an existing, empty network.
- *
- * @returns {Promise<null|LuCI.network.Protocol>}
- * Returns a promise resolving to the `Protocol` subclass instance
- * describing the added network or resolving to `null` if the name
- * was invalid or if a non-empty network of the given name already
- * existed.
- */
- addNetwork: function(name, options) {
- return this.getNetwork(name).then(L.bind(function(existingNetwork) {
- if (name != null && /^[a-zA-Z0-9_]+$/.test(name) && existingNetwork == null) {
- var sid = uci.add('network', 'interface', name);
- if (sid != null) {
- if (L.isObject(options))
- for (var key in options)
- if (options.hasOwnProperty(key))
- uci.set('network', sid, key, options[key]);
- return this.instantiateNetwork(sid);
- }
- }
- else if (existingNetwork != null && existingNetwork.isEmpty()) {
- if (L.isObject(options))
- for (var key in options)
- if (options.hasOwnProperty(key))
- existingNetwork.set(key, options[key]);
- return existingNetwork;
- }
- }, this));
- },
- /**
- * Get a {@link LuCI.network.Protocol Protocol} instance describing
- * the network with the given name.
- *
- * @param {string} name
- * The logical interface name of the network get, e.g. `lan` or `wan`.
- *
- * @returns {Promise<null|LuCI.network.Protocol>}
- * Returns a promise resolving to a
- * {@link LuCI.network.Protocol Protocol} subclass instance describing
- * the network or `null` if the network did not exist.
- */
- getNetwork: function(name) {
- return initNetworkState().then(L.bind(function() {
- var section = (name != null) ? uci.get('network', name) : null;
- if (section != null && section['.type'] == 'interface') {
- return this.instantiateNetwork(name);
- }
- else if (name != null) {
- for (var i = 0; i < _state.ifaces.length; i++)
- if (_state.ifaces[i].interface == name)
- return this.instantiateNetwork(name, _state.ifaces[i].proto);
- }
- return null;
- }, this));
- },
- /**
- * Gets an array containing all known networks.
- *
- * @returns {Promise<Array<LuCI.network.Protocol>>}
- * Returns a promise resolving to a name-sorted array of
- * {@link LuCI.network.Protocol Protocol} subclass instances
- * describing all known networks.
- */
- getNetworks: function() {
- return initNetworkState().then(L.bind(enumerateNetworks, this));
- },
- /**
- * Deletes the given network and its references from the network and
- * firewall configuration.
- *
- * @param {string} name
- * The name of the network to delete.
- *
- * @returns {Promise<boolean>}
- * Returns a promise resolving to either `true` if the network and
- * references to it were successfully deleted from the configuration or
- * `false` if the given network could not be found.
- */
- deleteNetwork: function(name) {
- var requireFirewall = Promise.resolve(L.require('firewall')).catch(function() {}),
- loadDHCP = L.resolveDefault(uci.load('dhcp')),
- network = this.instantiateNetwork(name);
- return Promise.all([ requireFirewall, loadDHCP, initNetworkState() ]).then(function(res) {
- var uciInterface = uci.get('network', name),
- firewall = res[0];
- if (uciInterface != null && uciInterface['.type'] == 'interface') {
- return Promise.resolve(network ? network.deleteConfiguration() : null).then(function() {
- uci.remove('network', name);
- uci.sections('luci', 'ifstate', function(s) {
- if (s.interface == name)
- uci.remove('luci', s['.name']);
- });
- uci.sections('network', null, function(s) {
- switch (s['.type']) {
- case 'alias':
- case 'route':
- case 'route6':
- if (s.interface == name)
- uci.remove('network', s['.name']);
- break;
- case 'rule':
- case 'rule6':
- if (s.in == name || s.out == name)
- uci.remove('network', s['.name']);
- break;
- }
- });
- uci.sections('wireless', 'wifi-iface', function(s) {
- var networks = L.toArray(s.network).filter(function(network) { return network != name });
- if (networks.length > 0)
- uci.set('wireless', s['.name'], 'network', networks.join(' '));
- else
- uci.unset('wireless', s['.name'], 'network');
- });
- uci.sections('dhcp', 'dhcp', function(s) {
- if (s.interface == name)
- uci.remove('dhcp', s['.name']);
- });
- if (firewall)
- return firewall.deleteNetwork(name).then(function() { return true });
- return true;
- }).catch(function() {
- return false;
- });
- }
- return false;
- });
- },
- /**
- * Rename the given network and its references to a new name.
- *
- * @param {string} oldName
- * The current name of the network.
- *
- * @param {string} newName
- * The name to rename the network to, must be in the format
- * `[a-z-A-Z0-9_]+`.
- *
- * @returns {Promise<boolean>}
- * Returns a promise resolving to either `true` if the network was
- * successfully renamed or `false` if the new name was invalid, if
- * a network with the new name already exists or if the network to
- * rename could not be found.
- */
- renameNetwork: function(oldName, newName) {
- return initNetworkState().then(function() {
- if (newName == null || !/^[a-zA-Z0-9_]+$/.test(newName) || uci.get('network', newName) != null)
- return false;
- var oldNetwork = uci.get('network', oldName);
- if (oldNetwork == null || oldNetwork['.type'] != 'interface')
- return false;
- var sid = uci.add('network', 'interface', newName);
- for (var key in oldNetwork)
- if (oldNetwork.hasOwnProperty(key) && key.charAt(0) != '.')
- uci.set('network', sid, key, oldNetwork[key]);
- uci.sections('luci', 'ifstate', function(s) {
- if (s.interface == oldName)
- uci.set('luci', s['.name'], 'interface', newName);
- });
- uci.sections('network', 'alias', function(s) {
- if (s.interface == oldName)
- uci.set('network', s['.name'], 'interface', newName);
- });
- uci.sections('network', 'route', function(s) {
- if (s.interface == oldName)
- uci.set('network', s['.name'], 'interface', newName);
- });
- uci.sections('network', 'route6', function(s) {
- if (s.interface == oldName)
- uci.set('network', s['.name'], 'interface', newName);
- });
- uci.sections('wireless', 'wifi-iface', function(s) {
- var networks = L.toArray(s.network).map(function(network) { return (network == oldName ? newName : network) });
- if (networks.length > 0)
- uci.set('wireless', s['.name'], 'network', networks.join(' '));
- });
- uci.remove('network', oldName);
- return true;
- });
- },
- /**
- * Get a {@link LuCI.network.Device Device} instance describing the
- * given network device.
- *
- * @param {string} name
- * The name of the network device to get, e.g. `eth0` or `br-lan`.
- *
- * @returns {Promise<null|LuCI.network.Device>}
- * Returns a promise resolving to the `Device` instance describing
- * the network device or `null` if the given device name could not
- * be found.
- */
- getDevice: function(name) {
- return initNetworkState().then(L.bind(function() {
- if (name == null)
- return null;
- if (_state.netdevs.hasOwnProperty(name))
- return this.instantiateDevice(name);
- var netid = getWifiNetidBySid(name);
- if (netid != null)
- return this.instantiateDevice(netid[0]);
- return null;
- }, this));
- },
- /**
- * Get a sorted list of all found network devices.
- *
- * @returns {Promise<Array<LuCI.network.Device>>}
- * Returns a promise resolving to a sorted array of `Device` class
- * instances describing the network devices found on the system.
- */
- getDevices: function() {
- return initNetworkState().then(L.bind(function() {
- var devices = {};
- /* find simple devices */
- var uciInterfaces = uci.sections('network', 'interface');
- for (var i = 0; i < uciInterfaces.length; i++) {
- var ifnames = L.toArray(uciInterfaces[i].ifname);
- for (var j = 0; j < ifnames.length; j++) {
- if (ifnames[j].charAt(0) == '@')
- continue;
- if (isIgnoredIfname(ifnames[j]) || isVirtualIfname(ifnames[j]) || isWifiIfname(ifnames[j]))
- continue;
- devices[ifnames[j]] = this.instantiateDevice(ifnames[j]);
- }
- }
- for (var ifname in _state.netdevs) {
- if (devices.hasOwnProperty(ifname))
- continue;
- if (isIgnoredIfname(ifname) || isWifiIfname(ifname))
- continue;
- if (_state.netdevs[ifname].wireless)
- continue;
- devices[ifname] = this.instantiateDevice(ifname);
- }
- /* find VLAN devices */
- var uciSwitchVLANs = uci.sections('network', 'switch_vlan');
- for (var i = 0; i < uciSwitchVLANs.length; i++) {
- if (typeof(uciSwitchVLANs[i].ports) != 'string' ||
- typeof(uciSwitchVLANs[i].device) != 'string' ||
- !_state.switches.hasOwnProperty(uciSwitchVLANs[i].device))
- continue;
- var ports = uciSwitchVLANs[i].ports.split(/\s+/);
- for (var j = 0; j < ports.length; j++) {
- var m = ports[j].match(/^(\d+)([tu]?)$/);
- if (m == null)
- continue;
- var netdev = _state.switches[uciSwitchVLANs[i].device].netdevs[m[1]];
- if (netdev == null)
- continue;
- if (!devices.hasOwnProperty(netdev))
- devices[netdev] = this.instantiateDevice(netdev);
- _state.isSwitch[netdev] = true;
- if (m[2] != 't')
- continue;
- var vid = uciSwitchVLANs[i].vid || uciSwitchVLANs[i].vlan;
- vid = (vid != null ? +vid : null);
- if (vid == null || vid < 0 || vid > 4095)
- continue;
- var vlandev = '%s.%d'.format(netdev, vid);
- if (!devices.hasOwnProperty(vlandev))
- devices[vlandev] = this.instantiateDevice(vlandev);
- _state.isSwitch[vlandev] = true;
- }
- }
- /* find bridge VLAN devices */
- var uciBridgeVLANs = uci.sections('network', 'bridge-vlan');
- for (var i = 0; i < uciBridgeVLANs.length; i++) {
- var basedev = uciBridgeVLANs[i].device,
- local = uciBridgeVLANs[i].local,
- alias = uciBridgeVLANs[i].alias,
- vid = +uciBridgeVLANs[i].vlan,
- ports = L.toArray(uciBridgeVLANs[i].ports);
- if (local == '0')
- continue;
- if (isNaN(vid) || vid < 0 || vid > 4095)
- continue;
- var vlandev = '%s.%s'.format(basedev, alias || vid);
- _state.isBridge[basedev] = true;
- if (!_state.bridges.hasOwnProperty(basedev))
- _state.bridges[basedev] = {
- name: basedev,
- ifnames: []
- };
- if (!devices.hasOwnProperty(vlandev))
- devices[vlandev] = this.instantiateDevice(vlandev);
- ports.forEach(function(port_name) {
- var m = port_name.match(/^([^:]+)(?::[ut*]+)?$/),
- p = m ? m[1] : null;
- if (!p)
- return;
- if (_state.bridges[basedev].ifnames.filter(function(sd) { return sd.name == p }).length)
- return;
- _state.netdevs[p] = _state.netdevs[p] || {
- name: p,
- ipaddrs: [],
- ip6addrs: [],
- type: 1,
- devtype: 'ethernet',
- stats: {},
- flags: {}
- };
- _state.bridges[basedev].ifnames.push(_state.netdevs[p]);
- _state.netdevs[p].bridge = _state.bridges[basedev];
- });
- }
- /* find wireless interfaces */
- var uciWifiIfaces = uci.sections('wireless', 'wifi-iface'),
- networkCount = {};
- for (var i = 0; i < uciWifiIfaces.length; i++) {
- if (typeof(uciWifiIfaces[i].device) != 'string')
- continue;
- networkCount[uciWifiIfaces[i].device] = (networkCount[uciWifiIfaces[i].device] || 0) + 1;
- var netid = '%s.network%d'.format(uciWifiIfaces[i].device, networkCount[uciWifiIfaces[i].device]);
- devices[netid] = this.instantiateDevice(netid);
- }
- /* find uci declared devices */
- var uciDevices = uci.sections('network', 'device');
- for (var i = 0; i < uciDevices.length; i++) {
- var type = uciDevices[i].type,
- name = uciDevices[i].name;
- if (!type || !name || devices.hasOwnProperty(name))
- continue;
- if (type == 'bridge')
- _state.isBridge[name] = true;
- devices[name] = this.instantiateDevice(name);
- }
- var rv = [];
- for (var netdev in devices)
- if (devices.hasOwnProperty(netdev))
- rv.push(devices[netdev]);
- rv.sort(deviceSort);
- return rv;
- }, this));
- },
- /**
- * Test if a given network device name is in the list of patterns for
- * device names to ignore.
- *
- * Ignored device names are usually Linux network devices which are
- * spawned implicitly by kernel modules such as `tunl0` or `hwsim0`
- * and which are unsuitable for use in network configuration.
- *
- * @param {string} name
- * The device name to test.
- *
- * @returns {boolean}
- * Returns `true` if the given name is in the ignore pattern list,
- * else returns `false`.
- */
- isIgnoredDevice: function(name) {
- return isIgnoredIfname(name);
- },
- /**
- * Get a {@link LuCI.network.WifiDevice WifiDevice} instance describing
- * the given wireless radio.
- *
- * @param {string} devname
- * The configuration name of the wireless radio to look up, e.g. `radio0`
- * for the first mac80211 phy on the system.
- *
- * @returns {Promise<null|LuCI.network.WifiDevice>}
- * Returns a promise resolving to the `WifiDevice` instance describing
- * the underlying radio device or `null` if the wireless radio could not
- * be found.
- */
- getWifiDevice: function(devname) {
- return initNetworkState().then(L.bind(function() {
- var existingDevice = uci.get('wireless', devname);
- if (existingDevice == null || existingDevice['.type'] != 'wifi-device')
- return null;
- return this.instantiateWifiDevice(devname, _state.radios[devname] || {});
- }, this));
- },
- /**
- * Obtain a list of all configured radio devices.
- *
- * @returns {Promise<Array<LuCI.network.WifiDevice>>}
- * Returns a promise resolving to an array of `WifiDevice` instances
- * describing the wireless radios configured in the system.
- * The order of the array corresponds to the order of the radios in
- * the configuration.
- */
- getWifiDevices: function() {
- return initNetworkState().then(L.bind(function() {
- var uciWifiDevices = uci.sections('wireless', 'wifi-device'),
- rv = [];
- for (var i = 0; i < uciWifiDevices.length; i++) {
- var devname = uciWifiDevices[i]['.name'];
- rv.push(this.instantiateWifiDevice(devname, _state.radios[devname] || {}));
- }
- return rv;
- }, this));
- },
- /**
- * Get a {@link LuCI.network.WifiNetwork WifiNetwork} instance describing
- * the given wireless network.
- *
- * @param {string} netname
- * The name of the wireless network to look up. This may be either an uci
- * configuration section ID, a network ID in the form `radio#.network#`
- * or a Linux network device name like `wlan0` which is resolved to the
- * corresponding configuration section through `ubus` runtime information.
- *
- * @returns {Promise<null|LuCI.network.WifiNetwork>}
- * Returns a promise resolving to the `WifiNetwork` instance describing
- * the wireless network or `null` if the corresponding network could not
- * be found.
- */
- getWifiNetwork: function(netname) {
- return initNetworkState()
- .then(L.bind(this.lookupWifiNetwork, this, netname));
- },
- /**
- * Get an array of all {@link LuCI.network.WifiNetwork WifiNetwork}
- * instances describing the wireless networks present on the system.
- *
- * @returns {Promise<Array<LuCI.network.WifiNetwork>>}
- * Returns a promise resolving to an array of `WifiNetwork` instances
- * describing the wireless networks. The array will be empty if no networks
- * are found.
- */
- getWifiNetworks: function() {
- return initNetworkState().then(L.bind(function() {
- var wifiIfaces = uci.sections('wireless', 'wifi-iface'),
- rv = [];
- for (var i = 0; i < wifiIfaces.length; i++)
- rv.push(this.lookupWifiNetwork(wifiIfaces[i]['.name']));
- rv.sort(function(a, b) {
- return L.naturalCompare(a.getID(), b.getID());
- });
- return rv;
- }, this));
- },
- /**
- * Adds a new wireless network to the configuration and sets its options
- * to the provided values.
- *
- * @param {Object<string, string|string[]>} options
- * The options to set for the newly added wireless network. This object
- * must at least contain a `device` property which is set to the radio
- * name the new network belongs to.
- *
- * @returns {Promise<null|LuCI.network.WifiNetwork>}
- * Returns a promise resolving to a `WifiNetwork` instance describing
- * the newly added wireless network or `null` if the given options
- * were invalid or if the associated radio device could not be found.
- */
- addWifiNetwork: function(options) {
- return initNetworkState().then(L.bind(function() {
- if (options == null ||
- typeof(options) != 'object' ||
- typeof(options.device) != 'string')
- return null;
- var existingDevice = uci.get('wireless', options.device);
- if (existingDevice == null || existingDevice['.type'] != 'wifi-device')
- return null;
- /* XXX: need to add a named section (wifinet#) here */
- var sid = uci.add('wireless', 'wifi-iface');
- for (var key in options)
- if (options.hasOwnProperty(key))
- uci.set('wireless', sid, key, options[key]);
- var radioname = existingDevice['.name'],
- netid = getWifiNetidBySid(sid) || [];
- return this.instantiateWifiNetwork(sid, radioname, _state.radios[radioname], netid[0], null);
- }, this));
- },
- /**
- * Deletes the given wireless network from the configuration.
- *
- * @param {string} netname
- * The name of the network to remove. This may be either a
- * network ID in the form `radio#.network#` or a Linux network device
- * name like `wlan0` which is resolved to the corresponding configuration
- * section through `ubus` runtime information.
- *
- * @returns {Promise<boolean>}
- * Returns a promise resolving to `true` if the wireless network has been
- * successfully deleted from the configuration or `false` if it could not
- * be found.
- */
- deleteWifiNetwork: function(netname) {
- return initNetworkState().then(L.bind(function() {
- var sid = getWifiSidByIfname(netname);
- if (sid == null)
- return false;
- uci.remove('wireless', sid);
- return true;
- }, this));
- },
- /* private */
- getStatusByRoute: function(addr, mask) {
- return initNetworkState().then(L.bind(function() {
- var rv = [];
- for (var i = 0; i < _state.ifaces.length; i++) {
- if (!Array.isArray(_state.ifaces[i].route))
- continue;
- for (var j = 0; j < _state.ifaces[i].route.length; j++) {
- if (typeof(_state.ifaces[i].route[j]) != 'object' ||
- typeof(_state.ifaces[i].route[j].target) != 'string' ||
- typeof(_state.ifaces[i].route[j].mask) != 'number')
- continue;
- if (_state.ifaces[i].route[j].table)
- continue;
- if (_state.ifaces[i].route[j].target != addr ||
- _state.ifaces[i].route[j].mask != mask)
- continue;
- rv.push(_state.ifaces[i]);
- }
- }
- rv.sort(function(a, b) {
- return L.naturalCompare(a.metric, b.metric) || L.naturalCompare(a.interface, b.interface);
- });
- return rv;
- }, this));
- },
- /* private */
- getStatusByAddress: function(addr) {
- return initNetworkState().then(L.bind(function() {
- var rv = [];
- for (var i = 0; i < _state.ifaces.length; i++) {
- if (Array.isArray(_state.ifaces[i]['ipv4-address']))
- for (var j = 0; j < _state.ifaces[i]['ipv4-address'].length; j++)
- if (typeof(_state.ifaces[i]['ipv4-address'][j]) == 'object' &&
- _state.ifaces[i]['ipv4-address'][j].address == addr)
- return _state.ifaces[i];
- if (Array.isArray(_state.ifaces[i]['ipv6-address']))
- for (var j = 0; j < _state.ifaces[i]['ipv6-address'].length; j++)
- if (typeof(_state.ifaces[i]['ipv6-address'][j]) == 'object' &&
- _state.ifaces[i]['ipv6-address'][j].address == addr)
- return _state.ifaces[i];
- if (Array.isArray(_state.ifaces[i]['ipv6-prefix-assignment']))
- for (var j = 0; j < _state.ifaces[i]['ipv6-prefix-assignment'].length; j++)
- if (typeof(_state.ifaces[i]['ipv6-prefix-assignment'][j]) == 'object' &&
- typeof(_state.ifaces[i]['ipv6-prefix-assignment'][j]['local-address']) == 'object' &&
- _state.ifaces[i]['ipv6-prefix-assignment'][j]['local-address'].address == addr)
- return _state.ifaces[i];
- }
- return null;
- }, this));
- },
- /**
- * Get IPv4 wan networks.
- *
- * This function looks up all networks having a default `0.0.0.0/0` route
- * and returns them as array.
- *
- * @returns {Promise<Array<LuCI.network.Protocol>>}
- * Returns a promise resolving to an array of `Protocol` subclass
- * instances describing the found default route interfaces.
- */
- getWANNetworks: function() {
- return this.getStatusByRoute('0.0.0.0', 0).then(L.bind(function(statuses) {
- var rv = [], seen = {};
- for (var i = 0; i < statuses.length; i++) {
- if (!seen.hasOwnProperty(statuses[i].interface)) {
- rv.push(this.instantiateNetwork(statuses[i].interface, statuses[i].proto));
- seen[statuses[i].interface] = true;
- }
- }
- return rv;
- }, this));
- },
- /**
- * Get IPv6 wan networks.
- *
- * This function looks up all networks having a default `::/0` route
- * and returns them as array.
- *
- * @returns {Promise<Array<LuCI.network.Protocol>>}
- * Returns a promise resolving to an array of `Protocol` subclass
- * instances describing the found IPv6 default route interfaces.
- */
- getWAN6Networks: function() {
- return this.getStatusByRoute('::', 0).then(L.bind(function(statuses) {
- var rv = [], seen = {};
- for (var i = 0; i < statuses.length; i++) {
- if (!seen.hasOwnProperty(statuses[i].interface)) {
- rv.push(this.instantiateNetwork(statuses[i].interface, statuses[i].proto));
- seen[statuses[i].interface] = true;
- }
- }
- return rv;
- }, this));
- },
- /**
- * Describes a swconfig switch topology by specifying the CPU
- * connections and external port labels of a switch.
- *
- * @typedef {Object<string, Object|Array>} SwitchTopology
- * @memberof LuCI.network
- *
- * @property {Object<number, string>} netdevs
- * The `netdevs` property points to an object describing the CPU port
- * connections of the switch. The numeric key of the enclosed object is
- * the port number, the value contains the Linux network device name the
- * port is hardwired to.
- *
- * @property {Array<Object<string, boolean|number|string>>} ports
- * The `ports` property points to an array describing the populated
- * ports of the switch in the external label order. Each array item is
- * an object containing the following keys:
- * - `num` - the internal switch port number
- * - `label` - the label of the port, e.g. `LAN 1` or `CPU (eth0)`
- * - `device` - the connected Linux network device name (CPU ports only)
- * - `tagged` - a boolean indicating whether the port must be tagged to
- * function (CPU ports only)
- */
- /**
- * Returns the topologies of all swconfig switches found on the system.
- *
- * @returns {Promise<Object<string, LuCI.network.SwitchTopology>>}
- * Returns a promise resolving to an object containing the topologies
- * of each switch. The object keys correspond to the name of the switches
- * such as `switch0`, the values are
- * {@link LuCI.network.SwitchTopology SwitchTopology} objects describing
- * the layout.
- */
- getSwitchTopologies: function() {
- return initNetworkState().then(function() {
- return _state.switches;
- });
- },
- /* private */
- instantiateNetwork: function(name, proto) {
- if (name == null)
- return null;
- proto = (proto == null ? uci.get('network', name, 'proto') : proto);
- var protoClass = _protocols[proto] || Protocol;
- return new protoClass(name);
- },
- /* private */
- instantiateDevice: function(name, network, extend) {
- if (extend != null)
- return new (Device.extend(extend))(name, network);
- return new Device(name, network);
- },
- /* private */
- instantiateWifiDevice: function(radioname, radiostate) {
- return new WifiDevice(radioname, radiostate);
- },
- /* private */
- instantiateWifiNetwork: function(sid, radioname, radiostate, netid, netstate, hostapd) {
- return new WifiNetwork(sid, radioname, radiostate, netid, netstate, hostapd);
- },
- /* private */
- lookupWifiNetwork: function(netname) {
- var sid, res, netid, radioname, radiostate, netstate;
- sid = getWifiSidByNetid(netname);
- if (sid != null) {
- res = getWifiStateBySid(sid);
- netid = netname;
- radioname = res ? res[0] : null;
- radiostate = res ? res[1] : null;
- netstate = res ? res[2] : null;
- }
- else {
- res = getWifiStateByIfname(netname);
- if (res != null) {
- radioname = res[0];
- radiostate = res[1];
- netstate = res[2];
- sid = netstate.section;
- netid = L.toArray(getWifiNetidBySid(sid))[0];
- }
- else {
- res = getWifiStateBySid(netname);
- if (res != null) {
- radioname = res[0];
- radiostate = res[1];
- netstate = res[2];
- sid = netname;
- netid = L.toArray(getWifiNetidBySid(sid))[0];
- }
- else {
- res = getWifiNetidBySid(netname);
- if (res != null) {
- netid = res[0];
- radioname = res[1];
- sid = netname;
- }
- }
- }
- }
- return this.instantiateWifiNetwork(sid || netname, radioname,
- radiostate, netid, netstate,
- netstate ? _state.hostapd[netstate.ifname] : null);
- },
- /**
- * Obtains the network device name of the given object.
- *
- * @param {LuCI.network.Protocol|LuCI.network.Device|LuCI.network.WifiDevice|LuCI.network.WifiNetwork|string} obj
- * The object to get the device name from.
- *
- * @returns {null|string}
- * Returns a string containing the device name or `null` if the given
- * object could not be converted to a name.
- */
- getIfnameOf: function(obj) {
- return ifnameOf(obj);
- },
- /**
- * Queries the internal DSL modem type from board information.
- *
- * @returns {Promise<null|string>}
- * Returns a promise resolving to the type of the internal modem
- * (e.g. `vdsl`) or to `null` if no internal modem is present.
- */
- getDSLModemType: function() {
- return initNetworkState().then(function() {
- return _state.hasDSLModem ? _state.hasDSLModem.type : null;
- });
- },
- /**
- * Queries aggregated information about known hosts.
- *
- * This function aggregates information from various sources such as
- * DHCP lease databases, ARP and IPv6 neighbour entries, wireless
- * association list etc. and returns a {@link LuCI.network.Hosts Hosts}
- * class instance describing the found hosts.
- *
- * @returns {Promise<LuCI.network.Hosts>}
- * Returns a `Hosts` instance describing host known on the system.
- */
- getHostHints: function() {
- return initNetworkState().then(function() {
- return new Hosts(_state.hosts);
- });
- }
- });
- /**
- * @class
- * @memberof LuCI.network
- * @hideconstructor
- * @classdesc
- *
- * The `LuCI.network.Hosts` class encapsulates host information aggregated
- * from multiple sources and provides convenience functions to access the
- * host information by different criteria.
- */
- Hosts = baseclass.extend(/** @lends LuCI.network.Hosts.prototype */ {
- __init__: function(hosts) {
- this.hosts = hosts;
- },
- /**
- * Look up the hostname associated with the given MAC address.
- *
- * @param {string} mac
- * The MAC address to look up.
- *
- * @returns {null|string}
- * Returns the hostname associated with the given MAC or `null` if
- * no matching host could be found or if no hostname is known for
- * the corresponding host.
- */
- getHostnameByMACAddr: function(mac) {
- return this.hosts[mac]
- ? (this.hosts[mac].name || null)
- : null;
- },
- /**
- * Look up the IPv4 address associated with the given MAC address.
- *
- * @param {string} mac
- * The MAC address to look up.
- *
- * @returns {null|string}
- * Returns the IPv4 address associated with the given MAC or `null` if
- * no matching host could be found or if no IPv4 address is known for
- * the corresponding host.
- */
- getIPAddrByMACAddr: function(mac) {
- return this.hosts[mac]
- ? (L.toArray(this.hosts[mac].ipaddrs || this.hosts[mac].ipv4)[0] || null)
- : null;
- },
- /**
- * Look up the IPv6 address associated with the given MAC address.
- *
- * @param {string} mac
- * The MAC address to look up.
- *
- * @returns {null|string}
- * Returns the IPv6 address associated with the given MAC or `null` if
- * no matching host could be found or if no IPv6 address is known for
- * the corresponding host.
- */
- getIP6AddrByMACAddr: function(mac) {
- return this.hosts[mac]
- ? (L.toArray(this.hosts[mac].ip6addrs || this.hosts[mac].ipv6)[0] || null)
- : null;
- },
- /**
- * Look up the hostname associated with the given IPv4 address.
- *
- * @param {string} ipaddr
- * The IPv4 address to look up.
- *
- * @returns {null|string}
- * Returns the hostname associated with the given IPv4 or `null` if
- * no matching host could be found or if no hostname is known for
- * the corresponding host.
- */
- getHostnameByIPAddr: function(ipaddr) {
- for (var mac in this.hosts) {
- if (this.hosts[mac].name == null)
- continue;
- var addrs = L.toArray(this.hosts[mac].ipaddrs || this.hosts[mac].ipv4);
- for (var i = 0; i < addrs.length; i++)
- if (addrs[i] == ipaddr)
- return this.hosts[mac].name;
- }
- return null;
- },
- /**
- * Look up the MAC address associated with the given IPv4 address.
- *
- * @param {string} ipaddr
- * The IPv4 address to look up.
- *
- * @returns {null|string}
- * Returns the MAC address associated with the given IPv4 or `null` if
- * no matching host could be found or if no MAC address is known for
- * the corresponding host.
- */
- getMACAddrByIPAddr: function(ipaddr) {
- for (var mac in this.hosts) {
- var addrs = L.toArray(this.hosts[mac].ipaddrs || this.hosts[mac].ipv4);
- for (var i = 0; i < addrs.length; i++)
- if (addrs[i] == ipaddr)
- return mac;
- }
- return null;
- },
- /**
- * Look up the hostname associated with the given IPv6 address.
- *
- * @param {string} ip6addr
- * The IPv6 address to look up.
- *
- * @returns {null|string}
- * Returns the hostname associated with the given IPv6 or `null` if
- * no matching host could be found or if no hostname is known for
- * the corresponding host.
- */
- getHostnameByIP6Addr: function(ip6addr) {
- for (var mac in this.hosts) {
- if (this.hosts[mac].name == null)
- continue;
- var addrs = L.toArray(this.hosts[mac].ip6addrs || this.hosts[mac].ipv6);
- for (var i = 0; i < addrs.length; i++)
- if (addrs[i] == ip6addr)
- return this.hosts[mac].name;
- }
- return null;
- },
- /**
- * Look up the MAC address associated with the given IPv6 address.
- *
- * @param {string} ip6addr
- * The IPv6 address to look up.
- *
- * @returns {null|string}
- * Returns the MAC address associated with the given IPv6 or `null` if
- * no matching host could be found or if no MAC address is known for
- * the corresponding host.
- */
- getMACAddrByIP6Addr: function(ip6addr) {
- for (var mac in this.hosts) {
- var addrs = L.toArray(this.hosts[mac].ip6addrs || this.hosts[mac].ipv6);
- for (var i = 0; i < addrs.length; i++)
- if (addrs[i] == ip6addr)
- return mac;
- }
- return null;
- },
- /**
- * Return an array of (MAC address, name hint) tuples sorted by
- * MAC address.
- *
- * @param {boolean} [preferIp6=false]
- * Whether to prefer IPv6 addresses (`true`) or IPv4 addresses (`false`)
- * as name hint when no hostname is known for a specific MAC address.
- *
- * @returns {Array<Array<string>>}
- * Returns an array of arrays containing a name hint for each found
- * MAC address on the system. The array is sorted ascending by MAC.
- *
- * Each item of the resulting array is a two element array with the
- * MAC being the first element and the name hint being the second
- * element. The name hint is either the hostname, an IPv4 or an IPv6
- * address related to the MAC address.
- *
- * If no hostname but both IPv4 and IPv6 addresses are known, the
- * `preferIP6` flag specifies whether the IPv6 or the IPv4 address
- * is used as hint.
- */
- getMACHints: function(preferIp6) {
- var rv = [];
- for (var mac in this.hosts) {
- var hint = this.hosts[mac].name ||
- L.toArray(this.hosts[mac][preferIp6 ? 'ip6addrs' : 'ipaddrs'] || this.hosts[mac][preferIp6 ? 'ipv6' : 'ipv4'])[0] ||
- L.toArray(this.hosts[mac][preferIp6 ? 'ipaddrs' : 'ip6addrs'] || this.hosts[mac][preferIp6 ? 'ipv4' : 'ipv6'])[0];
- rv.push([mac, hint]);
- }
- return rv.sort(function(a, b) {
- return L.naturalCompare(a[0], b[0]);
- });
- }
- });
- /**
- * @class
- * @memberof LuCI.network
- * @hideconstructor
- * @classdesc
- *
- * The `Network.Protocol` class serves as base for protocol specific
- * subclasses which describe logical UCI networks defined by `config
- * interface` sections in `/etc/config/network`.
- */
- Protocol = baseclass.extend(/** @lends LuCI.network.Protocol.prototype */ {
- __init__: function(name) {
- this.sid = name;
- },
- _get: function(opt) {
- var val = uci.get('network', this.sid, opt);
- if (Array.isArray(val))
- return val.join(' ');
- return val || '';
- },
- _ubus: function(field) {
- for (var i = 0; i < _state.ifaces.length; i++) {
- if (_state.ifaces[i].interface != this.sid)
- continue;
- return (field != null ? _state.ifaces[i][field] : _state.ifaces[i]);
- }
- },
- /**
- * Read the given UCI option value of this network.
- *
- * @param {string} opt
- * The UCI option name to read.
- *
- * @returns {null|string|string[]}
- * Returns the UCI option value or `null` if the requested option is
- * not found.
- */
- get: function(opt) {
- return uci.get('network', this.sid, opt);
- },
- /**
- * Set the given UCI option of this network to the given value.
- *
- * @param {string} opt
- * The name of the UCI option to set.
- *
- * @param {null|string|string[]} val
- * The value to set or `null` to remove the given option from the
- * configuration.
- */
- set: function(opt, val) {
- return uci.set('network', this.sid, opt, val);
- },
- /**
- * Get the associated Linux network device of this network.
- *
- * @returns {null|string}
- * Returns the name of the associated network device or `null` if
- * it could not be determined.
- */
- getIfname: function() {
- var ifname;
- if (this.isFloating())
- ifname = this._ubus('l3_device');
- else
- ifname = this._ubus('device') || this._ubus('l3_device');
- if (ifname != null)
- return ifname;
- var res = getWifiNetidByNetname(this.sid);
- return (res != null ? res[0] : null);
- },
- /**
- * Get the name of this network protocol class.
- *
- * This function will be overwritten by subclasses created by
- * {@link LuCI.network#registerProtocol Network.registerProtocol()}.
- *
- * @abstract
- * @returns {string}
- * Returns the name of the network protocol implementation, e.g.
- * `static` or `dhcp`.
- */
- getProtocol: function() {
- return null;
- },
- /**
- * Return a human readable description for the protocol, such as
- * `Static address` or `DHCP client`.
- *
- * This function should be overwritten by subclasses.
- *
- * @abstract
- * @returns {string}
- * Returns the description string.
- */
- getI18n: function() {
- switch (this.getProtocol()) {
- case 'none': return _('Unmanaged');
- case 'static': return _('Static address');
- case 'dhcp': return _('DHCP client');
- default: return _('Unknown');
- }
- },
- /**
- * Get the type of the underlying interface.
- *
- * This function actually is a convenience wrapper around
- * `proto.get("type")` and is mainly used by other `LuCI.network` code
- * to check whether the interface is declared as bridge in UCI.
- *
- * @returns {null|string}
- * Returns the value of the `type` option of the associated logical
- * interface or `null` if no `type` option is set.
- */
- getType: function() {
- return this._get('type');
- },
- /**
- * Get the name of the associated logical interface.
- *
- * @returns {string}
- * Returns the logical interface name, such as `lan` or `wan`.
- */
- getName: function() {
- return this.sid;
- },
- /**
- * Get the uptime of the logical interface.
- *
- * @returns {number}
- * Returns the uptime of the associated interface in seconds.
- */
- getUptime: function() {
- return this._ubus('uptime') || 0;
- },
- /**
- * Get the logical interface expiry time in seconds.
- *
- * For protocols that have a concept of a lease, such as DHCP or
- * DHCPv6, this function returns the remaining time in seconds
- * until the lease expires.
- *
- * @returns {number}
- * Returns the amount of seconds until the lease expires or `-1`
- * if it isn't applicable to the associated protocol.
- */
- getExpiry: function() {
- var u = this._ubus('uptime'),
- d = this._ubus('data'),
- v6_prefixes = this._ubus('ipv6-prefix'),
- v6_addresses = this._ubus('ipv6-address');
- if (typeof(u) == 'number' && d != null) {
- // DHCPv4 or leasetime in data
- if(typeof(d) == 'object' && typeof(d.leasetime) == 'number') {
- var r = d.leasetime - (u % d.leasetime);
- return (r > 0 ? r : 0);
- }
- // DHCPv6, we can have multiple IPs and prefixes
- if (Array.isArray(v6_prefixes) || Array.isArray(v6_addresses)) {
- var prefixes = [...v6_prefixes, ...v6_addresses];
- if(prefixes.length && typeof(prefixes[0].valid) == 'number') {
- var r = prefixes[0].valid;
- return (r > 0 ? r : 0);
- }
- }
- }
- return -1;
- },
- /**
- * Get the metric value of the logical interface.
- *
- * @returns {number}
- * Returns the current metric value used for device and network
- * routes spawned by the associated logical interface.
- */
- getMetric: function() {
- return this._ubus('metric') || 0;
- },
- /**
- * Get the requested firewall zone name of the logical interface.
- *
- * Some protocol implementations request a specific firewall zone
- * to trigger inclusion of their resulting network devices into the
- * firewall rule set.
- *
- * @returns {null|string}
- * Returns the requested firewall zone name as published in the
- * `ubus` runtime information or `null` if the remote protocol
- * handler didn't request a zone.
- */
- getZoneName: function() {
- var d = this._ubus('data');
- if (L.isObject(d) && typeof(d.zone) == 'string')
- return d.zone;
- return null;
- },
- /**
- * Query the first (primary) IPv4 address of the logical interface.
- *
- * @returns {null|string}
- * Returns the primary IPv4 address registered by the protocol handler
- * or `null` if no IPv4 addresses were set.
- */
- getIPAddr: function() {
- var addrs = this._ubus('ipv4-address');
- return ((Array.isArray(addrs) && addrs.length) ? addrs[0].address : null);
- },
- /**
- * Query all IPv4 addresses of the logical interface.
- *
- * @returns {string[]}
- * Returns an array of IPv4 addresses in CIDR notation which have been
- * registered by the protocol handler. The order of the resulting array
- * follows the order of the addresses in `ubus` runtime information.
- */
- getIPAddrs: function() {
- var addrs = this._ubus('ipv4-address'),
- rv = [];
- if (Array.isArray(addrs))
- for (var i = 0; i < addrs.length; i++)
- rv.push('%s/%d'.format(addrs[i].address, addrs[i].mask));
- return rv;
- },
- /**
- * Query the first (primary) IPv4 netmask of the logical interface.
- *
- * @returns {null|string}
- * Returns the netmask of the primary IPv4 address registered by the
- * protocol handler or `null` if no IPv4 addresses were set.
- */
- getNetmask: function() {
- var addrs = this._ubus('ipv4-address');
- if (Array.isArray(addrs) && addrs.length)
- return prefixToMask(addrs[0].mask, false);
- },
- /**
- * Query the gateway (nexthop) of the default route associated with
- * this logical interface.
- *
- * @returns {string}
- * Returns a string containing the IPv4 nexthop address of the associated
- * default route or `null` if no default route was found.
- */
- getGatewayAddr: function() {
- var routes = this._ubus('route');
- if (Array.isArray(routes))
- for (var i = 0; i < routes.length; i++)
- if (typeof(routes[i]) == 'object' &&
- routes[i].target == '0.0.0.0' &&
- routes[i].mask == 0)
- return routes[i].nexthop;
- return null;
- },
- /**
- * Query the IPv4 DNS servers associated with the logical interface.
- *
- * @returns {string[]}
- * Returns an array of IPv4 DNS servers registered by the remote
- * protocol back-end.
- */
- getDNSAddrs: function() {
- var addrs = this._ubus('dns-server'),
- rv = [];
- if (Array.isArray(addrs))
- for (var i = 0; i < addrs.length; i++)
- if (!/:/.test(addrs[i]))
- rv.push(addrs[i]);
- return rv;
- },
- /**
- * Query the first (primary) IPv6 address of the logical interface.
- *
- * @returns {null|string}
- * Returns the primary IPv6 address registered by the protocol handler
- * in CIDR notation or `null` if no IPv6 addresses were set.
- */
- getIP6Addr: function() {
- var addrs = this._ubus('ipv6-address');
- if (Array.isArray(addrs) && L.isObject(addrs[0]))
- return '%s/%d'.format(addrs[0].address, addrs[0].mask);
- addrs = this._ubus('ipv6-prefix-assignment');
- if (Array.isArray(addrs) && L.isObject(addrs[0]) && L.isObject(addrs[0]['local-address']))
- return '%s/%d'.format(addrs[0]['local-address'].address, addrs[0]['local-address'].mask);
- return null;
- },
- /**
- * Query all IPv6 addresses of the logical interface.
- *
- * @returns {string[]}
- * Returns an array of IPv6 addresses in CIDR notation which have been
- * registered by the protocol handler. The order of the resulting array
- * follows the order of the addresses in `ubus` runtime information.
- */
- getIP6Addrs: function() {
- var addrs = this._ubus('ipv6-address'),
- rv = [];
- if (Array.isArray(addrs))
- for (var i = 0; i < addrs.length; i++)
- if (L.isObject(addrs[i]))
- rv.push('%s/%d'.format(addrs[i].address, addrs[i].mask));
- addrs = this._ubus('ipv6-prefix-assignment');
- if (Array.isArray(addrs))
- for (var i = 0; i < addrs.length; i++)
- if (L.isObject(addrs[i]) && L.isObject(addrs[i]['local-address']))
- rv.push('%s/%d'.format(addrs[i]['local-address'].address, addrs[i]['local-address'].mask));
- return rv;
- },
- /**
- * Query the gateway (nexthop) of the IPv6 default route associated with
- * this logical interface.
- *
- * @returns {string}
- * Returns a string containing the IPv6 nexthop address of the associated
- * default route or `null` if no default route was found.
- */
- getGateway6Addr: function() {
- var routes = this._ubus('route');
- if (Array.isArray(routes))
- for (var i = 0; i < routes.length; i++)
- if (typeof(routes[i]) == 'object' &&
- routes[i].target == '::' &&
- routes[i].mask == 0)
- return routes[i].nexthop;
- return null;
- },
- /**
- * Query the IPv6 DNS servers associated with the logical interface.
- *
- * @returns {string[]}
- * Returns an array of IPv6 DNS servers registered by the remote
- * protocol back-end.
- */
- getDNS6Addrs: function() {
- var addrs = this._ubus('dns-server'),
- rv = [];
- if (Array.isArray(addrs))
- for (var i = 0; i < addrs.length; i++)
- if (/:/.test(addrs[i]))
- rv.push(addrs[i]);
- return rv;
- },
- /**
- * Query the routed IPv6 prefix associated with the logical interface.
- *
- * @returns {null|string}
- * Returns the routed IPv6 prefix registered by the remote protocol
- * handler or `null` if no prefix is present.
- */
- getIP6Prefix: function() {
- var prefixes = this._ubus('ipv6-prefix');
- if (Array.isArray(prefixes) && L.isObject(prefixes[0]))
- return '%s/%d'.format(prefixes[0].address, prefixes[0].mask);
- return null;
- },
- /**
- * Query the routed IPv6 prefixes associated with the logical interface.
- *
- * @returns {null|string[]}
- * Returns an array of the routed IPv6 prefixes registered by the remote
- * protocol handler or `null` if no prefixes are present.
- */
- getIP6Prefixes: function() {
- var prefixes = this._ubus('ipv6-prefix');
- var rv = [];
- if (Array.isArray(prefixes))
- for (var i = 0; i < prefixes.length; i++)
- if (L.isObject(prefixes[i]))
- rv.push('%s/%d'.format(prefixes[i].address, prefixes[i].mask));
- return rv.length > 0 ? rv: null;
- },
- /**
- * Query interface error messages published in `ubus` runtime state.
- *
- * Interface errors are emitted by remote protocol handlers if the setup
- * of the underlying logical interface failed, e.g. due to bad
- * configuration or network connectivity issues.
- *
- * This function will translate the found error codes to human readable
- * messages using the descriptions registered by
- * {@link LuCI.network#registerErrorCode Network.registerErrorCode()}
- * and fall back to `"Unknown error (%s)"` where `%s` is replaced by the
- * error code in case no translation can be found.
- *
- * @returns {string[]}
- * Returns an array of translated interface error messages.
- */
- getErrors: function() {
- var errors = this._ubus('errors'),
- rv = null;
- if (Array.isArray(errors)) {
- for (var i = 0; i < errors.length; i++) {
- if (!L.isObject(errors[i]) || typeof(errors[i].code) != 'string')
- continue;
- rv = rv || [];
- rv.push(proto_errors[errors[i].code] || _('Unknown error (%s)').format(errors[i].code));
- }
- }
- return rv;
- },
- /**
- * Checks whether the underlying logical interface is declared as bridge.
- *
- * @returns {boolean}
- * Returns `true` when the interface is declared with `option type bridge`
- * and when the associated protocol implementation is not marked virtual
- * or `false` when the logical interface is no bridge.
- */
- isBridge: function() {
- return (!this.isVirtual() && this.getType() == 'bridge');
- },
- /**
- * Get the name of the opkg package providing the protocol functionality.
- *
- * This function should be overwritten by protocol specific subclasses.
- *
- * @abstract
- *
- * @returns {string}
- * Returns the name of the opkg package required for the protocol to
- * function, e.g. `odhcp6c` for the `dhcpv6` protocol.
- */
- getOpkgPackage: function() {
- return null;
- },
- /**
- * Check function for the protocol handler if a new interface is creatable.
- *
- * This function should be overwritten by protocol specific subclasses.
- *
- * @abstract
- *
- * @param {string} ifname
- * The name of the interface to be created.
- *
- * @returns {Promise<void>}
- * Returns a promise resolving if new interface is creatable, else
- * rejects with an error message string.
- */
- isCreateable: function(ifname) {
- return Promise.resolve(null);
- },
- /**
- * Checks whether the protocol functionality is installed.
- *
- * This function exists for compatibility with old code, it always
- * returns `true`.
- *
- * @deprecated
- * @abstract
- *
- * @returns {boolean}
- * Returns `true` if the protocol support is installed, else `false`.
- */
- isInstalled: function() {
- return true;
- },
- /**
- * Checks whether this protocol is "virtual".
- *
- * A "virtual" protocol is a protocol which spawns its own interfaces
- * on demand instead of using existing physical interfaces.
- *
- * Examples for virtual protocols are `6in4` which `gre` spawn tunnel
- * network device on startup, examples for non-virtual protocols are
- * `dhcp` or `static` which apply IP configuration to existing interfaces.
- *
- * This function should be overwritten by subclasses.
- *
- * @returns {boolean}
- * Returns a boolean indicating whether the underlying protocol spawns
- * dynamic interfaces (`true`) or not (`false`).
- */
- isVirtual: function() {
- return false;
- },
- /**
- * Checks whether this protocol is "floating".
- *
- * A "floating" protocol is a protocol which spawns its own interfaces
- * on demand, like a virtual one but which relies on an existing lower
- * level interface to initiate the connection.
- *
- * An example for such a protocol is "pppoe".
- *
- * This function exists for backwards compatibility with older code
- * but should not be used anymore.
- *
- * @deprecated
- * @returns {boolean}
- * Returns a boolean indicating whether this protocol is floating (`true`)
- * or not (`false`).
- */
- isFloating: function() {
- return false;
- },
- /**
- * Checks whether this logical interface is dynamic.
- *
- * A dynamic interface is an interface which has been created at runtime,
- * e.g. as sub-interface of another interface, but which is not backed by
- * any user configuration. Such dynamic interfaces cannot be edited but
- * only brought down or restarted.
- *
- * @returns {boolean}
- * Returns a boolean indicating whether this interface is dynamic (`true`)
- * or not (`false`).
- */
- isDynamic: function() {
- return (this._ubus('dynamic') == true);
- },
- /**
- * Checks whether this interface is an alias interface.
- *
- * Alias interfaces are interfaces layering on top of another interface
- * and are denoted by a special `@interfacename` notation in the
- * underlying `device` option.
- *
- * @returns {null|string}
- * Returns the name of the parent interface if this logical interface
- * is an alias or `null` if it is not an alias interface.
- */
- isAlias: function() {
- var ifnames = L.toArray(uci.get('network', this.sid, 'device')),
- parent = null;
- for (var i = 0; i < ifnames.length; i++)
- if (ifnames[i].charAt(0) == '@')
- parent = ifnames[i].substr(1);
- else if (parent != null)
- parent = null;
- return parent;
- },
- /**
- * Checks whether this logical interface is "empty", where empty means that it
- * has no network devices attached.
- *
- * @returns {boolean}
- * Returns `true` if this logical interface is empty, else `false`.
- */
- isEmpty: function() {
- if (this.isFloating())
- return false;
- var empty = true,
- device = this._get('device');
- if (device != null && device.match(/\S+/))
- empty = false;
- if (empty == true && getWifiNetidBySid(this.sid) != null)
- empty = false;
- return empty;
- },
- /**
- * Checks whether this logical interface is configured and running.
- *
- * @returns {boolean}
- * Returns `true` when the interface is active or `false` when it is not.
- */
- isUp: function() {
- return (this._ubus('up') == true);
- },
- /**
- * Add the given network device to the logical interface.
- *
- * @param {LuCI.network.Protocol|LuCI.network.Device|LuCI.network.WifiDevice|LuCI.network.WifiNetwork|string} device
- * The object or device name to add to the logical interface. In case the
- * given argument is not a string, it is resolved though the
- * {@link LuCI.network#getIfnameOf Network.getIfnameOf()} function.
- *
- * @returns {boolean}
- * Returns `true` if the device name has been added or `false` if any
- * argument was invalid, if the device was already part of the logical
- * interface or if the logical interface is virtual.
- */
- addDevice: function(device) {
- device = ifnameOf(device);
- if (device == null || this.isFloating())
- return false;
- var wif = getWifiSidByIfname(device);
- if (wif != null)
- return appendValue('wireless', wif, 'network', this.sid);
- return appendValue('network', this.sid, 'device', device);
- },
- /**
- * Remove the given network device from the logical interface.
- *
- * @param {LuCI.network.Protocol|LuCI.network.Device|LuCI.network.WifiDevice|LuCI.network.WifiNetwork|string} device
- * The object or device name to remove from the logical interface. In case
- * the given argument is not a string, it is resolved though the
- * {@link LuCI.network#getIfnameOf Network.getIfnameOf()} function.
- *
- * @returns {boolean}
- * Returns `true` if the device name has been added or `false` if any
- * argument was invalid, if the device was already part of the logical
- * interface or if the logical interface is virtual.
- */
- deleteDevice: function(device) {
- var rv = false;
- device = ifnameOf(device);
- if (device == null || this.isFloating())
- return false;
- var wif = getWifiSidByIfname(device);
- if (wif != null)
- rv = removeValue('wireless', wif, 'network', this.sid);
- if (removeValue('network', this.sid, 'device', device))
- rv = true;
- return rv;
- },
- /**
- * Returns the Linux network device associated with this logical
- * interface.
- *
- * @returns {LuCI.network.Device}
- * Returns a `Network.Device` class instance representing the
- * expected Linux network device according to the configuration.
- */
- getDevice: function() {
- if (this.isVirtual()) {
- var ifname = '%s-%s'.format(this.getProtocol(), this.sid);
- _state.isTunnel[this.getProtocol() + '-' + this.sid] = true;
- return Network.prototype.instantiateDevice(ifname, this);
- }
- else if (this.isBridge()) {
- var ifname = 'br-%s'.format(this.sid);
- _state.isBridge[ifname] = true;
- return new Device(ifname, this);
- }
- else {
- var ifnames = L.toArray(uci.get('network', this.sid, 'device'));
- for (var i = 0; i < ifnames.length; i++) {
- var m = ifnames[i].match(/^([^:/]+)/);
- return ((m && m[1]) ? Network.prototype.instantiateDevice(m[1], this) : null);
- }
- ifname = getWifiNetidByNetname(this.sid);
- return (ifname != null ? Network.prototype.instantiateDevice(ifname[0], this) : null);
- }
- },
- /**
- * Returns the layer 2 Linux network device currently associated
- * with this logical interface.
- *
- * @returns {LuCI.network.Device}
- * Returns a `Network.Device` class instance representing the Linux
- * network device currently associated with the logical interface.
- */
- getL2Device: function() {
- var ifname = this._ubus('device');
- return (ifname != null ? Network.prototype.instantiateDevice(ifname, this) : null);
- },
- /**
- * Returns the layer 3 Linux network device currently associated
- * with this logical interface.
- *
- * @returns {LuCI.network.Device}
- * Returns a `Network.Device` class instance representing the Linux
- * network device currently associated with the logical interface.
- */
- getL3Device: function() {
- var ifname = this._ubus('l3_device');
- return (ifname != null ? Network.prototype.instantiateDevice(ifname, this) : null);
- },
- /**
- * Returns a list of network sub-devices associated with this logical
- * interface.
- *
- * @returns {null|Array<LuCI.network.Device>}
- * Returns an array of `Network.Device` class instances representing
- * the sub-devices attached to this logical interface or `null` if the
- * logical interface does not support sub-devices, e.g. because it is
- * virtual and not a bridge.
- */
- getDevices: function() {
- var rv = [];
- if (!this.isBridge() && !(this.isVirtual() && !this.isFloating()))
- return null;
- var device = uci.get('network', this.sid, 'device');
- if (device && device.charAt(0) != '@') {
- var m = device.match(/^([^:/]+)/);
- if (m != null)
- rv.push(Network.prototype.instantiateDevice(m[1], this));
- }
- var uciWifiIfaces = uci.sections('wireless', 'wifi-iface');
- for (var i = 0; i < uciWifiIfaces.length; i++) {
- if (typeof(uciWifiIfaces[i].device) != 'string')
- continue;
- var networks = L.toArray(uciWifiIfaces[i].network);
- for (var j = 0; j < networks.length; j++) {
- if (networks[j] != this.sid)
- continue;
- var netid = getWifiNetidBySid(uciWifiIfaces[i]['.name']);
- if (netid != null)
- rv.push(Network.prototype.instantiateDevice(netid[0], this));
- }
- }
- rv.sort(deviceSort);
- return rv;
- },
- /**
- * Checks whether this logical interface contains the given device
- * object.
- *
- * @param {LuCI.network.Protocol|LuCI.network.Device|LuCI.network.WifiDevice|LuCI.network.WifiNetwork|string} device
- * The object or device name to check. In case the given argument is not
- * a string, it is resolved though the
- * {@link LuCI.network#getIfnameOf Network.getIfnameOf()} function.
- *
- * @returns {boolean}
- * Returns `true` when this logical interface contains the given network
- * device or `false` if not.
- */
- containsDevice: function(device) {
- device = ifnameOf(device);
- if (device == null)
- return false;
- else if (this.isVirtual() && '%s-%s'.format(this.getProtocol(), this.sid) == device)
- return true;
- else if (this.isBridge() && 'br-%s'.format(this.sid) == device)
- return true;
- var name = uci.get('network', this.sid, 'device');
- if (name) {
- var m = name.match(/^([^:/]+)/);
- if (m != null && m[1] == device)
- return true;
- }
- var wif = getWifiSidByIfname(device);
- if (wif != null) {
- var networks = L.toArray(uci.get('wireless', wif, 'network'));
- for (var i = 0; i < networks.length; i++)
- if (networks[i] == this.sid)
- return true;
- }
- return false;
- },
- /**
- * Cleanup related configuration entries.
- *
- * This function will be invoked if an interface is about to be removed
- * from the configuration and is responsible for performing any required
- * cleanup tasks, such as unsetting uci entries in related configurations.
- *
- * It should be overwritten by protocol specific subclasses.
- *
- * @abstract
- *
- * @returns {*|Promise<*>}
- * This function may return a promise which is awaited before the rest of
- * the configuration is removed. Any non-promise return value and any
- * resolved promise value is ignored. If the returned promise is rejected,
- * the interface removal will be aborted.
- */
- deleteConfiguration: function() {}
- });
- /**
- * @class
- * @memberof LuCI.network
- * @hideconstructor
- * @classdesc
- *
- * A `Network.Device` class instance represents an underlying Linux network
- * device and allows querying device details such as packet statistics or MTU.
- */
- Device = baseclass.extend(/** @lends LuCI.network.Device.prototype */ {
- __init__: function(device, network) {
- var wif = getWifiSidByIfname(device);
- if (wif != null) {
- var res = getWifiStateBySid(wif) || [],
- netid = getWifiNetidBySid(wif) || [];
- this.wif = new WifiNetwork(wif, res[0], res[1], netid[0], res[2], { ifname: device });
- this.device = this.wif.getIfname();
- }
- this.device = this.device || device;
- this.dev = Object.assign({}, _state.netdevs[this.device]);
- this.network = network;
- var conf;
- uci.sections('network', 'device', function(s) {
- if (s.name == device)
- conf = s;
- });
- this.config = Object.assign({}, conf);
- },
- _devstate: function(/* ... */) {
- var rv = this.dev;
- for (var i = 0; i < arguments.length; i++)
- if (L.isObject(rv))
- rv = rv[arguments[i]];
- else
- return null;
- return rv;
- },
- /**
- * Get the name of the network device.
- *
- * @returns {string}
- * Returns the name of the device, e.g. `eth0` or `wlan0`.
- */
- getName: function() {
- return (this.wif != null ? this.wif.getIfname() : this.device);
- },
- /**
- * Get the MAC address of the device.
- *
- * @returns {null|string}
- * Returns the MAC address of the device or `null` if not applicable,
- * e.g. for non-Ethernet tunnel devices.
- */
- getMAC: function() {
- var mac = this._devstate('macaddr');
- return mac ? mac.toUpperCase() : null;
- },
- /**
- * Get the MTU of the device.
- *
- * @returns {number}
- * Returns the MTU of the device.
- */
- getMTU: function() {
- return this._devstate('mtu');
- },
- /**
- * Get the IPv4 addresses configured on the device.
- *
- * @returns {string[]}
- * Returns an array of IPv4 address strings.
- */
- getIPAddrs: function() {
- var addrs = this._devstate('ipaddrs');
- return (Array.isArray(addrs) ? addrs : []);
- },
- /**
- * Get the IPv6 addresses configured on the device.
- *
- * @returns {string[]}
- * Returns an array of IPv6 address strings.
- */
- getIP6Addrs: function() {
- var addrs = this._devstate('ip6addrs');
- return (Array.isArray(addrs) ? addrs : []);
- },
- /**
- * Get the type of the device.
- *
- * @returns {string}
- * Returns a string describing the type of the network device:
- * - `alias` if it is an abstract alias device (`@` notation)
- * - `wifi` if it is a wireless interface (e.g. `wlan0`)
- * - `bridge` if it is a bridge device (e.g. `br-lan`)
- * - `tunnel` if it is a tun or tap device (e.g. `tun0`)
- * - `vlan` if it is a vlan device (e.g. `eth0.1`)
- * - `switch` if it is a switch device (e.g.`eth1` connected to switch0)
- * - `ethernet` for all other device types
- */
- getType: function() {
- if (this.device != null && this.device.charAt(0) == '@')
- return 'alias';
- else if (this.dev.devtype == 'wlan' || this.wif != null || isWifiIfname(this.device))
- return 'wifi';
- else if (this.dev.devtype == 'bridge' || _state.isBridge[this.device])
- return 'bridge';
- else if (_state.isTunnel[this.device])
- return 'tunnel';
- else if (this.dev.devtype == 'vlan' || this.device.indexOf('.') > -1)
- return 'vlan';
- else if (this.dev.devtype == 'dsa' || _state.isSwitch[this.device])
- return 'switch';
- else if (this.config.type == '8021q' || this.config.type == '8021ad')
- return 'vlan';
- else if (this.config.type == 'bridge')
- return 'bridge';
- else
- return 'ethernet';
- },
- /**
- * Get a short description string for the device.
- *
- * @returns {string}
- * Returns the device name for non-WiFi devices or a string containing
- * the operation mode and SSID for WiFi devices.
- */
- getShortName: function() {
- if (this.wif != null)
- return this.wif.getShortName();
- return this.device;
- },
- /**
- * Get a long description string for the device.
- *
- * @returns {string}
- * Returns a string containing the type description and device name
- * for non-WiFi devices or operation mode and SSID for WiFi ones.
- */
- getI18n: function() {
- if (this.wif != null) {
- return '%s: %s "%s"'.format(
- _('Wireless Network'),
- this.wif.getActiveMode(),
- this.wif.getActiveSSID() || this.wif.getActiveBSSID() || this.wif.getID() || '?');
- }
- return '%s: "%s"'.format(this.getTypeI18n(), this.getName());
- },
- /**
- * Get a string describing the device type.
- *
- * @returns {string}
- * Returns a string describing the type, e.g. "Wireless Adapter" or
- * "Bridge".
- */
- getTypeI18n: function() {
- switch (this.getType()) {
- case 'alias':
- return _('Alias Interface');
- case 'wifi':
- return _('Wireless Adapter');
- case 'bridge':
- return _('Bridge');
- case 'switch':
- return (_state.netdevs[this.device] && _state.netdevs[this.device].devtype == 'dsa')
- ? _('Switch port') : _('Ethernet Switch');
- case 'vlan':
- return (_state.isSwitch[this.device] ? _('Switch VLAN') : _('Software VLAN'));
- case 'tunnel':
- return _('Tunnel Interface');
- default:
- return _('Ethernet Adapter');
- }
- },
- /**
- * Get the associated bridge ports of the device.
- *
- * @returns {null|Array<LuCI.network.Device>}
- * Returns an array of `Network.Device` instances representing the ports
- * (slave interfaces) of the bridge or `null` when this device isn't
- * a Linux bridge.
- */
- getPorts: function() {
- var br = _state.bridges[this.device],
- rv = [];
- if (br == null || !Array.isArray(br.ifnames))
- return null;
- for (var i = 0; i < br.ifnames.length; i++)
- rv.push(Network.prototype.instantiateDevice(br.ifnames[i].name));
- rv.sort(deviceSort);
- return rv;
- },
- /**
- * Get the bridge ID
- *
- * @returns {null|string}
- * Returns the ID of this network bridge or `null` if this network
- * device is not a Linux bridge.
- */
- getBridgeID: function() {
- var br = _state.bridges[this.device];
- return (br != null ? br.id : null);
- },
- /**
- * Get the bridge STP setting
- *
- * @returns {boolean}
- * Returns `true` when this device is a Linux bridge and has `stp`
- * enabled, else `false`.
- */
- getBridgeSTP: function() {
- var br = _state.bridges[this.device];
- return (br != null ? !!br.stp : false);
- },
- /**
- * Checks whether this device is up.
- *
- * @returns {boolean}
- * Returns `true` when the associated device is running pr `false`
- * when it is down or absent.
- */
- isUp: function() {
- var up = this._devstate('flags', 'up');
- if (up == null)
- up = (this.getType() == 'alias');
- return up;
- },
- /**
- * Checks whether this device is a Linux bridge.
- *
- * @returns {boolean}
- * Returns `true` when the network device is present and a Linux bridge,
- * else `false`.
- */
- isBridge: function() {
- return (this.getType() == 'bridge');
- },
- /**
- * Checks whether this device is part of a Linux bridge.
- *
- * @returns {boolean}
- * Returns `true` when this network device is part of a bridge,
- * else `false`.
- */
- isBridgePort: function() {
- return (this._devstate('bridge') != null);
- },
- /**
- * Get the amount of transmitted bytes.
- *
- * @returns {number}
- * Returns the amount of bytes transmitted by the network device.
- */
- getTXBytes: function() {
- var stat = this._devstate('stats');
- return (stat != null ? stat.tx_bytes || 0 : 0);
- },
- /**
- * Get the amount of received bytes.
- *
- * @returns {number}
- * Returns the amount of bytes received by the network device.
- */
- getRXBytes: function() {
- var stat = this._devstate('stats');
- return (stat != null ? stat.rx_bytes || 0 : 0);
- },
- /**
- * Get the amount of transmitted packets.
- *
- * @returns {number}
- * Returns the amount of packets transmitted by the network device.
- */
- getTXPackets: function() {
- var stat = this._devstate('stats');
- return (stat != null ? stat.tx_packets || 0 : 0);
- },
- /**
- * Get the amount of received packets.
- *
- * @returns {number}
- * Returns the amount of packets received by the network device.
- */
- getRXPackets: function() {
- var stat = this._devstate('stats');
- return (stat != null ? stat.rx_packets || 0 : 0);
- },
- /**
- * Get the carrier state of the network device.
- *
- * @returns {boolean}
- * Returns true if the device has a carrier, e.g. when a cable is
- * inserted into an Ethernet port of false if there is none.
- */
- getCarrier: function() {
- var link = this._devstate('link');
- return (link != null ? link.carrier || false : false);
- },
- /**
- * Get the current link speed of the network device if available.
- *
- * @returns {number|null}
- * Returns the current speed of the network device in Mbps. If the
- * device supports no Ethernet speed levels, null is returned.
- * If the device supports Ethernet speeds but has no carrier, -1 is
- * returned.
- */
- getSpeed: function() {
- var link = this._devstate('link');
- return (link != null ? link.speed || null : null);
- },
- /**
- * Get the current duplex mode of the network device if available.
- *
- * @returns {string|null}
- * Returns the current duplex mode of the network device. Returns
- * either "full" or "half" if the device supports duplex modes or
- * null if the duplex mode is unknown or unsupported.
- */
- getDuplex: function() {
- var link = this._devstate('link'),
- duplex = link ? link.duplex : null;
- return (duplex != 'unknown') ? duplex : null;
- },
- /**
- * Get the primary logical interface this device is assigned to.
- *
- * @returns {null|LuCI.network.Protocol}
- * Returns a `Network.Protocol` instance representing the logical
- * interface this device is attached to or `null` if it is not
- * assigned to any logical interface.
- */
- getNetwork: function() {
- return this.getNetworks()[0];
- },
- /**
- * Get the logical interfaces this device is assigned to.
- *
- * @returns {Array<LuCI.network.Protocol>}
- * Returns an array of `Network.Protocol` instances representing the
- * logical interfaces this device is assigned to.
- */
- getNetworks: function() {
- if (this.networks == null) {
- this.networks = [];
- var networks = enumerateNetworks.apply(L.network);
- for (var i = 0; i < networks.length; i++)
- if (networks[i].containsDevice(this.device) || networks[i].getIfname() == this.device)
- this.networks.push(networks[i]);
- this.networks.sort(networkSort);
- }
- return this.networks;
- },
- /**
- * Get the related wireless network this device is related to.
- *
- * @returns {null|LuCI.network.WifiNetwork}
- * Returns a `Network.WifiNetwork` instance representing the wireless
- * network corresponding to this network device or `null` if this device
- * is not a wireless device.
- */
- getWifiNetwork: function() {
- return (this.wif != null ? this.wif : null);
- },
- /**
- * Get the logical parent device of this device.
- *
- * In case of DSA switch ports, the parent device will be the DSA switch
- * device itself, for VLAN devices, the parent refers to the base device
- * etc.
- *
- * @returns {null|LuCI.network.Device}
- * Returns a `Network.Device` instance representing the parent device or
- * `null` when this device has no parent, as it is the case for e.g.
- * ordinary Ethernet interfaces.
- */
- getParent: function() {
- if (this.dev.parent)
- return Network.prototype.instantiateDevice(this.dev.parent);
- if ((this.config.type == '8021q' || this.config.type == '802ad') && typeof(this.config.ifname) == 'string')
- return Network.prototype.instantiateDevice(this.config.ifname);
- return null;
- }
- });
- /**
- * @class
- * @memberof LuCI.network
- * @hideconstructor
- * @classdesc
- *
- * A `Network.WifiDevice` class instance represents a wireless radio device
- * present on the system and provides wireless capability information as
- * well as methods for enumerating related wireless networks.
- */
- WifiDevice = baseclass.extend(/** @lends LuCI.network.WifiDevice.prototype */ {
- __init__: function(name, radiostate) {
- var uciWifiDevice = uci.get('wireless', name);
- if (uciWifiDevice != null &&
- uciWifiDevice['.type'] == 'wifi-device' &&
- uciWifiDevice['.name'] != null) {
- this.sid = uciWifiDevice['.name'];
- }
- this.sid = this.sid || name;
- this._ubusdata = {
- radio: name,
- dev: radiostate
- };
- },
- /* private */
- ubus: function(/* ... */) {
- var v = this._ubusdata;
- for (var i = 0; i < arguments.length; i++)
- if (L.isObject(v))
- v = v[arguments[i]];
- else
- return null;
- return v;
- },
- /**
- * Read the given UCI option value of this wireless device.
- *
- * @param {string} opt
- * The UCI option name to read.
- *
- * @returns {null|string|string[]}
- * Returns the UCI option value or `null` if the requested option is
- * not found.
- */
- get: function(opt) {
- return uci.get('wireless', this.sid, opt);
- },
- /**
- * Set the given UCI option of this network to the given value.
- *
- * @param {string} opt
- * The name of the UCI option to set.
- *
- * @param {null|string|string[]} value
- * The value to set or `null` to remove the given option from the
- * configuration.
- */
- set: function(opt, value) {
- return uci.set('wireless', this.sid, opt, value);
- },
- /**
- * Checks whether this wireless radio is disabled.
- *
- * @returns {boolean}
- * Returns `true` when the wireless radio is marked as disabled in `ubus`
- * runtime state or when the `disabled` option is set in the corresponding
- * UCI configuration.
- */
- isDisabled: function() {
- return this.ubus('dev', 'disabled') || this.get('disabled') == '1';
- },
- /**
- * Get the configuration name of this wireless radio.
- *
- * @returns {string}
- * Returns the UCI section name (e.g. `radio0`) of the corresponding
- * radio configuration which also serves as unique logical identifier
- * for the wireless phy.
- */
- getName: function() {
- return this.sid;
- },
- /**
- * Gets a list of supported hwmodes.
- *
- * The hwmode values describe the frequency band and wireless standard
- * versions supported by the wireless phy.
- *
- * @returns {string[]}
- * Returns an array of valid hwmode values for this radio. Currently
- * known mode values are:
- * - `a` - Legacy 802.11a mode, 5 GHz, up to 54 Mbit/s
- * - `b` - Legacy 802.11b mode, 2.4 GHz, up to 11 Mbit/s
- * - `g` - Legacy 802.11g mode, 2.4 GHz, up to 54 Mbit/s
- * - `n` - IEEE 802.11n mode, 2.4 or 5 GHz, up to 600 Mbit/s
- * - `ac` - IEEE 802.11ac mode, 5 GHz, up to 6770 Mbit/s
- * - `ax` - IEEE 802.11ax mode, 2.4 or 5 GHz
- * - 'be' - IEEE 802.11be mode, 2.4, 5 or 6 GHz
- */
- getHWModes: function() {
- var hwmodes = this.ubus('dev', 'iwinfo', 'hwmodes');
- return Array.isArray(hwmodes) ? hwmodes : [ 'b', 'g' ];
- },
- /**
- * Gets a list of supported htmodes.
- *
- * The htmode values describe the wide-frequency options supported by
- * the wireless phy.
- *
- * @returns {string[]}
- * Returns an array of valid htmode values for this radio. Currently
- * known mode values are:
- * - `HT20` - applicable to IEEE 802.11n, 20 MHz wide channels
- * - `HT40` - applicable to IEEE 802.11n, 40 MHz wide channels
- * - `VHT20` - applicable to IEEE 802.11ac, 20 MHz wide channels
- * - `VHT40` - applicable to IEEE 802.11ac, 40 MHz wide channels
- * - `VHT80` - applicable to IEEE 802.11ac, 80 MHz wide channels
- * - `VHT160` - applicable to IEEE 802.11ac, 160 MHz wide channels
- * - `HE20` - applicable to IEEE 802.11ax, 20 MHz wide channels
- * - `HE40` - applicable to IEEE 802.11ax, 40 MHz wide channels
- * - `HE80` - applicable to IEEE 802.11ax, 80 MHz wide channels
- * - `HE160` - applicable to IEEE 802.11ax, 160 MHz wide channels
- * - `EHT20` - applicable to IEEE 802.11be, 20 MHz wide channels
- * - `EHT40` - applicable to IEEE 802.11be, 40 MHz wide channels
- * - `EHT80` - applicable to IEEE 802.11be, 80 MHz wide channels
- * - `EHT160` - applicable to IEEE 802.11be, 160 MHz wide channels
- * - `EHT320` - applicable to IEEE 802.11be, 320 MHz wide channels
- */
- getHTModes: function() {
- var htmodes = this.ubus('dev', 'iwinfo', 'htmodes');
- return (Array.isArray(htmodes) && htmodes.length) ? htmodes : null;
- },
- /**
- * Get a string describing the wireless radio hardware.
- *
- * @returns {string}
- * Returns the description string.
- */
- getI18n: function() {
- var hw = this.ubus('dev', 'iwinfo', 'hardware'),
- type = L.isObject(hw) ? hw.name : null;
- var modes = this.ubus('dev', 'iwinfo', 'hwmodes_text');
- if (this.ubus('dev', 'iwinfo', 'type') == 'wl')
- type = 'Broadcom';
- return '%s %s Wireless Controller (%s)'.format(
- type || 'Generic',
- modes ? '802.11' + modes : 'unknown',
- this.getName());
- },
- /**
- * A wireless scan result object describes a neighbouring wireless
- * network found in the vicinity.
- *
- * @typedef {Object<string, number|string|LuCI.network.WifiEncryption>} WifiScanResult
- * @memberof LuCI.network
- *
- * @property {string} ssid
- * The SSID / Mesh ID of the network.
- *
- * @property {string} bssid
- * The BSSID if the network.
- *
- * @property {string} mode
- * The operation mode of the network (`Master`, `Ad-Hoc`, `Mesh Point`).
- *
- * @property {number} channel
- * The wireless channel of the network.
- *
- * @property {number} signal
- * The received signal strength of the network in dBm.
- *
- * @property {number} quality
- * The numeric quality level of the signal, can be used in conjunction
- * with `quality_max` to calculate a quality percentage.
- *
- * @property {number} quality_max
- * The maximum possible quality level of the signal, can be used in
- * conjunction with `quality` to calculate a quality percentage.
- *
- * @property {LuCI.network.WifiEncryption} encryption
- * The encryption used by the wireless network.
- */
- /**
- * Trigger a wireless scan on this radio device and obtain a list of
- * nearby networks.
- *
- * @returns {Promise<Array<LuCI.network.WifiScanResult>>}
- * Returns a promise resolving to an array of scan result objects
- * describing the networks found in the vicinity.
- */
- getScanList: function() {
- return callIwinfoScan(this.sid);
- },
- /**
- * Check whether the wireless radio is marked as up in the `ubus`
- * runtime state.
- *
- * @returns {boolean}
- * Returns `true` when the radio device is up, else `false`.
- */
- isUp: function() {
- if (L.isObject(_state.radios[this.sid]))
- return (_state.radios[this.sid].up == true);
- return false;
- },
- /**
- * Get the wifi network of the given name belonging to this radio device
- *
- * @param {string} network
- * The name of the wireless network to look up. This may be either an uci
- * configuration section ID, a network ID in the form `radio#.network#`
- * or a Linux network device name like `wlan0` which is resolved to the
- * corresponding configuration section through `ubus` runtime information.
- *
- * @returns {Promise<LuCI.network.WifiNetwork>}
- * Returns a promise resolving to a `Network.WifiNetwork` instance
- * representing the wireless network and rejecting with `null` if
- * the given network could not be found or is not associated with
- * this radio device.
- */
- getWifiNetwork: function(network) {
- return Network.prototype.getWifiNetwork(network).then(L.bind(function(networkInstance) {
- var uciWifiIface = (networkInstance.sid ? uci.get('wireless', networkInstance.sid) : null);
- if (uciWifiIface == null || uciWifiIface['.type'] != 'wifi-iface' || uciWifiIface.device != this.sid)
- return Promise.reject();
- return networkInstance;
- }, this));
- },
- /**
- * Get all wireless networks associated with this wireless radio device.
- *
- * @returns {Promise<Array<LuCI.network.WifiNetwork>>}
- * Returns a promise resolving to an array of `Network.WifiNetwork`
- * instances representing the wireless networks associated with this
- * radio device.
- */
- getWifiNetworks: function() {
- return Network.prototype.getWifiNetworks().then(L.bind(function(networks) {
- var rv = [];
- for (var i = 0; i < networks.length; i++)
- if (networks[i].getWifiDeviceName() == this.getName())
- rv.push(networks[i]);
- return rv;
- }, this));
- },
- /**
- * Adds a new wireless network associated with this radio device to the
- * configuration and sets its options to the provided values.
- *
- * @param {Object<string, string|string[]>} [options]
- * The options to set for the newly added wireless network.
- *
- * @returns {Promise<null|LuCI.network.WifiNetwork>}
- * Returns a promise resolving to a `WifiNetwork` instance describing
- * the newly added wireless network or `null` if the given options
- * were invalid.
- */
- addWifiNetwork: function(options) {
- if (!L.isObject(options))
- options = {};
- options.device = this.sid;
- return Network.prototype.addWifiNetwork(options);
- },
- /**
- * Deletes the wireless network with the given name associated with this
- * radio device.
- *
- * @param {string} network
- * The name of the wireless network to look up. This may be either an uci
- * configuration section ID, a network ID in the form `radio#.network#`
- * or a Linux network device name like `wlan0` which is resolved to the
- * corresponding configuration section through `ubus` runtime information.
- *
- * @returns {Promise<boolean>}
- * Returns a promise resolving to `true` when the wireless network was
- * successfully deleted from the configuration or `false` when the given
- * network could not be found or if the found network was not associated
- * with this wireless radio device.
- */
- deleteWifiNetwork: function(network) {
- var sid = null;
- if (network instanceof WifiNetwork) {
- sid = network.sid;
- }
- else {
- var uciWifiIface = uci.get('wireless', network);
- if (uciWifiIface == null || uciWifiIface['.type'] != 'wifi-iface')
- sid = getWifiSidByIfname(network);
- }
- if (sid == null || uci.get('wireless', sid, 'device') != this.sid)
- return Promise.resolve(false);
- uci.delete('wireless', network);
- return Promise.resolve(true);
- }
- });
- /**
- * @class
- * @memberof LuCI.network
- * @hideconstructor
- * @classdesc
- *
- * A `Network.WifiNetwork` instance represents a wireless network (vif)
- * configured on top of a radio device and provides functions for querying
- * the runtime state of the network. Most radio devices support multiple
- * such networks in parallel.
- */
- WifiNetwork = baseclass.extend(/** @lends LuCI.network.WifiNetwork.prototype */ {
- __init__: function(sid, radioname, radiostate, netid, netstate, hostapd) {
- this.sid = sid;
- this.netid = netid;
- this._ubusdata = {
- hostapd: hostapd,
- radio: radioname,
- dev: radiostate,
- net: netstate
- };
- },
- ubus: function(/* ... */) {
- var v = this._ubusdata;
- for (var i = 0; i < arguments.length; i++)
- if (L.isObject(v))
- v = v[arguments[i]];
- else
- return null;
- return v;
- },
- /**
- * Read the given UCI option value of this wireless network.
- *
- * @param {string} opt
- * The UCI option name to read.
- *
- * @returns {null|string|string[]}
- * Returns the UCI option value or `null` if the requested option is
- * not found.
- */
- get: function(opt) {
- return uci.get('wireless', this.sid, opt);
- },
- /**
- * Set the given UCI option of this network to the given value.
- *
- * @param {string} opt
- * The name of the UCI option to set.
- *
- * @param {null|string|string[]} value
- * The value to set or `null` to remove the given option from the
- * configuration.
- */
- set: function(opt, value) {
- return uci.set('wireless', this.sid, opt, value);
- },
- /**
- * Checks whether this wireless network is disabled.
- *
- * @returns {boolean}
- * Returns `true` when the wireless radio is marked as disabled in `ubus`
- * runtime state or when the `disabled` option is set in the corresponding
- * UCI configuration.
- */
- isDisabled: function() {
- return this.ubus('dev', 'disabled') || this.get('disabled') == '1';
- },
- /**
- * Get the configured operation mode of the wireless network.
- *
- * @returns {string}
- * Returns the configured operation mode. Possible values are:
- * - `ap` - Master (Access Point) mode
- * - `sta` - Station (client) mode
- * - `adhoc` - Ad-Hoc (IBSS) mode
- * - `mesh` - Mesh (IEEE 802.11s) mode
- * - `monitor` - Monitor mode
- */
- getMode: function() {
- return this.ubus('net', 'config', 'mode') || this.get('mode') || 'ap';
- },
- /**
- * Get the configured SSID of the wireless network.
- *
- * @returns {null|string}
- * Returns the configured SSID value or `null` when this network is
- * in mesh mode.
- */
- getSSID: function() {
- if (this.getMode() == 'mesh')
- return null;
- return this.ubus('net', 'config', 'ssid') || this.get('ssid');
- },
- /**
- * Get the configured Mesh ID of the wireless network.
- *
- * @returns {null|string}
- * Returns the configured mesh ID value or `null` when this network
- * is not in mesh mode.
- */
- getMeshID: function() {
- if (this.getMode() != 'mesh')
- return null;
- return this.ubus('net', 'config', 'mesh_id') || this.get('mesh_id');
- },
- /**
- * Get the configured BSSID of the wireless network.
- *
- * @returns {null|string}
- * Returns the BSSID value or `null` if none has been specified.
- */
- getBSSID: function() {
- return this.ubus('net', 'config', 'bssid') || this.get('bssid');
- },
- /**
- * Get the names of the logical interfaces this wireless network is
- * attached to.
- *
- * @returns {string[]}
- * Returns an array of logical interface names.
- */
- getNetworkNames: function() {
- return L.toArray(this.ubus('net', 'config', 'network') || this.get('network'));
- },
- /**
- * Get the internal network ID of this wireless network.
- *
- * The network ID is a LuCI specific identifier in the form
- * `radio#.network#` to identify wireless networks by their corresponding
- * radio and network index numbers.
- *
- * @returns {string}
- * Returns the LuCI specific network ID.
- */
- getID: function() {
- return this.netid;
- },
- /**
- * Get the configuration ID of this wireless network.
- *
- * @returns {string}
- * Returns the corresponding UCI section ID of the network.
- */
- getName: function() {
- return this.sid;
- },
- /**
- * Get the Linux network device name.
- *
- * @returns {null|string}
- * Returns the current Linux network device name as resolved from
- * `ubus` runtime information or `null` if this network has no
- * associated network device, e.g. when not configured or up.
- */
- getIfname: function() {
- var ifname = this.ubus('net', 'ifname') || this.ubus('net', 'iwinfo', 'ifname');
- if (ifname == null || ifname.match(/^(wifi|radio)\d/))
- ifname = this.netid;
- return ifname;
- },
- /**
- * Get the Linux VLAN network device names.
- *
- * @returns {string[]}
- * Returns the current Linux VLAN network device name as resolved
- * from `ubus` runtime information or empty array if this network
- * has no associated VLAN network devices.
- */
- getVlanIfnames: function() {
- var vlans = L.toArray(this.ubus('net', 'vlans')),
- ifnames = [];
- for (var i = 0; i < vlans.length; i++)
- ifnames.push(vlans[i]['ifname']);
- return ifnames;
- },
- /**
- * Get the name of the corresponding WiFi radio device.
- *
- * @returns {null|string}
- * Returns the name of the radio device this network is configured on
- * or `null` if it cannot be determined.
- */
- getWifiDeviceName: function() {
- return this.ubus('radio') || this.get('device');
- },
- /**
- * Get the corresponding WiFi radio device.
- *
- * @returns {null|LuCI.network.WifiDevice}
- * Returns a `Network.WifiDevice` instance representing the corresponding
- * WiFi radio device or `null` if the related radio device could not be
- * found.
- */
- getWifiDevice: function() {
- var radioname = this.getWifiDeviceName();
- if (radioname == null)
- return Promise.reject();
- return Network.prototype.getWifiDevice(radioname);
- },
- /**
- * Check whether the radio network is up.
- *
- * This function actually queries the up state of the related radio
- * device and assumes this network to be up as well when the parent
- * radio is up. This is due to the fact that OpenWrt does not control
- * virtual interfaces individually but within one common hostapd
- * instance.
- *
- * @returns {boolean}
- * Returns `true` when the network is up, else `false`.
- */
- isUp: function() {
- var device = this.getDevice();
- if (device == null)
- return false;
- return device.isUp();
- },
- /**
- * Query the current operation mode from runtime information.
- *
- * @returns {string}
- * Returns the human readable mode name as reported by iwinfo or uci mode.
- * Possible returned values are:
- * - `Master`
- * - `Ad-Hoc`
- * - `Client`
- * - `Monitor`
- * - `Master (VLAN)`
- * - `WDS`
- * - `Mesh Point`
- * - `P2P Client`
- * - `P2P Go`
- * - `Unknown`
- */
- getActiveMode: function() {
- var mode = this.ubus('net', 'iwinfo', 'mode') || this.getMode();
- switch (mode) {
- case 'ap': return 'Master';
- case 'sta': return 'Client';
- case 'adhoc': return 'Ad-Hoc';
- case 'mesh': return 'Mesh Point';
- case 'monitor': return 'Monitor';
- default: return mode;
- }
- },
- /**
- * Query the current operation mode from runtime information as
- * translated string.
- *
- * @returns {string}
- * Returns the translated, human readable mode name as reported by
- *`ubus` runtime state.
- */
- getActiveModeI18n: function() {
- var mode = this.getActiveMode();
- switch (mode) {
- case 'Master': return _('Access Point');
- case 'Ad-Hoc': return _('Ad-Hoc');
- case 'Client': return _('Client');
- case 'Monitor': return _('Monitor');
- case 'Master(VLAN)': return _('Master (VLAN)');
- case 'WDS': return _('WDS');
- case 'Mesh Point': return _('Mesh Point');
- case 'P2P Client': return _('P2P Client');
- case 'P2P Go': return _('P2P Go');
- case 'Unknown': return _('Unknown');
- default: return mode;
- }
- },
- /**
- * Query the current SSID from runtime information.
- *
- * @returns {string}
- * Returns the current SSID or Mesh ID as reported by `ubus` runtime
- * information.
- */
- getActiveSSID: function() {
- return this.ubus('net', 'iwinfo', 'ssid') || this.ubus('net', 'config', 'ssid') || this.get('ssid');
- },
- /**
- * Query the current BSSID from runtime information.
- *
- * @returns {string}
- * Returns the current BSSID or Mesh ID as reported by `ubus` runtime
- * information.
- */
- getActiveBSSID: function() {
- return this.ubus('net', 'iwinfo', 'bssid') || this.ubus('net', 'config', 'bssid') || this.get('bssid');
- },
- /**
- * Query the current encryption settings from runtime information.
- *
- * @returns {string}
- * Returns a string describing the current encryption or `-` if the
- * encryption state could not be found in `ubus` runtime information.
- */
- getActiveEncryption: function() {
- return formatWifiEncryption(this.ubus('net', 'iwinfo', 'encryption')) || '-';
- },
- /**
- * A wireless peer entry describes the properties of a remote wireless
- * peer associated with a local network.
- *
- * @typedef {Object<string, boolean|number|string|LuCI.network.WifiRateEntry>} WifiPeerEntry
- * @memberof LuCI.network
- *
- * @property {string} mac
- * The MAC address (BSSID).
- *
- * @property {number} signal
- * The received signal strength.
- *
- * @property {number} [signal_avg]
- * The average signal strength if supported by the driver.
- *
- * @property {number} [noise]
- * The current noise floor of the radio. May be `0` or absent if not
- * supported by the driver.
- *
- * @property {number} inactive
- * The amount of milliseconds the peer has been inactive, e.g. due
- * to power-saving.
- *
- * @property {number} connected_time
- * The amount of milliseconds the peer is associated to this network.
- *
- * @property {number} [thr]
- * The estimated throughput of the peer, May be `0` or absent if not
- * supported by the driver.
- *
- * @property {boolean} authorized
- * Specifies whether the peer is authorized to associate to this network.
- *
- * @property {boolean} authenticated
- * Specifies whether the peer completed authentication to this network.
- *
- * @property {string} preamble
- * The preamble mode used by the peer. May be `long` or `short`.
- *
- * @property {boolean} wme
- * Specifies whether the peer supports WME/WMM capabilities.
- *
- * @property {boolean} mfp
- * Specifies whether management frame protection is active.
- *
- * @property {boolean} tdls
- * Specifies whether TDLS is active.
- *
- * @property {number} [mesh llid]
- * The mesh LLID, may be `0` or absent if not applicable or supported
- * by the driver.
- *
- * @property {number} [mesh plid]
- * The mesh PLID, may be `0` or absent if not applicable or supported
- * by the driver.
- *
- * @property {string} [mesh plink]
- * The mesh peer link state description, may be an empty string (`''`)
- * or absent if not applicable or supported by the driver.
- *
- * The following states are known:
- * - `LISTEN`
- * - `OPN_SNT`
- * - `OPN_RCVD`
- * - `CNF_RCVD`
- * - `ESTAB`
- * - `HOLDING`
- * - `BLOCKED`
- * - `UNKNOWN`
- *
- * @property {number} [mesh local PS]
- * The local power-save mode for the peer link, may be an empty
- * string (`''`) or absent if not applicable or supported by
- * the driver.
- *
- * The following modes are known:
- * - `ACTIVE` (no power save)
- * - `LIGHT SLEEP`
- * - `DEEP SLEEP`
- * - `UNKNOWN`
- *
- * @property {number} [mesh peer PS]
- * The remote power-save mode for the peer link, may be an empty
- * string (`''`) or absent if not applicable or supported by
- * the driver.
- *
- * The following modes are known:
- * - `ACTIVE` (no power save)
- * - `LIGHT SLEEP`
- * - `DEEP SLEEP`
- * - `UNKNOWN`
- *
- * @property {number} [mesh non-peer PS]
- * The power-save mode for all non-peer neighbours, may be an empty
- * string (`''`) or absent if not applicable or supported by the driver.
- *
- * The following modes are known:
- * - `ACTIVE` (no power save)
- * - `LIGHT SLEEP`
- * - `DEEP SLEEP`
- * - `UNKNOWN`
- *
- * @property {LuCI.network.WifiRateEntry} rx
- * Describes the receiving wireless rate from the peer.
- *
- * @property {LuCI.network.WifiRateEntry} tx
- * Describes the transmitting wireless rate to the peer.
- */
- /**
- * A wireless rate entry describes the properties of a wireless
- * transmission rate to or from a peer.
- *
- * @typedef {Object<string, boolean|number>} WifiRateEntry
- * @memberof LuCI.network
- *
- * @property {number} [drop_misc]
- * The amount of received misc. packages that have been dropped, e.g.
- * due to corruption or missing authentication. Only applicable to
- * receiving rates.
- *
- * @property {number} packets
- * The amount of packets that have been received or sent.
- *
- * @property {number} bytes
- * The amount of bytes that have been received or sent.
- *
- * @property {number} [failed]
- * The amount of failed transmission attempts. Only applicable to
- * transmit rates.
- *
- * @property {number} [retries]
- * The amount of retried transmissions. Only applicable to transmit
- * rates.
- *
- * @property {boolean} is_ht
- * Specifies whether this rate is an HT (IEEE 802.11n) rate.
- *
- * @property {boolean} is_vht
- * Specifies whether this rate is an VHT (IEEE 802.11ac) rate.
- *
- * @property {number} mhz
- * The channel width in MHz used for the transmission.
- *
- * @property {number} rate
- * The bitrate in bit/s of the transmission.
- *
- * @property {number} [mcs]
- * The MCS index of the used transmission rate. Only applicable to
- * HT or VHT rates.
- *
- * @property {number} [40mhz]
- * Specifies whether the transmission rate used 40MHz wide channel.
- * Only applicable to HT or VHT rates.
- *
- * Note: this option exists for backwards compatibility only and its
- * use is discouraged. The `mhz` field should be used instead to
- * determine the channel width.
- *
- * @property {boolean} [short_gi]
- * Specifies whether a short guard interval is used for the transmission.
- * Only applicable to HT or VHT rates.
- *
- * @property {number} [nss]
- * Specifies the number of spatial streams used by the transmission.
- * Only applicable to VHT rates.
- *
- * @property {boolean} [he]
- * Specifies whether this rate is an HE (IEEE 802.11ax) rate.
- *
- * @property {number} [he_gi]
- * Specifies whether the guard interval used for the transmission.
- * Only applicable to HE rates.
- *
- * @property {number} [he_dcm]
- * Specifies whether dual concurrent modulation is used for the transmission.
- * Only applicable to HE rates.
- *
- * @property {boolean} [eht]
- * Specifies whether this rate is an EHT (IEEE 802.11be) rate.
- *
- * @property {number} [eht_gi]
- * Specifies whether the guard interval used for the transmission.
- * Only applicable to EHT rates.
- *
- * @property {number} [eht_dcm]
- * Specifies whether dual concurrent modulation is used for the transmission.
- * Only applicable to EHT rates.
- */
- /**
- * Fetch the list of associated peers.
- *
- * @returns {Promise<Array<LuCI.network.WifiPeerEntry>>}
- * Returns a promise resolving to an array of wireless peers associated
- * with this network.
- */
- getAssocList: function() {
- var tasks = [];
- var ifnames = [ this.getIfname() ].concat(this.getVlanIfnames());
- for (var i = 0; i < ifnames.length; i++)
- tasks.push(callIwinfoAssoclist(ifnames[i]));
- return Promise.all(tasks).then(function(values) {
- return Array.prototype.concat.apply([], values);
- });
- },
- /**
- * Query the current operating frequency of the wireless network.
- *
- * @returns {null|string}
- * Returns the current operating frequency of the network from `ubus`
- * runtime information in GHz or `null` if the information is not
- * available.
- */
- getFrequency: function() {
- var freq = this.ubus('net', 'iwinfo', 'frequency');
- if (freq != null && freq > 0)
- return '%.03f'.format(freq / 1000);
- return null;
- },
- /**
- * Query the current average bit-rate of all peers associated to this
- * wireless network.
- *
- * @returns {null|number}
- * Returns the average bit rate among all peers associated to the network
- * as reported by `ubus` runtime information or `null` if the information
- * is not available.
- */
- getBitRate: function() {
- var rate = this.ubus('net', 'iwinfo', 'bitrate');
- if (rate != null && rate > 0)
- return (rate / 1000);
- return null;
- },
- /**
- * Query the current wireless channel.
- *
- * @returns {null|number}
- * Returns the wireless channel as reported by `ubus` runtime information
- * or `null` if it cannot be determined.
- */
- getChannel: function() {
- return this.ubus('net', 'iwinfo', 'channel') || this.ubus('dev', 'config', 'channel') || this.get('channel');
- },
- /**
- * Query the current wireless signal.
- *
- * @returns {null|number}
- * Returns the wireless signal in dBm as reported by `ubus` runtime
- * information or `null` if it cannot be determined.
- */
- getSignal: function() {
- return this.ubus('net', 'iwinfo', 'signal') || 0;
- },
- /**
- * Query the current radio noise floor.
- *
- * @returns {number}
- * Returns the radio noise floor in dBm as reported by `ubus` runtime
- * information or `0` if it cannot be determined.
- */
- getNoise: function() {
- return this.ubus('net', 'iwinfo', 'noise') || 0;
- },
- /**
- * Query the current country code.
- *
- * @returns {string}
- * Returns the wireless country code as reported by `ubus` runtime
- * information or `00` if it cannot be determined.
- */
- getCountryCode: function() {
- return this.ubus('net', 'iwinfo', 'country') || this.ubus('dev', 'config', 'country') || '00';
- },
- /**
- * Query the current radio TX power.
- *
- * @returns {null|number}
- * Returns the wireless network transmit power in dBm as reported by
- * `ubus` runtime information or `null` if it cannot be determined.
- */
- getTXPower: function() {
- return this.ubus('net', 'iwinfo', 'txpower');
- },
- /**
- * Query the radio TX power offset.
- *
- * Some wireless radios have a fixed power offset, e.g. due to the
- * use of external amplifiers.
- *
- * @returns {number}
- * Returns the wireless network transmit power offset in dBm as reported
- * by `ubus` runtime information or `0` if there is no offset, or if it
- * cannot be determined.
- */
- getTXPowerOffset: function() {
- return this.ubus('net', 'iwinfo', 'txpower_offset') || 0;
- },
- /**
- * Calculate the current signal.
- *
- * @deprecated
- * @returns {number}
- * Returns the calculated signal level, which is the difference between
- * noise and signal (SNR), divided by 5.
- */
- getSignalLevel: function(signal, noise) {
- if (this.getActiveBSSID() == '00:00:00:00:00:00')
- return -1;
- signal = signal || this.getSignal();
- noise = noise || this.getNoise();
- if (signal < 0 && noise < 0) {
- var snr = -1 * (noise - signal);
- return Math.floor(snr / 5);
- }
- return 0;
- },
- /**
- * Calculate the current signal quality percentage.
- *
- * @returns {number}
- * Returns the calculated signal quality in percent. The value is
- * calculated from the `quality` and `quality_max` indicators reported
- * by `ubus` runtime state.
- */
- getSignalPercent: function() {
- var qc = this.ubus('net', 'iwinfo', 'quality') || 0,
- qm = this.ubus('net', 'iwinfo', 'quality_max') || 0;
- if (qc > 0 && qm > 0)
- return Math.floor((100 / qm) * qc);
- return 0;
- },
- /**
- * Get a short description string for this wireless network.
- *
- * @returns {string}
- * Returns a string describing this network, consisting of the
- * active operation mode, followed by either the SSID, BSSID or
- * internal network ID, depending on which information is available.
- */
- getShortName: function() {
- return '%s "%s"'.format(
- this.getActiveModeI18n(),
- this.getActiveSSID() || this.getActiveBSSID() || this.getID());
- },
- /**
- * Get a description string for this wireless network.
- *
- * @returns {string}
- * Returns a string describing this network, consisting of the
- * term `Wireless Network`, followed by the active operation mode,
- * the SSID, BSSID or internal network ID and the Linux network device
- * name, depending on which information is available.
- */
- getI18n: function() {
- return '%s: %s "%s" (%s)'.format(
- _('Wireless Network'),
- this.getActiveModeI18n(),
- this.getActiveSSID() || this.getActiveBSSID() || this.getID(),
- this.getIfname());
- },
- /**
- * Get the primary logical interface this network is attached to.
- *
- * @returns {null|LuCI.network.Protocol}
- * Returns a `Network.Protocol` instance representing the logical
- * interface or `null` if this network is not attached to any logical
- * interface.
- */
- getNetwork: function() {
- return this.getNetworks()[0];
- },
- /**
- * Get the logical interfaces this network is attached to.
- *
- * @returns {Array<LuCI.network.Protocol>}
- * Returns an array of `Network.Protocol` instances representing the
- * logical interfaces this wireless network is attached to.
- */
- getNetworks: function() {
- var networkNames = this.getNetworkNames(),
- networks = [];
- for (var i = 0; i < networkNames.length; i++) {
- var uciInterface = uci.get('network', networkNames[i]);
- if (uciInterface == null || uciInterface['.type'] != 'interface')
- continue;
- networks.push(Network.prototype.instantiateNetwork(networkNames[i]));
- }
- networks.sort(networkSort);
- return networks;
- },
- /**
- * Get the associated Linux network device.
- *
- * @returns {LuCI.network.Device}
- * Returns a `Network.Device` instance representing the Linux network
- * device associated with this wireless network.
- */
- getDevice: function() {
- return Network.prototype.instantiateDevice(this.getIfname());
- },
- /**
- * Check whether this WiFi network supports de-authenticating clients.
- *
- * @returns {boolean}
- * Returns `true` when this WiFi network instance supports forcibly
- * de-authenticating clients, otherwise `false`.
- */
- isClientDisconnectSupported: function() {
- return L.isObject(this.ubus('hostapd', 'del_client'));
- },
- /**
- * Forcibly disconnect the given client from the wireless network.
- *
- * @param {string} mac
- * The MAC address of the client to disconnect.
- *
- * @param {boolean} [deauth=false]
- * Specifies whether to de-authenticate (`true`) or disassociate (`false`)
- * the client.
- *
- * @param {number} [reason=1]
- * Specifies the IEEE 802.11 reason code to disassoc/deauth the client
- * with. Default is `1` which corresponds to `Unspecified reason`.
- *
- * @param {number} [ban_time=0]
- * Specifies the amount of milliseconds to ban the client from
- * reconnecting. By default, no ban time is set which allows the client
- * to re-associate / reauthenticate immediately.
- *
- * @returns {Promise<number>}
- * Returns a promise resolving to the underlying ubus call result code
- * which is typically `0`, even for not existing MAC addresses.
- * The promise might reject with an error in case invalid arguments
- * are passed.
- */
- disconnectClient: function(mac, deauth, reason, ban_time) {
- if (reason == null || reason == 0)
- reason = 1;
- if (ban_time == 0)
- ban_time = null;
- return rpc.declare({
- object: 'hostapd.%s'.format(this.getIfname()),
- method: 'del_client',
- params: [ 'addr', 'deauth', 'reason', 'ban_time' ]
- })(mac, deauth, reason, ban_time);
- }
- });
- return Network;
- </code></pre>
- </article>
- </section>
-
- <footer>
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Wed Nov 27 2024 20:43:36 GMT+0000 (Coordinated Universal Time)
- </footer>
- </div>
- </div>
- <script>prettyPrint();</script>
- <script src="scripts/jaguar.js"></script>
- </body>
- </html>
|