* Add default network namespace constant: RESTCONF_NETNS_DEFAULT with default value "default".

This commit is contained in:
Olof hagsand 2021-04-22 13:45:02 +02:00
parent 2ce8d9b488
commit ecd5f7de70
6 changed files with 14 additions and 5 deletions

View file

@ -671,7 +671,7 @@ restconf_socket_init(const char *netns0,
clicon_debug(1, "%s %s %s %s %hu", __FUNCTION__, netns0, addrtype, addrstr, port);
/* netns default -> NULL */
if (netns0 != NULL && strcmp(netns0, "default")==0)
if (netns0 != NULL && strcmp(netns0, RESTCONF_NETNS_DEFAULT)==0)
netns = NULL;
else
netns = netns0;