SPOCK: …Last month, at the behest of the Vulcan Ambassador I opened a dialogue with Gorkon, Chancellor of the Klingon High Council. He proposes to commence negotiations at once.
CARTWRIGHT: Negotiations for what?
SPOCK: The dismantling of our space stations and starbases along the Neutral Zone, an end to almost seventy years of unremitting hostility with the Klingons, which the Klingons can no longer afford.
MILITARY AIDE: Bill, are we talking about mothballing the Starfleet?
C in C: I'm sure that our exploration and scientific programs would be unaffected, Captain, but...
CARTWRIGHT: I must protest. To offer the Klingons a safe haven within Federation space is suicide. Klingons would become the alien trash of the galaxy. And if we dismantle the fleet, we'd be defenceless before an aggressive species with a foothold on our territory. The opportunity here is to bring them to their knees. Then we'll be in a far better position to dictate terms.
I don't know about you, but to me that sounds like military brass talking and actually protesting the prospect of stopping to provide defense for the Federation. It also clearly states that Starfleet has a defensive (i.e. military) mission and it's starships, space stations and starbases are part of that.