Fix the wrong default hooks for PreDown and PostDown on Peer Preparing by using the correct properties of the iface (#293)

Co-authored-by: Tim Dithmer <tim.dithmer@suresecure.de>
This commit is contained in:
dithmer 2024-09-22 11:55:41 +02:00 committed by GitHub
parent 4f1044a963
commit deff2334ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -128,8 +128,8 @@ func (m Manager) PreparePeer(ctx context.Context, id domain.InterfaceIdentifier)
RoutingTable: domain.NewStringConfigOption(iface.PeerDefRoutingTable, true), RoutingTable: domain.NewStringConfigOption(iface.PeerDefRoutingTable, true),
PreUp: domain.NewStringConfigOption(iface.PeerDefPreUp, true), PreUp: domain.NewStringConfigOption(iface.PeerDefPreUp, true),
PostUp: domain.NewStringConfigOption(iface.PeerDefPostUp, true), PostUp: domain.NewStringConfigOption(iface.PeerDefPostUp, true),
PreDown: domain.NewStringConfigOption(iface.PeerDefPreUp, true), PreDown: domain.NewStringConfigOption(iface.PeerDefPreDown, true),
PostDown: domain.NewStringConfigOption(iface.PeerDefPostUp, true), PostDown: domain.NewStringConfigOption(iface.PeerDefPostDown, true),
}, },
} }