cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1286
Views
2
Helpful
4
Replies

channel-group force X mode active

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 ?

1 Accepted Solution

Accepted Solutions

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

 

View solution in original post

4 Replies 4

correct it must config under port member. 

MHM

M02@rt37
VIP
VIP

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.

 

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

I getting this error :
Unknown element: 'force' for ned-id: cisco-nx-cli-5.25:cisco-nx-cli-5.25


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