* Add default network namespace constant: RESTCONF_NETNS_DEFAULT with default value "default".
This commit is contained in:
parent
2ce8d9b488
commit
ecd5f7de70
6 changed files with 14 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue