06-28-2024 03:08 AM
Hello team I'd to do channel-group force X mode active under interface Ethernet 1/1 for example in my xml template.
<Ethernet>
<name>1/1</name>
<channel-group>
<id>2</id>
<mode>active</mode>
</channel-group>
</Ethernet>
how could I add force option ?
Solved! Go to Solution.
06-28-2024 09:49 AM
Hi @MAMADOUTOURE2733 ,
As you mentioned, there is no "force" element in the NED yang tree. I can confirm it based on the ned yang analysis below:
% pyang -f tree --tree-path=/interface/Ethernet/channel-group tailf-ned-cisco-nx.yang --ignore-errors
module: tailf-ned-cisco-nx
+--rw interface
+--rw Ethernet* [name]
+--rw channel-group
+--rw id? uint16
+--rw mode? enumeration
One option to evaluate is to configure the behavior at ned level. Please take a look into the README-ned-settings.md file.
- behaviours force-join-channel-group <union> (default disable)
Enable this to always use 'force' keyword when joining interface to channel-group (e.g.
'channel-group N force mode active').
Never tried this option myself, but it could meet your objective.
BR,
Kratz
06-28-2024 03:12 AM - edited 06-28-2024 03:20 AM
correct it must config under port member.
MHM
06-28-2024 03:56 AM
Hello @MAMADOUTOURE2733
<Ethernet>
<name>1/1</name>
<channel-group>
<id>2</id>
<mode>active</mode>
<force>true</force> Adding the force option
</channel-group>
</Ethernet>
'Force' option in networking configurations, particularly in the context of link aggregation or channel-group configurations, is typically used to enforce specific settings or behaviors that may not be automatically applied due to various conditions or checks. is it your case ? if not, this command is not necessary.
06-28-2024 07:09 AM
I getting this error :
Unknown element: 'force' for ned-id: cisco-nx-cli-5.25:cisco-nx-cli-5.25
06-28-2024 09:49 AM
Hi @MAMADOUTOURE2733 ,
As you mentioned, there is no "force" element in the NED yang tree. I can confirm it based on the ned yang analysis below:
% pyang -f tree --tree-path=/interface/Ethernet/channel-group tailf-ned-cisco-nx.yang --ignore-errors
module: tailf-ned-cisco-nx
+--rw interface
+--rw Ethernet* [name]
+--rw channel-group
+--rw id? uint16
+--rw mode? enumeration
One option to evaluate is to configure the behavior at ned level. Please take a look into the README-ned-settings.md file.
- behaviours force-join-channel-group <union> (default disable)
Enable this to always use 'force' keyword when joining interface to channel-group (e.g.
'channel-group N force mode active').
Never tried this option myself, but it could meet your objective.
BR,
Kratz
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide