Skip to content

Commit

Permalink
[nes]: LAG changes ...
Browse files Browse the repository at this point in the history
  • Loading branch information
nes-repo committed Apr 18, 2015
1 parent 7dcac8d commit 58cf74e
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions lag/lagUtils.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@


#include "lagUtils.h"
#include "lagMIB.h"
#include "lag/lacp/lacpUtils.h"
#include "if/ifUtils.h"
#include "if/ifMIB.h"

#include "lib/bitmap.h"

Expand All @@ -35,6 +37,10 @@


static neIfTypeEnableHandler_t lag_aggEnableModify;
static neIfTypeStatusModifier_t lag_aggStatusModify;
static neIfTypeStackHandler_t lag_aggStackModify;

neIfTypeStatusModifier_t lag_portStatusModify;


bool lagUtilsInit (void)
Expand All @@ -50,6 +56,8 @@ bool lagUtilsInit (void)
}

poNeIfTypeEntry->pfEnableHandler = lag_aggEnableModify;
poNeIfTypeEntry->pfStatusModifier = lag_aggStatusModify;
poNeIfTypeEntry->pfStackHandler = lag_aggStackModify;

bRetCode = true;

Expand All @@ -66,6 +74,21 @@ lag_aggEnableModify (
return false;
}

bool
lag_aggStatusModify (
ifData_t *poIfEntry, int32_t i32OperStatus, bool bPropagate)
{
return false;
}

bool
lag_aggStackModify (
ifData_t *poHigherIfEntry, ifData_t *poLowerIfEntry,
uint8_t u8Action, bool isLocked)
{
return true;
}

bool
lag_portStatusModify (
ifData_t *poIfEntry, int32_t i32OperStatus, bool bPropagate)
Expand Down

0 comments on commit 58cf74e

Please sign in to comment.