Make the app more configurable by setting AS's accordingly

This commit is contained in:
Jeff Leung 2022-12-10 20:47:52 -08:00
parent fe35067549
commit daf04140ee
3 changed files with 11 additions and 6 deletions

View File

@ -1,9 +1,11 @@
@model List<AS1024.CommunityDocumentationPage.Models.Result> @using Microsoft.Extensions.DependencyInjection
@inject IConfiguration Configuration
@model List<AS1024.CommunityDocumentationPage.Models.Result>
@{ @{
ViewData["Title"] = "BGP Communities"; ViewData["Title"] = "BGP Communities";
} }
<p>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.</p> <p>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 <a href="mailto:@Configuration["NOCEmail"]">@Configuration["NOCEmail"].</a></p>
<p>The communities are as follows:</p> <p>The communities are as follows:</p>

View File

@ -1,9 +1,11 @@
<!DOCTYPE html> @using Microsoft.Extensions.Hosting
@inject IConfiguration Configuration
<!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@ViewData["Title"] - AS1024 NetOps</title> <title>@ViewData["Title"] - @("AS" + Configuration["ASN"]) NetOps</title>
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" /> <link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true" /> <link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
<link rel="stylesheet" href="~/AS1024.CommunityDocumentationPage.styles.css" asp-append-version="true" /> <link rel="stylesheet" href="~/AS1024.CommunityDocumentationPage.styles.css" asp-append-version="true" />
@ -35,7 +37,7 @@
<footer class="border-top footer text-muted"> <footer class="border-top footer text-muted">
<div class="container"> <div class="container">
&copy; @DateTime.Now.Year - AS1024.net &copy; @DateTime.Now.Year - @("AS" + Configuration["ASN"] + ".net")
</div> </div>
</footer> </footer>
<script src="~/lib/jquery/dist/jquery.min.js"></script> <script src="~/lib/jquery/dist/jquery.min.js"></script>

View File

@ -6,6 +6,7 @@
} }
}, },
"APIKey": "", "APIKey": "",
"ASN": "1024", "ASN": "",
"NOCEmail": "",
"AllowedHosts": "*" "AllowedHosts": "*"
} }