/** Access list name. */
const char *ada_name;
+ /** Entry action. */
+ const char *ada_action;
+
#define ADA_MAX_VALUES 4
/** Entry XPath for value. */
const char *ada_xpath[ADA_MAX_VALUES];
if (seq_str == NULL) {
ada.ada_type = "ipv4";
ada.ada_name = name;
+ ada.ada_action = action;
if (host_str && mask_str == NULL) {
ada.ada_xpath[0] = "./host";
ada.ada_value[0] = host_str;
if (seq_str == NULL) {
ada.ada_type = "ipv4";
ada.ada_name = name;
+ ada.ada_action = action;
if (src_str && src_mask_str == NULL) {
ada.ada_xpath[idx] = "./host";
ada.ada_value[idx] = src_str;
if (seq_str == NULL) {
ada.ada_type = "ipv4";
ada.ada_name = name;
+ ada.ada_action = action;
if (prefix_str) {
ada.ada_xpath[0] = "./ipv4-prefix";
if (seq_str == NULL) {
ada.ada_type = "ipv6";
ada.ada_name = name;
+ ada.ada_action = action;
if (prefix_str) {
ada.ada_xpath[0] = "./ipv6-prefix";
if (seq_str == NULL) {
ada.ada_type = "mac";
ada.ada_name = name;
+ ada.ada_action = action;
if (mac_str) {
ada.ada_xpath[0] = "./mac";
&& ada->ada_entry_dnode == dnode)
return YANG_ITER_CONTINUE;
+ if (strcmp(yang_dnode_get_string(dnode, "action"), ada->ada_action))
+ return YANG_ITER_CONTINUE;
+
/* Check if all values match. */
for (idx = 0; idx < ADA_MAX_VALUES; idx++) {
/* No more values. */
/* Initialize. */
ada.ada_type = "ipv4";
ada.ada_name = yang_dnode_get_string(entry_dnode, "../name");
+ ada.ada_action = yang_dnode_get_string(entry_dnode, "action");
ada.ada_entry_dnode = entry_dnode;
/* Load all values/XPaths. */
break;
}
ada.ada_name = yang_dnode_get_string(entry_dnode, "../name");
+ ada.ada_action = yang_dnode_get_string(entry_dnode, "action");
ada.ada_entry_dnode = entry_dnode;
/* Load all values/XPaths. */