ncsid: lib: Fix neighbor path
It no longer has its own hierarchy. Instead, it's directly below the
ethernet object now.
Tested: Verified that neighbors are now correctly identified when they
need to be deleted.
Change-Id: Ibd319dcc84fcff99d7c45a5e2fb2de58b6f84406
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/subprojects/ncsid/src/ncsid_lib.sh b/subprojects/ncsid/src/ncsid_lib.sh
index bc2c2d8..ef4408e 100644
--- a/subprojects/ncsid/src/ncsid_lib.sh
+++ b/subprojects/ncsid/src/ncsid_lib.sh
@@ -229,19 +229,12 @@
echo "/xyz/openbmc_project/network/$netdev"
}
-# Returns the DBus object root for the static neighbors of an intrerface
-function StaticNeighborObjRoot() {
- local netdev="$1"
-
- echo "$(EthObjRoot "$netdev")/static_neighbor"
-}
-
# Returns all of the neighbor { service, object } data for an interface as if
# a call to GetSubTree() was made
function GetNeighborObjects() {
local netdev="$1"
- GetSubTree "$(StaticNeighborObjRoot "$netdev")" 0 \
+ GetSubTree "$(EthObjRoot "$netdev")" 0 \
'xyz.openbmc_project.Network.Neighbor'
}