Skip to content

Commit

Permalink
Test comments with atrributes in one line
Browse files Browse the repository at this point in the history
  • Loading branch information
hknutzen committed Jan 28, 2025
1 parent b9da188 commit 2f59082
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions go/testdata/format-netspoc/format-netspoc.t
Original file line number Diff line number Diff line change
Expand Up @@ -1067,12 +1067,21 @@ owner:o = { admins = [email protected]; }
network:n1 = { ip = 10.1.1.0/24; ip6 = 2001:db8:1:1::/64; }
network:n2 = { ip = 10.1.2.0/24; ip6 = 2001:db8:1:2::/64;
owner = o; crosslink; }
network:n3 = { ip = 10.1.3.0/24; # c1
ip6 = 2001:db8:1:3::/64; # c2
}

router:r1 = {
managed;
model = ASA;
interface:n1 = { ip = 10.1.1.1; ip6 = 2001:db8:1:1::1; hardware = n1; }
interface:n1 = { ip = 10.1.1.1; ip6 = 2001:db8:1:1::1; hardware = n1; } # c1
interface:n2 = { ip = 10.1.2.1; ip6 = 2001:db8:1:2::1;
hardware = n2; owner = o; }
interface:n3 = {
ip = 10.1.3.1;
ip6 = 2001:db8:1:3::1; # c1
hardware = n1; # c2
} # c3
}
=OUTPUT=
owner:o = {
Expand All @@ -1088,16 +1097,19 @@ network:n2 = {
crosslink;
}

network:n3 = { ip = 10.1.3.0/24; ip6 = 2001:db8:1:3::/64; } # c2

router:r1 = {
managed;
model = ASA;
interface:n1 = { ip = 10.1.1.1; ip6 = 2001:db8:1:1::1; hardware = n1; }
interface:n1 = { ip = 10.1.1.1; ip6 = 2001:db8:1:1::1; hardware = n1; } # c1
interface:n2 = {
ip = 10.1.2.1;
ip6 = 2001:db8:1:2::1;
hardware = n2;
owner = o;
}
interface:n3 = { ip = 10.1.3.1; ip6 = 2001:db8:1:3::1; hardware = n1; } # c2
}
=END=

Expand Down

0 comments on commit 2f59082

Please sign in to comment.