<?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 Re: INVALID_TYPE error seen when the setting FEC to base-r in Tools</title>
    <link>https://community.cisco.com/t5/tools/invalid-type-error-seen-when-the-setting-fec-to-base-r/m-p/4564477#M1086</link>
    <description>&lt;P&gt;Could you please clarify what is the XR release and model. Is the YANG model publicly available? If not, please attach the model. Also please clarify model definition for the fec and the enum model for values.&lt;/P&gt;
&lt;P&gt;And yes, the link is not working. Simply attach the failing script and the log to this discussion.&lt;/P&gt;
&lt;P&gt;Yan Gorelik&lt;/P&gt;</description>
    <pubDate>Fri, 04 Mar 2022 22:49:26 GMT</pubDate>
    <dc:creator>ygorelik</dc:creator>
    <dc:date>2022-03-04T22:49:26Z</dc:date>
    <item>
      <title>INVALID_TYPE error seen when the setting FEC to base-r</title>
      <link>https://community.cisco.com/t5/tools/invalid-type-error-seen-when-the-setting-fec-to-base-r/m-p/4559229#M1084</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;When configuring the FEC to 'base-r' on a 8800-LC-36FH-2 using the Cisco_IOS_XR_um_interface_cfg with YDK, the following&amp;nbsp;&lt;SPAN&gt;INVALID_TYPE error is seen while executing the crud_service.py device.create on the RPC:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1 lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;crud_service.py 160 Info---- CREATE operation initiated&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;_validator.py 251 Error--- Validation error for property Interfaces.Interface.fec . Error message (INVALID_TYPE, Invalid type: 'str'. Expected type: Enum).&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;crud_service.py 171 Info---- CREATE operation completed&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This issue is not seen when configuring FEC to 'none' or 'standard'.&lt;/P&gt;
&lt;P&gt;Can some one please help me understand why the Enum 'base-r' is causing this error?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://allure.cisco.com/auto/tftpboot-projects/anthonyp/Cafy/cafyap/work/archive/optics_ydk_test_20220224-161411_p55403/reports/index.html#suites/349843de6605dd8d78564cd8283d5697/84ac8df55c8cbed5/" target="_blank" rel="noopener"&gt;http://allure.cisco.com/auto/tftpboot-projects/anthonyp/Cafy/cafyap/work/archive/optics_ydk_test_20220224-161411_p55403/reports/index.html#suites/349843de6605dd8d78564cd8283d5697/84ac8df55c8cbed5/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Anthony&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 01:25:52 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/invalid-type-error-seen-when-the-setting-fec-to-base-r/m-p/4559229#M1084</guid>
      <dc:creator>anthonyperry</dc:creator>
      <dc:date>2022-02-25T01:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: INVALID_TYPE error seen when the setting FEC to base-r</title>
      <link>https://community.cisco.com/t5/tools/invalid-type-error-seen-when-the-setting-fec-to-base-r/m-p/4564291#M1085</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/905187"&gt;@anthonyperry&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Following the link you've posted resulted in a 403 error for me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="tinyMceEditor_b124e11713317ealexstev_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="403-Forbidden.png" style="width: 400px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/145347iCD13DD88B82B4A1A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="403-Forbidden.png" alt="403-Forbidden.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;DIV id="tinyMceEditor_b124e11713317ealexstev_1" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 17:52:41 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/invalid-type-error-seen-when-the-setting-fec-to-base-r/m-p/4564291#M1085</guid>
      <dc:creator>Alexander Stevenson</dc:creator>
      <dc:date>2022-03-04T17:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: INVALID_TYPE error seen when the setting FEC to base-r</title>
      <link>https://community.cisco.com/t5/tools/invalid-type-error-seen-when-the-setting-fec-to-base-r/m-p/4564477#M1086</link>
      <description>&lt;P&gt;Could you please clarify what is the XR release and model. Is the YANG model publicly available? If not, please attach the model. Also please clarify model definition for the fec and the enum model for values.&lt;/P&gt;
