diff --git a/AS1024.CommunityDocumentationPage/Views/Home/Index.cshtml b/AS1024.CommunityDocumentationPage/Views/Home/Index.cshtml index 444bb45..efdd0fd 100644 --- a/AS1024.CommunityDocumentationPage/Views/Home/Index.cshtml +++ b/AS1024.CommunityDocumentationPage/Views/Home/Index.cshtml @@ -1,9 +1,11 @@ -@model List +@using Microsoft.Extensions.DependencyInjection +@inject IConfiguration Configuration +@model List @{ ViewData["Title"] = "BGP Communities"; } -

This site contains BGP communities for AS1024. Please note that these communities are subject to change at a moment's notice. We do not strip communities on received routes or on routes sent to peers and upstreams, but we cannot guarantee that the communities will be preserved by the upstream or peers. If you have any questions or need support, please reach out to noc@12393239.xyz.

+

This site contains BGP communities for @("AS" + Configuration["ASN"]). Please note that these communities are subject to change at a moment's notice. We do not strip communities on received routes or on routes sent to peers and upstreams, but we cannot guarantee that the communities will be preserved by the upstream or peers. If you have any questions or need support, please reach out to @Configuration["NOCEmail"].

The communities are as follows:

diff --git a/AS1024.CommunityDocumentationPage/Views/Shared/_Layout.cshtml b/AS1024.CommunityDocumentationPage/Views/Shared/_Layout.cshtml index 5c145d0..7039619 100644 --- a/AS1024.CommunityDocumentationPage/Views/Shared/_Layout.cshtml +++ b/AS1024.CommunityDocumentationPage/Views/Shared/_Layout.cshtml @@ -1,9 +1,11 @@ - +@using Microsoft.Extensions.Hosting +@inject IConfiguration Configuration + - @ViewData["Title"] - AS1024 NetOps + @ViewData["Title"] - @("AS" + Configuration["ASN"]) NetOps @@ -35,7 +37,7 @@
- © @DateTime.Now.Year - AS1024.net + © @DateTime.Now.Year - @("AS" + Configuration["ASN"] + ".net")
diff --git a/AS1024.CommunityDocumentationPage/appsettings.json b/AS1024.CommunityDocumentationPage/appsettings.json index f4d7f1c..27b3d57 100644 --- a/AS1024.CommunityDocumentationPage/appsettings.json +++ b/AS1024.CommunityDocumentationPage/appsettings.json @@ -6,6 +6,7 @@ } }, "APIKey": "", - "ASN": "1024", + "ASN": "", + "NOCEmail": "", "AllowedHosts": "*" }