.. _example_interfaces_cellular_smart-apn_checksmartapn: ############### Check Smart Apn ############### Comprehensive test for Smart APN algorithm behavior. This test validates: 1. Iterative search with no PLMN match (priority ordering) 2. PLMN-based selection with valid PLMN and show command 3. Log functionality .. image:: ../google.svg :width: 800 ********************* Test Iterative Search ********************* Description =========== Configure three Smart APN entries with INVALID PLMN codes (99991, 99992, 99993). Entries are configured in non-sequential order (3, 1, 2). Since no PLMN matches, PLMN selection fails and iterative search is triggered. Verify through log that entries were tried in priority order (1 -> 2 -> 3). No connection should be established since no PLMN matches the network. Scenario ======== .. osdx:tabset:: :suite: checksmartapn :test: testiterativesearch :devices: M10:M10-Smart,RS420:RS420 ************************* Test PLMN Based Selection ************************* Description =========== Change configuration so entry 2 has a valid PLMN code (21407). The algorithm should now find a match and select entry 2 immediately. Verify connection is established and entry 2 is selected. Scenario ======== .. osdx:tabset:: :suite: checksmartapn :test: testplmnbasedselection :devices: M10:M10-Smart,RS420:RS420 ********************** Test Log Functionality ********************** Description =========== Comprehensive test of Smart APN log operations. 1. Set initial config and change to iterative (all invalid PLMNs) 2. Verify log shows iterative search entries 3. Change to automatic config (entry 2 valid PLMN) 4. Verify log contains entries from both phases 5. Clear log and verify only last entry remains Scenario ======== .. osdx:tabset:: :suite: checksmartapn :test: testlogfunctionality :devices: M10:M10-Smart,RS420:RS420