&lt;P&gt;And yes, the link is not working. Simply attach the failing script and the log to this discussion.&lt;/P&gt;
&lt;P&gt;Yan Gorelik&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 22:49:26 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/invalid-type-error-seen-when-the-setting-fec-to-base-r/m-p/4564477#M1086</guid>
      <dc:creator>ygorelik</dc:creator>
      <dc:date>2022-03-04T22:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: INVALID_TYPE error seen when the setting FEC to base-r</title>
      <link>https://community.cisco.com/t5/tools/invalid-type-error-seen-when-the-setting-fec-to-base-r/m-p/4564525#M1087</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/976325"&gt;@Alexander Stevenson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try the link now...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for looking into this issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2022 03:44:38 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/invalid-type-error-seen-when-the-setting-fec-to-base-r/m-p/4564525#M1087</guid>
      <dc:creator>anthonyperry</dc:creator>
      <dc:date>2022-03-05T03:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: INVALID_TYPE error seen when the setting FEC to base-r</title>
      <link>https://community.cisco.com/t5/tools/invalid-type-error-seen-when-the-setting-fec-to-base-r/m-p/4564527#M1088</link>
      <description>&lt;P&gt;This issue was seen while using YDK on the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Cisco-IOS-XR-um-if-ethernet-cfg&amp;nbsp;&lt;SPAN&gt;which augments&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Cisco_IOS_XR_um_interface_cfg&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;to configure fec&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;on a&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;8800-LC-36FH-2 LC of a&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Cisco 8000 router running 7.5.2.13I.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The fec is defined in&amp;nbsp;&lt;SPAN class="s1"&gt;Cisco-IOS-XR-um-if-ethernet-cfg as:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1 lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;leaf fec {&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1 lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;when "../a1:interface-name[starts-with(text(),'HundredGigE')]" +&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1 lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;" or ../a1:interface-name[starts-with(text(),'TwoHundredGigE')]" +&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1 lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;" or ../a1:interface-name[starts-with(text(),'FourHundredGigE')]" +&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1 lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;" or ../a1:interface-name[starts-with(text(),'EightHundredGigE')]" +&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1 lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;" or ../a1:interface-name[starts-with(text(),'TwentyFiveGigE')]" +&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1 lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;" or ../a1:interface-name[starts-with(text(),'FiftyGigE')]" {&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1 lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;tailf:dependency '../a1:interface-name';&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1 lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;}&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1 lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;type enumeration {&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1 lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;enum none {&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1 lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;value 0;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1 lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;description "Disable any FEC enabled on the interface";&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1 lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;}&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1 lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;enum standard {&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1 lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;value 1;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1 lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;description "Enable the standard (CL-91, Reed-Solomon) FEC";&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1 lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;}&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1 lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;enum base-r {&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1 lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;value 2;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1 lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;description "Enable BASE-R FEC";&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1 lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;}&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1 lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;}&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1 lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;description "Set the Forward Error Correction on an interface";&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1 lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;}&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="s1"&gt;The set_fec function is defined as:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;from ydk.models.cisco_ios_xr import Cisco_IOS_XR_um_interface_cfg as xr_um_int_cfg&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;def set_fec(self, port, mode, intf_type=None, enable=True):&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;'''&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;Configure fec&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;:param port: port is the interface eg 0/0/0/0 , 0/0/0/0/1&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;:param mode: standard or base-r&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;:param intf_type: controller type, eg hundredgigectrlr, tengigectrlr etc,&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;:return: None&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;'''&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;intf_conf = xr_um_int_cfg.Interfaces()&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;enum_ = mode&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;if not enable:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; enum_ = DELETE()&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;intf_configuration = intf_conf.Interface()&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;intf_configuration.interface_name = self.ifmgr._fix_name(self.get_interface_type(port=port)) + port&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;intf_configuration.active = "act"&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;intf_configuration.fec = enum_&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;self.device.create(intf_configuration)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2022 04:36:40 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/invalid-type-error-seen-when-the-setting-fec-to-base-r/m-p/4564527#M1088</guid>
      <dc:creator>anthonyperry</dc:creator>
      <dc:date>2022-03-05T04:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: INVALID_TYPE error seen when the setting FEC to base-r</title>
      <link>https://community.cisco.com/t5/tools/invalid-type-error-seen-when-the-setting-fec-to-base-r/m-p/4618776#M1089</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This issue was caused by improperly assigning the enum value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using the following syntax to assign the enum value resolved the issue:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;intf_conf = xr_um_int_cfg.Interfaces()&lt;BR /&gt;intf_conf_fec = intf_conf.Interface.Fec()&lt;/P&gt;
&lt;P&gt;if mode == 'none':&lt;BR /&gt;&amp;nbsp; &amp;nbsp; enum_ = intf_conf_fec.none&lt;BR /&gt;elif mode == 'standard':&lt;BR /&gt;&amp;nbsp; &amp;nbsp; enum_ = intf_conf_fec.standard&lt;BR /&gt;elif mode == 'base-r':&lt;BR /&gt;&amp;nbsp; &amp;nbsp; enum_ = intf_conf_fec.base_r&lt;/P&gt;
&lt;P&gt;for port_ in port:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if self.collect_optics_data(self.get_optics_pid(port_)).zr_optics:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; intf_configuration = intf_conf.Controller()&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; intf_type = 'Optics'&lt;BR /&gt;&amp;nbsp; &amp;nbsp; else:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; intf_configuration = intf_conf.Interface()&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if not intf_type:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; intf_type = self.get_interface_type(port=port_)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; intf_configuration.interface_name = intf_type + port_&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; intf_configuration.fec = enum_&lt;BR /&gt;self.device.create(intf_configuration)&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 19:17:06 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/invalid-type-error-seen-when-the-setting-fec-to-base-r/m-p/4618776#M1089</guid>
      <dc:creator>anthonyperry</dc:creator>
      <dc:date>2022-05-26T19:17:06Z</dc:date>
    </item>
  </channel>
</rss>

