"Wildcard bits\n"
"Any source host\n")
{
- int rv;
int64_t sseq;
char ipmask[64];
char xpath[XPATH_MAXLEN];
snprintf(xpath, sizeof(xpath),
"/frr-filter:lib/access-list-legacy[number='%s']", number_str);
nb_cli_enqueue_change(vty, xpath, NB_OP_CREATE, NULL);
- rv = nb_cli_apply_changes(vty, NULL);
- if (rv != CMD_SUCCESS)
- return rv;
-
if (seq_str == NULL) {
/* Use XPath to find the next sequence number. */
sseq = acl_get_seq(vty, xpath);
"Destination address to match\n"
"Any destination host\n")
{
- int rv;
int64_t sseq;
char ipmask[64];
char xpath[XPATH_MAXLEN];
snprintf(xpath, sizeof(xpath),
"/frr-filter:lib/access-list-legacy[number='%s']", number_str);
nb_cli_enqueue_change(vty, xpath, NB_OP_CREATE, NULL);
- rv = nb_cli_apply_changes(vty, NULL);
- if (rv != CMD_SUCCESS)
- return rv;
-
if (seq_str == NULL) {
/* Use XPath to find the next sequence number. */
sseq = acl_get_seq(vty, xpath);
"Exact match of the prefixes\n"
"Match any IPv4\n")
{
- int rv;
int64_t sseq;
char xpath[XPATH_MAXLEN];
char xpath_entry[XPATH_MAXLEN + 128];
snprintf(xpath, sizeof(xpath),
"/frr-filter:lib/access-list[type='ipv4'][name='%s']", name);
nb_cli_enqueue_change(vty, xpath, NB_OP_CREATE, NULL);
- rv = nb_cli_apply_changes(vty, NULL);
- if (rv != CMD_SUCCESS)
- return rv;
-
if (seq_str == NULL) {
/* Use XPath to find the next sequence number. */
sseq = acl_get_seq(vty, xpath);
"Exact match of the prefixes\n"
"Match any IPv6\n")
{
- int rv;
int64_t sseq;
char xpath[XPATH_MAXLEN];
char xpath_entry[XPATH_MAXLEN + 128];
snprintf(xpath, sizeof(xpath),
"/frr-filter:lib/access-list[type='ipv6'][name='%s']", name);
nb_cli_enqueue_change(vty, xpath, NB_OP_CREATE, NULL);
- rv = nb_cli_apply_changes(vty, NULL);
- if (rv != CMD_SUCCESS)
- return rv;
-
if (seq_str == NULL) {
/* Use XPath to find the next sequence number. */
sseq = acl_get_seq(vty, xpath);
"MAC address\n"
"Match any MAC address\n")
{
- int rv;
int64_t sseq;
char xpath[XPATH_MAXLEN];
char xpath_entry[XPATH_MAXLEN + 128];
snprintf(xpath, sizeof(xpath),
"/frr-filter:lib/access-list[type='mac'][name='%s']", name);
nb_cli_enqueue_change(vty, xpath, NB_OP_CREATE, NULL);
- rv = nb_cli_apply_changes(vty, NULL);
- if (rv != CMD_SUCCESS)
- return rv;
-
if (seq_str == NULL) {
/* Use XPath to find the next sequence number. */
sseq = acl_get_seq(vty, xpath);
"Maximum prefix length to be matched\n"
"Maximum prefix length\n")
{
- int rv;
int64_t sseq;
char xpath[XPATH_MAXLEN];
char xpath_entry[XPATH_MAXLEN + 128];
snprintf(xpath, sizeof(xpath),
"/frr-filter:lib/prefix-list[type='ipv4'][name='%s']", name);
nb_cli_enqueue_change(vty, xpath, NB_OP_CREATE, NULL);
- rv = nb_cli_apply_changes(vty, NULL);
- if (rv != CMD_SUCCESS)
- return rv;
-
if (seq_str == NULL) {
/* Use XPath to find the next sequence number. */
sseq = acl_get_seq(vty, xpath);
"Minimum prefix length to be matched\n"
"Minimum prefix length\n")
{
- int rv;
int64_t sseq;
char xpath[XPATH_MAXLEN];
char xpath_entry[XPATH_MAXLEN + 128];
snprintf(xpath, sizeof(xpath),
"/frr-filter:lib/prefix-list[type='ipv6'][name='%s']", name);
nb_cli_enqueue_change(vty, xpath, NB_OP_CREATE, NULL);
- rv = nb_cli_apply_changes(vty, NULL);
- if (rv != CMD_SUCCESS)
- return rv;
-
if (seq_str == NULL) {
/* Use XPath to find the next sequence number. */
sseq = acl_get_seq(vty, xpath);