bgp->as = *as;
#if ENABLE_BGP_VNC
- bgp->rfapi = bgp_rfapi_new(bgp);
- assert(bgp->rfapi);
- assert(bgp->rfapi_cfg);
+ if (inst_type != BGP_INSTANCE_TYPE_VRF)
+ {
+ bgp->rfapi = bgp_rfapi_new(bgp);
+ assert(bgp->rfapi);
+ assert(bgp->rfapi_cfg);
+ }
#endif /* ENABLE_BGP_VNC */
if (name)
int write = 0;
afi_t afi;
int type;
+ if (bgp->rfapi == NULL || hc == NULL)
+ return write;
vty_out (vty, "!%s", VTY_NEWLINE);
for (ALL_LIST_ELEMENTS (hc->nve_groups_sequential, node, nnode, rfg))
chown -R ${frruid}:${frrgid} /etc/frr
touch /etc/frr/vtysh.conf
chgrp ${frrvtygid} /etc/frr/vtysh*
-chmod 440 /etc/sudoers.d/frr_sudoers
chmod 644 /etc/frr/*
ENVIRONMENTFILE=/etc/environment
+++ /dev/null
-Defaults env_keep += VTYSH_PAGER
-
-# Allow user in group frr to run vtysh show commands
-# without a password by uncommenting the "%frr" line below.
-
-# Subshell commands need to be disallowed, including
-# preventing the user passing command line args like 'start-shell'
-# Since vtysh allows minimum non-conflicting prefix'es, that means
-# anything beginning with the string "st" in any arg. That's a bit
-# restrictive.
-# Instead, use NOEXEC, to prevent any exec'ed commands.
-
-Cmnd_Alias VTY_SHOW = /usr/bin/vtysh -c show *
-# %frr ALL = (root) NOPASSWD:NOEXEC: VTY_SHOW
-