<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Updating a phone with Python in Management</title>
    <link>https://community.cisco.com/t5/management/updating-a-phone-with-python/m-p/4579892#M3864</link>
    <description>&lt;P&gt;SOLVED via Google. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using python and suds-jerko to update the line label on phones. My issue is figuring out the formatting of the line info in updatePhone. using this code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;resp = client.service.updatePhone(name = 'SEPAC44F214C7EB', description = "MJW Test",&lt;BR /&gt;lines = { lineIdentifier : {pattern : '83774356', routePartitionName : 'AMR-L1-PT'},&lt;BR /&gt;label : "83774356"})&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;NameError&lt;/SPAN&gt;                                 Traceback (most recent call last)
&lt;SPAN class=""&gt;/var/folders/7c/lghfcp0n1x5_kzxyj55__5g00000gn/T/ipykernel_41974/1536426317.py&lt;/SPAN&gt; in &lt;SPAN class=""&gt;&amp;lt;module&amp;gt;&lt;/SPAN&gt;
&lt;SPAN class=""&gt;      1&lt;/SPAN&gt; resp = client.service.updatePhone(name = 'SEPAC44F214C7EB', description = "MJW Test", 
&lt;SPAN class=""&gt;----&amp;gt; 2&lt;/SPAN&gt;&lt;SPAN class=""&gt;                                  lines = { lineIdentifier : {pattern : '83774356', routePartitionName : 'AMR-L1-PT'},&lt;/SPAN&gt;&lt;SPAN class=""&gt;      3&lt;/SPAN&gt;                                            label : "83774356"})

&lt;SPAN class=""&gt;NameError&lt;/SPAN&gt;: name 'lineIdentifier' is not defined&lt;/PRE&gt;&lt;P&gt;Any input on how to format this correctly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mike&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Mar 2022 20:46:12 GMT</pubDate>
    <dc:creator>mike.wilcox</dc:creator>
    <dc:date>2022-03-28T20:46:12Z</dc:date>
    <item>
      <title>Updating a phone with Python</title>
      <link>https://community.cisco.com/t5/management/updating-a-phone-with-python/m-p/4579892#M3864</link>
      <description>&lt;P&gt;SOLVED via Google. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using python and suds-jerko to update the line label on phones. My issue is figuring out the formatting of the line info in updatePhone. using this code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;resp = client.service.updatePhone(name = 'SEPAC44F214C7EB', description = "MJW Test",&lt;BR /&gt;lines = { lineIdentifier : {pattern : '83774356', routePartitionName : 'AMR-L1-PT'},&lt;BR /&gt;label : "83774356"})&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;NameError&lt;/SPAN&gt;                                 Traceback (most recent call last)
&lt;SPAN class=""&gt;/var/folders/7c/lghfcp0n1x5_kzxyj55__5g00000gn/T/ipykernel_41974/1536426317.py&lt;/SPAN&gt; in &lt;SPAN class=""&gt;&amp;lt;module&amp;gt;&lt;/SPAN&gt;
&lt;SPAN class=""&gt;      1&lt;/SPAN&gt; resp = client.service.updatePhone(name = 'SEPAC44F214C7EB', description = "MJW Test", 
&lt;SPAN class=""&gt;----&amp;gt; 2&lt;/SPAN&gt;&lt;SPAN class=""&gt;                                  lines = { lineIdentifier : {pattern : '83774356', routePartitionName : 'AMR-L1-PT'},&lt;/SPAN&gt;&lt;SPAN class=""&gt;      3&lt;/SPAN&gt;                                            label : "83774356"})

&lt;SPAN class=""&gt;NameError&lt;/SPAN&gt;: name 'lineIdentifier' is not defined&lt;/PRE&gt;&lt;P&gt;Any input on how to format this correctly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mike&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 20:46:12 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/updating-a-phone-with-python/m-p/4579892#M3864</guid>
      <dc:creator>mike.wilcox</dc:creator>
      <dc:date>2022-03-28T20:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Updating a phone with Python</title>
      <link>https://community.cisco.com/t5/management/updating-a-phone-with-python/m-p/4581052#M3865</link>
      <description>&lt;P&gt;Check your curly braces.&amp;nbsp; The "label" is incorrectly folded into the "lines":&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;lines = { lineIdentifier : {pattern : '83774356', routePartitionName : 'AMR-L1-PT'}, label : "83774356"}&lt;/P&gt;&lt;P&gt;Should be&lt;/P&gt;&lt;P&gt;lines = { lineIdentifier : {pattern : '83774356', routePartitionName : 'AMR-L1-PT'} } &amp;lt;-need another bracket here,&lt;BR /&gt;label : "83774356"}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 13:41:23 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/updating-a-phone-with-python/m-p/4581052#M3865</guid>
      <dc:creator>npetrele</dc:creator>
      <dc:date>2022-03-29T13:41:23Z</dc:date>
    </item>
  </channel>
</rss>

