yellowman / nsh

OpenBSD networking configuration shell
http://www.nmedia.net/nsh/
Other
174 stars 27 forks source link

disallow removal of rtable 0; this table is always present #117

Closed stspdotname closed 1 year ago

smytht commented 1 year ago

Testing worked as expected (once I had specified rtable 0 ) in nsh... but before i explictly entered rtable 0

i got a different error no % rtable 0 does not exist in database perhaps this is because I had not initialised nsh properly ? (building nsh and runing it on my dev machine...
but the logic seems dependent on an explict declaration of rtable 0 ... where it should be implicitly declared... (and the nsh db should have it ...

nsh(config-p)/no r route rtable nsh(config-p)/no rtable 0 % rtable 0 does not exist in database nsh(config-p)/rtable 0 nsh(config-p)/ nsh(config-p)/ nsh(config-p)/no arp editing ip6 pipex bridge group mpls route configure interface nameserver rtable ddb ip ndp verbose nsh(config-p)/no arp editing ip6 pipex bridge group mpls route configure interface nameserver rtable ddb ip ndp verbose nsh(config-p)/no r route rtable nsh(config-p)/no r route rtable nsh(config-p)/no r route rtable nsh(config-p)/no rtable 0 % cannot remove rtable 0

stspdotname commented 1 year ago

According to chris, rtable 0 is not supposed to be in the database. The above force-push makes sure of this.

stspdotname commented 1 year ago

When testing this make sure to delete /var/run/nsh.db if it contains rdomain 0. I suppose nsh should update the table to delete such rows if it finds any?

stspdotname commented 1 year ago

Closed and merged into pr 118 instead.